Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 05:39 PM   #1
Musrar
Junior Member
Musrar began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2024
Device: Kindle Oasis
Kindlegen gets stuck on second xhtml for dictionary creation

As the title suggests, kindlegen gets stuck after parsing the first xhtml (I have 90 because the dictionary is very big). Here's the stuck terminal screen:

Code:
.\kindlegen.exe .\dictionary.opf -c0 -verbose -locale en -o "russian dict.mobi"

*************************************************************
 Amazon kindlegen(Windows) V2.9 build 1029-0897292
 A command line e-book compiler
 Copyright Amazon.com and its Affiliates 2014
*************************************************************

Info:I9005:option: -c0: No compression
Info:I9014:option: -verbose: Verbose output
Info(prcgen):I1047: Added metadata dc:Title        "Russian-English dictionary (Open Russian)"
Info(prcgen):I1047: Added metadata BASICCode       "REF008000"
Info(prcgen):I1047: Added metadata dc:Subject      "Dictionaries"
Info(prcgen):I1002: Parsing files  0000091
Info(prcgen):I1003: Parsing file     URL: dictionary_1.xhtml
Warning(index build):W15008: language not supported. Using default phonetics for spellchecker: english.
Warning(parser8):W26001: Index not supported for enhanced mobi.
Info(prcgen):I1003: Parsing file     URL: dictionary_2.xhtml
It just doesn't progress any further. I attached the opf file, and some xhtml files in a zip.

If I try to run kindlegen with a single xhtml reference in the opf file, then it works and it doest create a mobi (I also attached it). But of course it's uncomplete.

Unfortunately, if I try to create the dictionary from a complete hxtml file (125 MB), kindlegen just explodes, saying:

Code:
*************************************************************
 A command line e-book compiler
 Copyright Amazon.com and its Affiliates 2014
*************************************************************

Info:I9005:option: -c0: No compression
Info:I9014:option: -verbose: Verbose output
Info(prcgen):I1047: Added metadata dc:Title        "Russian-English dictionary (Open Russian)"
Info(prcgen):I1047: Added metadata BASICCode       "REF008000"
Info(prcgen):I1047: Added metadata dc:Subject      "Dictionaries"
Info(prcgen):I1002: Parsing files  0000001

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

What can I do to make kindlegen create the dictionary out of multiple xhtml files?

Many thanks.
Attached Files
File Type: opf dictionary.opf (11.6 KB, 8 views)
File Type: zip dictionary1-10 xhtml.zip (3.89 MB, 8 views)
File Type: mobi russian dict (only 1st xhtml).mobi (2.19 MB, 9 views)
Musrar is offline   Reply With Quote
Old Today, 09:19 AM   #2
cdhigh
Enthusiast
cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.
 
Posts: 45
Karma: 333334
Join Date: Oct 2011
Device: KINDLE 3
Kindlegen 2.9 is not stable (at least for me), please try again with Kindlegen 1.2.
cdhigh is online now   Reply With Quote
Old Today, 09:21 AM   #3
Musrar
Junior Member
Musrar began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2024
Device: Kindle Oasis
Quote:
Originally Posted by cdhigh View Post
Kindlegen 2.9 is not stable (at least for me), please try again with Kindlegen 1.2.
Could you send me the file for kindlegen 1.2.? At the moment that's all I have available to use.
Musrar is offline   Reply With Quote
Old Today, 11:03 AM   #4
cdhigh
Enthusiast
cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.
 
Posts: 45
Karma: 333334
Join Date: Oct 2011
Device: KINDLE 3
Quote:
Originally Posted by Musrar View Post
Could you send me the file for kindlegen 1.2.? At the moment that's all I have available to use.

kindlegen1.2
Attached Files
File Type: zip kindlegen1.2.zip (790.7 KB, 4 views)
cdhigh is online now   Reply With Quote
Old Today, 11:48 AM   #5
Musrar
Junior Member
Musrar began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2024
Device: Kindle Oasis
Quote:
Originally Posted by cdhigh View Post
kindlegen1.2
Omg, now not only it isn't stuck, it also works perfectly in kindle!!!! (I managed to create some dictionaries before but only some words were picked up, at random). Many thanks! I was a bit frustrated

