View Single Post
Old 03-08-2009, 11:40 PM   #17
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by kovidgoyal View Post
Does any reader software actually support oeb-page-head?
YES!

The eBookwise 1150 and REB1200 both support running headers and footers using the 'oeb-page-head' or 'oeb-page-foot' style.

In our EBook Publisher wiki, you can find reference to sample code that will generate headers, namely:
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 HTML code similar to the one used by GEB Librarian or my Mobi2IMP to produce running headers. Important parts are '''header''' in <style> and '''<header>...</header>''' inclusion after <body>. You can re-use the '''<header>...</header>''' code again to redefine a new header, say for each Chapter Title. Then, to later remove headers, just use an empty pair '''<header></header>'''.

It works quite well and has been used in many commercial ebooks from Fictionwise/ebookwise.

Also, I recently discovered in this post that the 'oeb-column-number' can automatically display two column newspaper style text even though the source text in the .html is linear.

Last edited by nrapallo; 03-08-2009 at 11:44 PM.
nrapallo is offline   Reply With Quote