![]() |
#1 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,786
Karma: 103362673
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. |
|
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,070
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
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. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,786
Karma: 103362673
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. |
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
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.
|
![]() |
![]() |
![]() |
#5 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,786
Karma: 103362673
Join Date: Apr 2011
Device: pb360
|
Quote:
Also attached here. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Thanks, merged.
|
![]() |
![]() |
![]() |
Tags |
apnx |
|
![]() |
||||
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 |