textlif75 - convert an ASCII file to a HP-75 text file
lifutils textlif75 [-n] LIFFILENAME INPUTFILE > Output file
lifutils textlif75 [-n] LIFFILENAME < Input file > Output file
lifutils textlif75 -?
textlif75 generates a text file for the HP-75. The program reads plain text from standard input or the file specified by the command line parameter INPUTFILE and writes the LIF file header followed by the converted HP-75 text file to standard output. This file type can be used on the HP-75 only. The maximum line length of this file type is 255 characters excluding end of line char(s). textlif75 adds a line numbering starting with zero with an increment of one.
|
-n |
Get the linenumbering from the input file. The line numbers must be the first token in each line of the input file. They must be in the range 0-9999 and in consecutive order. Exactly one space seperates the line number from the following text of the line. | ||
|
-? |
Print a message giving the program usage to standard error. |
The HP text file format is documented in page 107 and 111 of the HP75 Description and Entry Points documentation.
If demo.txt is an ASCII text file then
cat demo.txt | lifutils textlif75 DEMO | lifutils lifput lifimage.dat
will put the HP-75 text file with the name DEMO into the LIF image file lifimage.dat
textlif was written by Joachim Siebold, bug400@gmx.de using code from Tony Duell, ard@p850ug1.demon.co.uk and has been placed under the GNU Public License version 2.0