Sample
  up-translate
  ; to start the translation
  find-start
    output file "file.dtd"
  ; to start the translation
  find "\input glossmac" white-space*
    output "<glossary>%n"
  ; look for the start of the title
  find "\title{"
    output "<title>"
  ; translate }
  find "}" "%n"?
    do when element is title
       output "</title>%n"
    else when element is term
       output "</term>%n"
    else when element is def
       output "</def>%n</entry>%n"
    done
  ; look for start of term
  find "\term{"
    output "<entry>%n<term>"
  ; look for start of definition
  find "{%%%n"
    output "<def>"
  ; look for end of glossary
  find "\bye" any
    output "</glossary>%n"
Generated: April 21, 1999 at 2:01:46 pm
If you have any comments about this section of the documentation, send email to [email protected]
 Copyright © OmniMark Technologies Corporation, 1988-1999.