yomichan
yomichan copied to clipboard
ッ -> っ not being replaced by the 'Convert katakana to hiragana' text replacement option
Description
With the katakana -> hiragana replacement option on 'use both variants' some things like ハモッた and テンパッた are not properly scanned. I was able to fix it by adding the following text replacement.
Looking in the code for the replacement it seems ッ is within KATAKANA_RANGE
so I couldn't figure out why it doesn't work.
Browser version
Yomichan version 22.4.4.0
Exported settings file
Can you explain what you mean by "not properly scanned"? Can you show an example of what you are/were seeing?
I think the problem is that テンパる and ハモる will scan if they are inflected as テンパった and ハモった, but not as テンパッた or ハモッた
The reason why this happens is because the kana conversions convert the entire term, not only certain characters.
Therefore, the reason why テンパった
works and テンパッた
doesn't is because テンパッた
will be converted either テンパッタ
or てんぱった
, both of which won't be deinflected to テンパる
.
This is part of a underlying issue of normalizing terms/readings during the import process for optimal lookups, which has not yet been addressed due to numerous technical challenges.
Related: #461