shigeyukey / Auto-Highlight-Cloze-in-Browser-Fork-by-Shige

🖌️Auto Highlight Cloze in Browser (Fork by Shige)
https://ankiweb.net/shared/info/210078606
Other
0 stars 0 forks source link

Perfect highlights + Change color #8

Open shigeyukey opened 5 months ago

shigeyukey commented 5 months ago

Now the highlight is not perfect. Ideally, highlight everything.

image

shigeyukey commented 5 months ago

About this I already tried various ways, but all did not work.

PyQt -> No way found to work around Qt limitation. PyQt -> When highlighted in sequence (0.5 sec), Anki freezes and scrolls. PyQt -> Qt can highlight yellow only for exact match text. PyQt ->There is no way to change the color in PyQt JavaScript -> When adding colors, the field is permanently edited. No workaround found.

shigeyukey commented 5 months ago

So to implement this, I think it is necessary to edit the HTML of the card fields in batch.

For example,

  1. Handle Cloze note types in batch
  2. Cloze deletions enclosed like <span...
  3. When selected in browser, add color by JavaScript.

Perhaps this way the color can be customized as well. However, this is a lot of development and debugging workload, so I don't know when I will develop it.

shigeyukey commented 5 months ago

Among the Add-ons I have repaired, BeeLine has the feature to batch add.