KanaText class extends the functionality of Text class.
Project description
extends the functionality of the Text class. any person, who use index/glossary directives with Japanse Kanji, is to be so happy.
conf.py
First of all, add sphinxcontrib-kana_text to sphinx extension list in conf.py
extensions = ['sphinxcontrib.kana_text']
#html_kana_text_on_genindex = False
#html_kana_text_use_own_indexer = 'large'
rst file
then use index directive, glossary directive, index role and kana role.
You can specify the follwings:
.. index:: ようご|用語^21
.. glossary::
ようごいち|用語壱^212
用語1の説明。
And you can also use index/kana role.
夜空に浮かぶ\ :inddex:`あまた|数多^21`\ の星々が\ :kana:`きらめいて|煌めいて^2c`\ いる。
build
finally, build your sphinx project:
$ make kana
take a look at genindex.html.
genindex.html
$ sphinx-kana-genindex
$ mv genindex.html.sample path_to_sphinx_project/_templates/genindex.thml
CHANGES
2021-09-28 0.18 command ‘sphinx-kana-genindex’
2021-09-27 0.17 released on pypi.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for sphinxcontrib.kana_text-0.18.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 559431824db6e9fc08aa349d42559011032dd5f9c42f789bd87d66a9805684bc |
|
MD5 | c2d4a5c120c1e8503b33263f603a6f9e |
|
BLAKE2b-256 | 3fd964b243a3cf7b47a84d4e2ff7d1e3ba17fcde95dc1cc6e0befa617d6c1c75 |