DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:ruby

This is an old revision of the document!


Ruby Plugin

Compatible with DokuWiki

Greebo, 2018-04-22

plugin Add ruby (normally used to display Japanese Kana on Chinese characters to describe how to read the Chinese characters. This plugin is mainly for Japanese surroundings)

Last updated on
2018-06-02
Provides
Syntax
Repository
Source

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Similar to xhtmlruby

Tagged with furigana, japanese, ruby

:!: このプラグインに関して、日本語版ページがございます。(This page is also available in Japanese)
:!: I’m not a native English speaker, so this page may contain some mistakes in English sentences.

:!: This plugin updated in May 29, 2018, and confs of parentheses has been changed. Read this page for details.

Summary

You can add ruby to your text by using this plugin.
“Ruby” is shown on specified characters. Ruby is mainly used to display Japanese Kana on Chinese characters and describe how to read the Chinese characters.

I know that there is a similar plugin xhtmlruby, but it seems that the plugin is not updated now, so I newly made this plugin.

This plugin is mainly for Japanese surroundings, because other languages may not need “ruby.”

:!: I'm a beginner of PHP programming, so I referred to anchor plugin when creating my plugin.

Installation

Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

Examples / Usage

:!: May 22, 2018: I changed partitions from “:” to “|”, because I thought that “|” is a less common character than “:”.

For example, if you enter:

{{ruby|車|くるま}}

then you'll see small text “くるま” on the text “車” (“車” stands for “car(s)” in Japanese, and is read “kuruma (くるま)”).
But some devices doesn't support the ruby syntax. In such devices it'll be shown like “車(くるま)”. (Parentheses can be changed. See contents below.)

You can see this plugin working on a page in my wiki (sorry but this page is available only in Japanese).

Syntax

{{ruby|characters|another characters on it}}
  • characters: In many cases, you enter the Chinese characters
  • another characters on it: In many cases, you enter how to read this Chinese characters

Configuration and Settings

:!: May 29, 2018: It's been updated and options parenthesis and parenthesisClosing will no longer be used (merged to parentheses).

You can change following settings by using the Configuration Manager.

Option Description Value Type Default Value
parentheses Partentheses involving ruby (used for devices not supporting ruby syntax)
The first character of the text in this text box will be a left parenthesis, and the second character will be a right one.
The third character and after will be ignored.
If there is only one character in this text box, or the text box is empty, parentheses won't be outputted.
string ()

The description of configuration can be shown in:

  • English
  • Japanese

Development

Change Log

  • 2018-04-30
    • Published (with single file)
  • 2018-05-04
    • Started to support some configurations (parentheses used for devices not supporting ruby syntax)
    • Multiple files
  • 2018-05-22
    • Little change
  • 2018-05-23
  • 2018-05-29
  • 2018-06-02

Known Bugs and Issues

No issues now

Contact Me

If you find some problems in this plugin, you can make issue topics on the GitHub page, or if you wanna contact me for other things, you can contact me by:

Discussion

plugin/ruby.1527929556.txt.gz · Last modified: 2018-06-02 10:52 by hokkaidoperson

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki