memostark / Speakable

Use text to speech anywhere in your Android phone
5 stars 0 forks source link

Show saved words in the web reader. #219

Open memostark opened 4 months ago

memostark commented 4 months ago

In the displayed text of the web reader, highlight any words that the user has saved.

Unlike the notes, the saved words shouldn't be all loaded at once but rather when the paragraph list binds the given item, and cache any saved word that is found. This is done because searching all the words of a paragraph in the database can be expensive compared to searching all notes with the given parent ID, and also because bind can be called multiple times for each item we want to avoid querying the database every time and instead loading once and then querying the cache for every subsequent bind.

The dialog for a saved word should be different than the dialog for a note. It should show the translation, language, and notes for the word. It should have an edit button that shows the new dialog for editing a word, the more information button is probably going to do the same as the notes button.

Check if saved words and notes can overlap. Most likely this should be allowed otherwise both features would be too limited. Make sure to handle the case when these overlap.