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.1.tar.gz
(552.4 kB
view details)
Built Distribution
File details
Details for the file rst_budoux-0.1.1.tar.gz
.
File metadata
- Download URL: rst_budoux-0.1.1.tar.gz
- Upload date:
- Size: 552.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a773d9201b82b0bdc6c4c93472ed2128d19b0f4a4ae096b32135d365c356e10 |
|
MD5 | f16f9f14c8da24df16ae63192b2315fd |
|
BLAKE2b-256 | d29f1d919762fab79c5ce409949152451675d7d1bba8d161feea1ccf1754ac74 |
File details
Details for the file rst_budoux-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: rst_budoux-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a289cfbd3984e997396b00cc96b70bac99363014ab4e270fcc5c7b4c54ee71ab |
|
MD5 | 53a5bb159934f02bf5930862c6a70aa5 |
|
BLAKE2b-256 | c655707b67e5e109670879b000ee55d5182036f59204a86026df0396e9533a93 |