FooSoft / yomichan

Japanese pop-up dictionary extension for Chrome and Firefox.
https://foosoft.net/projects/yomichan
Other
1.06k stars 213 forks source link

[Feature Request] display manually added notes in anki #1961

Open freebiesoft opened 2 years ago

freebiesoft commented 2 years ago

Some vocabulary expressions don't appear in JMdict. For example せにゃ is a slurred version of せねば in slang (e.g. coming from a rough-speaking character in a game I'm playing). I've added this expression to my Anki deck, but yomichan won't know that this entry exists in my anki deck if I hover over the word now because it doesn't exist in JMdict which I guess is yomichan's only source as to word recognition.

Is there any easy way to get yomichan to recognise manually-added notes in anki?

toasted-nutbread commented 2 years ago

The only way for Yomichan to display notes that already exist is if the first Anki card field (usually the headword) is the same. Otherwise it has no way of correlating cards.

In your case, Yomichan has no way of knowing that the "せにゃ" card is related to the term "せねば", so it cannot show that information.

toasted-nutbread commented 2 years ago

I guess you could potentially do something like setting up Yomichan's fields like:

Term => {expression}
DisplayTerm => {expression}
Definition => {glossary}
...

And then set up the Anki card display to only show DisplayTerm, Definition, etc. (basically ignore the Term field and only use it for uniqueness).

And then your specific card could be added as:

Term => せねば
DisplayTerm => せにゃ
Definition => (dictionary definition)
...

So Yomichan would find it since the first field (Term) is the same.

freebiesoft commented 2 years ago

@toasted-nutbread I think there's been a misunderstanding. What I am asking for us a solution whereby yomichan recognises words that I have added myself to Anki, that don't appear in JMdict. e.g. if I manually add せにゃ to anki, I then want yomichan to recognise that as an expression in it's own right and recognise (with anki connect) that I've added it to anki.

toasted-nutbread commented 2 years ago

There is no way to do that for a few reasons:

  1. Anki lookup latency is significantly higher than the web browser's internal database lookup, so terms likely could not be looked up quickly and efficiently.
  2. Anki's card/note format is different from Yomichan's internal format, and it has no way to safely or correctly convert between the two.