obynio / anki-japanese-furigana

Anki add-on providing support for adding furigana on Japanese text
https://ankiweb.net/shared/info/678316993
GNU General Public License v3.0
17 stars 5 forks source link

Add option to hide generated furigana by default #31

Open qntoine opened 1 year ago

qntoine commented 1 year ago

As discussed in #30 , it would be nice to have an option to hide generated furigana by default and display them only when e.g. hovering over (for mouse interfaces) or clicking (for touch interfaces) on a certain word.

Current behavior does not mimic an actual reading experience in Japanese (even in a learning context, e.g. a textbook or flashcards), where only readings for the most difficult or target words are shown. Displaying all furigana is distracting and can hinder one's ability to progress as the brain intuitively goes for the easiest route and hinge on furigana first.

lukasSchulze commented 1 year ago

Adding this (like you already mentioned in the discussion) to the CSS seems to work for me now (tested on Anki for desktop and Ankidroid)

ruby rt { visibility: hidden; }
ruby:hover rt { visibility: visible; }