Badges |
Text splitter in reStructuredText by BudouX.
Note
This is bridge library to docutils
and budoux
.
You can break lines naturally when build contents from reStructuredText by using this.
See document for more information.
You can install from PyPI.
pip install rst-budoux
This provides also as Sphinx-extension, therefore it works to register into your conf.py
.
extensions = [
"rst_budoux.sphinx",
]
You want to use wihout Sphinx ? Please see document.
This is example using psuedoxml outputs for "docutils only" and "with rst-budoux".
Example from BudouX
===================
あなたに寄り添う最先端のテクノロジー。
$ run rst2pseudoxml examples/budoux-sample-text.rst
<document ids="example-from-budoux" names="example\ from\ budoux" source="examples/budoux-sample-text.rst" title="Example from BudouX">
<title>
Example from BudouX
<paragraph>
あなたに寄り添う最先端のテクノロジー。
$ run rst-budoux2pseudoxml examples/budoux-sample-text.rst
<document ids="example-from-budoux" names="example\ from\ budoux" source="examples/budoux-sample-text.rst" title="Example from BudouX">
<title>
Example from BudouX
<paragraph>
あなたに
<word-break>
寄り添う
<word-break>
最先端の
<word-break>
テクノロジー。