Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 03-15-2010, 03:16 PM   #1
Hamlet53
History of God
Hamlet53 ought to be getting tired of karma fortunes by now.Hamlet53 ought to be getting tired of karma fortunes by now.Hamlet53 ought to be getting tired of karma fortunes by now.Hamlet53 ought to be getting tired of karma fortunes by now.Hamlet53 ought to be getting tired of karma fortunes by now.Hamlet53 ought to be getting tired of karma fortunes by now.Hamlet53 ought to be getting tired of karma fortunes by now.Hamlet53 ought to be getting tired of karma fortunes by now.Hamlet53 ought to be getting tired of karma fortunes by now.Hamlet53 ought to be getting tired of karma fortunes by now.Hamlet53 ought to be getting tired of karma fortunes by now.
 
Hamlet53's Avatar
 
Posts: 3,871
Karma: 46175969
Join Date: Mar 2009
Device: Kindle PW, Kindle Fire HDX 8.9"
EPUB Headers & Footers?

Is there a way to add a header and/or footer to EPUB files that will display on each page of document displayed? Note I searched this forum topic and I read the discussion in this forum about the merits of having headers or footers in ebooks. It is not my intention to revive that debate. As was stated in the aforementioned discussion it is a matter of preference at the discretion of the EPUB file author. I know that according to the standards the CSS display element values oeb-page-head and oeb-page-foot should do this, but in practice not.
Hamlet53 is offline   Reply With Quote
Old 03-15-2010, 03:26 PM   #2
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 65,487
Karma: 43935573
Join Date: Nov 2006
Location: UK
Device: Kindle Voyage, iPad Mini, iPhone 4, MS Surface Pro, N7
No, there isn't a way. As you note, the standard permits such a thing, but no current ePub reading software actually support it.
HarryT is online now   Reply With Quote
Old 03-15-2010, 03:31 PM   #3
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 38,530
Karma: 19637653
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
I'm actually glad it doesn't work. It would be yet another thing to have to fix in an ePub.
JSWolf is offline   Reply With Quote
Old 03-16-2010, 05:25 AM   #4
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,188
Karma: 727236
Join Date: Sep 2009
Device: PRS-505
Adobe added an extension based on XSL:FO very early on in order to allow headers and footers. It's very poorly documented (one page of notes is all you get) and only implements a tiny subset of XSL:FO. Naturally, styling produced using this only works on ADE Reading Systems (though those represent the majority of portable devices). A large number of ebooks incorporate this file, though in almost every case it's simply a stock template that's been pasted in to allow two-column flows on wide devices. I suspect that very few who use it professionally actually understand how to make it do more than that.

I've attached an example which shows how to use it to create headers and footers IF YOU ABSOLUTELY HAVE TO USE THEM. Don't ask me why the footer keeps bouncing around - I think this extension is little more than a legacy now. Note that you need to keep repeating the head and foot in your text - I couldn't find a way to get around that. The styling uses Jellby's trick to stop them showing up on non-ADE readers.
Attached Files
File Type: epub head+foot.epub (14.4 KB, 819 views)
charleski is offline   Reply With Quote
Old 03-16-2010, 05:37 AM   #5
jgray
Fanatic
jgray ought to be getting tired of karma fortunes by now.jgray ought to be getting tired of karma fortunes by now.jgray ought to be getting tired of karma fortunes by now.jgray ought to be getting tired of karma fortunes by now.jgray ought to be getting tired of karma fortunes by now.jgray ought to be getting tired of karma fortunes by now.jgray ought to be getting tired of karma fortunes by now.jgray ought to be getting tired of karma fortunes by now.jgray ought to be getting tired of karma fortunes by now.jgray ought to be getting tired of karma fortunes by now.jgray ought to be getting tired of karma fortunes by now.
 
Posts: 512
Karma: 1018067
Join Date: Mar 2008
Device: Galaxy Tab 10.1 & Note II
The funny thing is, the old Ebookwise reader supported page headers and footers via oeb-page-head and oeb-page-foot. So there really is no excuse for modern readers not to support it.
jgray is offline   Reply With Quote
Old 03-16-2010, 07:55 AM   #6
Madam Broshkina
Manic Do Fuse
Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.
 
Madam Broshkina's Avatar
 
Posts: 2,312
Karma: 1159112
Join Date: Oct 2006
Device: Sony 500, 505, 350, Kindle 3, DXG, nook, Irex DR800SG, iPad
Headers (Title) appear on every page of a ePub file on the nook.
Madam Broshkina is offline   Reply With Quote
Old 03-16-2010, 08:29 AM   #7
jgray
Fanatic
jgray ought to be getting tired of karma fortunes by now.jgray ought to be getting tired of karma fortunes by now.jgray ought to be getting tired of karma fortunes by now.jgray ought to be getting tired of karma fortunes by now.jgray ought to be getting tired of karma fortunes by now.jgray ought to be getting tired of karma fortunes by now.jgray ought to be getting tired of karma fortunes by now.jgray ought to be getting tired of karma fortunes by now.jgray ought to be getting tired of karma fortunes by now.jgray ought to be getting tired of karma fortunes by now.jgray ought to be getting tired of karma fortunes by now.
 
