09-24-2020, 10:43 PM | #46 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Reading the above, I'm not actually sure what to expect. From this, I think you are saying that there are definitions for both "go" and "went" and a redirect from "went" to "go". I think that you are then saying if I look up "go" I should see the definitions of the words "go". And if I look up "went", I should see the redirect to "go" plus whatever is there for "went". Is that correct? But we are only seeing the definitions for "go" and not the other definitions for "went". Is that correct? Do you have any other examples? Or maybe a test dictionary that just has a few examples of this. |
|
09-25-2020, 12:00 AM | #47 | |
Wizard
Posts: 2,735
Karma: 6990705
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
Quote:
--- A simple example: bug.df Spoiler:
See here for the dictfile format. TLDR: @ starts a new entry, & adds a variant, and the lines after it are the body in markdown. dictgen --v3-prefix-exceptions --output dicthtml-bug-v3.zip bug.df - This will generate a v3 dictionary from the dictutil dictfile. - Note that the --v3-prefix-exceptions option hasn't been pushed to GitHub yet, but I can give you the code if you want. - dictutil will add a prefix exception for the latest occurrence of each variant back to the headword if the prefixes do not match. dictutil unpack dicthtml-bug-v3.zip && zip -r dicthtml-bug-v3.zip dicthtml-bug-v3 dictgen --output dicthtml-bug-v2.zip bug.df - This will generate a v2 dictionary from the dictutil dictfile. - This includes the workaround I implemented in dictutil where variants which do not match the headword prefix will be duplicated into the html file for that variant's prefix. dictutil unpack dicthtml-bug-v2.zip && zip -r dicthtml-bug-v2.zip dicthtml-bug-v3 Copy dicthtml-bug-v{2,3}.zip to .kobo/custom-dict on 15672+, and try searching "go", "went", "test1", "test2", and "test3" for each dictionary and compare the output. The output for "test1" and "test3" are equivalent and correct for both versions (each respective word will display on its own). The output for "test2" is also equivalent and correct for both versions (both "test1" and "test3" will be displayed). Note that if a prefix_exception was added mapping "test2" to "test3", only "test3" will be displayed even though the original word was "test2" and "test1" has a variant of "test2" (because the word from the exception is treated as if it was the original search query). The output for "go" is equivalent and correct for both versions (the two entries for the word will display consecutively). The output for "went" is correct on v2, but not on v3. On v2, it will display the two entries for "went", but not the "go" entries (which is expected since an exact match takes precedence over a variant). On v3, it will display the "go" entries only due to the redirect. There are a few other things related to this, but I didn't include them for the sake of brevity. Note that most of these issues could be considered the fault of the dictionary creator, as it's possible to work around them by not generating prefix_exceptions for cases like this (since they would be treated correctly without them). The remaining cases can be worked around with a combination of duplicating entries, but that's basically eliminating any advantages of having prefix_exceptions. Also note that this behaviour would make more sense if we consider prefix_exceptions to be a list of redirects rather than exceptions. Personally, I think this feature would have been more useful as a list of additional prefixes to search for a headword in, but it's too late for that to be changed (and has limited benefit for Kobo's own use case). A possibility for changing the behaviour of this would be to query the original html file too. Then, the most specific match could be returned (an exact headword match in the original, else an exact variant match in the new one, etc). Alternatively, entries from both could be returned, but this would not be fully backwards-compatible with the v2 behaviour (specifically with entries duplicated into multiple html files as a workaround for the actual bug with variants in v2). After some thought, I don't think Kobo's official dictionaries are likely to run into this issue unless they either: - Make redirects for all variants, even if they are in the same file. - Redirect to a variant which isn't a headword anywhere. - A few other small possibilities. The behaviour I'm describing here is more of an inconsistency between v2/v3 than a bug. I don't expect it to be fixed, and I wouldn't even recommend that at this point. I am mainly looking at this so I am aware of the handling of edge cases. I will be able to take a more definite stance on this once I see the new official dictionaries in October and how they make use of prefix_exceptions. I won't be releasing the dictutil v3 dictionary support until I see the official dictionaries so I can match their behaviour as closely as possible. Edit: According to @davidfor, the behaviour has been improved in 15676. I'll look at those changes later this week and post in the other thread. Last edited by geek1011; 09-25-2020 at 01:39 AM. |
|
Advert | |
|
09-25-2020, 12:02 AM | #48 | |
Wizard
Posts: 2,735
Karma: 6990705
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
Quote:
|
|
09-25-2020, 02:24 AM | #49 | |
Member Retired
Posts: 521
Karma: 500152
Join Date: Feb 2014
Location: -
Device: N/A
|
Quote:
I still wish Kobo would at least let us buy a real dictionnary. |
|
09-25-2020, 02:40 AM | #50 |
Diligent dilettante
Posts: 3,417
Karma: 48736498
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra H2O
|
|
Advert | |
|
09-25-2020, 03:39 AM | #51 | ||
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
I believe at least part of the reason for the dictionary changes is that licenses have expired. It could be that the French dictionary was part of a different deal. Or that they couldn't find a better supplier Quote:
|
||
09-25-2020, 05:03 AM | #52 | ||
Lucifer's Bat
Posts: 2,536
Karma: 19491715
Join Date: Nov 2010
Location: Earth/Berlin
Device: Kobo Libra 2
|
Quote:
For example if I want to look up "maim" it says: Quote:
The Tolino OTOH has a very fine dictionary, which has always had what I needed. Same is true for the Sony, theirs was even better than the Tolinos. So it is possible to implement something good. It is just not possible for stingy Kobo. I'd so much like to spend money on a good dictionary, I could implement easily myself! |
||
09-25-2020, 05:09 AM | #53 |
Addict
Posts: 349
Karma: 1179724
Join Date: Nov 2015
Device: Kindle Voyage
|
Yes, it would be great to be able to import easily new dictionaries. So, for example, for my Kindles, I bought a Latin dictionary and added it to the dictionaries folder, which is really useful. Would be really useful for Kobo as well.
Sent from my SM-N976B using Tapatalk |
09-25-2020, 05:51 AM | #54 | |
Lucifer's Bat
Posts: 2,536
Karma: 19491715
Join Date: Nov 2010
Location: Earth/Berlin
Device: Kobo Libra 2
|
Quote:
Last time I read Latin was when I was in my early twenties. Tacitus, because I could and I wanted to make use of years of pointlessly learing it and because it would seriously impress everyone. Then I met someone who read Greek philosophers in the original and quietly dropped it. |
|
09-25-2020, 06:13 AM | #55 | |
Connoisseur
Posts: 69
Karma: 10
Join Date: Nov 2018
Device: Kindle paperwhite, Likebook Mars, Kobo Aura Ed. 2, Kobo Touch
|
Quote:
|
|
09-25-2020, 07:08 AM | #56 | |
Addict
Posts: 349
Karma: 1179724
Join Date: Nov 2015
Device: Kindle Voyage
|
Quote:
Sent from my SM-N976B using Tapatalk |
|
09-25-2020, 09:38 AM | #57 | ||
Wizard
Posts: 2,735
Karma: 6990705
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
Quote:
Quote:
|
||
09-25-2020, 09:42 AM | #58 |
Wizard
Posts: 2,735
Karma: 6990705
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
If you can find the dictionary in an alternate format, you can use PyGlossary to convert it to a dictutil dictfile, then to a Kobo dictionary. I wouldn't use the built-in PyGlossary Kobo output directly just yet, as it's not fully mature (it's progressing nicely, though).
|
09-25-2020, 11:02 AM | #59 |
Gentleman and scholar
Posts: 10,989
Karma: 108312789
Join Date: Jun 2015
Location: Space City, Texas
Device: Clara HD; Nook ST w/Glowlight, (2015) Glowlight Plus, Paperwhite 3
|
|
09-25-2020, 11:15 AM | #60 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
|
Tags |
firmware, firmware release |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Firmware Update Instructions and the latest Firmware Versions | mitchwah | Ectaco jetBook | 113 | 10-24-2023 09:02 PM |
Firmware Update Kindle firmware 5.12.1 | eilon | Amazon Kindle | 102 | 09-26-2019 08:38 PM |
Firmware glitch - typing text slow on some firmware+device combinations | mdp | Onyx Boox | 11 | 11-11-2017 12:48 AM |
Firmware 2.0.3 Pocketbook IQ - another firmware is release for IQ | tvpupsik | PocketBook | 26 | 12-13-2010 03:03 PM |
SMARTQ7: firmware 5 VS .92 firmware 5.1? | wwang | Alternative Devices | 2 | 12-17-2009 12:41 PM |