This is a sphinx extention. It extends the functionality of the Text class. Any person, who uses index/glossary directives with Japanse Kanji, is to be so happy.
If word_list.txt is used by kana_text_word_file parameter, the genindex.html is created without editing rst files.
QUICK START
conf.py:
extensions = ['sphinxcontrib.kana_text']
#kana_text_word_file = '~/.config/sphinx/word_list.txt'
#kana_text_word_list = ['ใใใ|็จ่ช^21', 'ใถใใใใใใใ|ๆๆธไฝๆ^2222',]
#kana_text_indexer_mode = 'small'
#html_kana_text_on_genindex = False
Warning
- 'word_list.txt' is required for kana_text_word_file
- 'genindex.html' is required for html_kana_text_on_genindex = True.
- both parameters are valid only against genindex.html.
rst file:
.. index:: ใใใ|็จ่ช^21
.. glossary::
ใใใใใก|็จ่ชๅฃฑ^212
็จ่ช๏ผใฎ่ชฌๆใ
ๅค็ฉบใซๆตฎใใถ\ :index:`ใใพใ|ๆฐๅค^21`\ ใฎๆใ
ใ\ :kana:`ใใใใใฆ|็
ใใใฆ^2c`\ ใใใ
build:
$ make kana
genindex.html
$ sphinx-kana-genindex
$ mv genindex.html.sample path_to_sphinx_project/_templates/genindex.html