Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 12-12-2011, 02:20 AM   #1
j9ff
Junior Member
j9ff began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2011
Location: United States
Device: iBooks
Can't seem to crack this iBooks problem

I'm nearing the end of creating my first ePub book and I'm struggling to get the "# pages left" feature in the bottom right corner of iBooks to work properly. I've divided all my chapters with unique XHTML files and further divided up each chapter into sub-sections with H5 tags.

I believe the "pages left" counter should count down to the end of the chapter, but instead counts down to the next H5 tag. Anyone dealt with this problem before? Is it the H5 tags causing the problem?

I could try changing to another H-tag but I'm already using the first 4 for other header styles, so it will be a lot of work to rearrange them.
j9ff is offline   Reply With Quote
Old 12-12-2011, 05:23 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,997
Karma: 8796439
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
It wouldn't surprise me if it counted up to the next H# tag, whatever number it is.
Jellby is offline   Reply With Quote
 
Advertisement
Old 12-12-2011, 01:29 PM   #3
st_albert
Guru
st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.
 
Posts: 607
Karma: 94420
Join Date: Feb 2010
Device: none
Is it important that the heading actually be a <hx> tag? (e.g. you want it to appear as a sub-header in a nested toc.ncx) or could you substitute a <p> tag with the same styling as you were using for the <h5> tag? (and you could still put the entry into the toc.ncx by hand.)

And yes, the above is an impure thought, semantics-wise (because I'm suggesting you code for how you want the element to appear, rather than what the element is), but hey, when you are dealing with iBooks you gotta do what you gotta do.


Last edited by st_albert; 12-12-2011 at 01:32 PM.
st_albert is offline   Reply With Quote
Old 12-12-2011, 02:40 PM   #4
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,997
Karma: 8796439
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by st_albert View Post
Is it important that the heading actually be a <hx> tag? (e.g. you want it to appear as a sub-header in a nested toc.ncx)
That wouldn't be a reason anyway. You can add (or remove) what you want where you want in the NCX.
Jellby is offline   Reply With Quote
Old 12-12-2011, 03:39 PM   #5
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 45,358
Karma: 32532934
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
Quote:
Originally Posted by j9ff View Post
I'm nearing the end of creating my first ePub book and I'm struggling to get the "# pages left" feature in the bottom right corner of iBooks to work properly. I've divided all my chapters with unique XHTML files and further divided up each chapter into sub-sections with H5 tags.

I believe the "pages left" counter should count down to the end of the chapter, but instead counts down to the next H5 tag. Anyone dealt with this problem before? Is it the H5 tags causing the problem?

I could try changing to another H-tag but I'm already using the first 4 for other header styles, so it will be a lot of work to rearrange them.
I was thinking more along the lines of iBooks counting pages for the next chapter until it gets to the next flow. Is each chapter/section in a different XML file or is it lumped together and using a page break to split it on the screen?
JSWolf is offline   Reply With Quote
Old 12-13-2011, 01:25 AM   #6
j9ff
Junior Member
j9ff began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2011
Location: United States
Device: iBooks
Quote:
Originally Posted by JSWolf View Post
I was thinking more along the lines of iBooks counting pages for the next chapter until it gets to the next flow. Is each chapter/section in a different XML file or is it lumped together and using a page break to split it on the screen?
Yes, each chapter is in a different XHTML file. Within each chapter I've divided sub-sections up with semantic markup. The H5s seem to coincide with whatever iBooks expects as a chapter break—even though it's within the same file.

I was hoping to be able to avoid changing my markup, but I can't find any confirmed solutions.
j9ff is offline   Reply With Quote
Old 12-13-2011, 01:30 AM   #7
j9ff
Junior Member
j9ff began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2011
Location: United States
Device: iBooks
Quote:
Originally Posted by Jellby View Post
That wouldn't be a reason anyway. You can add (or remove) what you want where you want in the NCX.
That's how I understand it as well. I want the reader to be able to navigate to the sub-sections as well as the Chapters. That's why I've included them in the NCX. Perhaps the <Navpoint> tags cause iBooks to interpret the item as a new chapter? Still trying to figure this one out.
j9ff is offline   Reply With Quote
Old 12-13-2011, 05:17 AM   #8
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,997
Karma: 8796439
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by j9ff View Post
That's how I understand it as well. I want the reader to be able to navigate to the sub-sections as well as the Chapters. That's why I've included them in the NCX. Perhaps the <Navpoint> tags cause iBooks to interpret the item as a new chapter? Still trying to figure this one out.
That's easy. Replace the <h5> with <p> or <div> (don't change the NCX), and see what does iBooks do.
Jellby is offline   Reply With Quote
Old 12-17-2011, 10:32 PM   #9
j9ff
Junior Member
j9ff began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2011
Location: United States
Device: iBooks
Quote:
Originally Posted by Jellby View Post
That's easy. Replace the <h5> with <p> or <div> (don't change the NCX), and see what does iBooks do.
I've now attempted changing the <H5> tags to both <p> tags and <H6> tags with the same result. I'm concluding for now that the <navpoint> entries are causing the trouble. Thanks for the suggestions everyone. If I discover anything differently, I'll post it.
j9ff is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange iBooks problem: only Hatgirl ePub 15 06-18-2011 06:13 AM
ibooks margin problem redryder Conversion 2 04-16-2011 07:49 AM
iPad EPUB for iBooks bckgrnd img problem Hitch Apple Devices 8 10-23-2010 10:29 PM
EPUB for iBooks bckgrnd img problem Hitch ePub 13 10-23-2010 10:27 PM
Image zoom problem in iBooks jharker ePub 6 10-02-2010 08:41 PM


All times are GMT -4. The time now is 07:24 AM.


MobileRead.com is a privately owned, operated and funded community.