Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ iso2tca(3) — NEWS-os 4.1C

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ctype(3)

tca(7)

sendmail(8)

TCA2ISO(3)  —  NEWS-OS Programmer’s Manual

名称

tca2iso, iso2tca − TCA コードと ISO 2022 コードの変換

形式

int tca2iso(code)
int code;

int iso2tca(code)
int code;

解説

TCA (Taiwan Computer Association) コードは、 0x8130 〜 0xfdfd の範囲の2バイトコードです。 ただし、第1バイトは、0x81 〜 0xfd、 第2バイトは、 0x30 〜 0x39、0x41 〜 0x5a、0x61 〜 0x7a、0x80 〜 0xfd です。

ISO 2022 では、0x2121 〜 0x7e7e の範囲の 94 x 94 個の文字を ひとつの文字セットとして、これをエスケープシーケンスで指示する コーディング方式を取ることができます。

TCA コードを次のように3つに分割して、 ISO 2022 で使用できるコードに変換します。

TCA コード文字セットISO コード
TCA-10x8130 - 0xaffd    0x000x2121 - 0x7e7e
TCA-20xb030 - 0xdefd    0x010x2121 - 0x7e7e
TCA-30xdf30 - 0xfdfd    0x020x2121 - 0x5e7e

tca2iso は、TCA コードに対して (文字セット << 16 | ISO コード) を返します。

iso2tca は、 tca2iso の逆変換です。

注意事項

NEWS-OS 4.0 では、メールコードとして、この ISO コードを使用 しています。いくつかのコマンドは TCA-1、TCA-2、TCA-3 を表す エスケープシーケンスの終端文字(final character)として、 3/0、3/1、3/15 を仮定しているので、これらの文字セットは、それぞれ ESC $ ( 0、 ESC $ ( 1、 ESC $ ( ? で指示されます

関連事項

ctype(3), tca(7), sendmail(8)

NEWS-OSRelease 4.1C

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026