| 1 |
PalmDoc Format |
| 2 |
-------------- |
| 3 |
|
| 4 |
The format is that of a standard Palm Database Format file. The header of that |
| 5 |
format includes the name of the database (usually the book title and sometimes |
| 6 |
a portion of the authors name) which is up to 31 bytes of data. This string of |
| 7 |
characters is terminated with a 0 in the C style. The files are identified as |
| 8 |
Creator ID of REAd and a Type of TEXt. |
| 9 |
|
| 10 |
|
| 11 |
Record 0 |
| 12 |
-------- |
| 13 |
|
| 14 |
The first record in the Palm Database Format gives more information about the |
| 15 |
PalmDOC file, and contains 16 bytes. |
| 16 |
|
| 17 |
bytes content comments |
| 18 |
|
| 19 |
2 Compression 1 == no compression, 2 = PalmDOC compression (see below) |
| 20 |
2 Unused Always zero |
| 21 |
4 text length Uncompressed length of the entire text of the book |
| 22 |
2 record count Number of PDB records used for the text of the book. |
| 23 |
2 record size Maximum size of each record containing text, always 4096 |
| 24 |
4 Current Position Current reading position, as an offset into the uncompressed text |
| 25 |
|