11-24-2019, 05:43 PM | #1 | |
Grand Sorcerer
Posts: 5,285
Karma: 98804578
Join Date: Apr 2011
Device: pb360
|
Corrections to format_docs/pdb/apnx.txt
I've been trying to learn some details of amazon's apnx format and the least difficult for me to follow description I've found is calbre's format_docs/pdb/apnx.txt, but I think that has not kept up with the source code and some of it does not reflect what can be gleaned from examination of an apnx file and how a book from amazon behaves.
Quote:
A pbook that has X leafs has 2X page numbers, which may be Indo-Arabic numerals, Roman numerals, or something else. There is a value in the Page List section and the end of the apnx file that is the byte of the book HTML that is the start of the page for each labeled page in the book. 1) The first labeled page of the sequence of pages this tuple describes. 2) Page number type, a: Indo-Arabic numeral, r: Roman numeral, c: something else 3) Value of page number for the first page of this sequence. A tuple with page type "c" can only describe 1 page. The other types get incremented by 1 until the first page of the next tuple. Last edited by j.p.s; 11-24-2019 at 05:47 PM. |
|
11-24-2019, 06:26 PM | #2 |
Grand Sorcerer
Posts: 6,498
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
My best guess is that "c" stands for character string. It supports a list of values separated by "|" characters as the third entry in the tuple.
There is some additional information in the MobileRead Wiki: https://wiki.mobileread.com/wiki/APNX Last edited by jhowell; 11-24-2019 at 06:36 PM. |
11-24-2019, 08:21 PM | #3 | |
Grand Sorcerer
Posts: 5,285
Karma: 98804578
Join Date: Apr 2011
Device: pb360
|
Quote:
I still think that docs/pdb/apnx.txt should be updated similar to as suggested in post #1 and maybe a reference to the wiki page added. |
|
11-24-2019, 09:41 PM | #4 |
creator of calibre
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Feel free to post the updated text file and I will add it to calibre, or directly send a pull request.
|
11-29-2019, 05:22 PM | #5 | |
Grand Sorcerer
Posts: 5,285
Karma: 98804578
Join Date: Apr 2011
Device: pb360
|
Quote:
Also attached here. |
|
11-29-2019, 10:25 PM | #6 |
creator of calibre
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Thanks, merged.
|
Tags |
apnx |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Hacked Up Reader for epub/fb2/txt/rtf/html/pdb/etc | bhaak | Kindle Developer's Corner | 296 | 10-01-2016 01:11 PM |
Txt to PDB questions | pckopp | Calibre | 7 | 07-24-2010 08:51 PM |
TXT->PDB (eReader) conversion error | solitaire | Calibre | 5 | 01-25-2010 07:37 PM |
.txt to .pdb? | nlaplaca | Apple Devices | 1 | 12-21-2008 08:15 PM |
ereader pdb to rtf, txt, anything? | Dave Berk | Reading and Management | 11 | 03-24-2007 07:45 PM |