Posts: 512
Karma: 1018067
Join Date: Mar 2008
Device: Galaxy Tab 10.1 & Note II
Quote:
Originally Posted by Madam Broshkina View Post
Headers (Title) appear on every page of a ePub file on the nook.
That's not the same type of header. That is just that particular reader showing the title across the top. The jetBook and Libre do the same. What the OP was talking about was running headers/footers that are defined in the XHTML itself. This would allow any text to be displayed at the top/bottom of the screen and changed when desired.

As the OP and myself mentioned, the markup to do this is in the epub spec (and the even older OEB spec). It's just that none of the current epub readers support these statements. Personally, I would like to see these supported, with the added ability to disable their display as a user setting.
jgray is offline   Reply With Quote
Old 03-16-2010, 01:28 PM   #8
Hamlet53
History of God
Hamlet53 ought to be getting tired of karma fortunes by now.Hamlet53 ought to be getting tired of karma fortunes by now.Hamlet53 ought to be getting tired of karma fortunes by now.Hamlet53 ought to be getting tired of karma fortunes by now.Hamlet53 ought to be getting tired of karma fortunes by now.Hamlet53 ought to be getting tired of karma fortunes by now.Hamlet53 ought to be getting tired of karma fortunes by now.Hamlet53 ought to be getting tired of karma fortunes by now.Hamlet53 ought to be getting tired of karma fortunes by now.Hamlet53 ought to be getting tired of karma fortunes by now.Hamlet53 ought to be getting tired of karma fortunes by now.
 
Hamlet53's Avatar
 
Posts: 3,871
Karma: 46175969
Join Date: Mar 2009
Device: Kindle PW, Kindle Fire HDX 8.9"
Thank you to all for confirming what I suspected and the additional information. I guess it comes as no surprise to the old web site designer that the standards say one thing and the actual implementation is a hodge-podge dependent on software and device.
Hamlet53 is offline   Reply With Quote
Old 04-21-2010, 02:46 PM   #9
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,782
Karma: 5137308
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Quote:
Originally Posted by charleski View Post
Adobe added an extension based on XSL:FO very early on in order to allow headers and footers. It's very poorly documented (one page of notes is all you get) and only implements a tiny subset of XSL:FO. Naturally, styling produced using this only works on ADE Reading Systems (though those represent the majority of portable devices). A large number of ebooks incorporate this file, though in almost every case it's simply a stock template that's been pasted in to allow two-column flows on wide devices. I suspect that very few who use it professionally actually understand how to make it do more than that.

I've attached an example which shows how to use it to create headers and footers IF YOU ABSOLUTELY HAVE TO USE THEM. Don't ask me why the footer keeps bouncing around - I think this extension is little more than a legacy now. Note that you need to keep repeating the head and foot in your text - I couldn't find a way to get around that. The styling uses Jellby's trick to stop them showing up on non-ADE readers.
I looked at the header+footer example in ADE on my Astak Pocket Pro and it works fine on all pages except those that have no paragraph break on the page. The pages without a paragraph break have all the extra margin but no data in the header or footer.

Dale
DaleDe is offline   Reply With Quote
Old 04-21-2010, 10:23 PM   #10
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,188
Karma: 727236
Join Date: Sep 2009
Device: PRS-505
Quote:
Originally Posted by DaleDe View Post
I looked at the header+footer example in ADE on my Astak Pocket Pro and it works fine on all pages except those that have no paragraph break on the page. The pages without a paragraph break have all the extra margin but no data in the header or footer.

Dale
Yeah, that's the problem with the implementation I used there, it's not really workable. There might be a better way of doing it, but in the absence of any real documentation from Adobe I haven't bothered playing around with this mechanism further.
charleski is offline   Reply With Quote
Old 04-22-2010, 02:08 AM   #11
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,782
Karma: 5137308
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Quote:
Originally Posted by charleski View Post
Yeah, that's the problem with the implementation I used there, it's not really workable. There might be a better way of doing it, but in the absence of any real documentation from Adobe I haven't bothered playing around with this mechanism further.
Do you suppose the @page CSS can be used somehow to do this?

Dale
DaleDe is offline   Reply With Quote
Old 04-23-2010, 09:41 PM   #12
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,188
Karma: 727236
Join Date: Sep 2009
Device: PRS-505
Quote:
Originally Posted by DaleDe View Post
Do you suppose the @page CSS can be used somehow to do this?

Dale
Hmm, can't think of any. For Adobe's method the work, you have to have text somewhere on the page that's being displayed which is tagged with the selector specified in the rules section of the template. That means this text has to be present on every page of the document.

I get the strong feeling that Adobe introduced the page template idea as a preliminary model back when the epub spec was still in flux and decided not to develop it any further when certain people made a big fuss about not wanting any sort of proprietary extensions (and, of course, this was a part of the whole css vs XSL-FO thing). While the idea of keeping the standard completely open is laudable, the standard has languished from neglect, partially as a result.
charleski is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing Headers/Footers Help? Anarel Workshop 10 11-09-2010 01:53 PM
Remove Headers & Footers Mamaijee Introduce Yourself 8 09-26-2010 02:05 PM
PDF reflow problem with headers & footers errata Ectaco jetBook 11 09-03-2010 09:32 PM
Ignore Headers & Footers in PDF when scanning in ABBYY PieOPah Workshop 5 08-28-2009 02:55 AM
page headers/footers daesdaemar Workshop 20 12-12-2008 10:22 PM


All times are GMT -4. The time now is 02:14 PM.


MobileRead.com is a privately owned, operated and funded community.