Back to API Reference
Class
RubyParseRule
sealed
Inherits:IParseRule
Parses ruby (furigana) markup into base + reading ranges for RubyModifier.
Remarks
Two equivalent forms: Standard HTML — <ruby>漢字<rt>かんじ</rt></ruby>: base is the element content, the reading is in <rt>. Several <rt> give mono-ruby (one reading per base segment): <ruby>東<rt>とう</rt>京<rt>きょう</rt></ruby>. <rp> fallback parentheses are stripped. Shorthand — <ruby=かんじ>漢字</ruby>: the reading is the tag value. Other inline tags around a ruby work; tags inside the base text are not parsed (the base is plain text).
