Use dictionary form of word for tracking learning.
This commit is contained in:
parent
2cd80a3dce
commit
b60ecc38b3
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user