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 08-28-2012, 06:37 AM   #1
Raja1205
Member
Raja1205 began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Apr 2012
Device: none
Header and Footer in EPUB

Hi,

I think that as of now there is no E-reader to support "Header and Footer" of "HTML5 & CSS3" styles in EPUB3.

I need to include "Header" text on each page of the EPUB (Header text may vary from chapter to chapter)

1. Is there any other way to include the "Header" text in EPUB2 or EPUB3? If available, kindly share with me in detail.

3. Does the following codes of "page-template.xpgt" work in some other (ADE alone) E-reader (Ipad, Nook, Kobo, etc.)?

Code for Header and Footer:
---------------------------------------
<ade:style>
<ade:styling-rule selector=".header" display="adobe-other-region" adobe-region="xsl-region-before"/>
<ade:styling-rule selector=".footer" display="adobe-other-region" adobe-region="xsl-region-after"/>
</ade:style>

Thanks,
Raja. S
Raja1205 is offline   Reply With Quote
Old 08-28-2012, 09:44 AM   #2
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 3,182
Karma: 7180223
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Ad 1. Yes there is. In fact, there is a specific style for it: oeb-page-head and oeb-page-foot. However, most (all?) reading applications are ignoring it.
Ad 3. No, they are specifc for Adobe. But it will not result in a header or footer anyway.

Where is your number 2?
Toxaris is offline   Reply With Quote
 
Advertisement
Old 08-28-2012, 01:57 PM   #3
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,778
Karma: 5072196
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
There is a page in our wiki called Headers and footers that will answer all your questions.

Dale
DaleDe is offline   Reply With Quote
Old 08-28-2012, 04:18 PM   #4
PageLab
Connoisseur
PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.
 
PageLab's Avatar
 
Posts: 70
Karma: 515184
Join Date: Sep 2011
Location: Brasília
Device: Kindle3, iPad, Nook, Kobo, Positivo Alfa
Some time ago I tested this technique to create headers and footers with the page-template file. If you want to take a look, here's the link to the ePUB: http://www.pagelab.com.br/Headers-fo...xperiment.epub

It kinda works on ADE and it's ignored on iBooks, but it's a very complicated/deprecated way of doing it and will bloat your code with duplicated paragraph tags... Not really a solution.
PageLab is offline   Reply With Quote
Old 08-28-2012, 09:28 PM   #5
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,778
Karma: 5072196
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Quote:
Originally Posted by PageLab View Post
Some time ago I tested this technique to create headers and footers with the page-template file. If you want to take a look, here's the link to the ePUB: http://www.pagelab.com.br/Headers-fo...xperiment.epub

It kinda works on ADE and it's ignored on iBooks, but it's a very complicated/deprecated way of doing it and will bloat your code with duplicated paragraph tags... Not really a solution.
There is no need for duplicate paragraph tags using this method. The header is only changed when the content changes.

Dale
DaleDe is offline   Reply With Quote
Old 08-28-2012, 11:55 PM   #6
PageLab
Connoisseur
PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.
 
PageLab's Avatar
 
Posts: 70
Karma: 515184
Join Date: Sep 2011
Location: Brasília
Device: Kindle3, iPad, Nook, Kobo, Positivo Alfa
This doesn't use oeb-page-head, it's another old technique: adobe-regions (xls-fo). Anyway, the solution isn't very practical, looks like there's no future for it.

Last edited by PageLab; 08-28-2012 at 11:59 PM. Reason: fix the acronym
PageLab is offline   Reply With Quote
Old 08-28-2012, 11:56 PM   #7
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,474
Karma: 19300555
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2), Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
The best way to deal with headers/footers in ePub is just to pretend headers/footers don't actually exist.
JSWolf is offline   Reply With Quote
Old 08-29-2012, 03:36 AM   #8
Raja1205
Member
Raja1205 began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Apr 2012
Device: none
Many thanks to all of you for proving the valuable suggestions/comments.
Raja1205 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
Header Footer- New Updates lmccurry78 Conversion 6 02-01-2011 04:33 PM
Add Header/Footer hrwriter Calibre 3 12-08-2010 06:11 AM
Removing header and footer radicalnomad Calibre 2 08-26-2010 11:34 AM
Header/Footer removal Solicitous Calibre 2 03-30-2010 06:53 AM
Header/Footer Problems with conversion Sydney's Mom Calibre 4 01-05-2010 12:04 PM


All times are GMT -4. The time now is 03:24 AM.


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