Put simple, I cannot find a way to easily display furigana in a JLabel.
For the record:
Furigana (振り仮名?) is a Japanese reading aid, consisting of smaller kana, or syllabic characters, printed next to a kanji (ideographic character) or other character to indicate its pronunciation. In horizontal text, yokogaki, they are placed above the line of text, while in vertical text, tategaki, they are placed to the right of the line of text, as illustrated below. It is one type of ruby text. Furigana are also known as yomigana (読み仮名?) or rubi (ルビ?) in Japanese.
In XHTML this is supported with the Ruby Annotation element, which is - in turn - not supported by Swing's limited HTML rendering capabilities.
I've recently tried to create a JRubyLabel
class, capable of handeling Ruby Annotation elements, by stacking multiple JLabel
elements in a JPanel
- however, I am not so very familiar with Swing, so in a sense I feel like I'm over-complicating things.
My questions thus are, in order of preference:
Itadaki Source Forge project supports Furigana in Java Swing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With