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://github.com/attakei-lab/rst-budoux/blob/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.0.tar.gz (552.4 kB view hashes)

Uploaded Source

Built Distribution

rst_budoux-0.1.0-py3-none-any.whl (9.9 kB view hashes)

Uploaded Python 3

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