Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 11-15-2020, 10:34 AM   #1
LittleBiG
Zealot
LittleBiG began at the beginning.
 
Posts: 122
Karma: 10
Join Date: Nov 2014
Device: Kindle Oasis 3, K4NT, Kobo Mini
KOreader cannot handle certain dictionaries

There are two problems I could spot out in handling certain dictionaries.
1. When a dictionary contains the same word as separated headwords (separated by meanings), KOreader can sjow only the last one. Example: if you serach for the word "bang", the dictionary can contain 3 headwords: bang1, bang2, bhang. You will NEVER see the first two meanings, because KOreader can show only the last one.
Another dictionary contains 2 headwords for "bang". One is "bang" itself (containing all meaning of "bang") and also a phrase "slap bang". KOreader will show only the "slap bang", but never the first one.
May I ask for improving directory handling by showing all headwords in these cases?
2. In some dictionaries the line breaks are disregarded, and the text would be more difficult to read. Probably there is a type of line break which KOreader doesn't interpret as a new line.
LittleBiG is offline   Reply With Quote
Old 11-15-2020, 11:23 AM   #2
Galunid
Zealot
Galunid herds cats with both ease and graceGalunid herds cats with both ease and graceGalunid herds cats with both ease and graceGalunid herds cats with both ease and graceGalunid herds cats with both ease and graceGalunid herds cats with both ease and graceGalunid herds cats with both ease and graceGalunid herds cats with both ease and graceGalunid herds cats with both ease and graceGalunid herds cats with both ease and graceGalunid herds cats with both ease and grace
 
Posts: 122
Karma: 43580
Join Date: Apr 2016
Device: KPW3, Kobo Clara HD, Onyx Boox Nova 2
https://github.com/koreader/koreader/issues/6863
Galunid is offline   Reply With Quote
Old 11-15-2020, 04:38 PM   #3
LittleBiG
Zealot
LittleBiG began at the beginning.
 
Posts: 122
Karma: 10
Join Date: Nov 2014
Device: Kindle Oasis 3, K4NT, Kobo Mini
It's a pitty. Many of the dictionary files are built this way (On my reader 5 from 9 dictionaries are involved). The dictionary softwares can handle these "faulty" ones, adapting to this common "error": better to work it around and show correct result somehow than working in a faulty way, saying, the dictionary file is to blame. I hope once somebody could do something about it, who won't be content with this. Plus I am wondering if sdcv is under development and the developer could do something about it. Or it is became abandoned.
LittleBiG is offline   Reply With Quote
Old 11-16-2020, 02:07 AM   #4
Galunid
Zealot
Galunid herds cats with both ease and graceGalunid herds cats with both ease and graceGalunid herds cats with both ease and graceGalunid herds cats with both ease and graceGalunid herds cats with both ease and graceGalunid herds cats with both ease and graceGalunid herds cats with both ease and graceGalunid herds cats with both ease and graceGalunid herds cats with both ease and graceGalunid herds cats with both ease and graceGalunid herds cats with both ease and grace
 
Posts: 122
Karma: 43580
Join Date: Apr 2016
Device: KPW3, Kobo Clara HD, Onyx Boox Nova 2
It seems somewhat maintained https://github.com/Dushistov/sdcv.git
Galunid is offline   Reply With Quote
Old 11-16-2020, 04:25 AM   #5
LittleBiG
Zealot
LittleBiG began at the beginning.
 
Posts: 122
Karma: 10
Join Date: Nov 2014
Device: Kindle Oasis 3, K4NT, Kobo Mini
sdcv has an open issue about the first one:
https://github.com/Dushistov/sdcv/issues/30
However, the description said sdcv always got the first result. Now in KOreader, it is the last result, not the first one.

And also my second issue is known:https://github.com/koreader/koreader/issues/6250

KOreader used to handle the sorting of the dictionaries in a stone age way. Then somebody stepped up and improved it and now it is really comfortable. So

Last edited by LittleBiG; 11-16-2020 at 04:39 AM.
LittleBiG is offline   Reply With Quote
Old 11-22-2020, 08:04 AM   #6
Markismus
Guru
Markismus is not required to obey the law of gravity.Markismus is not required to obey the law of gravity.Markismus is not required to obey the law of gravity.Markismus is not required to obey the law of gravity.Markismus is not required to obey the law of gravity.Markismus is not required to obey the law of gravity.Markismus is not required to obey the law of gravity.Markismus is not required to obey the law of gravity.Markismus is not required to obey the law of gravity.Markismus is not required to obey the law of gravity.Markismus is not required to obey the law of gravity.
 
Markismus's Avatar
 
Posts: 894
Karma: 144987
Join Date: Jul 2013
Location: Netherlands
Device: Cracked HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
@LittleBiG I’ve just created a function to deal with multiple entries for a Duden dictionary optimized for Koreader in my script Pocketbookdic.
Currently, it just prefixes with a superscript Roman numeral the definitions of entries with an identical keyword.

I’ve no idea why line breaks are disregarded. However, I’ve stumbled over both </br> and <br/> and it seems feasible that at least one is not recognized as a correct line break tag.

If you an provide a link to a dictionary with a relevant entry, I am willing to test and add a conversion to the tags for Koreader optimized part of the script.
Markismus is offline   Reply With Quote
Old 11-23-2020, 09:27 AM   #7
Galunid
Zealot
Galunid herds cats with both ease and graceGalunid herds cats with both ease and graceGalunid herds cats with both ease and graceGalunid herds cats with both ease and graceGalunid herds cats with both ease and graceGalunid herds cats with both ease and graceGalunid herds cats with both ease and graceGalunid herds cats with both ease and graceGalunid herds cats with both ease and graceGalunid herds cats with both ease and graceGalunid herds cats with both ease and grace
 
Posts: 122
Karma: 43580
Join Date: Apr 2016
Device: KPW3, Kobo Clara HD, Onyx Boox Nova 2
To my knowledge </br> is incorrect tag, unless you mean <br></br>, so I think it's reasonable it's not rendered correctly.
Galunid is offline   Reply With Quote
Old 11-24-2020, 07:36 AM   #8
Frenzie
Wizard
Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.
 
Posts: 1,607
Karma: 724945
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
Our version of MuPDF currently requires well-formed XML. Once https://github.com/koreader/koreader-base/pull/1203 is finished that'll be more forgiving.
Frenzie is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting KOReader from CC works only if KOReader was not running before Norbi24 KOReader 7 09-24-2020 12:10 PM
KOReader en français / KOReader in french cramoisi Software 33 04-04-2020 12:14 PM
Kobo H20 & koreader unable to see dictionaries Hopper333 KOReader 2 11-13-2019 06:45 AM
Best dictionaries for koreader Alan_S KOReader 11 12-18-2018 07:13 PM
DSL dictionaries within KOReader? jcn363 KOReader 4 09-20-2017 11:05 AM


All times are GMT -4. The time now is 12:29 AM.


MobileRead.com is a privately owned, operated and funded community.