Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 02-17-2011, 05:58 AM   #1
Chang
Connoisseur
Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!
 
Posts: 92
Karma: 50000
Join Date: Oct 2009
Device: none
Bug or feature in iBooks

I don't know if this is a bug or feature in iBooks because it's just a tricky way to link TOC and headers together. I would like to hear your opinions.

I'm using InDesign CS5 for creating EPUBs and my goal is to edit the book as much as I can in InDesign to avoid editing EPUB file after I have exported it from InDesign.
Sometimes I might have heading with capital letters e.g. "HEADING". For me this is ugly if it's showed the same way in TOC. I have circled this problem by writing another heading with normal letters e.g. "Heading" above the real heading. That means, I will have two headings: "Heading" and "HEADING" but with two different paragraph styles.
I use only the upper heading's paragraph style for creating TOC so it would read "Heading" in the EPUB's TOC. Now, my TOC is fine but I have two different headings showing in the text.
I circle this problem by adding display: none; for the upper heading's style in CSS. Now, my TOC is fine and only the real heading ("HEADING") is showing in the text.

This works perfectly in ADE but not in iBooks. Do you think it's a bug in iBooks and it could be probably fixed some day?

Here's also a EPUB file to demonstrate my problem. Please take a look at it if you have possibility to test it in iBooks.
Attached Files
File Type: epub testForDisplayNone.epub (11.5 KB, 192 views)
Chang is offline   Reply With Quote
Old 02-17-2011, 07:51 AM   #2
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
What you can do, is just make the heading in the text like you want to, so 'HEADING'. Create the epub. Now you have to edit the epub. Download the TweakEpub utility and run it. Open the created epub and edit the toc.ncx file.

In there, I would expect something like:
Code:
<navPoint id="chapter01" playorder="2">
  <navLabel>
     <text>HEADING</text>
  </navLabel>
  <content src="chapter01.xhtml">
</navPoint>
Of course the names of the id, playorder and filename will be different. Change the text of 'HEADING' here in 'Heading' and save. Save and close TweakEpub. If you now open the ePub, it should be as you would like.

Keep in mind, that if you open the book some editors (like Sigil), it will change back. I think that in the next version of Sigil this will be possible.
Toxaris is offline   Reply With Quote
Advert
Old 02-17-2011, 04:57 PM   #3
Adjust
Addict
Adjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel is
 
Adjust's Avatar
 
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
Quote:
Originally Posted by Toxaris View Post
What you can do, is just make the heading in the text like you want to, so 'HEADING'. Create the epub. Now you have to edit the epub. Download the TweakEpub utility and run it. Open the created epub and edit the toc.ncx file.

In there, I would expect something like:
Code:
<navPoint id="chapter01" playorder="2">
  <navLabel>
     <text>HEADING</text>
  </navLabel>
  <content src="chapter01.xhtml">
</navPoint>
Of course the names of the id, playorder and filename will be different. Change the text of 'HEADING' here in 'Heading' and save. Save and close TweakEpub. If you now open the ePub, it should be as you would like.

Keep in mind, that if you open the book some editors (like Sigil), it will change back. I think that in the next version of Sigil this will be possible.
Yeah, I do this all the time. I edit the TOC.NCX in Textwrangler (which supports GREP searches), I do it to turn small caps into Caps from ID because IDCS3 doesn't bring across caps which have been styled using the All Caps in the character pallet.

But this should work here as well...

Search for <text>(.*?)</text>
Replace with <text>\L\1</text>

Result will be from<text>HEADING</text> to <text>heading</text> or whatever text is in between the <text></text> tags
Adjust is offline   Reply With Quote
Old 02-17-2011, 05:01 PM   #4
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: 78,964
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Probably an issue in iBooks. iBooks is known to do some odd things.
JSWolf is offline   Reply With Quote
Old 02-18-2011, 01:58 AM   #5
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by Adjust View Post

But this should work here as well...

Search for <text>(.*?)</text>
Replace with <text>\L\1</text>

Result will be from<text>HEADING</text> to <text>heading</text> or whatever text is in between the <text></text> tags
Only if your editor supports RegEx of course. A good editor does, but not all do.
Toxaris is offline   Reply With Quote
Advert
Old 02-18-2011, 05:40 AM   #6
Chang
Connoisseur
Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!Chang is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!
 
Posts: 92
Karma: 50000
Join Date: Oct 2009
Device: none
Thank you all for your help!
It's just that I work in a company where we try to keep one workflow for all e-books. That's why we try to do most of the work in InDesign to avoid any kind of editing after EPUB is exported from InDesign. So far, we have been using Sigil to do minor adjustments in EPUB files after the export. I have been waiting for a long time that Sigil would allow users to access in content.opf and toc.ncx files and I really hope this would happen in the next version of Sigil.

But yeah, like JSWolf said, probably an issue in iBooks. I hope this could be fixed some day also
Chang is offline   Reply With Quote
Old 02-18-2011, 07:30 AM   #7
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
This will be possible with Sigil in the new version. Still a number of weeks away though.
Toxaris is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
iBooks 1.2: Collections feature GRiker Calibre 0 12-15-2010 06:35 PM
Bug or Feature? capidamonte Calibre 5 07-27-2010 03:06 PM
iBooks - ePub - Linking Bug lcoleman79 Apple Devices 2 06-30-2010 11:06 AM
iPad iBooks Text to Speech Feature kjk Apple Devices 3 06-12-2010 05:26 PM


All times are GMT -4. The time now is 01:58 PM.


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