Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 06-30-2015, 10:28 AM   #1
Shori
Junior Member
Shori began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jun 2015
Device: Kobo; kindle.
Question Epub output: no header, no footer and numbered sections.

Hi

I have an issue with my epub. It's driving me crazy.
Files seem ok, no validation errors.
I checked everything and I can't understand what is wrong.

Sigil version: 0.7.4

I enclosed 2 picture about what I get (get) and what I would (want).

I really hope someone can help me
THANK YOU.

Jessica
Attached Thumbnails
Click image for larger version

Name:	get.jpg
Views:	425
Size:	127.6 KB
ID:	139831   Click image for larger version

Name:	want.jpg
Views:	464
Size:	120.6 KB
ID:	139832  
Shori is offline   Reply With Quote
Old 06-30-2015, 11:02 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,806
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Validation only prove that your garbage is syntactically correct

You did not show small code snips (avoids copyright violation questions)
(page) Headers and Footers are not a normal option in a EPUB


1) Those may be pictures. OCR needed before it is a reflowable EPUB
2) (middle) the right number may be the ADE (MRSDK) supplied block# at runtime
theducks is offline   Reply With Quote
Old 06-30-2015, 11:02 AM   #3
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Very few ereaders actually support headers and footers. Since you appear to have a working book, why don't you reverse-engineer the styles used in that book?

If you've already done that, post a sample page and the relevant styles.
Doitsu is offline   Reply With Quote
Old 06-30-2015, 12:03 PM   #4
rubeus
Banned
rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.
 
Posts: 272
Karma: 1224588
Join Date: Sep 2014
Device: Sony PRS 650
Why isnt this moved to the epub Forum? Cant see any Sigil problem here.
rubeus is offline   Reply With Quote
Old 06-30-2015, 12:16 PM   #5
Shori
Junior Member
Shori began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jun 2015
Device: Kobo; kindle.
I made this ebook all by myself, using html, css and so on. It is not a converted file.

If you need a sample, this is the copyright page:

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
<title>Copyright</title>
<link href="../Styles/style.css" rel="stylesheet" type="text/css" />
<script src="../Misc/kobo.js" type="text/javascript" xmlns="http://www.w3.org/1999/xhtml">
</script>

<style type="text/css">
.koboSpan { -webkit-text-combine: inherit; }
</style>
</head>

<body>
<div id="book-columns" xmlns="http://www.w3.org/1999/xhtml">
<div id="book-inner" xmlns="http://www.w3.org/1999/xhtml">
<h2 title="Copyright"></h2>

<p class="cpr1"><span class="koboSpan" id="kobo.1.1" xmlns="http://www.w3.org/1999/xhtml">Titolo originale:</span></p>

<p class="cpr3"><span class="koboSpan" id="kobo.2.1" xmlns="http://www.w3.org/1999/xhtml">Olalla</span></p>

<p class="cpr1"><span class="koboSpan" id="kobo.3.1" xmlns="http://www.w3.org/1999/xhtml">Pubblicato per la prima volta nel 1887</span></p>

<p class="cpr1"><span class="koboSpan" id="kobo.4.1" xmlns="http://www.w3.org/1999/xhtml">in</span> The Merry Men and Other Tales and Fables</p>

<p class="cpr2"><span class="koboSpan" id="kobo.5.1" xmlns="http://www.w3.org/1999/xhtml">da Chatto &amp; Windus, Londra, Regno Unito.</span></p>

<p class="cpr1"><span class="koboSpan" id="kobo.6.1" xmlns="http://www.w3.org/1999/xhtml">Traduzione integrale dall'inglese</span></p>

<p class="cpr3"><span class="koboSpan" id="kobo.7.1" xmlns="http://www.w3.org/1999/xhtml">xxxxx</span></p>

<p class="cpr1"><span class="koboSpan" id="kobo.8.1" xmlns="http://www.w3.org/1999/xhtml">Copertina realizzata da</span></p>

<p class="cpr4"><span class="koboSpan" id="kobo.9.1" xmlns="http://www.w3.org/1999/xhtml">xxxxx</span></p>

<p class="cpr1"><span class="koboSpan" id="kobo.10.1" xmlns="http://www.w3.org/1999/xhtml">© xxxxx</span></p>

