SYNOPSIStxt2pdbdoc [-b] [-c] [-v] document-name file.txt file.pdb
txt2pdbdoc -d [-D] [-v] file.pdb [ file.txt ]
DESCRIPTIONtxt2pdbdoc converts a plain text file to a Doc(4) file in PDB (Pilot Database) format used by all models of the Palm Pilot. (It can also convert a Doc file to plain text.) Resultant PDB files can be downloaded directly to a Pilot during a HotSync.
The document-name is used in the Document List view of a Doc reader application on the Pilot.
- Ordinarily, characters with an ASCII code less than 9 are removed and both carriage-returns and form-feeds are converted to newlines. This option suppresses that behavior.
- Ordinarily, text is compressed. This option suppresses compression.
- Decode the given Doc file to text either to a file or to standard output if no file is specified.
- Do not check the file type/creator of the file to decode. This option should be specified only if you know for sure that the file is in fact some sort of Doc file. Attempting to decode non-Doc files will result in undefined behavior and quite possibly crash.
- Verbose mode. For encoding, print progress and compression statistics per 4K of text to standard error as well as overall statistics when completed; for decoding, print progress in a ``countdown'' style.
- Print the version number of txt2pdbdoc to standard output and exit.
EXAMPLETo convert a text file to Doc file:
- txt2pdbdoc 'Through the Looking Glass' alice.txt alice.pdb
EXIT STATUSExits with one of the values given below:
- Error in command-line options or use.
- Unable to open source file.
- Unable to open destination file.
- Unable to read file.
- Unable to write file.
- File is not a Doc file.
- Doc file uses unknown compression type.
- Document names are limited to 31 characters in PDB format. Longer names are truncated but have the 29-31st characters replaced by ``...'' to indicate truncation.
- The command isn't called ``txt2doc'' to avoid confusion about possibly having anything to do with Microsoft Word documents that use the .doc extension.
AUTHORPaul J. Lucas <[email protected]>