David,

>>>Does anyone have a C code example of doing this they can share??
>Specifically on the PalmOS device...

If you want to create an uncompressed doc, it is quite simple.  You write out a
16-byte header in the first record with some statistics, then in subsequent
records write 4096 plain-text characters to each, with the last record having
the remainder (rarely a 4096 byte multiple of text in the document...)

If you want bookmark records stored, they come after the text.

The description of the format is here: http://www.pyrite.org/doc_format.html

If you want to create a compressed database, contact me offline about a library
I have which includes the ability to encode the 4096 byte segments.  But I
haven't made a PNOlet version, even though you may not want to run the encoding
on a m68k device.  The decoding method was designed to be fast and easy to
decode on a low resource device.  That was not a design point of the encoding
method.  See http://patb.dyndns.org/Programming/PilotDoc.htm

Doug

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to