<p class="cpr1"><span class="koboSpan" id="kobo.11.1" xmlns="http://www.w3.org/1999/xhtml">Tutti i diritti della presente edizione sono riservati. Nessuna parte di questo libro può essere riprodotta in qualsiasi forma o con qualsiasi mezzo elettronico o meccanico, compreso lo stoccaggio in sistemi di recupero dati, senza autorizzazione scritta da parte dell’Editore.</span><span class="koboSpan" id="kobo.12.1" xmlns="http://www.w3.org/1999/xhtml">È espressamente vietato trasmettere ad altri il presente libro, né in formato cartaceo né elettronico, né per denaro né a titolo gratuito.</span></p>

<p class="cpr5"><span class="koboSpan" id="kobo.13.1" xmlns="http://www.w3.org/1999/xhtml">ISBN</span></p>
</div>
</div>

<div class="pagebreak"></div>
</body>
</html>


The second image screenshots are from ebooks I bought, and, as you can see, in those header and footers work.
It's more than a week I'm consuming my brain over this issue. I even compared my work with the ones of 4 different publishers and found nothing different in them.
It must be something in the toc or in the opf file, but I can't find what it is.Everything looksright. Maybe some hidden Sigil settings?

Last edited by Shori; 06-30-2015 at 01:27 PM.
Shori is offline   Reply With Quote
Old 06-30-2015, 12:33 PM   #6
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Shori View Post
If you need a sample, this is the copyright page:
Is this an excerpt from a commercial Kobo kepub book with working headers and footers or did you use the same style names for your book?

Either way the sample is worthless without the stylesheet and javascript files that it links to.

Quote:
Originally Posted by Shori View Post
It must be something in the toc or in the opf file, but I can't find what it is. Everything looksright. Maybe some hidden Sigil settings?
There are no hidden Sigil header/footer settings, however, kepub files are ePub3 files which Sigil doesn't support (yet).

If you've copied the stylesheet and javascript file(s) from the working kepub file to your book, you'll have to export it as an ePub3 file with the ePub3 output plugin.
Doitsu is offline   Reply With Quote
Old 06-30-2015, 01:26 PM   #7
Shori
Junior Member
Shori began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jun 2015
Device: Kobo; kindle.
I edited the stylesheet all by myself. Here it is:
----------------------------------------------------
Spoiler:

*{
text-align: justify;
}


a{
text-decoration:none !important;
color: Black;
}


body{
orphans: 2;
widows: 2;
font-size: 0.85em;
}

p {
font-size: 0.85em;
text-indent: 1.5em;
margin-top: 0;
margin-bottom: 0;
orphans: 2;
widows: 2;
text-align: justify;
line-height: 1.4em;
display: block;
}


/* Linea*/
hr {
align: center;
color: black;
weight: bold;
noshade;
padding-bottom: 0;
padding-top: 0;
margin-left: 20%;
margin-right: 20%;
margin-top: 0;
}


/* Intestazioni*/

h1, h2, h3, h4, h5 {
margin-top: 0;
margin-bottom: 0;
}

h5.spec3 {
font-variant: small-caps;
line-height: 1.3em;
text-align: center;
margin-top: 3em;
margin-bottom: 2em;
font-weight: normal;
page-break-after: avoid;

}

h3.spec1 {
page-break-after: avoid;
line-height: 1em;
text-align: center;
margin-top:1.5em;
margin-bottom: 1em;
font-weight: normal;
margin-left:2%;
margin-right:2%;
}

/* Def Titolo Indice*/
h2.ind {
page-break-after: avoid;
line-height: 1.3em;
text-align: center;
margin-top: 1.5em;
margin-bottom: 1em;
font-weight: normal;
font-variant:small-caps;
}

/* Def titoli capitolo*/
h2.tcap {
page-break-after: avoid;
line-height: 1em;
text-align: center;
font-weight: normal;
font-variant:small-caps;
font-size:1.7em;
margin-top: 0.5em;
margin-bottom: 1em;
}

h4.cap {
line-height: 1.3em;
text-align: center;
margin-top: 1.5em;
margin-bottom: 0.3em;
font-weight: normal;
page-break-after: avoid;
}

/* Frontespizio*/

h3.fro {
page-break-after: avoid;
line-height: 1.3em;
text-align: center;
font-weight: normal;
margin-top: 5em;
margin-bottom: 1.5em;
hyphens:none;
-webkit-hyphens: none;
}
h2.fro1 {
page-break-after: avoid;
line-height: 1em;
text-align: center;
font-weight: normal;
font-size:1.7em;
text-transform:lowercase;
letter-spacing: 0.2em;
font-variant:small-caps;
hyphens:none;
-webkit-hyphens: none;
}