Could I use this same thread for another issue? For some reason, in my entries, when they are built into a .mobi, at the end of each entry appears the word for the next entry, which is a little bugging (see attached images)

I checked and the words are indeed the ones that come afterwards in the xhtml files. For reference, that's how they look in the xhtml:

Code:
    <idx:entry name="russian" scriptable="yes" spell="yes">
        <idx:orth>вре́мя<idx:infl><idx:iform value="время"></idx:iform><idx:iform value="времени"></idx:iform><idx:iform value="времени"></idx:iform><idx:iform value="время"></idx:iform><idx:iform value="временем"></idx:iform><idx:iform value="времени"></idx:iform><idx:iform value="времена"></idx:iform><idx:iform value="времён"></idx:iform><idx:iform value="временам"></idx:iform><idx:iform value="времена"></idx:iform><idx:iform value="временами"></idx:iform><idx:iform value="временах"></idx:iform></idx:infl></idx:orth>
        <p>Sg.: <span>вре́мя <span>(<i>nom</i>)</span></span>, <span>вре́мени <span>(<i>gen</i>)</span></span>, <span>вре́мени <span>(<i>dat</i>)</span></span>, <span>вре́мя <span>(<i>acc</i>)</span></span>, <span>вре́менем <span>(<i>inst</i>)</span></span>, <span>вре́мени <span>(<i>prep</i>)</span></span></p>
        <p>Pl.: <span>времена́ <span>(<i>nom</i>)</span></span>, <span>времён <span>(<i>gen</i>)</span></span>, <span>времена́м <span>(<i>dat</i>)</span></span>, <span>времена́ <span>(<i>acc</i>)</span></span>, <span>времена́ми <span>(<i>inst</i>)</span></span>, <span>времена́х <span>(<i>prep</i>)</span></span></p>
        <p>1. time, times, tense, weather</p>
        <p>(Stem: времен-)</p>
        <p>Usage: в то вре́мя - at that time\nво вре́мя войны́ - during the war + genitive\nмно́го вре́мени - much of the time\nза вре́мя - while + genitive\nсо временем: over time\nв настоящее время: at present\nв последнее время: lately</p>
        <p><i>Я не зна́ю, будет ли у меня вре́мя.</i> | I don't know if I'll have time.</p>
        <p><i>Вре́мя всегда можно найти́.</i> | One can always find time.</p>
        <p><i>Э́то займёт у меня слишком много вре́мени, чтобы объясни́ть, почему э́то не будет рабо́тать.</i> | It would take me too much time to explain to you why it's not going to work.</p>
        <p><i>Зима́ — моё люби́мое вре́мя года.</i> | Winter is the season I like best.</p>
        <p><i>У меня уйдёт слишком много вре́мени на объясне́ние, почему э́то не срабо́тает.</i> | It would take me too much time to explain to you why it's not going to work.</p>
      </idx:entry>
      <idx:entry name="russian" scriptable="yes" spell="yes">
        <idx:orth>рука́<idx:infl><idx:iform value="рука"></idx:iform><idx:iform value="руки"></idx:iform><idx:iform value="руке"></idx:iform><idx:iform value="руку"></idx:iform><idx:iform value="рукой"></idx:iform><idx:iform value="руке"></idx:iform><idx:iform value="руки"></idx:iform><idx:iform value="рук"></idx:iform><idx:iform value="рукам"></idx:iform><idx:iform value="руки"></idx:iform><idx:iform value="руками"></idx:iform><idx:iform value="руках"></idx:iform></idx:infl></idx:orth>
        <p>Sg.: <span>рука́ <span>(<i>nom</i>)</span></span>, <span>руки́ <span>(<i>gen</i>)</span></span>, <span>руке́ <span>(<i>dat</i>)</span></span>, <span>ру́ку <span>(<i>acc</i>)</span></span>, <span>руко́й <span>(<i>inst</i>)</span></span>, <span>руке́ <span>(<i>prep</i>)</span></span></p>
        <p>Pl.: <span>ру́ки <span>(<i>nom</i>)</span></span>, <span>ру́к <span>(<i>gen</i>)</span></span>, <span>рука́м <span>(<i>dat</i>)</span></span>, <span>ру́ки <span>(<i>acc</i>)</span></span>, <span>рука́ми <span>(<i>inst</i>)</span></span>, <span>рука́х <span>(<i>prep</i>)</span></span></p>
        <p>1. hand</p>
        <p>2. arm</p>
        <p>3. handwriting</p>
        <p><i>Надо ду́мать, что чте́ние бы́ло одною из его боле́зненных привы́чек, так как он с одина́ковою жа́дностью набра́сывался на всё, что попадало ему под руки.</i> | It must be supposed that reading was one of his morbid habits, as he fell upon anything that came into his hands with equal avidity.</p>
        <p><i>Я обжёг ру́ку утюго́м.</i> | I burned my hand with an iron.</p>
        <p><i>Я пойма́л её за ру́ку.</i> | I caught her by the hand.</p>
        <p><i>Она никак не могла́ наложи́ть на себя руки.</i> | It is impossible that she should have killed herself.</p>
        <p><i>То, что в мое́й руке́,—э́то окаменевшая раку́шка.</i> | What I have in my hand is a fossil seashell.</p>
      </idx:entry>
