Hi, I found two issues regarding <ruby> tags in foliate-js (also reproducible in Readest).
1. Rendering Issue:
Line breakings inside the HTML are treated as unexpected spaces around words.
Workaround: I have to manually strip all blanks in my backend.
2. Search Issue:
Searching is broken when a word contains Ruby tags. For example, if I search for "麦" in the sample below, the result only returns a single character "麦" in isolation, instead of retrieving the full sentence context. It seems the search engine ignores the surrounding context of the <ruby> block.
Sample HTML:
<p class="calibre"> この村では、見事に実った<ruby>
<rb>麦</rb>
<rt>むぎ</rt>
<rb>穂</rb>
<rt>ほ</rt>
</ruby>が風に揺られることを<ruby>
<rb>狼</rb>
<rt>オオカミ</rt>
</ruby>が走るという。</p>
Hi, I found two issues regarding
<ruby>tags infoliate-js(also reproducible in Readest).1. Rendering Issue:
Line breakings inside the HTML are treated as unexpected spaces around words.
Workaround: I have to manually strip all blanks in my backend.
2. Search Issue:
Searching is broken when a word contains Ruby tags. For example, if I search for "麦" in the sample below, the result only returns a single character "麦" in isolation, instead of retrieving the full sentence context. It seems the search engine ignores the surrounding context of the
<ruby>block.Sample HTML: