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, 02:16 PM   #1
Hamlet53
Nameless Being
 
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.
  Reply With Quote
Old 03-15-2010, 02: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: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
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 offline   Reply With Quote
Advert
Old 03-15-2010, 02: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: 73,645
Karma: 127838196
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
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, 04: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,196
Karma: 1281258
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, 1461 views)
charleski is offline   Reply With Quote
Old 03-16-2010, 04: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: 547
Karma: 2928497
Join Date: Mar 2008
Device: Clara 2E & Sage
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
Advert
Old 03-16-2010, 06: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: 3325462
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, 07: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: 547
Karma: 2928497
Join Date: Mar 2008
Device: Clara 2E & Sage
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, 12:28 PM   #8
Hamlet53
Nameless Being
 
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.
  Reply With Quote
Old 04-21-2010, 01: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: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
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, 09: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,196
Karma: 1281258
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, 01: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: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
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, 08: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,196
Karma: 1281258
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 12:53 PM
Remove Headers & Footers Mamaijee Introduce Yourself 8 09-26-2010 01:05 PM
PDF reflow problem with headers & footers errata Ectaco jetBook 11 09-03-2010 08:32 PM
Ignore Headers & Footers in PDF when scanning in ABBYY PieOPah Workshop 5 08-28-2009 01:55 AM
page headers/footers daesdaemar Workshop 20 12-12-2008 09:22 PM


All times are GMT -4. The time now is 06:56 AM.


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