11-01-2012, 11:23 AM | #1 |
Very Slow Learner
Posts: 51
Karma: 788
Join Date: Jul 2012
Location: UK
Device: none
|
Wanted: a) Reassurance b) HTML TOC advice
Sorry to bother you all again, but...
a) Having created (but not yet perfected) my book with Sigil I have put it through the kindle Previewer which has thrown up one or two problems. Is this the right forum for these problems or should I be posting in Sigil? b) Through searching the forums, I know that a lot of time has been spent on TOCs and I apologise if the solution is out there and I haven't found it. I used Sigil 6.0 to create the HTML TOC required by kindle but the Previewer says I haven't got an HTML TOC. In content.opf I have: <item href="Text/TOC.html" id="TOC.html" media-type="application/xhtml+xml" /> </manifest> <spine toc="ncx"> <itemref idref="TOC.html" /> and: </spine> <guide> <reference href="Text/Cover.xhtml" title="Cover" type="cover" /> <reference href="Text/Copyright.xhtml" title="Copyright Page" type="copyright-page" /> <reference href="Text/Acknowledgements.xhtml" title="Acknowledgements" type="acknowledgements" /> <reference href="Text/TOC.html" title="Table Of Contents" type="toc" /> </guide> I used kindle Previewer 2.51. I suspect the question might make you not and the answer might even make me but I'm looking forward to learning what it is. Thanks for your suggestions. |
11-01-2012, 12:37 PM | #2 |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Actually, there's nothing in the portions of the OPF you've included that looks wrong. You've correctly manifested the HTML ToC's file ("item"), the HTML ToC's id has been inserted into the spine ("itemref"), and a reference to the HTML ToC has been included in the guide section of the OPF.
Semantically, all is correct ... IF the physical file is truly named "TOC.html" (case sensitive), it exists (in the "Text" folder), and Kindlegen (Previewer) isn't choking on parsing it and its various links. Do you get any errors/warnings in the build log? EDIT: Also note that the "Copyright" and "Acknowledgement" references in the guide section of the OPF will not be recognized/used by kindlegen or Amazon devices. Only "cover," "toc," and "text" are valid reference types when building a MOBI/KF8 file with kindlegen/previewer. |
Advert | |
|
11-01-2012, 05:29 PM | #3 | |
Very Slow Learner
Posts: 51
Karma: 788
Join Date: Jul 2012
Location: UK
Device: none
|
Quote:
There is one thing I don't understand from the report: Info(cssparser):I10012: @font-face should have both font-family and src declaration. Check the font face declaration in the css style: "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\mbp_7DC_B_1_13 _1D_138_226C_2FD8_1\OEBPS\Styles\Style.css" I can't track down the file but I'm assuming it's nothing serious. Thanks again for your help. |
|
11-01-2012, 06:41 PM | #4 | |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
|
|
11-01-2012, 08:27 PM | #5 |
Guru
Posts: 696
Karma: 150000
Join Date: Feb 2010
Device: none
|
Sigil 0.6.0 will allow you to check your CSS stylesheet via the W3C validator. That may help locate the error with the font references.
|
Advert | |
|
11-02-2012, 07:24 AM | #6 | |
Very Slow Learner
Posts: 51
Karma: 788
Join Date: Jul 2012
Location: UK
Device: none
|
Good - that was confusing!
Quote:
@font-face { font-family: "Lucida Handwriting"; font-weight: normal; font-style: normal; src:url(../Fonts/LHANDW.TTF); } and ul { font-family: "Lucida Handwriting", "Bradley Hand", Serif; font-weight: normal; font-size: 100%; text-indent: 0; margin: 2em; } If you can suggest any improvements they'll be welcome. Well, I was about to post and then I thought I'd check whether the font appears in the kindle previewer. It does in kindle fire & touch but not in any other device. But of greater concern is that it is only in Fire & Touch that the text appears as a list (in iPad & iPhone the items all appear together to form a paragraph with a bullet point next to the first word). Where am I going wrong? |
|
11-02-2012, 10:16 AM | #7 | |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
As far as lists go (ul, ol, li)... different device/apps (whether ePub or mobi) all seems to have their own little subtle variations on rendering them. So I just don't use them. At all. I just use paragraphs, insert my own bullet/number if I want them, and style them with CSS to create the effect I want. |
|
11-02-2012, 05:54 PM | #8 | ||
Very Slow Learner
Posts: 51
Karma: 788
Join Date: Jul 2012
Location: UK
Device: none
|
Quote:
Quote:
Yet again, many thanks for your assistance. |
||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindler previewer not recognizing toc.ncx file, my html toc, or the start point... | petercrowell | Kindle Formats | 2 | 05-01-2012 08:14 AM |
HTML input plugin stripping text within toc tags in child html file | nimblebooks | Conversion | 3 | 02-21-2012 03:24 PM |
HTML Book + non HTML TOC to epub | aarcane | Calibre | 4 | 03-02-2010 02:58 AM |
grad student seeks reassurance: Mentor and Q7 | stike | Which one should I buy? | 3 | 06-29-2009 01:13 PM |