View Single Post
Old 12-22-2010, 06:02 PM   #1
EatingPie
Blueberry!
EatingPie puts his or her pants on both legs at a time.EatingPie puts his or her pants on both legs at a time.EatingPie puts his or her pants on both legs at a time.EatingPie puts his or her pants on both legs at a time.EatingPie puts his or her pants on both legs at a time.EatingPie puts his or her pants on both legs at a time.EatingPie puts his or her pants on both legs at a time.EatingPie puts his or her pants on both legs at a time.EatingPie puts his or her pants on both legs at a time.EatingPie puts his or her pants on both legs at a time.EatingPie puts his or her pants on both legs at a time.
 
EatingPie's Avatar
 
Posts: 888
Karma: 133343
Join Date: Mar 2007
Device: Sony PRS-500 (RIP); PRS-600 (Good Riddance); PRS-505; PRS-650; PRS-350
Header Support with oeb-page-head Tag Working/Examples?

I am a Sony Reader user, and have been unable to create an ePUB with headers using the oeb-page-head tag. At least one that appears in the Reader Library application.

I have tried two examples.

http://www.idpf.org/2007/ops/OPS_2.0...tml#Section3.3

Code:
<div>
   <div class="myhead" style="display: oeb-page-head">
      The OEB Publication Structure: Introduction
   </div>
   <h2>Introduction</h2>
   <p>...</p>
</div>
I created an ePUB that passed epubcheck, but did not display a header on each page.

https://wiki.mobileread.com/wiki/EBook_Publisher

Code:
<html>
<head>

<style type="text/css">
 header {display:none; display:oeb-page-head}
</style>

</head>

<body>

<header>
<table border="0" width="100%">
<tr>
<td align="left"><small>PUT_TITLE_HERE</small></td>
<td align="right"><small>PUT_AUTHOR_HERE</small></td>
</tr>
</table>
<hr>
</header>

<p>EBOOK_TEXT_HERE</p>

</body>
</html>
This seems like the more desirable solution, but it fails epubcheck and completely destroys the page I put the header on... I get a header, but nothing else on the page, until the next xml document.

I am exceptionally inexperienced with ePUB, so I'm wondering if anyone has an ePUB already functioning with the oeb-page-head tag. (There is a workaround to get headers on the Sony Readers, but I'd rather use an ePUB tag).

-Pie
EatingPie is offline   Reply With Quote