UNICODE command: Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
 
mNo edit summary
Line 1: Line 1:
<p class="note"><b>Note:</b> This is a <var class="product">[[Sirius Mods]]</var>-only command prior to Version 7.5 of <var class="product">[[Model 204]]</var>.</p>
The UNICODE command is used to manage the Unicode tables,
The UNICODE command is used to manage the Unicode tables,
which specify translations between EBCDIC and Unicode/ASCII.
which specify translations between EBCDIC and Unicode/ASCII.
Line 7: Line 9:
you have specified.
you have specified.
   
   
==Syntax==
The general form of the UNICODE command is:
The general form of the UNICODE command is:
===UNICODE command syntax===
<p class="syntax">UNICODE subcommand operands </p>
  UNICODE subcommand operands
where
where
<dl>
<dl>
<dt>subcommand
<dt>subcommand
<dd>A term that indicates which operation is being performed.
<dd>A term that indicates which operation is being performed.
''''List'''', ''''Difference'''', and ''''Display'''' are
<var>List</var>, <var>Difference</var>, and <var>Display</var> are
subcommands that only produce an information display; ''''Table'''' produces
subcommands that only produce an information display; <var>Table</var> produces
a character translation update.
a character translation update.
<dt>operands
<dt>operands
Line 23: Line 25:
The UNICODE subcommands are described below in separate sections according
The UNICODE subcommands are described below in separate sections according
to type (display or update).
to type (display or update).
Only the
Only the [[#Update forms of UNICODE|update forms]]
[[#Update forms of UNICODE|update forms]]
of UNICODE require System Administrator (or User 0) privileges.
of UNICODE require System Administrator (or User 0) privileges.
   
   
Line 39: Line 40:
For UNICODE examples and
For UNICODE examples and
more information about Sirius Unicode support, see the [[Unicode]] page.
more information about Sirius Unicode support, see the [[Unicode]] page.
==Display forms of UNICODE==
==Display forms of UNICODE==
The UNICODE subcommands that produce information displays are described below.
The UNICODE subcommands that produce information displays are described below.
Line 72: Line 74:
that differ from the base.
that differ from the base.
</dl>
</dl>
==Update forms of UNICODE==
==Update forms of UNICODE==
The updating forms of the UNICODE command begin with the
The updating forms of the UNICODE command begin with the
keyword ''''Table'''' and have the following format:
keyword ''''Table'''' and have the following format:
<pre>
<p class="code">UNICODE Table Standard subcommand
    UNICODE Table Standard subcommand
</p>
</pre>
   
   
The ''subcommand'' values are described below.
The ''subcommand'' values are described below.
Line 96: Line 98:
<dd>Replace the current translation tables with those derived from the
<dd>Replace the current translation tables with those derived from the
named codepage.
named codepage.
<dt>Trans E=h2 To U=hex4
<dt>Trans E=h2 To U=hex4
<dd>Specify one-way translation from EBCDIC point ''h2'' to
<dd>Specify one-way translation from EBCDIC point ''h2'' to
Unicode point ''hex4''.
Unicode point ''hex4''.
<dt>Trans E=h2 Invalid
<dt>Trans E=h2 Invalid
<dd>Specify that the given EBCDIC point is not translatable to Unicode.
<dd>Specify that the given EBCDIC point is not translatable to Unicode.
<dt>Trans E=h2 Base
<dt>Trans E=h2 Base
<dd>Remove any customized translation or
<dd>Remove any customized translation or
mapping specified for the given EBCDIC point,
mapping specified for the given EBCDIC point,
thus returning to the base codepage translation for the point.
thus returning to the base codepage translation for the point.
<dt>Trans U=hex4 To E=h2
<dt>Trans U=hex4 To E=h2
<dd>Specify one-way translation from Unicode point ''hex4''
<dd>Specify one-way translation from Unicode point ''hex4''
to EBCDIC point ''h2''.
to EBCDIC point ''h2''.
<dt>Trans U=hex4 Invalid
<dt>Trans U=hex4 Invalid
<dd>Specify that the given Unicode point is not translatable to EBCDIC.
<dd>Specify that the given Unicode point is not translatable to EBCDIC.
<dt>Trans U=hex4 Base
<dt>Trans U=hex4 Base
<dd>Remove any customized translation or
<dd>Remove any customized translation or
mapping specified for the given Unicode point,
mapping specified for the given Unicode point,
thus returning to the base codepage translation for the point.
thus returning to the base codepage translation for the point.
<dt>Trans All Base
<dt>Trans All Base
<dd>Remove any customized translation or mapping specified from all
<dd>Remove any customized translation or mapping specified from all
Unicode and EBCDIC points.
Unicode and EBCDIC points.
<dt>Map E=h2 Is U=hex4
<dt>M
ap E=h2 Is U=hex4
<dd>Specify mapping from EBCDIC point ''h2'' to Unicode point
<dd>Specify mapping from EBCDIC point ''h2'' to Unicode point
''hex4'', and from Unicode point ''hex4'' to EBCDIC point ''h2''.
''hex4'', and from Unicode point ''hex4'' to EBCDIC point ''h2''.
<dt>Map U=hex4 Is E=h2
<dt>Map U=hex4 Is E=h2
<dd>Same as ''''Map E=h2 Is U=hex4''''.
<dd>Same as ''''Map E=h2 Is U=hex4''''.
<dt>Rep U=hex4 'str'
<dt>Rep U=hex4 'str'
<dd>Specify replacement for Unicode point ''hex4'' by the Unicode
<dd>Specify replacement for Unicode point ''hex4'' by the Unicode
Line 128: Line 140:
<ul>
<ul>
<li>Non-ampersand EBCDIC characters (which must be translatable to Unicode)
<li>Non-ampersand EBCDIC characters (which must be translatable to Unicode)
<li>''''&amp;amp.'''' (for an ampersand)
<li><code>&amp;amp;</code> (for an ampersand)
<li>A character reference of the form &#xhhhh;
<li>A character reference of the form <code>&#x<i>hhhh</i>;</code>
</ul>
</ul>
   
   
Line 135: Line 147:
127 characters.
127 characters.
No character in the replacement string
No character in the replacement string
may be the ''''U=hex4'''' value in any Rep subcommand.
may be the <code>U=hex4</code> value in any Rep subcommand.
 
<dt>Norep U=hex4
<dt>Norep U=hex4
<dd>Specify that there is no replacement string for Unicode point ''hex4''.
<dd>Specify that there is no replacement string for Unicode point ''hex4''.
<dt>Norep All
<dt>Norep All
<dd>Specify that there is no replacement string for any Unicode point.
<dd>Specify that there is no replacement string for any Unicode point.

Revision as of 22:50, 4 March 2013

Note: This is a Sirius Mods-only command prior to Version 7.5 of Model 204.

The UNICODE command is used to manage the Unicode tables, which specify translations between EBCDIC and Unicode/ASCII. The command also lets you replace individual Unicode characters by designated character strings, and it has varied options for displaying translation table codepages and code point mappings, as well as displaying any translation customizations you have specified.

Syntax

The general form of the UNICODE command is:

UNICODE subcommand operands

where

subcommand
A term that indicates which operation is being performed. List, Difference, and Display are subcommands that only produce an information display; Table produces a character translation update.
operands
The operands specific to the operation.

The UNICODE subcommands are described below in separate sections according to type (display or update). Only the update forms of UNICODE require System Administrator (or User 0) privileges.

Subcommand and operand keywords of the UNICODE command may be entered in any combination of uppercase or lowercase letters. The term UNICODE that starts the command must be entered entirely in uppercase letters.

The command descriptions that follow use an initial capital letter to indicate a keyword, and they use all-lowercase letters to indicate a term that is substituted for a particular value in the command.

The UNICODE command is available as of Sirius Mods version 7.3. For UNICODE examples and more information about Sirius Unicode support, see the Unicode page.

Display forms of UNICODE

The UNICODE subcommands that produce information displays are described below. In the descriptions:

  • h2 is two hexadecimal digits.
  • hex4 is four hexadecimal digits, excluding FFFE, FFFF, and the surrogate areas (D800 through and including DFFF).

The display forms of the UNICODE command are:

UNICODE List Codepages
Obtains a list of all codepages.
UNICODE Difference Codepages name1 And name2 [Range E=h2 To E=h2]
Obtains a list of the differences between two codepages for the EBCDIC range specified. The default range is 00 to FF.
UNICODE Difference Xtab name1 And Codepage name2 [Range E=h2 To E=h2]
Obtains a list of the differences between a JANUS XTAB table and a codepage for the EBCDIC range specified. The default range is 00 to FF.
UNICODE Display Codepage name
Obtains, in commented form, the maps (see the 'Map' update subcommand in "Update forms of UNICODE") of the specified codepage.
UNICODE Display Table Standard
Obtains, in command form, a display of any current replacements and current maps and/or translations (see the 'Trans' update subcommands in "Update forms of UNICODE") that differ from the base.

Update forms of UNICODE

The updating forms of the UNICODE command begin with the keyword 'Table' and have the following format:

UNICODE Table Standard subcommand

The subcommand values are described below.

For the updating subcommands:

  • The user must be a System Administrator (or user 0).
  • These commands should only be invoked during Model 204 initialization, because other users running at the same time as the change may obtain inconsistent results, including the results of 'UNICODE Display' (described in the previous section).

The subcommand values of the updating form of the UNICODE command follow:

Base Codepage name
Replace the current translation tables with those derived from the named codepage.
Trans E=h2 To U=hex4
Specify one-way translation from EBCDIC point h2 to Unicode point hex4.
Trans E=h2 Invalid
Specify that the given EBCDIC point is not translatable to Unicode.
Trans E=h2 Base
Remove any customized translation or mapping specified for the given EBCDIC point, thus returning to the base codepage translation for the point.
Trans U=hex4 To E=h2
Specify one-way translation from Unicode point hex4 to EBCDIC point h2.
Trans U=hex4 Invalid
Specify that the given Unicode point is not translatable to EBCDIC.
Trans U=hex4 Base
Remove any customized translation or mapping specified for the given Unicode point, thus returning to the base codepage translation for the point.
Trans All Base
Remove any customized translation or mapping specified from all Unicode and EBCDIC points.
M ap E=h2 Is U=hex4
Specify mapping from EBCDIC point h2 to Unicode point hex4, and from Unicode point hex4 to EBCDIC point h2.
Map U=hex4 Is E=h2
Same as 'Map E=h2 Is U=hex4'.
Rep U=hex4 'str'
Specify replacement for Unicode point hex4 by the Unicode string str. str may be a series of the following:
  • Non-ampersand EBCDIC characters (which must be translatable to Unicode)
  • &amp; (for an ampersand)
  • A character reference of the form &#xhhhh;

The length of the resulting Unicode replacement string is limited to 127 characters. No character in the replacement string may be the U=hex4 value in any Rep subcommand.

Norep U=hex4
Specify that there is no replacement string for Unicode point hex4.
Norep All
Specify that there is no replacement string for any Unicode point.