LuteOrg / lute-v3

LUTE = Learning Using Texts: learn languages through reading. Python/Flask.
MIT License
406 stars 45 forks source link

Vocabulary "mining" mode that automatically selects the next unknown word #434

Open yue-dongchen opened 3 months ago

yue-dongchen commented 3 months ago

As discussed on Discord

Ad hoc point: I don't know if the LingQ implementation that Xolog refers to ("all of the new words in a list") displays surrounding context on that page. The surround context would be quite important, regardless of whether it's realised as a distinct page.

Discord chat log

yue_dongchen: Particularly for speeches, I always jump through the unknown words before listening to the audio. My proposal is a mode in which the next word would be selected upon saving a term. Does anyone think this would be helpful?

PS No GitHub issue yet. I will create one if there is a prospect of it being implemented

Xolog9017 ah yeah that would actually be really nice. I would use it before every comprehensible input video going forward. Because it will make it easy to look for new words in videos and conveniently get them assigned to 1 straight away Or even better, jz, if you decide to go down this path, you can take some inspiration from LingQ's page where they show all of the new words in a list. Then you don't have to write the code for making the selected word jump to the next unknown word

jzohrab Thanks both 🙃

jzohrab commented 3 months ago

Thanks for the issue -- some misc notes:

Lute currently does have a "toggle highlights" thing, where all of the highlighting is hidden. I wonder if it would suffice to have some variation of this: "toggle highlights except for unknown words" -- that way the new stuff would be highlighted, but the rest of the page would be white/background color. The wording is clumsy but maybe the idea is ok. Or maybe the "toggle highlights" thing could do "cycle highlights" -- start as-is, then toggle all off, then toggle all except for the unknown words off. Of the ideas given, this feels like the smallest amount of work (though it might still be tough, depending on how I wrote that toggle stuff in the past :-) )

yue-dongchen commented 3 months ago

Thanks for the reply. I look to submit a PR leveraging the keys "j" and "l" for respectively backwarding and forwording to adjacent unknown words. They're on the home row for QWERTY-like layouts. Concededly not ideal for I guess more geeky users on alternate layouts.

Update 06/06/2024: I don't have such basic programming skills as of now, and I also am working towards my secondary school exams which will occur later this year. It will be a couple of months before I get to this.

jzohrab commented 3 months ago

Good luck on your exams!