Text splitter in reStructuredText by BudouX
Project description
Badges |
Text splitter in reStructuredText by BudouX.
Overview
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.
Usage
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.
Example
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>
テクノロジー。
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
rst_budoux-0.1.0.tar.gz
(552.4 kB
view hashes)
Built Distribution
Close
Hashes for rst_budoux-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6133a091e233213c3dc79109d7a3ce951ecbf78c82f6d9796406977dce106c50 |
|
MD5 | a48e761f5146499bed3a42ea10ad8164 |
|
BLAKE2b-256 | 270b37449565619643ec16e5eef4b4c64dd8e8d14d3221bc94ba9311d7e21dcb |