![]() |
#16 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
|
Quote:
Regards, Alex |
|
![]() |
![]() |
![]() |
#17 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
When Calibre converts a Mobipocket book to ePub, it definitely "honours" the TOC that's specified in the Mobi book.
|
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
|
Quote:
I looked in the OPF file and all I could find for guide was <guide /> On the basis of HTML markup and the rest of the OPF file I have added <guide> <reference type="toc" title="Table of Contents" href="#TOC" /> </guide> where the markup in the book I am working on is <div id="TOC"> Does this make sense? Now that I've made the changes in the OPF file what do I do with it? What's the next step? Regards, Alex |
|
![]() |
![]() |
![]() |
#19 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Are you wanting to build a Mobi book, Alex? If so, simply download Mobipocket Creator from http://www.mobipocket.com, double click your OPF file to open it in Mobi Creator, and click the "Build" button to create your book.
|
![]() |
![]() |
![]() |
#20 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
|
Quote:
In fact my long term dream is to be able to design a template in XHTML 1.1/CSS and use this as the common base from which to convert the template into Mobipocket and ePub with Calibre. Regards, Alex |
|
![]() |
![]() |
Advert | |
|
![]() |
#21 | |
hopeless n00b
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
I have a question, though. If you'll only be using Calibre for conversion, why not modify both (X)HTML and command-line so they would mesh? I have something very similar to the following for my template: Code:
<html>
<head>
<title>Book Title</title>
<link rel=stylesheet href="style.css" type="text/css">
</head>
<body>
<div class="cover">
<h1 class="booktitle">Book Title</h1>
<h2 class="bookauthor">Author</h2>
<p>Summary and other information goes here.</p>
</div>
<div class="chapter">
<div class="chapterhead">
<h1 class="chaptertitle">Chapter One</h1>
</div>
<div class="chapterbody">
<p>The chapter content goes here.</p>
</div>
</div>
<div class="chapter">
<div class="chapterhead">
<h1 class="chaptertitle">Chapter Two</h1>
</div>
<div class="chapterbody">
<p>The chapter content goes here.</p>
</div>
</div>
</body>
</html>
Code:
html2epub --level1-toc "//*[@class='chaptertitle']|//*[@class='booktitle']" --chapter "//*[@class='chapter']" --chapter-mark "pagebreak"
From my discussions with Kovid earlier, the TOC and chapter detection work independently of each other. I doubt that has changed. |
|
![]() |
![]() |
![]() |
#22 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
|
Quote:
Rigthtly or wrongly, though, my (quite limited) experience in website design makes me want to have the HTML and CSS validate against W3C standards. I firmly believe that ebooks are not print books and need not be bound by the restrictions of print books, but I have difficulty accepting that ebooks are not websites and need not be bound by W3C standards. Anyway, I think for the moment that I'll take Harry's suggestion and go back to Mobipocket Creator. And I'll look at Sigil for ePub books - or perhaps just use Calibre to convert from prc to epub format. Thanks again for everyone's help. Regards, Alex |
|
![]() |
![]() |
![]() |
#23 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Calibre does a nice job of converting Mobi books to ePub.
|
![]() |
![]() |
![]() |
#24 | |
hopeless n00b
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
|
|
![]() |
![]() |
![]() |
#25 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
|
Quote:
Mobipocket however is definitely not compliant to W3C standards in several ways. This morning I ran the book I'm working on based on a valid XHTML 1.1 template through Mobipocket Creator. Although I got the damn TOC working some of the results in the body of the text were very disappointing. I refuse to dumb down my markup to Mobipocket's idiosyncratic and limited HTML level. So I'll wait until my ECO reader arrives in a few days and concentrate on ePub. Back to the drawing board. Regards, Alex |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
TOC & other questions | PatNY | Sigil | 41 | 10-02-2010 10:46 AM |
TOC issues | fading | Kindle Formats | 13 | 07-23-2009 07:55 AM |
Getting TOC to work? | enarchay | Sony Reader | 11 | 05-28-2009 05:46 AM |
Making a TOC for LRFs? Issues with Calibre + LRF TOC editor not working | Magitek | LRF | 0 | 05-06-2009 01:25 PM |
toc question | zelda_pinwheel | IMP | 4 | 01-18-2008 10:49 AM |