[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.5.1.1 Standard Input Representation

The representation for the standard input file used as the argument to the function depends both on the file format and on the command line options specified when the application is invoked. The --unparameterized’ and ‘--raw-output’ options make no difference to the input representation, and the ‘--line-map’ and ‘--byte-transducer’ options are not relevant to this mode of operation. That leaves four possible combined settings of the --choice-of-output’ and ‘--force-text-input’ options. If standard input conforms to the data file format specification File Format, the following effects are possible.

If standard input does not conform to the data file format specification in File Format, then it is assumed to be a text file. The ‘--force-text-input’ option makes no difference, and there are only two possible effects, depending on whether ‘--choice-of-output’ is used. They correspond to the latter two cases above, where ‘--force-text-input’ is used.

The idea of the ‘--choice-of-output’ option is that it is used only for applications that are smart enough to be aware of the (preamble,contents) convention. A non-empty preamble implies a data file whose contents could be any type, but an empty preamble implies a text file whose contents can only be a list of character strings. (In the case of a data file with no preamble, the list of the empty string is used for the preamble to distinguish it from a text file.)

Dumb applications that never want to deal with anything but text files should be invoked with ‘--force-text-input’. Otherwise, they have to be prepared for either text or data as arguments.

The use of both options at once is unproductive as far as the input format is concerned, but may be justified when the output is to be a data file and the input is text only.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated on December 10, 2012 using texi2html 1.82.