LuteOrg / lute-v3

LUTE = Learning Using Texts: learn languages through reading.
https://luteorg.github.io/lute-manual/
MIT License
492 stars 46 forks source link

Show translation (or part of it) for selected statuses #451

Open jzohrab opened 4 months ago

jzohrab commented 4 months ago

From Discord:

There was this feature in a version of LWT that shows under a word its translation. the only challenge I see with this is that the translations can be extremely long (at least in my case!), so showing the translation would really mess up the page. Perhaps it also only shows the first line of the translation, in case there are many lines. ... with "..." to show that there is more, and if you hover over it you get all of the detail anyway.

image

This could be a drop down box with the max status for which to show the translations (e.g. "none", "status 1", "status 1 and 2" ... etc).

Dev effort:

This feels related to #370 , "show pronunciation" -- at least they both impact the rendering.