Skip to content

Feature: support of ruby characters #7787

Description

@addlistener

Description

I'm working on a rich text editor for east asian users. I would like to have the support of ruby characters.

Ruby characters (also known as ruby annotations or furigana) are small, annotative characters placed above or beside base characters in East Asian texts. They are commonly used to provide pronunciation guides (e.g., hiragana/katakana for kanji in Japanese, pinyin for Chinese characters) or semantic explanations.

Currently, Lexical does not natively support the creation or editing of ruby characters, which limits its usability for East Asian languages. Implementing this feature would enable developers to build rich text editors that fully support Japanese, Chinese, and other East Asian languages with ruby annotations.

<ruby>
  <rb></rb><rb></rb><rb></rb><rb></rb>
  <rp>(</rp><rt></rt><rt></rt><rt></rt><rt></rt><rp>)</rp>
</ruby>

Reference ->
https://www.w3.org/TR/css-ruby-1/#:~:text=%3Cruby%3E%0A%20%20%3Crb%3E%E6%8C%AF%3C/rb%3E%3Crb%3E%E3%82%8A%3C/rb%3E%3Crb%3E%E4%BB%AE%3C/rb%3E%3Crb%3E%E5%90%8D%3C/rb%3E%0A%20%20%3Crp%3E(%3C/rp%3E%3Crt%3E%E3%81%B5%3C/rt%3E%3Crt%3E%E3%82%8A%3C/rt%3E%3Crt%3E%E3%81%8C%3C/rt%3E%3Crt%3E%E3%81%AA%3C/rt%3E%3Crp%3E)%3C/rp%3E%0A%3C/ruby%3E

Impact

Enterprise Software Companies: Building applications for East Asian markets (e.g., Slack, Notion, Microsoft Office alternatives)

Developers: Creating specialized content management systems for academic, literary, or linguistic applications

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementImprovement over existing feature

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions