06-11-2011, 03:34 AM | #1 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
confused by epub page numbering
when I place files modified in sigil onto by sonyt e-reader, it tells me how many "pages" are in the book and allows "page number" to operate as navigation tool.
my prior understanding was that page numbers were computed from text character count within each xhtml, and thus were unaffecting by font resizing or other cosmetics. But I have just tidied a 700+ page book that had come from MS word, and after removing all the word-related crud ( which appears in green or faint orange within code view ), the book now has only 400+ pages. but all the chapters & all of the text seem intact. is that expected behaviour ? if I had been paying close attention to the unedited version on my reader , would I have seen page numbers jump as each new chapter was opened i.e. as each new unneeded word styles, word font etc. definitions were skipped over ? I cannot see anything within the sigil views that related to page number calculations, are the calculations taking pace within the sony firmware or are they stored somewhere within the epub structure ? ? |
06-11-2011, 03:47 AM | #2 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
The "page numbers" are generated by the Sony's ADE firmware, and are a count of units of 1024 characters in the compressed file. So yes, if you remove garbage from the file, whether visible or not, you will reduce the page count.
|
Advert | |
|
06-11-2011, 03:47 AM | #3 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Yes is it expected. The character count also takes the xhtml code into account. HTML from Word has a lot of garbage, so a lot more additional code.
Sigh, HarryT beat me to it. |
06-11-2011, 03:51 AM | #4 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
06-11-2011, 04:01 AM | #5 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
thanks guys -
so "page numbers" are part of ADE spec, not epub spec; sigil does not "do" page numbers. as for compression level when zipping - that is "under the bonnet" in sigil - not user configurable ? moving onto garbage disposal then: as it severly impacts page numbers, & thus impacts my sense of how long a book is, I'll be wanting to get better at this.... so.. is it safe to assume that if sigil colors it green, then it can be safely zapped ?. is it practical to expect a "zap all that's green" button one day or will it always be a manual find/replace task. ditto for all those word font definitions that appear in a washed out orangey colour ? |
Advert | |
|
06-11-2011, 05:05 AM | #6 |
Guru
Posts: 774
Karma: 1211741
Join Date: May 2008
Location: Oregon
Device: EB1150, iPhone, Cool-er Purple, Pocketbook 360, Kindle Fire
|
page count
Is there a specific reason why you are wanting page numbers?
Most ereaders do not display them when you are actually reading the ebook. Amy |
06-11-2011, 05:22 AM | #7 | |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
Quote:
ADE , when reading on PC, also shows them - I hate the way that ADE does it but again there is no option to disable. so I've got used to seeing them & thus I want to understand how they are derived & make them comparable across different books from different sources |
|
06-11-2011, 05:39 AM | #8 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
|
06-11-2011, 11:09 AM | #9 | |
Grand Sorcerer
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:
Dale |
|
06-11-2011, 11:09 AM | #10 |
Guru
Posts: 774
Karma: 1211741
Join Date: May 2008
Location: Oregon
Device: EB1150, iPhone, Cool-er Purple, Pocketbook 360, Kindle Fire
|
generated
Harry you are right, most do display them. I was thinking that the numbering was auto generated, or some such thing.
I don't worry about page numbering when I make a epub file, though I am sure there are cases when controlling the numbering process would be helpful, I think it doesn't matter for most fiction. Amy |
06-11-2011, 11:15 AM | #11 | |
Grand Sorcerer
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:
Dale Last edited by DaleDe; 06-11-2011 at 11:20 AM. |
|
06-11-2011, 11:50 AM | #12 | |
Well trained by Cats
Posts: 29,884
Karma: 55267620
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
The space on the bottom (about 20px) is never used for the book, only the status bar, which is hidden most of the time. |
|
06-11-2011, 04:45 PM | #13 |
Grand Sorcerer
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
|
the space at the bottom is 40px and yes the text can protrude into that space at least a little, depending on how the page comes out and the font size. I have turned on the status bar and had it cover the bottom few pixels of a line of text.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ePub Page Numbering Using Page-map | Dark123 | Calibre | 2 | 06-16-2010 07:15 AM |
Page numbering and counting | PKFFW | OpenInkpot | 5 | 10-31-2009 06:34 AM |
Page numbering | StanByk | Calibre | 2 | 09-07-2009 02:10 PM |
Page Numbering... | slantybard | Calibre | 3 | 08-02-2009 11:41 AM |
Page Numbering | bookstar | Sony Reader | 1 | 03-24-2009 03:21 PM |