Inbox (technical)
Bugs, ideas, questions and suggestions about MangaBaka.
Make search treat hiragana and katagana as equivalent
## The problem
Search currently treats hiragana and katakana as different characters. If I search for a title in hiragana, I don't get results that are written in katakana, and vice versa, even though they are the same word, just in a different script. For example, searching "ใญใ" does not return entries titled "ใใณ" (and the reverse is also true). Many titles are written inconsistently across sources, so users often can't tell which script an entry uses.
## The idea
Normalize hiragana and katakana to a single form when indexing and when processing search queries, so the two scripts match each other. This works the same way search already ignores the difference between uppercase and lowercase in English. Most Japanese search implementations handle this with a simple character-mapping step (the Unicode code points for the two scripts are offset by a fixed amount), so it should be fairly easy to add.
Comments
Loading comments...