Use dictionary form of word for tracking learning.

This commit is contained in:
Nathan Vegdahl 2025-09-04 06:31:18 +09:00
parent 2cd80a3dce
commit b60ecc38b3

View File

@ -346,7 +346,11 @@ fn add_html_furigana(
(surface, kana, word, pitches) (surface, kana, word, pitches)
}; };
let needs_help = learner.process(surface); let needs_help = if !word.is_empty() && !is_kana_str(surface) {
learner.process(word)
} else {
learner.process(surface)
};
if !needs_help { if !needs_help {
new_text.push_str(surface); new_text.push_str(surface);