yomichan
yomichan copied to clipboard
[Feature Request] furigana on the page should be used for {sentence-furigana} in Anki term notes
It seems that currently, if the page contains furigana, they are ignored, and the furigana for the {sentence-furigana} variable for Anki notes are instead guessed from the top dictionary entries. For instance, in this lesson, if you add a kanji term note for a term in the sentence
ジャックが豆のことを話すと、お母さんは怒り始めました。
with dictionaries JMdict (English) and KANJIDIC (English) installed, the {sentence-furigana} variable contains 怒 instead of 怒. This happens even if you add a card for the term 怒る (which is the second dictionary entry in the list). It would be nice if the existing furigana would be extracted and used. I tried to do this myself but found that the furigana are dropped early on in the process and would have to be carried along through too much code that I don't fully understand.
(Firefox 94.0.2, yomichan 21.10.31.1, settings)
This also applies when furigana are guessed correctly overall but their assignment to individual characters is lost. For example, if you create term notes in the last two sentences of the next lesson that contain 人食 and 自分, {sentence-furigana} contains 人食 and 自分 instead. If you add term notes for those terms themselves, {furigana} (which doesn't need to be guessed and is by definition correct overall) is also affected, since it's extracted from the dictionary and not from the page.