Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruby text isn't handled properly #341

Open
ElnuDev opened this issue Feb 3, 2023 · 0 comments
Open

Ruby text isn't handled properly #341

ElnuDev opened this issue Feb 3, 2023 · 0 comments
Labels
bug-report Unexpected behavior found, including behavior that diverges from documentation.

Comments

@ElnuDev
Copy link

ElnuDev commented Feb 3, 2023

When indexing posts that use the <ruby> tag, for example かん <ruby>漢<rp>(</rp><rt>かん</rt><rp>)</rp></ruby><ruby>字<rp>(</rp><rt>じ</rt><rp>)</rp></ruby>, the ruby text isn't handled properly. All of the content of <rt> and <rp> should be ignored, as they aren't a part of the actual text content, just annotations. Currently, Stork just expands the <rp> parentheses, so the former becomes 漢(かん)字(じ). Since words can be broken up across multiple <ruby> tags, this causes かん to not come up in search results for 漢字.

@jameslittle230 jameslittle230 added the bug-report Unexpected behavior found, including behavior that diverges from documentation. label Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Unexpected behavior found, including behavior that diverges from documentation.
Projects
None yet
Development

No branches or pull requests

2 participants