Hello all !
I got some book on my kobo (世にも奇妙な商品カタログ) that contains furigana above the kanjis, i.e. small characters indicating how the kanji is supposed to be read.
In the HTML, it looks like this:
Code:
<ruby><span>行方</span><rt>ゆくえ</rt><span>不</span><rt>ふ</rt><span>明</span><rt>めい</rt></ruby>
This will display 行方不明 (the kanjis) and, above it, ゆくえふめい in a smaller font (the reading in hiragana)
Problem is, if I try to do a dictionary search search, the kobo will look for the word 行方ゆくえ不ふ明めい, which doesn't exist.
I could just edit the book and remove all the <rt> to make the words searchable, but isn't there another way ? Could I make the <rt> non-selectable or something ?
EDIT: I was able to write a script that just groups all the <rt> at the end of the <ruby>. It works in most cases, but it still means I can't use the dictionary on text bits that contain several <ruby> :/