Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 08-10-2009, 11:09 AM   #1
Abecedary
Exwyzeeologist
Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.
 
Abecedary's Avatar
 
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.
Abecedary is offline   Reply With Quote
Old 08-10-2009, 09:24 PM   #2
mbagsh55
Enthusiast
mbagsh55 doesn't littermbagsh55 doesn't litter
 
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.
mbagsh55 is offline   Reply With Quote
Advert
Old 08-11-2009, 12:16 AM   #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: 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.
DaleDe is offline   Reply With Quote
Old 08-11-2009, 10:12 AM   #4
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,983
Karma: 128903378
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?
JSWolf is offline   Reply With Quote
Old 08-11-2009, 10:24 AM   #5
AnemicOak
Bookaholic
AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.
 
AnemicOak's Avatar
 
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.
AnemicOak is offline   Reply With Quote
Advert
Old 08-11-2009, 10:32 AM   #6
Abecedary
Exwyzeeologist
Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.
 
Abecedary's Avatar
 
Posts: 535
Karma: 3261
Join Date: Jun 2009
Device: :PRS-505::iPod touch:
Quote:
Originally Posted by DaleDe View Post
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.
I'm not entirely certain how it calculates page numbers by default, but I seem to remember seeing it mentioned that ADE puts a page number in for every x characters or bytes or something.

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>
You'll notice the cover doesn't get a page number, and page 2 (the blank verso page) has been omitted. If the html file is just a single page, it gets referenced as is. For multiple pages (as in chapter 1), you just drop an anchor tag into the correct place in the html text flow (<a id="page_4"/>).

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"/>
gets added to the manifest section, and
Code:
<spine page-map="map" toc="ncx">
gets added as the start of the spine.

Last edited by Abecedary; 08-12-2009 at 02:08 PM. Reason: added line for the manifest
Abecedary is offline   Reply With Quote
Old 08-11-2009, 10:35 AM   #7
Abecedary
Exwyzeeologist
Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.
 
Abecedary's Avatar
 
Posts: 535
Karma: 3261
Join Date: Jun 2009
Device: :PRS-505::iPod touch:
Quote:
Originally Posted by AnemicOak View Post
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.
I believe it's another of the Adobe-specific extensions, similar to the page-template.xml file. This is the first commercial ePub I've come across that has one (out of about a dozen or so), but a number of others have the <a id=xxx> anchor points in the html that correspond to the print edition (but they're not referenced or used anywhere that I can find). It looks like this is something that InDesign can do when exporting an ePub file (hence the matchup to the print edition numbering scheme).

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 10:37 AM.
Abecedary is offline   Reply With Quote
Old 08-11-2009, 10:38 AM   #8
Abecedary
Exwyzeeologist
Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.
 
Abecedary's Avatar
 
Posts: 535
Karma: 3261
Join Date: Jun 2009
Device: :PRS-505::iPod touch:
Quote:
Originally Posted by JSWolf View Post
Is there any way to use page-map.xml to not have page numbers on the right side?
I think you know the answer to this. Sorry, Jon.
Abecedary is offline   Reply With Quote
Old 08-11-2009, 10:40 AM   #9
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by JSWolf View Post
Is there any way to use page-map.xml to not have page numbers on the right side?
According to Abecedary's example, maybe just this?

Code:
<page-map xmlns="http://www.idpf.org/2007/opf">
<page name="" href="cover.html"/>
</page-map>
i.e., just set the whole book as a single unnamed page.
Jellby is offline   Reply With Quote
Old 08-11-2009, 10:44 AM   #10
Abecedary
Exwyzeeologist
Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.
 
Abecedary's Avatar
 
Posts: 535
Karma: 3261
Join Date: Jun 2009
Device: :PRS-505::iPod touch:
Good point, Jellby. I hadn't thought of that.
Abecedary is offline   Reply With Quote
Old 08-11-2009, 10:48 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
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
DaleDe is offline   Reply With Quote
Old 08-11-2009, 10:50 AM   #12
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
Quote:
Originally Posted by DaleDe View Post
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
This is also the way it works on the Opus. Without the page numbers you'd have no indication of how far through the book you were.
HarryT is offline   Reply With Quote
Old 08-11-2009, 10:54 AM   #13
AnemicOak
Bookaholic
AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.
 
AnemicOak's Avatar
 
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:
Any way to hide the page numbers appeared in epub output viewed by
adobe digital edition

Quote:
There is a way but I don't know, if it makes any sense to you.
its as follows:

1. Add page-map attribute in the OPF file.
2. remove the page links from the pagemap.xml file (if exists any), so that
ADE will not find any page numbers to display.
3. Then make an ePub out of it.

But why do you need to hide ADE page numbers?

Quote:
I've epub file and I want to hide the page number and I didn't
understand your reply, would please to tell me how can I hide it

Quote:
Please check to my page-template.xpgt and tell me how can I hide page number

Quote:
Hi,

The page-template file does not control the display of page numbers.
What you're looking for is the page-map.xml file.

Go to http://www.adobe.com/devnet/digitalpublishing/ and download the
"EPUB Best Practices Guide". There's a section on "Adobe Extensions"
which discusses the page map file. To suppress page numbering, you'll
need to create such a file, but use an empty name attribute (note that
I haven't tried this). If the page-map file doesn't exist, ADE will
generate page numbers based on the algorithm discussed in the best
practices guide.

Thanks,

Dave Cramer
AnemicOak is offline   Reply With Quote
Old 08-11-2009, 11:01 AM   #14
Abecedary
Exwyzeeologist
Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.
 
Abecedary's Avatar
 
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.
Abecedary is offline   Reply With Quote
Old 08-11-2009, 12:19 PM   #15
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
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 12:27 PM.
DaleDe is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Page numbers Fincary Astak EZReader 4 02-18-2010 03:06 PM
page numbers nenad Amazon Kindle 2 12-19-2009 09:01 AM
pdf and page numbers pimpoum Sony Reader 2 04-21-2009 12:52 PM
Page numbers, AGAIN orlincho Bookeen 92 08-19-2008 07:15 AM
Page numbers (again) Prospect Workshop 50 04-10-2008 02:19 AM


All times are GMT -4. The time now is 08:47 AM.


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