|
|
Thread Tools | Search this Thread |
05-31-2022, 12:38 PM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: May 2022
Device: Kindle Paperwhite 3 7th Gen
|
How do you prevent headword-inflected form conflict in a Kindle dictionary?
I've created a dictionary and when I look up a word that is a headword and at the same time an inflected form of another headword, only the former shows up due to conflict and the latter won't show up. How can I prevent it?
For example if I look up "saw" in the dictionary, "see(perceive with the eyes)" headword will be ignored even though I have provided "saw" as an inflection of "see", and "saw(a hand tool for cutting wood or other materials)" will show up. How can I make sure that both meanings can be looked up? I used <idx:infl> tags for inflected forms, here: Code:
<idx:entry name="word" scriptable="yes" spell="yes"> <b><idx:orth>see <idx:infl> <idx:iform value="saw"/> </idx:infl> </idx:orth> </b> <i>verb</i> <br/> perceive with the "eyes </idx:entry> <br/><br/> <hr/> <idx:entry name="word" scriptable="yes" spell="yes"> <b><idx:orth>saw <idx:infl> <idx:iform value="saw"/> </idx:infl> </idx:orth> </b> <i>noun</i> <br/> a tool used to cut wood </idx:entry> <br/><br/> <hr/> |
06-02-2022, 07:07 AM | #2 |
Grand Sorcerer
Posts: 6,470
Karma: 84000001
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Unfortunately there is very little documentation on dictionaries from Amazon or from Mobipocket before them. My understanding of how they work is incomplete. But since no one else has answered this question I will take a stab at it.
Orthographic entries are stored in an index. That makes them quick to look up but they use a lot of storage. Inflections are stored as a set of rules. That allows them to use less storage, however looking them up is costly in time and battery usage. When a user looks up a word in a dictionary the orthographic index is checked first. If the word is found there the results are presented and no further lookup is done. Because a single word can have multiple entries in the index this lookup can return multiple results which are all presented to the user. Inflections are processed using the rules only if the word is not found in the orthographic index. Once an inflection is found searching stops and a single result is presented. Even if the word is an inflection for several different entries only one result will be shown. So if you want "saw" to be shown as both a tool and the past of "see" you need separate orthographic entries in the dictionary to cover both of those cases. |
Advert | |
|
06-06-2022, 11:39 AM | #3 | |
Bookmaker & Cat Slave
Posts: 11,447
Karma: 157030631
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
But I know that you make every damned effort to bring it into the light, jhowell and I and others thank you for it. Hitch |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Conflict between regular links and Kindle's new inline footnote feature | SigCalKin | Editor | 2 | 03-20-2014 08:03 AM |
Conflict between regular links and Kindle's new inline footnote feature | SigCalKin | Kindle Formats | 0 | 03-19-2014 12:52 PM |
headword search | jasche | Amazon Kindle | 5 | 06-29-2012 05:18 AM |
Free Book (Kindle) - The Conflict Resolution Toolbox (UK only) | koland | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 08-14-2010 09:58 AM |
How do I create headword-enabled Mobipocket dictionary? | owl123 | Kindle Formats | 1 | 07-24-2009 11:13 AM |