Forums: 公開討議 (Thread #26061)

MS-Kanji のサポート and/or --help メッセージ等の修正 (2010-04-17 12:52 by yuyucho #50128)

nkf --help メッセージに -X, -x オプションに関する以下の一文があるのですが、
> X,x Assume X0201 kana in MS-Kanji, -x preserves X0201

nkf 2.1.0 は MS-Kanji を有効なエンコーディング名として扱ってくれません。
> T:\nkf>echo ハンカクカナ | nkf --ic=MS-Kanji -xs
> 保狂凝

なお、IANA の CHARACTOR SETS (http://www.iana.org/assignments/character-sets)
よれば、Shift_JIS の別名として MS_Kanji が挙げられています。

そこで、以下を提案します。

A. 取り扱いエンコーディング名の追加
1. MS-Kanji (Shift_JIS と同じ扱い)
2. MS_Kanji (Shift_JIS の同じ扱い)

B. --help メッセージ等の修正
1. MS-Kanji を MS_Kanji (または Shift_JIS) に差し替え
または
2. エンコーディング名およびエンコーディング名と紛らわしい
名前を使わない形に文言を修正
(例)
> X,x Convert X0201 katakana to X0208, -x preserves X0201

Reply to #50128×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: MS-Kanji のサポート and/or --help メッセージ等の修正 (2010-04-19 03:13 by naruse #50163)

なるほど、以下の変更を行いました。MS-Kanji は追加していません。

* MS_Kanji を Shift_JIS の alias に追加
* B.2 に沿って文言を修正
Reply to #50128

Reply to #50163×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: MS-Kanji のサポート and/or --help メッセージ等の修正 (2010-04-19 07:25 by yuyucho #50165)

対応ありがとうございました。

> MS-Kanji は追加していません。

了解です。まあ、IANA だけでなく某 M$ 社的にも `MS-Kanji' は
(HKCR\MIME\Database\Charset のレジストリキーを見た限り)
有効な Charset として扱われてなさそうですしね。
Reply to #50163

Reply to #50165×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login