swirl
Guide to OmniMark 7   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
  Related Syntax   Related Concepts  
modifier  

text-mode

 
 

Syntax

  with text-mode (& open-modifier)*

  or

  text-mode (buffered | unbuffered)? data-source


Purpose

The default mode for OmniMark processing. Use it to process documents in a text format, as opposed to a binary structure (binary-mode).

Different operating systems have different newline sequences in text files. To make programs uniform across platforms, OmniMark automatically converts between the system-specific newline sequence and OmniMark's internal representation (a single line-feed character (ASCII 10)). Using a single character makes the sequence easier to manipulate, especially in patterns. By using the same character on all systems, OmniMark programs are made more portable.

To achieve platform uniformity, the system-specific newline sequence is translated into a single line-feed when files are read in text-mode. When writing files in this mode, the reverse translation is automatically done. This behavior can corrupt binary data, so the binary-mode modifier is provided to specify that no such translation be done.

text-mode is the default unless the deprecated newline declaration is used.

    Related Syntax
   binary-mode
   newline
   buffered, unbuffered
 
Related Concepts
   Buffering I/O
   Files: binary-mode and text-mode
 
 

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

OmniMark 7.1.2 Documentation Generated: June 28, 2005 at 5:45:55 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © Stilo Corporation, 1988-2005.