10-11-2012, 12:30 PM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: May 2012
Device: iPad
|
Help with ePub 3 TOC
Hello, I'm working in ePub 3 and I need to make a sample for upload to apple.
My table of contents is a toc.xhtml that is also in the spine of my document. I need a way to be able to show the sections but not link to them. Does anyone know of a way to grey table of contents entries? Any help would be appreciated! |
10-11-2012, 03:45 PM | #2 |
Resident Curmudgeon
Posts: 75,840
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
iBooks is not 100% ePub 3 compatible. Are you sure an ePub 3 ToC will actually work in iBooks?
|
Advert | |
|
11-07-2012, 02:02 PM | #3 |
Enthusiast
Posts: 29
Karma: 496864
Join Date: Mar 2012
Location: Virginia
Device: none
|
It does work with iBooks, but it's really tricky. I'd share the tricky, but that is what I'm working on today. It doesn't like some guide and spine entries I've tried, but I can't figure out the right combination.
I did try to have non-linked <li> in my toc.xhtml, but the epub spec requires <a> |
11-10-2012, 05:07 PM | #4 |
Groupie
Posts: 171
Karma: 86271
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
|
even though it's been postponed to CSS4, iOS does support pointer-events property, so this is pretty hack-y, but may get the job done:
Code:
<li><a class="no-link">Chapter 4</a></li> Code:
.no-link { pointer-events: none; } apple's asset guide actually states that they auto-generate samples so that you don't have to do that, though, unless you're making a read-aloud book, in which case you have to provide them with a separate sample epub. |
11-20-2012, 03:14 PM | #5 |
Junior Member
Posts: 2
Karma: 10
Join Date: May 2012
Device: iPad
|
I managed to figure it out.
basically you add this code to the end of the last xhtml doc: Code:
<a id="com_apple_itunes_epub_end0001"></a> Code:
<li id="ID" class="CSSCLASS"><a href="Text/Chapter_01.xhtml#com_apple_itunes_epub_end0001">Section not in the sample</a></li> And the reason that we make our own samples is that we are a music publishing company and we want control over what we give away. Thanks. |
Advert | |
|
Tags |
epub, epub 3, sample, table of contents, toc |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Multi-level TOC broken in epub->epub conversion | siebert | Conversion | 14 | 03-09-2011 05:38 PM |
ePub TOC to mobi TOC | edmnddntes | Conversion | 5 | 01-24-2011 02:56 AM |
Epub to Epub loses TOC | edbro | Calibre | 6 | 10-12-2010 04:24 PM |
epub TOC | crutledge | ePub | 2 | 02-14-2010 04:57 PM |
EPUB autogenerated TOC | Nate the great | Calibre | 13 | 04-10-2009 03:35 PM |