Introduction
This is an example of a simple OmniMark cross-translate
that removes all spaces at the start and end of lines, collapses runs of spaces between words into a single space character, and uppercases every word starting with the letter "j". In the process, tabs are also converted into spaces.
Sample
cross-translate
find line-start black+ | blank+ line-end
; just ignore spaces and tabs at the start of end of lines
find blank {2}+ ; two or more "blank" (space or tab) characters
output " "
find word-start(ul "J" letter*) => word
output "%ux(word)" ; The "u" modifier upper-cases the word.
Generated: April 21, 1999 at 2:01:41 pm
If you have any comments about this section of the documentation, send email to [email protected]
Copyright © OmniMark Technologies Corporation, 1988-1999.