themoeway / yomitan

Pop-up dictionary browser extension. Successor to Yomichan.
https://yomitan.wiki
GNU General Public License v3.0
1.12k stars 84 forks source link

Option to hide extra frequency info when using group related terms #1235

Closed shiki-tm closed 1 month ago

shiki-tm commented 1 month ago

image

As you can see it takes up a lot of space.

Thanks to Marv's recent update to the free chinese dictionary CC-CEDICT can now be used with group related terms setting. But because of the chinese frequency lists we have, theyre basically all based on simplified chinese character corpus. i know the frequency between the scripts isnt the same but gotta work with what we got. because the lists are basically for one script, i dont need to see the extra frequency numbers in parenthesis since theyre obviously crazy different or the exact same as the opposite character set. this is just the situation with chinese freq lists but im sure other languages might have similar issues. I just want a setting to turn them off for frequency lists since the info in paranthesis is useless for our situation with chinese lists.

It might also be useful if there was a setting to also just turn off the parenthesis info for all dicts since the way CC-CEDICT is setup it doesnt group all terms with different readings, it only groups simplified and traditional characters in search results. So no worries about confusing different meanings separated by promunciation, those are still separate entries.

image

kilowatson commented 1 month ago

Completely-gone-small Partial-small

Something like one of these?

shiki-tm commented 1 month ago

Just the stuff in parentheses, I still want to see the frequency numbers of course

kilowatson commented 1 month ago

Parentheses

Is this good?

shiki-tm commented 1 month ago

Yes that's good! Can you tell me how did you do this?

kilowatson commented 1 month ago

.frequency-disambiguation{ display: none } Add this line to the popup css

shiki-tm commented 1 month ago

thanks for this. is it possible to hide the first frequency number if theres 2 from a freq list?

kilowatson commented 1 month ago

.frequency-body::after, span.frequency-group-item span.frequency-item:not(:first-child) span.frequency-value{ display: none; }

shiki-tm commented 1 month ago

amazing. tysm! in case anyone wants to hide the definition parenthesis info i was able to do it with this css:

.definition-disambiguation { display: none } .definition-disambiguation-list:after,:before{ display: none }