forked from MikimotoH/furigana
-
Notifications
You must be signed in to change notification settings - Fork 3
Generate furigana from Japanese
License
Kajen5/furigana
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Generate furigana(振り仮名) from Japanese
It uses pykakasi(http://kakasi.namazu.org/) (a Natural Language Toolkit) to split Japanese into words, and superscript it with furigana (振り仮名).
from furigana.furigana import to_html
print_html('澱んだ街角で僕らは出会った')
澱 ん だ 街角 で 僕 ら は 出 会 っ た
from furigana.furigana import to_html
print(to_html('お茶にお煎餅、よく合いますね'))
お 茶 に お 煎餅 、 よく 合 い ます ね
$ python3 furigana.py '活版印刷の流れを汲む出版作業では'
See https://pypi.org/project/pykakasi/2.0.0/
run below commands on ubuntu
sudo pip install six semidbm pykakasi
Please use Ubuntu's original python3, not to use with Anaconda Python3
About
Generate furigana from Japanese
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- Python 100.0%