div.fro2
{
margin-top:35%;
height:15%;
width:100%;
display:inline-block;
text-align:center;
}


/* Riga vuota*/
.rigavuota {
display: block;
border: currentcolor none 0;
margin-top: 1em;
margin-bottom: 1em;
}

/*Inizio capitolo in maiuscolo*/
.corpo1 {
text-transform: uppercase;
font-size: 1.1em;
}


/*maiuscoletto nel testo*/
.corpo3 {
font-variant: small-caps;
text-indent: 1.5em;
display: block;
}

/* corpo testo*/
p.ind2 {
line-height: 1.5em;
display: block;
text-indent: 1.5em;
margin-left:0;
margin-right: 0;
}

p.ded {
line-height: 1.3em;
display: block;
text-align: center;
font-variant: uppercase;
margin-top: 2em;
margin-bottom: 1em;
font-weight: normal;
font-size: 0.78em;
page-break-after: avoid;
}

p.ded1 {
line-height: 1.3em;
display: block;
text-align: center;
font-variant: uppercase;
font-weight: normal;
font-size: 0.78em;
page-break-after: avoid;
}


/* interruzione di pagina */
.pagebreak {
borde-bottom: 0;
border-top: 0;
dispay: block;
padding-bottom: 0;
padding-top: 0;
text-indent: 1.5em;
margin: 0;
}


/* Copyright */

p.cpr1 {
line-height: 1.3em;
text-indent: 0;
margin-top: 0.5em;
margin-bottom: 0;
}

p.cpr2 {
line-height: 1.3em;
text-indent: 0;
margin-bottom: 1em;
}

p.cpr3 {
line-height: 1.3em;
text-indent: 0;
font-style: italic;
margin-bottom: 1em;
}

p.cpr4 {
line-height: 1.3em;
text-indent: 0;
font-style: italic;
margin-bottom: 2em;
}

p.cpr5 {
line-height: 1.3em;
text-indent: 0;
margin-top: 2em;
margin-bottom: 0;
}

---------------------------------------------------------

I am not new to html, but I am to ebook. And you are right about the javascript file. I added it yesterday, so as all those "KoboSpan" I confess I don't know what they are for.
But deleting the kobo.js and all the Kobospans, I get just the same result. So I suppose the answer is not there.

I don't understand what's the trick.
You have no idea how many tests I have made so far.

Last edited by theducks; 06-30-2015 at 01:29 PM. Reason: wrap long paste in spoiler
Shori is offline   Reply With Quote
Old 06-30-2015, 01:35 PM   #8
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,806
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Moderator Notice
not a Sigil specific thread. Moving to EPUB
theducks is offline   Reply With Quote
Old 06-30-2015, 05:05 PM   #9
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
AFAIK, headers and footers are a Kobo-specific feature that requires you to convert your book to an kepub with a Calibre kepub plugin.

For more details search the Kobo forum for kepub.
Doitsu is offline   Reply With Quote
Old 06-30-2015, 05:17 PM   #10
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
This difference between your 2 pics is quite simple.
get.jpg is an example of a Kobo displaying a standard epub with the Adobe renderer. The 'Page x of y' at the bottom is standard. The other numbers you've ringed are also Adobe page numbers. You can switch those off in Settings - Reading settings - Show Adobe page numbers.

want.jpg is an example of a Kobo displaying a kepub (Kobos own special epub format) with the Access renderer. If you buy direct from Kobo kepub is their preferred format.

Every Kobo has both the Adobe and Access renderers and you choose which one you want to use by sending plain epubs or Kobo-style kepubs to your Kobo device.

If you're building your own epubs you can use calibre to convert standard epub to kepub.
jackie_w is offline   Reply With Quote
Old 07-01-2015, 03:03 AM   #11
Shori
Junior Member
Shori began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jun 2015
Device: Kobo; kindle.
Smile

Thank you all!
Now everything is clear to me
I knew I was missing a piece of the puzzle.

Wish you a lovely day
Shori is offline   Reply With Quote
Reply

Tags
footer, header, kobo, sigil


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add a header/footer Arkadian Editor 7 09-24-2014 02:28 PM
Header and Footer in EPUB Raja1205 ePub 7 08-29-2012 02:36 AM
Header Footer- New Updates lmccurry78 Conversion 6 02-01-2011 03:33 PM
Add Header/Footer hrwriter Calibre 3 12-08-2010 05:11 AM
Removing header and footer radicalnomad Calibre 2 08-26-2010 10:34 AM


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


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