Put simple, I can't find a way to easily display a furigan in JLabel.
For the record:
Furigana (振 り 仮 名?) Is a Japanese reading aid consisting of lesser kana or syllabic characters printed next to kanji (ideographic) or another to indicate its pronunciation. In horizontal text, yokogaki, they are located above the line of text, while in vertical text, tategaki, they are placed to the right of the line of text, as shown in the figure below. This is one type of ruby text. Furigana is also known as yogigana (読 み 仮 名?) Or rubi (ル ビ?) In Japanese.
In XHTML, this is supported by the Ruby Annotation element, which, in turn, is not supported by the limited rendering capabilities of HTML Swing.
I recently tried to create a JRubyLabel class that can handle Ruby Annotation elements by JRubyLabel elements in JPanel , however I am not very familiar with Swing, so in I feel that I am making things too complicated.
My questions are thus in order of preference:
- Does Swing support ruby text?
- Can you see an easier or better way to implement ruby text in Swing?
- Finally, is there any other GUI program - preferably for Java - that supports ruby text?
source share