Omni Systems, Inc. Mif2Go User's Guide, Version 55
> 14 Converting to generic XML > 14.8 Converting index entries to generic XML > 14.8.2 Defining macros to process index content > 14.8.2.5 Stripping character formats from index entries
Still another version of macro [ProcIXtext]
removes character-format names from index-marker content, as well as
processing colons:
This version uses a negative conditional expression
to check for the end of each index entry, and uses the starts
operator instead of the first
operator; see:
§28.6.4.2 Using conditional expressions
§28.6.5 Specifying substrings in expressions)
Text colons are output on line 7; all other text is output on line 15, one character at a time.
Some first
(line 15)
and trim first
(line 10
and line 16)
expressions in this version appear without a second operand; these expressions
assume an implied value of 1
(one) for the
second operand.