swirl
Guide to OmniMark 9   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
  Related Topics   Other Library Functions  
function  

rtf

 
 

Library: Rich Text Format (RTF) (OMRTF)
Import: omrtf.xmd

Declaration

export external markup source function 
   rtf scan value string source data
      

Argument definitions

data
any OmniMark source


Purpose

The rtf markup parser function parses RTF markup andgenerates a stream of markup events (that is, a markup source) that can be processed using do markup-parse.

The RTF Parser is invoked in a manner similar to OmniMark's built-in SGML and XML parsers:

  import "omrtf.xmd" unprefixed
  
  process
     do markup-parse rtf scan file #args[1]
        output "%c"
     done
  
  element #implied
     output "%c"
          

The scan argument is to provide input to the parser. It can be any OmniMark source.

The omrtf.xmd library defines the rtf markup parser function and the information that can be passed to it on invocation. The RTF parser invokes element and other OmniMark markup rules in the same manner as OmniMark's built-in parsers.

The following markup rules can be fired by the rtf parser:

Within an element rule the following items are avaialble:

    Related Topics
 
Other Library Functions
 
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACY LIBRARIES ] [ ERRORS ]

OmniMark 9.1.0 Documentation Generated: September 2, 2010 at 1:38:10 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.