No. 610/622 Index Prev Next
Path: titcca!icot32!nttlab!nttyrl!morisaki
From: morisaki@nttyrl.ntt.jp (Masato Morisaki)
Newsgroups: fj.kanji
Subject: TEISEI (No.2) (was, Re: File code (Re: Shift-JIS vs EUC))
Message-ID: < 15113@nttyrl.ntt.jp> 
Date: 14 Jun 90 07:27:31 GMT
References: < 15055@nttyrl.ntt.jp> 
Distribution: fj
Organization: Advanced Information Systems lab., NTT, Yokosuka, Japan
Lines: 51

としをとっていながら恥をしのんで訂正の第2段です。:-)

訂正部分:

In article < 15055@nttyrl.ntt.jp> ,
	morisaki@nttyrl.ntt.jp (Masato Morisaki) says:
>  でも、たしか、SS2R, SS3R はあたらしい、ISO 2022 の draft で入っている
>  のではなかったでしたっけ? (幸市氏助け船をだして。)

この部分ですが、機能コードのあまりを考えるとSS2R, SS3R が入る
余地はまったくありませんね。

議論をふっかける部分:

じゃあ、坂本さんからの御指摘の
	> >  EUC が ISO 2022 に準拠していない部分は、
	> >  SS2、SS3 を SS2R、SS3R の意味で使っていることです。
が違反しているのじゃないのという所ですが、ISO 2022 - 1986 に
次のような記述があります。

    **** ISO 2022-1986 より ****

8.2.2 Use of single-shift functions

Use of the single-shift functions in an 8-bit code is identical with
their use in a 7-bit code (see 6.2.2).  Only bitcombinations from columns
02 to 07 are permitted to follow SS2 or SS3.  Except for the situation
					      ^^^^^^^^^^
described in 10.3, bit combinations from columns 10 to 15 shall not
follow SS2 or SS3.    ... (Omitted) ....

10.3 Interaction of shift functions
^^^^
If 7-bit coded data employing single-shift and locking-shift
facilities are transformed into 8-bit coded form, the normal rules for
transformation may cause the bit combination following SS2 and SS3 to
have its most significant bit changed from ZERO to ONE.  To accord
with the definitions in 6.2.2 and 8.2.2, only the seven least
significant bits shall be given significance.

	***** 引用終わり ****

つまり、SS2、SS3 のあとに MSB = 1 のビット組合せが来ても例外として認め
ましょう。ただし、SS2, SS3 のあとのビット組合せで意味を持つのはあくまで
も7ビット分だけですよ という規定です。

これをよむと EUC は問題ないのでは?と議論をふっかけて訂正第2段を
おわります。

森崎
P.S. 以上の情報は後方支援部隊からいただきました。:-)
Next
Continue