08-10-2009, 12:09 PM | #1 |
Exwyzeeologist
Posts: 535
Karma: 3261
Join Date: Jun 2009
Device: :PRS-505::iPod touch:
|
observation about ADE page numbers
This might be common knowledge to some of you, but it's something that I recently discovered that I thought was pretty interesting. By using the page-map.xml file, you can control the page numbering scheme in ADE ePubs.
For instance, the book I'm currently reading has ePub page numbers that correspond to the printed version's page numbers (the introduction is numbered with small roman numerals, while the main text uses regular numerals). However, this only applies to the page numbers in the margin--the numbering on the Sony menubar is absolute (cover is page 1, title page is 2, etc). Interestingly, the desktop ADE app actually shows both sets of numbers (both 'paper version' and absolute). I know many of you despise the margin page numbering, but one place where this could be incredibly useful is in a classroom situation where some students have a paper copy and others have an ebook copy. The teacher need only say "2nd paragraph on page 51" and everyone can easily end up in the same place. |
08-10-2009, 10:24 PM | #2 |
Enthusiast
Posts: 46
Karma: 196
Join Date: Nov 2007
Location: Kanagawa, Japan
Device: Sony PRS-700/Zaurus SL-3100
|
I agree there are situations where having a predictable page-number that is unaffected by font-size or reading device is useful. However the majority of my reading on the Sony reader is reading fiction for pleasure and I dislike the ADE enforced page numbers on the side of the page and the fact it "messes" up my Sony number bar, giving page numbers like '80-81'.
If this was something that could be toggled on and off in the reader settings it would without question be a feature rather than an irritation. So fingers crossed it appears as an option in the next Sony firmware. |
Advert | |
|
08-11-2009, 01:16 AM | #3 |
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
|
I would also like to know how ADE computes these numbers. I have an eBook that has lots of internal reference to page numbers and I would like to make them accurate.
|
08-11-2009, 11:12 AM | #4 |
Resident Curmudgeon
Posts: 76,470
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Is there any way to use page-map.xml to not have page numbers on the right side?
|
08-11-2009, 11:24 AM | #5 |
Bookaholic
Posts: 14,391
Karma: 54969924
Join Date: Oct 2007
Location: Minnesota
Device: iPad Mini 4, AuraHD, iPhone XR +
|
Is 'page-map.xml' normally in an ePub? I've looked at three commercial ePub's and a couple made in Calibre and none of them have it.
|
Advert | |
|
08-11-2009, 11:32 AM | #6 | |
Exwyzeeologist
Posts: 535
Karma: 3261
Join Date: Jun 2009
Device: :PRS-505::iPod touch:
|
Quote:
As for the page-map.xml file, it's pretty straightforward. The file for the book that I have is simply as follows (btw, the book is The Suspicions of Mr Whicher): Code:
<page-map xmlns="http://www.idpf.org/2007/opf"> <page name="" href="cover.html"/> <page name="i" href="halftitle.html"/> <page name="ii" href="other.html"/> <page name="iii" href="title.html"/> <page name="iv" href="copyright.html"/> ... <page name="1" href="part1.html"/> <page name="3" href="chapter1.html"/> <page name="4" href="chapter1.html#page_4"/> <page name="5" href="chapter1.html#page_5"/> <page name="6" href="chapter1.html#page_6"/> <page name="7" href="chapter1.html#page_7"/> ... </page-map> The only other things that I can see that are needed are adding the following to the opf file: Code:
<item href="page-map.xml" id="map" media-type="application/oebps-page-map+xml"/> Code:
<spine page-map="map" toc="ncx"> Last edited by Abecedary; 08-12-2009 at 03:08 PM. Reason: added line for the manifest |
|
08-11-2009, 11:35 AM | #7 | |
Exwyzeeologist
Posts: 535
Karma: 3261
Join Date: Jun 2009
Device: :PRS-505::iPod touch:
|
Quote:
I haven't even attempted to untangle a Calibre-generated ePub. The few conversions I've made with it have had multiple stylesheets (some completely blank) and repeated styles (with different names) within the stylesheets. I mean, it does the job (and fairly well at that), but it certainly isn't nice and tidy. Last edited by Abecedary; 08-11-2009 at 11:37 AM. |
|
08-11-2009, 11:38 AM | #8 |
Exwyzeeologist
Posts: 535
Karma: 3261
Join Date: Jun 2009
Device: :PRS-505::iPod touch:
|
|
08-11-2009, 11:40 AM | #9 | |
frumious Bandersnatch
Posts: 7,536
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Code:
<page-map xmlns="http://www.idpf.org/2007/opf"> <page name="" href="cover.html"/> </page-map> |
|
08-11-2009, 11:44 AM | #10 |
Exwyzeeologist
Posts: 535
Karma: 3261
Join Date: Jun 2009
Device: :PRS-505::iPod touch:
|
Good point, Jellby. I hadn't thought of that.
|
08-11-2009, 11:48 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
|
The new firmware from Hanlin actually uses the page numbers as the only page number indication in the file. A Goto aimed at a page number is the exact page referenced by Adobe. This is unlike the Sony implementation that has screen numbers. However if the Sony firmware is upgraded it may be like this also.
Dale |
08-11-2009, 11:50 AM | #12 | |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
|
|
08-11-2009, 11:54 AM | #13 | |||||
Bookaholic
Posts: 14,391
Karma: 54969924
Join Date: Oct 2007
Location: Minnesota
Device: iPad Mini 4, AuraHD, iPhone XR +
|
Found some info about this here...
http://groups.google.com/group/epubc...a61114e2a831d3 Quote:
Quote:
Quote:
Quote:
Quote:
|
|||||
08-11-2009, 12:01 PM | #14 |
Exwyzeeologist
Posts: 535
Karma: 3261
Join Date: Jun 2009
Device: :PRS-505::iPod touch:
|
Yup. I just tried stripping out the page numbers in the file I have (as per Jellby's comment) and the ADE desktop client didn't display the margin page numbers for those. I didn't go through the whole file, though (there are ~380 pages)--I just did the first 20 or so. However, it looks like it probably will mess with things in other unpredictable ways--mainly the inability to skip to any arbitrary page, or as Harry mentions, even know where in the book flow you are.
|
08-11-2009, 01:19 PM | #15 |
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
|
I found the answer as to how ADE creates a page number if there is no page file. It uses 1024 unicode characters per page to compute arbitrary page numbers. It will also increment pages based on chapter separations if they start a new file. Looks like I will be building a page document manually for the book "FourFold Gospel" previously uploaded here.
Last edited by DaleDe; 08-11-2009 at 01:27 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Page numbers | Fincary | Astak EZReader | 4 | 02-18-2010 04:06 PM |
page numbers | nenad | Amazon Kindle | 2 | 12-19-2009 10:01 AM |
pdf and page numbers | pimpoum | Sony Reader | 2 | 04-21-2009 01:52 PM |
Page numbers, AGAIN | orlincho | Bookeen | 92 | 08-19-2008 08:15 AM |
Page numbers (again) | Prospect | Workshop | 50 | 04-10-2008 03:19 AM |