swirl
Guide to OmniMark 8   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
    Related Concepts   Other Library Functions  
function  

rtf

 
 

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

Declaration

define external markup-parser function rtf-parse
       scan value parser-input data

Argument definitions

data
Any OmniMark source.


Purpose

The RTF Parser is invoked in a manner similar to OmniMark's built-in SGML and XML parsers, differing only in specifying "markup-parse rtf" instead of "do xml-parse" or "do sgml-parse".

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

markup-parse tells OmniMark to invoke an external markup parser, and rtf tells OmniMark which external markup parser it is.

The scan argument is used for the same purpose as with OmniMark's built-in parsers 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 Concepts
   Markup rules
 
Other Library Functions
   omrtf-version
   rtf
 
 

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

OmniMark 8.2.0 Documentation Generated: March 13, 2008 at 3:27:39 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2008.