View Single Post
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