Quote:
Originally Posted by Doitsu
Have you tried the KindleUnpack Calibre plugin?
It typically takes less than a minute to unpack a .mobi dictionary. Unfortunately, the plugin can't reverse-engineer the inflections of all dictionaries. The Duden is one of those books. Try unpacking one of the bilingual Oxford dictionaries instead.
You'll have to define inflections for each entry. Here's an example from the Kindle Publishing Guidelines.
Code:
<idx:entry name="english" scriptable="yes" spell="yes">
<idx:short><a id="1"></a>
<idx:orth value="aardvark">
<b>aard•vark</b>
<idx:infl>
<idx:iform value="aardvarks"></idx:iform>
<idx:iform value="aardvark’s"></idx:iform>
<idx:iform value="aardvarks’"></idx:iform>
</idx:infl>
</idx:orth>
<p> A nocturnal burrowing mammal native to sub-Saharan Africa that feeds exclusively on ants and termites.</p>
</idx:short>
</idx:entry>
|
So I finally did manage to figure out what Duden did, and unfortunately the answer is not necessarily what I wanted it to be. Basically it seems like I would have to actually make Each Inflection into its own separate entry to make it actually work. This code doesn't work, searching 'cúvol' only brings up the first entry:
Code:
<idx:entry scriptable="yes">
<h2>
<idx:orth value="cúvnuť">
<idx:infl>
<idx:iform value="cúvol" />
</idx:infl>
</idx:orth>
vor etw. kneifen
</idx:entry>
<idx:entry scriptable="yes">
<h2>
<idx:orth value="cúvnuť">
<idx:infl>
<idx:iform value="cúvol" />
</idx:infl>
</idx:orth>
irgendetwas pron; irgendwas pron
</idx:entry>
<idx:entry scriptable="yes">
<idx:orth value="cúvnuť">
<idx:infl>
<idx:iform value="cúvol" />
</idx:infl>
</idx:orth>
Test
</idx:entry>
but this does, accuratelz showing all three definitions as intended:
Code:
<idx:entry scriptable="yes">
<h2>
<idx:orth value="cúvol">
</idx:orth>
vor etw. kneifen
</idx:entry>
<idx:entry scriptable="yes">
<h2>
<idx:orth value="cúvol">
</idx:orth>
irgendetwas pron; irgendwas pron
</idx:entry>
<idx:entry scriptable="yes">
<idx:orth value="cúvol">
</idx:orth>
Test
</idx:entry>
Unless anyone has a solution for this that doesn't require making separate entries for every inflection (that would be an insane 60 entries for one word) I guess I'll have to live without. Bummer.