Previous Section Table of Contents Next Section Use your PC to Master Japanese and Chinese

Document Format Conversion with ScConv

Interactive or Command Line Operation
ScConv

(D- - 7) converts document files between various Japanese and Chinese document formats(7- 2). Because Smart Characters document importing and exporting conversion functions are automatic, the included separate conversion utility ScConv is not used for everyday file processes, but rather for multiple file mass conversions and other atypical uses.

You can use ScConv interactively (with menus and dialogs), or in batch mode from the DOS prompt. Use ScDisk(D- - 7) to convert document files to the standard DOS disk format(7- 1) files before you begin.

To launch ScConv, first change directory to \Sc. Type ScConv, optionally type the file names and parameters, and press Enter.

ScConv Interactive Menu

Sc Convert: About Specify Conversion (Press F1 for Help) Quit to DOS
  1. About displays the version(D- - 8) number.
  2. Specify Conversion opens the Conversion(7- 5) dialog.
  3. Press F1 for a series of short help screens.
  4. Quit to DOS leaves ScConv(D- - 7) and returns to Windows (or DOS).
The bottom status line shows the equivalent DOS command line, which could be used in a batch file.

Conversion dialog

  • Symbol Set:
  • From file:
  • From file name
  • 0- 65535
  • To file:
  • To file Name
  • 0- 65535
  • Concordance:
  • Concordance File Name
  • Another
  • From Document Format
  • To Document Format
  • To Options
  • ( )
  • Smart Characters
  • ( )
  • Smart Characters
  • ( )
  • Binary Chars
  • ( )
  • standard JIS
  • ( )
  • standard JIS
  • ( )
  • Ascii Chars
  • ( )
  • Esc, Shift, Unix JIS
  • ( )
  • sHift JIS
  • ( )
  • Wide English
  • ( )
  • Oasis
  • ( )
  • Escape JIS
  • ( )
  • Narrow English
  • ( )
  • Big 5
  • ( )
  • Unix JIS
  • #
  • Line Length
  • ( )
  • GuoBiao (.gb or .hz)
  • ( )
  • Big Five
  • ( )
  • Romaji - [ ]onlY
  • ( )
  • GuoBiao (.gb)
  • ( )
  • Pinyin ---|
  • ( )
  • GuoBiao (.hz)
  • Annotations
  • ( )
  • Vocabulary
  • ( )
  • Dictionary
  • ( )
  • Tabbed on Right
  • ( )
  • Supplemental
  • ( )
  • Keep
  • ( )
  • Discard
  • Begin Conversion
  • Quit
  • ( )
  • Next Line
  • Document Conversion dialog

    1. From and To specify the From and To file names. You can use wild cards for either. Specify both Symbol Sets.
    2. Concordance specifies the first (or only) concordance file(12- 6) to use to concord between the From and To symbol sets(D- - 7). Another specifies subsequent split concordance files.
    3. Wide or Narrow toggles the English Character Width between 2 (ENGLISH) and 1 (English) when converting To Sc.
    4. Annotations (notes & pronunciations) selects Tab, Keep Inline, Discard, or New line.
    5. Line Length sets the maximum length from 80 or so to 255.
    6. The Binary / Ascii characters radio buttons select between the two ways to write a character number(D- - 2) To the SC format. The ASCII code(D- - 1), stores character numbers as the characters code(5- 9) followed by Ascii digits. The binary code(D- - 1) stores character numbers compactly as 2 extended characters(D- - 3).
    7. Begin conversion starts conversion as specified. Quit returns to the ScConv Interactive menu(7- 4).

    Running ScConv from DOS

    To run ScConv from the DOS command line, or in a batch file, enter the following:
    1. ScConv FromFileName[=#] ToFileName[=#] [Parameters]
    You must specify a from file name, one of the From parameters(7- 7) to define the document format(7- 2) you are converting from, and one of the To parameters(7- 6) to identify the target document format(7- 2) you are converting to. You must additionally specify any concordance(D- - 2) to be performed.

    The from file name is the name of the input file, or files. ScConv accepts wild card characters (* and ?) within or for file names.

    Following the input file name with an equal sign ("=") and a number specifies a concordance From a document written in a font with it's corresponding symbol set(D- - 7) code. You will also need to specify a To concordance, and a concordance file(12- 6) using the - # parameter (below).

    The to file name is optional, and if specified, will determine the directory, name, and/or extension of the To (output) File. If you omit the directory or name, the corresponding part from the from file name will be substituted. If you omit the extension, a default extension will be applied corresponding to the To conversion. You can set the To concordance as above.

    Parameters specify how to convert the From document. They can go anywhere on the command line, and consist of a dash ("-") or a forward slash ("/") followed by a code, such as "/a" or "-a." Some codes require or allow a file name as well, such as "-1=01_02.con," (which specifies a conversion to symbol set(D- - 7) 1 using the concordance file "01_02.con"). If you enter conflicting parameters, you will get the error message You had already specified a From mode of ... In this case, any prior conflicting parameters are replaced by the last-specified parameter.

    TO Parameters

    - a conversion to Smart Characters ASCII Code(D- - 1) (.asc). - z conversion to Smart Characters Binary Code(D- - 1) (.sc). - j To Shin JIS (.jis). - je To Shin JIS with escape shifts (.jse). - js To Shift- JIS (.sjs). - ju To Unix code (JIS with the high bit set) (.euc). - c5 To Big Five(D- - 1) Chinese (.ch5). - cgb To GuoBiao(D- - 4) Chinese (.gb) - chz To GuoBiao "hz." - f note: Pronunciation and Notes parameters are valid only when translating From a Smart Characters format: - ft Write pronunciation at the end after a tab. - fk Keep the pronunciation in-line. - fn Write pronunciation on the following line (by itself). - fd Discard the pronunciation (default). Use also To SC. -# note: Specify a concordance To symbol set(D- - 7) and file name. - 0[=name] To the Smart Characters Combined(4- 9) Chinese and Japanese symbol set. - 1[=name] To JIS Japanese, or SC using a JIS font. - 15[=name] To Big Five Chinese, or SC using a Big Five font. - 16 converts to . - 12345[=name] To a user font(4- 12) (here #12345).

    FROM Parameters

    FileName=0 From Smart Characters Combined(4- 9) symbol set (default). - d From Shin JIS. - s From Escape- , Shift- , and Unix- JIS. - o From Fujitsu OASIS. - b5 From Big Five(D- - 1) Chinese. - g From GuoBiao(D- - 4) Chinese (.gb or .hz). - 7 Use 7 bits. Useful for a document format(7- 2) that is as yet unsupported by ScConv. - 8 Use all 8 bits (default).

    Parameters Affecting Both FROM and TO

    - v From SC Vocabulary To SC Dictionary Format (.jzz). - s From SC without to SC with a user font(4- 12) (.sup). Converts only the characters matched in the concordance file to the user font. Note: Roman translations assume the From file is romanized text ONLY, and contains no English. If not, manually add the notes, English, and romaji or pinyin object type codes(5- 11), then use "- r+" or "- p+". - r From Romaji To Hiragana (.jp2). - p From Pinyin To Bopomofo (.ch2).

    Miscellaneous Parameters

    - e1 Sets the English Character Width to 1 (default 2). - l Set the maximum output line length (249 default, try 80) - m use the ScConv Interactive Menu(7- 4).

    Previous Section Table of Contents Next Section

    Need more info? Go to the Customer Service Page. Questions or comments? E-mail to Apropos Customer Service

    Apropos Customer Service home page 617-648-2041
    Last Modified: March 23, 1996

    Copyright © 1996 Apropos, Inc.