Skip to content

Instantly share code, notes, and snippets.

@Shougo
Created June 21, 2010 13:17
Show Gist options
  • Save Shougo/446829 to your computer and use it in GitHub Desktop.
Save Shougo/446829 to your computer and use it in GitHub Desktop.
eskk#dictionary#get_kanji(yomigana, max)
よみがなの先頭headstrに先頭一致する候補をmax個取得。maxは省略可?
戻り値は[candidate1, candidate2, candidate3, ...]
candidate = ['yomigana', ['kanji1', 'kanji2', ...]]
kanji = {'result' : '', 'anotation' : ''}
ユーザー辞書とシステム辞書から検索。
辞書は指定できてもいいかもしれない。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment