ripose-jp / Memento

An mpv-based video player for studying Japanese
https://ripose-jp.github.io/Memento/
GNU General Public License v2.0
484 stars 22 forks source link

Option for an alternate frequency output #164

Open pedipanol opened 1 year ago

pedipanol commented 1 year ago

I use a frequency sorting setup by Marv that involves a handlebar in yomichan to remove the dictionary name of the output and output only the highest priority dictionary's value (and adds a 999999 value if no frequency is found). With this all new words in Anki will be the ones you mined that have the highest frequency within the dictionary you're using.

https://github.com/MarvNC/JP-Resources#sorting-mined-anki-cards-by-frequency

For now I just backfill them later, but an option for Memento to do that natively would be awesome.

That's pretty much the only nitpick I've had in using the program in the past week, keep up the great work!

ripose-jp commented 1 year ago

While there is a request for Handlebar support #79 and it is possible to implement via MuJS, the effort it would take to implement versus the benefit it would add is too small for me to really be too be interested at the moment. If this were to get implemented, I'd rather it be through the extended marker syntax idea kicked around in #143.

Just to make sure I understand correctly, you want to only add the value of the first frequency dictionary without the name?

pedipanol commented 1 year ago

Yeah, it doesn't need to be a full implementation of the handlebar, if it can output just the first dicionary's value it would be enough for me!

snfergy commented 8 months ago

Is this still being considered?

ripose-jp commented 7 months ago

If it's not closed, I believe it should be implemented. I want this to use the marker syntax described in #143, so that would have to come first. I haven't worked much on feature requests in the last few years since I they don't affect my use case and I'm busier now than when I was a student.

BigBoyBarney commented 7 months ago

I use a frequency sorting setup by Marv that involves a handlebar in yomichan to remove the dictionary name of the output and output only the highest priority dictionary's value (and adds a 999999 value if no frequency is found). With this all new words in Anki will be the ones you mined that have the highest frequency within the dictionary you're using.

I had this exact issue, which I mentioned in #202 as well.

As a temporary solution, I wrote a quick Anki add-on to trim your frequency field to the lowest value before inserting a card. https://codeberg.org/Sylphrena/AnkiFieldTrimmer

It essentially mimics what the handlebars do in yomichan. Let me know if you need help setting it up.