Skip to main content

mkdocs-ruby-plugin

An MkDocs plugin to add pinyin/furigana to Chinese/Japanese Kanji text.

It's based on https://github.com/ijaureguialzo/mkdocs-furigana-plugin, but replace CSS style with HTML <ruby> tag.

Installation

pip3 install mkdocs-ruby-plugin

Or

pip3 install https://github.com/lesliezhu/mkdocs-ruby-plugin/archive/refs/heads/master.zip

Usage

Write kanji like this:

我(wo)是一只{猫(mao)}。猫(ねこ).

It will look like:

我wo是一只猫mao。猫ねこ.

Or like this when there is more than one character:

我(wo)是{一只猫(yizhimao)}。{綺麗猫(きれいねこ)}.

It will look like:

我wo是一只猫yizhimao。綺麗猫きれいねこ.

To enable the plugin in the mkdocs.yml file:

plugins:
  - ruby:
      global_enable: true
      title_enable: true
      outer_begin: '{'
      outer_end: '}'
      inter_begin: '('
      inter_end: ')

If ruby.global_enable = false, you can enable this plugin in single page:

---
ruby: true
---

If ruby.global_enable = true, you can disable this plugin in single page:

---
ruby: false
---

Metadata

Release files for mkdocs-ruby-plugin 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mkdocs-ruby-plugin 0.0.3
File Size Uploaded Provenance Actions
mkdocs-ruby-plugin-0.0.3.tar.gz 6.8 kB Without provenance Details for mkdocs-ruby-plugin-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mkdocs-ruby-plugin 0.0.3
File Interpreter ABI Platform Actions
mkdocs_ruby_plugin-0.0.3-py3-none-any.whl Python 3 none any Details for mkdocs_ruby_plugin-0.0.3-py3-none-any.whl

Total release size: 14.3 kB

Release files / mkdocs-ruby-plugin-0.0.3.tar.gz

Download URL mkdocs-ruby-plugin-0.0.3.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3e4434f6248e67f4f78292d34594a6943b203dcf69c1f5bdb62eb4cdca3e6879
BLAKE2b-256 checksum
How to use checksums
9541c5011011bb563c2a388a066de7b5c1f03e6eebb6e60c0439f574e198dbb5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/6.0.0 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.2

Release files / mkdocs_ruby_plugin-0.0.3-py3-none-any.whl

Download URL mkdocs_ruby_plugin-0.0.3-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5cfc7578d583a103bd1e19f281be3ecba7b480c6484bd9ceffc53c1b8413bfb2
BLAKE2b-256 checksum
How to use checksums
546cdd028c077910ba6249c1f66457c2cdcdf55c7b3185ff7143c4c7a4c8081e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/6.0.0 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.2

Security for mkdocs-ruby-plugin 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page