I also attached the terminal log for the successful mobi.


I truly have no words, thanks for allowing me not to ditch the work of a few hours and days.
Attached Thumbnails
Click image for larger version

Name:	russian dict entries.jpg
Views:	3
Size:	85.5 KB
ID:	218142   Click image for larger version

Name:	russian dict entries 2.jpg
Views:	3
Size:	87.9 KB
ID:	218143  
Attached Files
File Type: txt russian dict entries log.txt (11.9 KB, 0 views)
Musrar is offline   Reply With Quote
Old Today, 01:04 PM   #6
cdhigh
Enthusiast
cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.cdhigh ought to be getting tired of karma fortunes by now.
 
Posts: 45
Karma: 333334
Join Date: Oct 2011
Device: KINDLE 3
1. Insert a
Code:
<hr/>
tag between each entry.
2. Set the attribute ‘value’ on each orth element.
Attached Thumbnails
Click image for larger version

Name:	hr1.png
Views:	3
Size:	166.2 KB
ID:	218148   Click image for larger version

Name:	tpl.png
Views:	3
Size:	68.8 KB
ID:	218149  
cdhigh is online now   Reply With Quote
Old Today, 02:05 PM   #7
Musrar
Junior Member
Musrar began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Sep 2024
Device: Kindle Oasis
Many thanks, now that's solved.

Another issue, however, arose, so I will ask it if it's not too much of a hassle.

It's about displaying all the entries of words that without diacritics look the same. See the images: in v5 only нёбо gets picked up, and in v4 only нёбо. The ideal would be that in v5 both get picked up and I can scroll them as it's usually possible when faced with multiple smilar words. (нёбо has also небо as an iform because in books that diacritic is often not written).

The codes are as in the image.

I don't get why it doesn't show the typical 1/2 and the arrows.
Attached Thumbnails
Click image for larger version

Name:	nebo.jpg
Views:	2
Size:	99.1 KB
ID:	218150   Click image for larger version

Name:	nebo2.jpg
Views:	2
Size:	98.9 KB
ID:	218151   Click image for larger version

Name:	nebo code.png
Views:	2
Size:	41.0 KB
ID:	218152   Click image for larger version

Name:	nebo2 code.png
Views:	2
Size:	67.9 KB
ID:	218153  
Musrar is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
kindlegen/mobi dictionary inflections limit? Daltoonik Kindle Formats 4 05-21-2025 11:39 PM
How long does it take kindlegen to generate a kindle dictionary? njpig Kindle Formats 4 04-20-2022 07:43 PM
KindleGen and XHTML/CSS2 pdurrant Amazon Kindle 33 09-12-2010 01:50 PM
Content Stuck on Dictionary andavane Amazon Kindle 2 09-02-2010 03:30 PM


All times are GMT -4. The time now is 03:17 PM.


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