Skip to main content

Text splitter in reStructuredText by BudouX

Project description

Badges

https://img.shields.io/pypi/v/rst-budoux.svg https://github.com/attakei-lab/rst-budoux/actions/workflows/main.yml/badge.svg https://readthedocs.org/projects/rst-budoux/badge/?version=stable

Text splitter in reStructuredText by BudouX.

https://raw.githubusercontent.com/attakei-lab/rst-budoux/main/mv.png

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


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)

Uploaded Source

Built Distribution

rst_budoux-0.1.1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

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

Hashes for rst_budoux-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3a773d9201b82b0bdc6c4c93472ed2128d19b0f4a4ae096b32135d365c356e10
MD5 f16f9f14c8da24df16ae63192b2315fd
BLAKE2b-256 d29f1d919762fab79c5ce409949152451675d7d1bba8d161feea1ccf1754ac74

See more details on using hashes here.

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

Hashes for rst_budoux-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a289cfbd3984e997396b00cc96b70bac99363014ab4e270fcc5c7b4c54ee71ab
MD5 53a5bb159934f02bf5930862c6a70aa5
BLAKE2b-256 c655707b67e5e109670879b000ee55d5182036f59204a86026df0396e9533a93

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page