View Single Post
Old 07-13-2011, 04:33 AM   #16
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
Quote:
Originally Posted by virtual_ink View Post
@ Alex, yes iPad overrides the stylesheet. Crazy huh?

Aside from manually adding a blank <span> to every <p> that needs it, does anyone know a way to do this at a macro level?
One way to do this inside ID is to create a junk character style that doesn't contain anything that will be exported (set kerning to metrics, for instance*). Then open the Find/Change dialog, set the Find Format to Character Style: None and the Change Format to Character Style: iBooks junk, leave the other boxes blank and do a replace over the whole document.

Quote:
Originally Posted by virtual_ink View Post
Also, I can not for the life of me figure out how get his centered in iBooks.

I want to center the text 'PART I." and here's the code:

</head>
<body>
<div id="chapter-6.html" xml:lang="en-GB">
<div class="center">
<h2 id="toc_marker-3" class="sectiontitle"><strong>PART I.</strong></h2>
</div>
</div>
</body>
</html>
I thought iBooks did respect text alignment for header tags. Maybe try removing the <div class="center">


* kerning should, of course, always be set to metrics (!), but this isn't really relevant to ebooks
Attached Files
File Type: zip Untitled-1.zip (570.9 KB, 222 views)
File Type: epub Untitled-1.epub (210.1 KB, 308 views)
charleski is offline   Reply With Quote