LuteOrg / lute-v3

LUTE = Learning Using Texts: learn languages through reading. Python/Flask.
MIT License
423 stars 46 forks source link

Dictionary links go away after using sentence translator #342

Open mikezraly opened 6 months ago

mikezraly commented 6 months ago

Description

After clicking on a word in the reading page, using the "t" command to translate the sentence brings up Microsoft Bing in the right pane. After that, clicking on a word causes the right pane to become empty, and clicking on a word again brings up the usual term dialog in the top half of the right pane but does not populate the bottom half with dictionary tabs.

If after bringing up Bing with the "t" command I press the browser back-arrow I get the term dialog without dictionary tabs without the intervening blank right pane.

Workaround: (1) Go back to the main page and reload the book; (2) Hit the "h" shortcut key to switch highlights off and on.

To Reproduce

Steps to reproduce the behavior, e.g.:

  1. Load a book
  2. Click on any word
  3. Use the "t" key to translate a sentence
  4. Click on any word
  5. Right pane is blank
  6. Click on any word
  7. Right pane has term entry dialog at top but but dictionary tabs below

Screenshots

lute-bug-1 lute-bug-2 lute-bug-3 lute-bug-4 lute-bug-5

Extra software info, if not already included in the Description:

jzohrab commented 6 months ago

Thanks @mikezraly . Can you put a backup of your db that shows this behaviour somewhere public where I can get it? Cheers and thanks for the good write-up.