02-09-2011, 10:08 PM | #16 | |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
Last edited by DoctorOhh; 02-10-2011 at 06:03 AM. |
|
02-10-2011, 01:41 AM | #17 | |
Connoisseur
Posts: 77
Karma: 9324
Join Date: Feb 2010
Device: Sony PRS-650, Kindle 3
|
Quote:
Thanks for your help, I can't wait to give it a go. Cheers. |
|
Advert | |
|
02-10-2011, 06:25 PM | #18 |
Connoisseur
Posts: 77
Karma: 9324
Join Date: Feb 2010
Device: Sony PRS-650, Kindle 3
|
ApnxGen
Here is a proof of concept to entertain you until the next version of Calibre gets out.
Many thanks to user_none for figuring the specs out. Just get the attachment, extract the content, and run the little proggy (Windows only). Enter the facts, ISBN (optional), the number of locations (the Kindle will tell you ) and the desired number of pages. Press 'Generate' then look for a file named unknown.apnx in the same location where you keep the executable. That's it! Rename the file after your mobi/azw file, and transfer it on the Kindle (or in 'My Kindle Content' folder in documents for Kindle4PC). Enjoy! Last edited by goaspy; 02-16-2011 at 04:41 PM. |
02-10-2011, 06:27 PM | #19 |
Resident Curmudgeon
Posts: 73,654
Karma: 127838196
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
But it's not the same. I looked as the sample Amazon showed and I think it's like x44 for the Kindle version with the pBook being x52. Close, but not close enough.
|
02-10-2011, 07:08 PM | #20 |
Enquiring Mind
Posts: 562
Karma: 42350
Join Date: Aug 2010
Location: London, UK
Device: Kindle 3 (WiFi)
|
|
Advert | |
|
02-10-2011, 07:12 PM | #21 | |
Sigil & calibre developer
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Quote:
The Girl Who Played with Fire by Stieg Larsson for instance shows a different page total between the Kindle and Print version however every numbered page maps 1 to 1 between the two. |
|
02-10-2011, 11:52 PM | #22 | |
~~~~~
Posts: 761
Karma: 1278391
Join Date: Aug 2010
Location: USA
Device: Kindle 3, Sony 350
|
Quote:
Thank you, goaspy! |
|
02-11-2011, 06:17 AM | #23 | |
New Leaf Turner
Posts: 260
Karma: 1026664
Join Date: Sep 2010
Location: Hadestown
Device: Kobo Glo
|
Quote:
It should be noted that for it to work, the extension .apnx needs to remain at the end of the file. Having both the page numbers and locations is the bee's knees. |
|
02-11-2011, 01:49 PM | #24 | |
frumious Bandersnatch
Posts: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
[*] If I remember correctly, the number of pages per file is computed by dividing the compressed size of the file by 1024. Page boundaries are then distributed evenly in the file. |
|
02-11-2011, 02:32 PM | #25 | |
Sigil & calibre developer
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Quote:
I'm using 1024 blocks of uncompressed text. Since it's an arbitrary calculation it can always be tweaked. I'll look over the ebook docs on Adobe's website and see about getting it working using the same calculation. Last edited by user_none; 02-11-2011 at 02:34 PM. |
|
02-11-2011, 02:34 PM | #26 |
creator of calibre
Posts: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You wont find it easy to use the same calculation as the compression algorithms for MOBI and EPUB are different.
|
02-11-2011, 02:55 PM | #27 |
frumious Bandersnatch
Posts: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Last time I went to check, it seemed the Adobe document was offline. Also, because the pages are computed from the compressed size, it gives a different number if you change the zip compression level when creating the epub
I found a description here. Since the Adobe page numbers are rather arbitrary and unpredictable, I would advise using any "reasonable" way to computing pseudo-page numbers you can think of, instead trying to replicate Adobe's. Last edited by Jellby; 02-11-2011 at 02:58 PM. |
02-11-2011, 03:38 PM | #28 |
~~~~~
Posts: 761
Karma: 1278391
Join Date: Aug 2010
Location: USA
Device: Kindle 3, Sony 350
|
|
02-11-2011, 04:57 PM | #29 |
Sigil & calibre developer
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
That would require the entire document to be uncompressed. This takes time and processing power. I'm sure this is why Adobe is using the compressed size. It's easily accessible.
MOBI has a field that stores the uncompressed size in it's header. It's easy and quick to accesss. What I think I'm going to do is count the number of characters in an average paperback page. Then I'll tweak the 1024 number to match the count minus the average markup per page. |
02-11-2011, 05:27 PM | #30 |
~~~~~
Posts: 761
Karma: 1278391
Join Date: Aug 2010
Location: USA
Device: Kindle 3, Sony 350
|
Thanks, User.
Either way, counting the source code in these larger chunks is going to be a lot better for most people than restraining them to 128 byte markers. It's like aiming for the right foot rather than the right inch. More meaningful to humans and, best of all, gives cushion for bumps in the road. I long for a day we can have a standard tracking method for all ebook formats. ...and the world to be filled with rainbows and puppy breath... |
Tags |
apnx, page numbers |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Firmware Update Kindle adds Page Numbers (and more) | koland | Amazon Kindle | 304 | 07-02-2011 03:54 AM |
Kindle adds Page Numbers (and more) | koland | News | 53 | 03-03-2011 04:30 PM |
Is there a hack for displaying page numbers rather than location numbers? | nesler | Kindle Developer's Corner | 16 | 02-15-2011 12:00 AM |
Epub to Kindle and page numbers | apropos | Calibre | 11 | 12-09-2010 01:42 PM |
Page numbers in iphone vs Real Kindle | palex481 | Amazon Kindle | 26 | 03-16-2009 05:28 PM |