Skip to main content

This is Sphinx extension to break line of heading texts by BudouX.

Project description

Overview

This is Sphinx extension to break line of heading texts by BudouX.

Simple example

From source is:

あなたに寄り添う最先端のテクノロジー
====================================

Output without this is:

<h1>あなたに寄り添う最先端のテクノロジー</h1>

Output with this is:

<h1 style="word-break: keep-all; overflow-wrap: break-word;">あなたに<wbr/>寄り添う<wbr/>最先端の<wbr/>テクノロジー</h1>

Installation

pip install sphinxcontrib-budoux

Usage

extensions = [
    "sphinxcontrib.budoux",
]

# Tag to ijnect for splitted texts
budoux_split_tag = "wbr"
# Style for splitted-tag
budoux_split_style = "budoux_split_style", "word-break: keep-all; overflow-wrap: break-word;"
# Target tags for apply BudouX
budoux_targets = ["h1", "h2"]

Note

Main targets for edit are heading text, not but contents of paragraph.

If you set p, li and others into budoux_targets`, this may not work correctly that you think.

Example

See doc (written by Japanese).

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

sphinxcontrib_budoux-0.1.6.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

sphinxcontrib_budoux-0.1.6-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file sphinxcontrib_budoux-0.1.6.tar.gz.

File metadata

  • Download URL: sphinxcontrib_budoux-0.1.6.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for sphinxcontrib_budoux-0.1.6.tar.gz
Algorithm Hash digest
SHA256 530c0942e0d42b783953a3f41c6fd808cd282389ff3977791f65596be978ee86
MD5 a2cafcafcef9a016f88e9f65d0b95766
BLAKE2b-256 2c054555ac1200141da49dc0e7b1cc0fe117851f4de6866064aafa940f11d2a4

See more details on using hashes here.

File details

Details for the file sphinxcontrib_budoux-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinxcontrib_budoux-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d16eb8a32937cb0d0c69bcab82ae89c4f19824ae424825ee51c700815f34cf6b
MD5 1cd2e437d8c9e6ef0f3bc29fcafdef8f
BLAKE2b-256 4d9e83dfefc20e396f4f2a8b8d0ad4e2dfbc11b800a8e8d9ba7e94054ad228c3

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