FooSoft / yomichan

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

Yomichan auto-grab multiple lines into Anki #2195

Open ChubYee opened 2 years ago

ChubYee commented 2 years ago

Is it possible to make yomichan auto-add/grab more than one "line", in other words, grab all text/lines of subtitle text that is currently being displayed? I find that some of my Anki cards are lacking in context, simply because it's only grabbing whichever line the target word was in, making it more difficult to recall the scene and usage of the word

https://user-images.githubusercontent.com/104586776/177191584-b74a566d-54ae-4c3a-8b89-73c0d230e1de.mp4

toasted-nutbread commented 2 years ago

You could try enabling Layout-aware scanning (enable Advanced, under Scanning settings) to see if that helps. The issue is that there's no generalized way to determine where the contextual sentence starts/ends when it is split across multiple lines.

ChubYee commented 2 years ago

Could you make an optional feature to make/let/allow yomichan to grab all text? Because I think it would be useful with subtitles in an html video website, since all of the text would just be the few lines of the subtitle at the current timestamp. Or am I wrong?

Ceynou commented 2 years ago

Could you make an optional feature to make/let/allow yomichan to grab all text? Because I think it would be useful with subtitles in an html video website, since all of the text would just be the few lines of the subtitle at the current timestamp. Or am I wrong?

it doesn't seem like you're using asbplayer with a streaming site(?), so why not use mpv+ either Immersive, anacreon or mpvacious scripts? this way you can select the whole sentence(and the audio with it).

another way would be to set up a second profile and use {clipboard-text} instead of {sentence} for when you need more context.

toasted-nutbread commented 2 years ago

Could you make an optional feature to make/let/allow yomichan to grab all text? Because I think it would be useful with subtitles in an html video website, since all of the text would just be the few lines of the subtitle at the current timestamp. Or am I wrong?

"All text" would probably include the text on the sidebar. "All text" also has negative performance implications in general.