05-17-2011, 08:56 AM | #1 | |
Member
Posts: 20
Karma: 10
Join Date: May 2011
Device: Kindle 3
|
MobiCreator and a table of contents
I'm trying to generate a mobi file with the MobiCreator (V 4.2 build 41). Because it does not build a table of contents from my input file, I tried again with a rather simple html input file as a test case:
Code:
<html> <head></head> <body> <h1>Titel</h1> <h2>Kapitel eins</h2> <h3>Unterkapitel eins-eins</h3> <p>Text.</p> <h3>Unterkapitel eins-zwei</h3> <p>Text.</p> <h2>Kapitel zwei</h2> <h3>Unterkapitel zwei-eins</h3> <h4>Unterkapitel zwei-eins-eins</h4> <p>Text.</p> <h4>Unterkapitel zwei-eins-zwei</h4> <p>Text.</p> <h4>Unterkapitel zwei-eins-drei</h4> <p>Text.</p> <h3>Unterkapitel zwei-zwei</h3> <p>Text.</p> <h2>Kapitel drei</h2> <p>Text.</p> </body> </html> Quote:
(Sorry for my English, I am no native speaker.) Edit: The error message mentioned the "Microsoft Internet Explorer", which I don't use, but installed is the Windows Internet Explorer 9 (Version 9.0.8112.16421 64-bit Edition). Last edited by Crian; 05-17-2011 at 09:00 AM. |
|
05-18-2011, 02:31 AM | #2 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Why do you say that MBPCreator won't build a TOC from your input file? I suspect that you are not setting up the TOC generation right. (Warum sagst du das MBP Schöpfer nicht bauen ein Inhaltsverzeichnis aus Ihrer Eingabe-Datei? Ich vermute, dass Sie nicht die Einrichtung des TOC Generation rechts.) In the TOC Generation rules, ONLY put your header tag, like so: h1 nothing else. No brackets, nothing. Just put h1 in the first level (or h2 if that's your first), etc. I can send you a screenshot if you need? Based upon your error message, which is saying, what, that MBPCreator doesn't understand what you are asking it to do, did you put anything in the Tag name field other than h2, h3 and h4? Or did you put something inside the headers that's odd? (n.b.--if you use special characters inside TOC's that are mobi-generated, they'll break in Kindle, like curly-apostrophe's.) Can you attach a screenshot of your TOC Wizard screen please? Alternatively, if you make a TOC.html, as per your example, don't try to run that through the TOC Wizard...instead attach it to the Mobi using the Guide, that'll work. Your English is perfectly good. Far better than my learned-in-1976 German, I'm sure. HTH, Hitch |
|
Advert | |
|
05-18-2011, 06:29 AM | #3 |
Member
Posts: 20
Karma: 10
Join Date: May 2011
Device: Kindle 3
|
Hi Hitch,
thank you for your answer. I took a few screen shots while importing the HTML file shown above and generating the table of contents: The first step was a import from a HTML file: The second screen shot shows the project in MobiCreator after the import: The third screen shot shows, how I started to generate the table of contents: Here are my settings for the generation: And finally the error message I got after pressing the update button: |
05-18-2011, 02:09 PM | #4 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hi: I think that this all looks perfectly fine. Here's a really stupid question: You did wrap those h2, h3 and h4 tags around your Chapter heads (or whatever), right? If you did, this should work perfectly, unless you have something odd in your html file--do you already have a manually-constructed TOC inside that dummy.html file? My other question is even easier: what's in line 94 of your html file? Can you paste it here? The engine seems to have run into something--a character, a tag, ?--that it can't understand. So, those are my two questions; a) did you actually wrap the tags, which I think you probably did, and b) what's in line 94 of your html file? Can you please paste, say, 10 lines in either direction, with line numbers, from a text editor, so we can see it? Hitch |
|
05-19-2011, 04:20 AM | #5 | ||
Member
Posts: 20
Karma: 10
Join Date: May 2011
Device: Kindle 3
|
My dummy.html file is just the one posted above:
Quote:
Quote:
Code:
weholder.external.set_toc_parameters(document.forms[0].toc_title.value, parameters); Last edited by Crian; 05-19-2011 at 04:23 AM. |
||
Advert | |
|
05-19-2011, 05:17 AM | #6 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Something you are saying isn't making sense, in terms of MBPCreator...you say you have a file named "table_of_contents.html," but you seem to be trying to make a toc from the dummy.html file, right? In MBPCreator, if this worked, you would have two files in your publications folder (two html files, that is): you'd have dummy.html and mbp_toc.html. Not "table_of_contents.html," unless that's something differently-named in the German version, but I don't know why it would be. Can you please tell me exactly what files are in your Publications folder for this dummy book? Something here is still not "clicking" for me. P.S.- if you are using IE9, downgrade to IE8, MBPCreator has a known issue with IE9, FWIW. Hitch |
|
05-19-2011, 09:01 AM | #7 |
Guru
Posts: 860
Karma: 4380
Join Date: Feb 2008
Location: Almada, Portugal
Device: Cybook Gen3, Sony PRS 505, Kindle DXG and Samsung Galaxy Note
|
Hello
Do you have Internet Explorer 9 installed? If so, revert to version 8 as IE9 is the one causing that problem. Best regards, |
05-19-2011, 10:42 AM | #8 |
Member
Posts: 20
Karma: 10
Join Date: May 2011
Device: Kindle 3
|
I have IE 9, yes. Thank you, then MobiCreator is no possibility for me. I can't switch back, it is my PC at work and at home I only have Macs.
@Hitch: No, I just have that one html file shown above. The table_of_contents.html is a part of MobiCreator itself. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Table of Contents | taraboom11 | Sigil | 20 | 04-30-2011 11:18 AM |
Table of Contents | peterinnes | Sigil | 1 | 09-29-2010 03:03 AM |
How to: table of contents | wizzofoz | Sigil | 1 | 10-08-2009 08:22 AM |
only the table of contents | wang960 | Sony Reader | 3 | 08-29-2008 12:45 PM |
Creator Table of Contents | Nate the great | Kindle Formats | 5 | 07-10-2008 05:55 AM |