liblouis: The correct Opcode

1 
1 2.12 The correct Opcode
1 =======================
1 
1 'correct test action'
1      Because some input (such as that from an OCR program) may contain
1      systematic errors, it is sometimes advantageous to use a
1      pre-translation pass to remove them.  The errors and their
1      corrections are specified by the 'correct' opcode.  If there are no
1      'correct' opcodes in a table, the pre-translation pass is not used.
1      The format of the 'correct' opcode is very similar to that of the
1      'context' opcode (⇒context context opcode.).  The only
1      difference is that in the action part strings may be used and dot
1      patterns may not be used.  Some examples of 'correct' opcode
1      entries are:
1 
1           correct "\\" ? Eliminate backslashes
1           correct "cornf" "comf" fix a common "scano"
1           correct "cornm" "comm"
1           correct "cornp" "comp"
1           correct "*" ? Get rid of stray asterisks
1           correct "|" ? ditto for vertical bars
1           correct "\s?" "?" drop space before question mark
1