![]() |
#1 |
Member
![]() Posts: 20
Karma: 10
Join Date: Sep 2011
Device: none
|
![]()
I am in the process of creating an epub file.
Everything looks good in html format, it looks good in Calibre, works well in Adobe Digital Editions ... but ... when it's transferred to the Sony Reader the TOC doesn't work. When i click on a specific chapter from the TOC it jumps down to the area just before the page break, instead of just after the page break where the chapter actually starts. I've changed the coding between page-break-after: always; and page-break-before: always; nothing is working. Does anyone know why this is happening, and how I would be able to fix it? Thank you ![]() |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Since the Sony readers uses ADE, I think is also does not work well in ADE...
Anyway, how did you create your TOC? Could you post your opf and nxc file? |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 20
Karma: 10
Join Date: Sep 2011
Device: none
|
My TOC is in my xml file as follows:
<li><a href="#prologue">Prologue</a> <li><a href="#chapter1">Chapter 1</a> <li><a href="#chapter2">Chapter 2</a> Called to: <span id="prologue"><p class = "chapter">Prologue</p></span> <span id="chapter1"><p class = "chapter">Chapter 1</p></span> <span id="chapter2"><p class = "chapter">Chapter 2</p></span> This is what's in my 'chapter' parameters: p.chapter { page-break-before: always; margin-top:1em; margin-bottom:1em; text-indent: 0em; text-align: center; font-weight: bold; font-size: 1.5em; } I don't have a .nxc file. the .opf file is attached Please do keep in mind that this is my first ebook ever, so if there's something that i'm majorly missing, please let me know. I've also tried the "Force use of auto-generated Table of Contents" option in Calibre .... but that didn't help either. Thanks. |
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Get rid of the span and place the id in the p. It would be better is the p were h2 or h3 anyway since semantics of a a chapter heading is better to be called a heading rather than a paragraph. Then you can drop the class simplifying things further.
The pages are working like you coded them. The id is search for and then the p is encountered resulting in a page break. Dale |
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
I agree with DaleDe. Get rid of the spans, they are not necessary and use header tags. After all, that's what they are for.
Also, you say you don't have a toc.ncx? I think you must have, I believe it is a requirement for the inline TOC. Just as a question, why are you making a separate TOC instead of the normal inline TOC? |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Member
![]() Posts: 20
Karma: 10
Join Date: Sep 2011
Device: none
|
Thank you so much for your help DaleDe. I will try that.
Toxaris, as this is my first ebook, I'm just learning as i go along. I don't really know much about inline TOC's or not ... I just put one in because the book i'm doing has chapters. How do you create an inline TOC? and does it work with every ebook format? |
![]() |
![]() |
![]() |
#7 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,681
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
No need for IDs. Just have your ToC open the file it should be opening. Given that each chapter should be a separate XML file, just call it as needed.
Also, since this is an ePub, please remove the internal ToC. It's just not needed and doesn't look good. Just do the ToC in toc.ncx. The worst thing done in an ePub is an internal ToC with all the headers linking to this internal ToC. I find that really poor and ugly too. Remember, this is ePub, not mobipocket and ePub does not need a ToC page. Last edited by JSWolf; 10-19-2011 at 01:48 PM. |
![]() |
![]() |
![]() |
#8 |
Member
![]() Posts: 20
Karma: 10
Join Date: Sep 2011
Device: none
|
oh. um. Each chapter is supposed to be a different file?? I just have one file as the whole manuscript. Is that all totally wrong?? Do I have to go and break everything into its individual sections?
|
![]() |
![]() |
![]() |
#9 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,681
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#10 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
![]() |
![]() |
![]() |
#11 |
Member
![]() Posts: 20
Karma: 10
Join Date: Sep 2011
Device: none
|
Thank you so much for all of your help. The epub file as it stands now is at 465KB
I won't be able to test the TOC until tomorrow, so I will post more then. In the meantime I will look into Sigil. |
![]() |
![]() |
![]() |
#12 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,681
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Sounds like it would need to be split. That's the way to do it to make sure that everything works. Also, if you can get a hold of a reader such as a Sony Reader to make sure everything works that would be good.
|
![]() |
![]() |
![]() |
#13 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Splitting each chapter in a separate file is usually a good thing to do. It is not always required. It has some advantages, one of them is maintenance.
Your epub will probably give issues, since the uncompressed size is larger than 285kb. That figure is usually a save size. If you split on chapter, almost certain no individual XHTML file will be larger than 285kb. |
![]() |
![]() |
![]() |
#14 |
Member
![]() Posts: 20
Karma: 10
Join Date: Sep 2011
Device: none
|
Sorry it's been a while. Thank you all for your help. I got the TOC to work
![]() ![]() |
![]() |
![]() |
![]() |
#15 |
Member
![]() Posts: 12
Karma: 10
Join Date: Dec 2013
Device: Nook
|
On this subject of chapters, if anyone is still around, I'd like to add a question.
I built the TOC of a book in Sigil, but when it was being uploaded to B&N, they said they were not detecting chapters. Anyone know how I can fix this? Thanks! |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ePub TOC to mobi TOC | edmnddntes | Conversion | 5 | 01-24-2011 02:56 AM |
An Easy Way to Create Kindle-ready eBooks with working TOC. | Dr. Wily | Amazon Kindle | 3 | 01-27-2010 05:17 PM |
TOC not working on my BeBook | spaze | ePub | 13 | 09-02-2009 01:53 AM |
Making a TOC for LRFs? Issues with Calibre + LRF TOC editor not working | Magitek | LRF | 0 | 05-06-2009 01:25 PM |
Looking for a copy of Koran with WORKING TOC in .prc | cathyWeeks | Upload Help | 1 | 01-20-2008 04:51 PM |