View Single Post
Old 09-30-2011, 10:46 PM   #675
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
Quote:
Originally Posted by jackie_w View Post
If you wouldn't mind sharing, I would be interested to know how you've done that, even if it's just an outline of your method. Do you, perhaps, use some kind of generated background image?
It's pretty ugly. BUT I AM WILLING TO DO WHAT IT TAKES!!!@@!$!!

I'll outline it, and maybe post my files later. I don't get full credit for this; I took the initial from another mobileread thread, and then customized it till I have the whole thing nailed down.

Basically it requires a custom "page-template.xpgt" which the ePUB spec actually says not to use. Ever. Hah! Then I am required to insert the header tag after every paragraph in the ePUB. You read that right. After every paragraph!

1) Copy page-template.xpgt to the ePUB OEBPS directory.
2) Add a special class in the CSS for the header. This places the tagged text into the header.
2) Add a reference to the page-template.xpgt to the header of every single content file, but after the CSS.
4) Pick your text. My Preference: "Book Title -- Chapter."
5) Add the tagged text after every </p> in each file.

This technique works on the Sony, but not on iBooks. Apple iBooks actually prints the whole header tag after each paragraph. Ugly!

The advantage of the "page-tempate.xpgt" is that you can customize margins, as well as insert a header and footer. I like a little whitespace for margins, even though it's not the most efficient use of screen space.

And every ePUB I make passes epubcheck perfectly.

-Pie

Last edited by EatingPie; 09-30-2011 at 10:52 PM.
EatingPie is offline   Reply With Quote