New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dictionary feature broken: shows empty pages #7318
Comments
I've uploaded some Koreader optimized dictionaries here. Could you please check whether it is your dictionary or Koreader acting up? |
You're not saying: is this something new when updating KOReader ? or something that happens with previous versions ? Can't reproduce. |
OK, I can reproduce it: text dict > text dict. Pinging @NiLuJe , and re-mentionning my comments about this ugly, complex, uneeded change :/ #7212 (comment) #7166 (comment) |
I updated KOReader a week ago (before that: several months ago (sep, oct, nov?)). Noticed the issue today. I have used these dictionaries for a long time with no problem. Downloaded from here: http://download.huzheng.org/bigdict/ First dict: Oxford Advanced Learner's Dictionary 8th Ed. After playing with the order: it is the first three that are the problem. If I place gcide or @Markismus' optimized Oxford advanced Learner's dictionary in between they are OK. Questions to @Markismus: |
Yep, trivial fix because of internal behavior differing between ScrollTextWidget & ScrollHtmlWidget, despite the similar API. |
ScrollTextWidget Despite a similar API between ScrollTextWidget and ScrollHtmlWiget, what they do internally doesn't quite match. So, while ScrollHtmlWidget's resetSCroll *does* rewind back to the top, ScrollTextWidget's doesn't, it just updates the scrollbar itself. So, do that on our end, *before* the (re-)init, which'll call _renderText for us. Fix koreader#7318
ScrollTextWidget Despite a similar API between ScrollTextWidget and ScrollHtmlWiget, what they do internally doesn't quite match. So, while ScrollHtmlWidget's resetSCroll *does* rewind back to the top, ScrollTextWidget's doesn't, it just updates the scrollbar itself. So, do that on our end, *before* the (re-)init, which'll call _renderText for us. Fix koreader#7318
@gerhaher No entries were removed, rather the script removes the nested blockquotes. The Oxford dictionaries have a rather large amount of nested blockquote-blocks. So an entry with 3 meanings would have [blockquote][blockquote][blockquote][blockquote]......[/blockquote][/blockquote][/blockquote][/blockquote] around it. It reduces the dictionary size considerably. The script also changes the tag involved with text color, which reduces the size a small bit. |
Issue
I have 4 dictionaries installed. When I look up a word and then tap forward (not using <</>>), my second and third dictionary show empty results (see picture below) when:
my first dictionary needs 2 pages to explain a word, my second dictionary is empty.
my first dictionary needs 3 or more pages to explain a word, my second & third dictionary is empty.
My first & fourth dictionary is never empty.
The text was updated successfully, but these errors were encountered: