swirl
Guide to OmniMark 7   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
      Other Library Functions  
function  

jis.reader

 
 

Library: Character encodings, JIS (OMFFJIS)
Import: omffjis.xmd
Return type: Source
Returns: 

A scannable input source for streaming data


Declaration

  export external source function reader
                    from value source input-data


Purpose

Use reader to read a value source, its argument, and return the text of that file converted from a JIS encoding to a UTF-8 encoding. That is, the provided source is in JIS, but the program sees UTF-8.

Usage Note

To use reader, you must import omffjis.xmd into your program using a statement like this:

  import "omffjis.xmd" prefixed by jis.

(Please see the import topic for more on importing.)

Example


  ; Submit the JIS-encoded file named by the first command-line
  ; argument to the program's find  rules, converting from JIS
  ; to UTF-8 prior to the  find  rules seeing the data:
  import "omffjis.xmd" prefixed by jis.
  process
     submit jis.reader from file #args [1]

        Other Library Functions
   jis.reader
   jis.writer
 
 

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

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

Copyright © Stilo Corporation, 1988-2005.