Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Clone in Desktop Download ZIP
Python
Latest commit d547dd8 @momijiame 文字コード判定に不具合があったので修正する
- 総当りでやろうとすると部分的にエンコードできるときに誤判定がおきる
  - 例えば sjis を最初の部分だけ見て ascii とするなど

README.md

kanjilint

これは何ですか?

文章の中から平仮名に開いた方が読みやすくなる漢字を見つけ出すツールです。

インストール

Python のパッケージマネージャ PIP を使ってインストールします。

$ pip install git+https://github.com/momijiame/kanjilint.git

使い方

インストールされると kanjilint コマンドが使えるようになります。

開いたほうが読みやすくなる漢字を文章から見つけるには detect サブコマンドを使います。

$ kanjilint detect <directory or file>

見つけると同時にインプレースで置換するには replace サブコマンドを使います。

$ kanjilint replace <directory or file>

参考

https://twitter.com/tarareba722/status/604512061003960320

Something went wrong with that request. Please try again.