translate

OpenEye Scientific Software’s translate utility converts chemical names from one language to another.

Command Line Interface

A description of the command line interface can be obtained by executing translate with the -help option.

prompt> translate --help

will generate the following output:

translate - Chemical Name to Chemical Name Conversion
OpenEye Scientific Software
   Version: 2.1.0
   Built: <build date>
   Platform: <platform>

Help functions:
  translate --help simple      : Get a list of simple parameters
  translate --help all         : Get a complete list of parameters
  translate --help defaults    : List the defaults for all parameters
  translate --help <parameter> : Get detailed help on a parameter
  translate --help html        : Create an html help file for this program

Required Parameters

-in <filename>
The input file on the command line is assumed to be a compound name file in text format, and the optional output filename -out is treated as the output names file. If no output file is specified, translated names will be written to stdout.

Command Line Options

-from <language>
-from_language <language>

Parse the input file based on the specified language. The default is English. Either the full name or synonym can be used. -from dutch and -from nl are equivalent.

Language Option Synonyms   Language Option Synonyms
English american english us   Italian italian it
British british uk   Japanese japanese jp ja
Chinese chinese zh cn   Polish polish pl
Danish danish dk da   Portuguese portuguese pt
Dutch dutch nl   Romanian romanian ro
French french fr   Russian russian ru
German german de   Slovak slovak sk
Greek greek el   Spanish spanish es
Hungarian hungarian hu   Swedish swedish se sv
Irish irish ie ga   Welsh welsh cy
-to <language>
-to_language <language>
Generate output based on the specified language. The default is English. Either the full name or synonym can be used. -to dutch and -to nl are equivalent. Language choices are shown in the table above.
-out <filename>
Output text file for names. If not specified, names are written to stdout.
-charset <charset>
-encoding <charset>
ascii
Encode the output using ASCII.
eucjp
Encode the output using EUC-JP to represent Japanese characters. This is normally used in conjunction with the -language japanese command line option.
html
Encode the output using HTML markup to represent Greek characters, foreign characters and superscripts.
sjis
Encode the output using Shift-JIS to represent Japanese characters. This is normally used in conjunction with the -language japanese command line option.
utf8
Encode the output using UTF-8.

[default = ascii]

Table Of Contents

Previous topic

mol2nam

Next topic

Bibliography