<ruby> Element is frequently used in Korean/Japanese articles.
Currently we do not process <ruby>, which leads to bad translation as LLM may think it's a part of sentences, or cannot connect it to the text around, especially in plain-text mode.
<ruby> in Japanese books not just means pronunciation. It's better to preserve Ruby in some ways.
I have no clear idea how to improve this. Fallback using <rp> / just like <rp> in legacy browsers maybe a good idea, not so perfect but acceptable.
宇宙 -> 宇宙(そら)
地球 -> 地球(アース)
Examples of common ruby usage in Japanese Books
Especially in Light Novel, Shin-bungei, Manga, Web Novel
- Contextual Readings
Assigning a non-standard, meaning-based reading to a kanji based on the author's intent or specific context.
宇宙
- Foreign Loanwords
Using katakana ruby to give a native Japanese kanji an English or foreign pronunciation.
地球
- 地球: Earth (Kanji)
- アース: Earth (Katakana / Loanword from English)
- Double Meanings
Conveying two layers of meaning simultaneously. The base kanji represents the underlying meaning or inner thoughts, while the ruby represents what the character physically says out loud.
友
- Fictional Terminology / World-building
Providing unique, stylized pronunciations for fictional techniques, spells, or fantasy terms.
滅竜魔法
滅竜魔法: A magic can kill dragon
ドラゴンスレイヤー: Dragon Slayer
<ruby>Element is frequently used in Korean/Japanese articles.Currently we do not process
<ruby>, which leads to bad translation as LLM may think it's a part of sentences, or cannot connect it to the text around, especially in plain-text mode.<ruby>in Japanese books not just means pronunciation. It's better to preserve Ruby in some ways.I have no clear idea how to improve this. Fallback using
<rp>/ just like<rp>in legacy browsers maybe a good idea, not so perfect but acceptable.Examples of common ruby usage in Japanese Books
Especially in Light Novel, Shin-bungei, Manga, Web Novel
Assigning a non-standard, meaning-based reading to a kanji based on the author's intent or specific context.
Using katakana ruby to give a native Japanese kanji an English or foreign pronunciation.
Conveying two layers of meaning simultaneously. The base kanji represents the underlying meaning or inner thoughts, while the ruby represents what the character physically says out loud.
Providing unique, stylized pronunciations for fictional techniques, spells, or fantasy terms.