ローマ字定義→レジストリ用テキスト変換スクリプト、ようやくできたー……かも。

 ここまで来るとW-ZERO3用というよりも、最近のMS-IME汎用というほうが正確そうな気も……(IME97などでも、一部を書き換えれば使いまわせるようです)。


 ええと……次のように変換するものを作ってみました。
 ※元ファイルは、始めに sort コマンドで昇順に並べ替えておく必要があります。

ca か
tcha っちゃ

REGEDIT4


[HKEY_CURRENT_USER\Software\Microsoft\IMEJP\3.1\RomaDef\MS-IME]
"table"=hex:\
63,61,3D,82,A9,00,\
74,63,68,61,3D,82,C1,82,BF,82,E1,00,\
00

 【注意: hex: と 63, の間を \ で区切っていますが、これでよいのかどうかはまだ未検証です……これは今日の夜に試す予定です。検証済み、これで大丈夫です。】


 実行するときのコマンドは次のとおり。

C:\> jgawk -f tikan.awk romakana.txt > romakana.reg 

 romakana.txt は、上枠通り「英字綴り→タブ文字→かな文字→改行」の繰り返しで定義します。
 romakana.reg には、下枠通りのテキストが出力されます。
 tikan.awk は、下に貼っています(省略しています……ええと、処理方法を見ても笑わないでくださいorz)。


 途中に if 文が大量に入っていますが、これはもちろんコピペして作ったわけではなく(コピベでもミスる可能性があるため)、OpenOffice.org Calc の =CONCATENATE() 関数を利用して生成しました。

  • A列は0〜255の連続数(これはドラッグで作成)。
  • B列は =DEC2HEX(A1;2) などとして16進数にしたもの(これもドラッグで作成)。
  • C〜D列は空にしてタブ文字二個。
  • E列は =CONCATENATE(F$2;B1;G$2;B1;H$2) などとして式を生成。
  • F2には固定部分「if( _SjisCharaSplit == "\x」を。
  • G2には固定部分「" ) printf "」を。
  • H2には固定部分「,";」を。

……と、こんな感じ。


 空行スキップなどの高度な(^^;)処理は導入していませんので、行をあけることなく記述する必要があります。
 一方では、各行共に行頭から2つしかフィールドを見ていませんので、

ca か 【か】行の一つ、なぜ「Ca」なのかは不明。
tcha っちゃ そもそも【TCha】って打つ人はいるのだろうか……?

などと書いても正常に動作する……はずです。


 以下はスクリプト本体。

BEGIN{
 printf("REGEDIT4\n\n" ); 
 printf("[HKEY_CURRENT_USER\\Software\\Microsoft\\IMEJP\\3.1\\RomaDef\\MS-IME]\n" ); 
 printf("\x22table\x22\x3dhex\x3a\\\n" ); 
}

{ /* MAIN */ 

 /* $1; 行内において、一つめのフィールドを読む。 */
 _AsciiChara = $1;

 /* $2; 行内において、二つめのフィールドを読む。 */
 _SjisChara = $2;

 /* 一つめのフィールド(ASCII綴り)長さについて、二バイト文字を考慮せずに数える。 */
 _AsciiLength = length(_AsciiChara);

 /* 二つめめのフィールド(SJISかな)長さについて、二バイト文字を考慮せずに数える。 */
 _SjisLength = length(_SjisChara);

 /* 一つめのフィールド(ASCII綴り)長さについて、二バイト文字を考慮せず順次出力する。 */
 for(i=1;i<=_AsciiLength;i++){
  _AsciiCharaSplit = substr(_AsciiChara, i, 1)  ;
  
  /* 文字コードに応じて、整形済みの十六進値を出力 */
  /* OOoにて、 =CONCATENATE(F$2;B1;G$2;B1;H$2) などとして式を生成。*/
  if( _AsciiCharaSplit == "\x00" ) printf "00,";
  if( _AsciiCharaSplit == "\x01" ) printf "01,";
  if( _AsciiCharaSplit == "\x02" ) printf "02,";
  if( _AsciiCharaSplit == "\x03" ) printf "03,";
  if( _AsciiCharaSplit == "\x04" ) printf "04,";
  if( _AsciiCharaSplit == "\x05" ) printf "05,";
  if( _AsciiCharaSplit == "\x06" ) printf "06,";
  if( _AsciiCharaSplit == "\x07" ) printf "07,";
  if( _AsciiCharaSplit == "\x08" ) printf "08,";
  if( _AsciiCharaSplit == "\x09" ) printf "09,";
  if( _AsciiCharaSplit == "\x0A" ) printf "0A,";
  if( _AsciiCharaSplit == "\x0B" ) printf "0B,";
  if( _AsciiCharaSplit == "\x0C" ) printf "0C,";
  if( _AsciiCharaSplit == "\x0D" ) printf "0D,";
  if( _AsciiCharaSplit == "\x0E" ) printf "0E,";
  if( _AsciiCharaSplit == "\x0F" ) printf "0F,";
  if( _AsciiCharaSplit == "\x10" ) printf "10,";
  if( _AsciiCharaSplit == "\x11" ) printf "11,";
  if( _AsciiCharaSplit == "\x12" ) printf "12,";
  if( _AsciiCharaSplit == "\x13" ) printf "13,";
  if( _AsciiCharaSplit == "\x14" ) printf "14,";
  if( _AsciiCharaSplit == "\x15" ) printf "15,";
  if( _AsciiCharaSplit == "\x16" ) printf "16,";
  if( _AsciiCharaSplit == "\x17" ) printf "17,";
  if( _AsciiCharaSplit == "\x18" ) printf "18,";
  if( _AsciiCharaSplit == "\x19" ) printf "19,";
  if( _AsciiCharaSplit == "\x1A" ) printf "1A,";
  if( _AsciiCharaSplit == "\x1B" ) printf "1B,";
  if( _AsciiCharaSplit == "\x1C" ) printf "1C,";
  if( _AsciiCharaSplit == "\x1D" ) printf "1D,";
  if( _AsciiCharaSplit == "\x1E" ) printf "1E,";
  if( _AsciiCharaSplit == "\x1F" ) printf "1F,";
  if( _AsciiCharaSplit == "\x20" ) printf "20,";
  if( _AsciiCharaSplit == "\x21" ) printf "21,";
  if( _AsciiCharaSplit == "\x22" ) printf "22,";
  if( _AsciiCharaSplit == "\x23" ) printf "23,";
  if( _AsciiCharaSplit == "\x24" ) printf "24,";
  if( _AsciiCharaSplit == "\x25" ) printf "25,";
  if( _AsciiCharaSplit == "\x26" ) printf "26,";
  if( _AsciiCharaSplit == "\x27" ) printf "27,";
  if( _AsciiCharaSplit == "\x28" ) printf "28,";
  if( _AsciiCharaSplit == "\x29" ) printf "29,";
  if( _AsciiCharaSplit == "\x2A" ) printf "2A,";
  if( _AsciiCharaSplit == "\x2B" ) printf "2B,";
  if( _AsciiCharaSplit == "\x2C" ) printf "2C,";
  if( _AsciiCharaSplit == "\x2D" ) printf "2D,";
  if( _AsciiCharaSplit == "\x2E" ) printf "2E,";
  if( _AsciiCharaSplit == "\x2F" ) printf "2F,";
  if( _AsciiCharaSplit == "\x30" ) printf "30,";
  if( _AsciiCharaSplit == "\x31" ) printf "31,";
  if( _AsciiCharaSplit == "\x32" ) printf "32,";
  if( _AsciiCharaSplit == "\x33" ) printf "33,";
  if( _AsciiCharaSplit == "\x34" ) printf "34,";
  if( _AsciiCharaSplit == "\x35" ) printf "35,";
  if( _AsciiCharaSplit == "\x36" ) printf "36,";
  if( _AsciiCharaSplit == "\x37" ) printf "37,";
  if( _AsciiCharaSplit == "\x38" ) printf "38,";
  if( _AsciiCharaSplit == "\x39" ) printf "39,";
  if( _AsciiCharaSplit == "\x3A" ) printf "3A,";
  if( _AsciiCharaSplit == "\x3B" ) printf "3B,";
  if( _AsciiCharaSplit == "\x3C" ) printf "3C,";
  if( _AsciiCharaSplit == "\x3D" ) printf "3D,";
  if( _AsciiCharaSplit == "\x3E" ) printf "3E,";
  if( _AsciiCharaSplit == "\x3F" ) printf "3F,";
  if( _AsciiCharaSplit == "\x40" ) printf "40,";
  if( _AsciiCharaSplit == "\x41" ) printf "41,";
  if( _AsciiCharaSplit == "\x42" ) printf "42,";
  if( _AsciiCharaSplit == "\x43" ) printf "43,";
  if( _AsciiCharaSplit == "\x44" ) printf "44,";
  if( _AsciiCharaSplit == "\x45" ) printf "45,";
  if( _AsciiCharaSplit == "\x46" ) printf "46,";
  if( _AsciiCharaSplit == "\x47" ) printf "47,";
  if( _AsciiCharaSplit == "\x48" ) printf "48,";
  if( _AsciiCharaSplit == "\x49" ) printf "49,";
  if( _AsciiCharaSplit == "\x4A" ) printf "4A,";
  if( _AsciiCharaSplit == "\x4B" ) printf "4B,";
  if( _AsciiCharaSplit == "\x4C" ) printf "4C,";
  if( _AsciiCharaSplit == "\x4D" ) printf "4D,";
  if( _AsciiCharaSplit == "\x4E" ) printf "4E,";
  if( _AsciiCharaSplit == "\x4F" ) printf "4F,";
  if( _AsciiCharaSplit == "\x50" ) printf "50,";
  if( _AsciiCharaSplit == "\x51" ) printf "51,";
  if( _AsciiCharaSplit == "\x52" ) printf "52,";
  if( _AsciiCharaSplit == "\x53" ) printf "53,";
  if( _AsciiCharaSplit == "\x54" ) printf "54,";
  if( _AsciiCharaSplit == "\x55" ) printf "55,";
  if( _AsciiCharaSplit == "\x56" ) printf "56,";
  if( _AsciiCharaSplit == "\x57" ) printf "57,";
  if( _AsciiCharaSplit == "\x58" ) printf "58,";
  if( _AsciiCharaSplit == "\x59" ) printf "59,";
  if( _AsciiCharaSplit == "\x5A" ) printf "5A,";
  if( _AsciiCharaSplit == "\x5B" ) printf "5B,";
  if( _AsciiCharaSplit == "\x5C" ) printf "5C,";
  if( _AsciiCharaSplit == "\x5D" ) printf "5D,";
  if( _AsciiCharaSplit == "\x5E" ) printf "5E,";
  if( _AsciiCharaSplit == "\x5F" ) printf "5F,";
  if( _AsciiCharaSplit == "\x60" ) printf "60,";
  if( _AsciiCharaSplit == "\x61" ) printf "61,";
  if( _AsciiCharaSplit == "\x62" ) printf "62,";
  if( _AsciiCharaSplit == "\x63" ) printf "63,";
  if( _AsciiCharaSplit == "\x64" ) printf "64,";
  if( _AsciiCharaSplit == "\x65" ) printf "65,";
  if( _AsciiCharaSplit == "\x66" ) printf "66,";
  if( _AsciiCharaSplit == "\x67" ) printf "67,";
  if( _AsciiCharaSplit == "\x68" ) printf "68,";
  if( _AsciiCharaSplit == "\x69" ) printf "69,";
  if( _AsciiCharaSplit == "\x6A" ) printf "6A,";
  if( _AsciiCharaSplit == "\x6B" ) printf "6B,";
  if( _AsciiCharaSplit == "\x6C" ) printf "6C,";
  if( _AsciiCharaSplit == "\x6D" ) printf "6D,";
  if( _AsciiCharaSplit == "\x6E" ) printf "6E,";
  if( _AsciiCharaSplit == "\x6F" ) printf "6F,";
  if( _AsciiCharaSplit == "\x70" ) printf "70,";
  if( _AsciiCharaSplit == "\x71" ) printf "71,";
  if( _AsciiCharaSplit == "\x72" ) printf "72,";
  if( _AsciiCharaSplit == "\x73" ) printf "73,";
  if( _AsciiCharaSplit == "\x74" ) printf "74,";
  if( _AsciiCharaSplit == "\x75" ) printf "75,";
  if( _AsciiCharaSplit == "\x76" ) printf "76,";
  if( _AsciiCharaSplit == "\x77" ) printf "77,";
  if( _AsciiCharaSplit == "\x78" ) printf "78,";
  if( _AsciiCharaSplit == "\x79" ) printf "79,";
  if( _AsciiCharaSplit == "\x7A" ) printf "7A,";
  if( _AsciiCharaSplit == "\x7B" ) printf "7B,";
  if( _AsciiCharaSplit == "\x7C" ) printf "7C,";
  if( _AsciiCharaSplit == "\x7D" ) printf "7D,";
  if( _AsciiCharaSplit == "\x7E" ) printf "7E,";
  if( _AsciiCharaSplit == "\x7F" ) printf "7F,";
  if( _AsciiCharaSplit == "\x80" ) printf "80,";
  if( _AsciiCharaSplit == "\x81" ) printf "81,";
  if( _AsciiCharaSplit == "\x82" ) printf "82,";
  if( _AsciiCharaSplit == "\x83" ) printf "83,";
  if( _AsciiCharaSplit == "\x84" ) printf "84,";
  if( _AsciiCharaSplit == "\x85" ) printf "85,";
  if( _AsciiCharaSplit == "\x86" ) printf "86,";
  if( _AsciiCharaSplit == "\x87" ) printf "87,";
  if( _AsciiCharaSplit == "\x88" ) printf "88,";
  if( _AsciiCharaSplit == "\x89" ) printf "89,";
  if( _AsciiCharaSplit == "\x8A" ) printf "8A,";
  if( _AsciiCharaSplit == "\x8B" ) printf "8B,";
  if( _AsciiCharaSplit == "\x8C" ) printf "8C,";
  if( _AsciiCharaSplit == "\x8D" ) printf "8D,";
  if( _AsciiCharaSplit == "\x8E" ) printf "8E,";
  if( _AsciiCharaSplit == "\x8F" ) printf "8F,";
  if( _AsciiCharaSplit == "\x90" ) printf "90,";
  if( _AsciiCharaSplit == "\x91" ) printf "91,";
  if( _AsciiCharaSplit == "\x92" ) printf "92,";
  if( _AsciiCharaSplit == "\x93" ) printf "93,";
  if( _AsciiCharaSplit == "\x94" ) printf "94,";
  if( _AsciiCharaSplit == "\x95" ) printf "95,";
  if( _AsciiCharaSplit == "\x96" ) printf "96,";
  if( _AsciiCharaSplit == "\x97" ) printf "97,";
  if( _AsciiCharaSplit == "\x98" ) printf "98,";
  if( _AsciiCharaSplit == "\x99" ) printf "99,";
  if( _AsciiCharaSplit == "\x9A" ) printf "9A,";
  if( _AsciiCharaSplit == "\x9B" ) printf "9B,";
  if( _AsciiCharaSplit == "\x9C" ) printf "9C,";
  if( _AsciiCharaSplit == "\x9D" ) printf "9D,";
  if( _AsciiCharaSplit == "\x9E" ) printf "9E,";
  if( _AsciiCharaSplit == "\x9F" ) printf "9F,";
  if( _AsciiCharaSplit == "\xA0" ) printf "A0,";
  if( _AsciiCharaSplit == "\xA1" ) printf "A1,";
  if( _AsciiCharaSplit == "\xA2" ) printf "A2,";
  if( _AsciiCharaSplit == "\xA3" ) printf "A3,";
  if( _AsciiCharaSplit == "\xA4" ) printf "A4,";
  if( _AsciiCharaSplit == "\xA5" ) printf "A5,";
  if( _AsciiCharaSplit == "\xA6" ) printf "A6,";
  if( _AsciiCharaSplit == "\xA7" ) printf "A7,";
  if( _AsciiCharaSplit == "\xA8" ) printf "A8,";
  if( _AsciiCharaSplit == "\xA9" ) printf "A9,";
  if( _AsciiCharaSplit == "\xAA" ) printf "AA,";
  if( _AsciiCharaSplit == "\xAB" ) printf "AB,";
  if( _AsciiCharaSplit == "\xAC" ) printf "AC,";
  if( _AsciiCharaSplit == "\xAD" ) printf "AD,";
  if( _AsciiCharaSplit == "\xAE" ) printf "AE,";
  if( _AsciiCharaSplit == "\xAF" ) printf "AF,";
  if( _AsciiCharaSplit == "\xB0" ) printf "B0,";
  if( _AsciiCharaSplit == "\xB1" ) printf "B1,";
  if( _AsciiCharaSplit == "\xB2" ) printf "B2,";
  if( _AsciiCharaSplit == "\xB3" ) printf "B3,";
  if( _AsciiCharaSplit == "\xB4" ) printf "B4,";
  if( _AsciiCharaSplit == "\xB5" ) printf "B5,";
  if( _AsciiCharaSplit == "\xB6" ) printf "B6,";
  if( _AsciiCharaSplit == "\xB7" ) printf "B7,";
  if( _AsciiCharaSplit == "\xB8" ) printf "B8,";
  if( _AsciiCharaSplit == "\xB9" ) printf "B9,";
  if( _AsciiCharaSplit == "\xBA" ) printf "BA,";
  if( _AsciiCharaSplit == "\xBB" ) printf "BB,";
  if( _AsciiCharaSplit == "\xBC" ) printf "BC,";
  if( _AsciiCharaSplit == "\xBD" ) printf "BD,";
  if( _AsciiCharaSplit == "\xBE" ) printf "BE,";
  if( _AsciiCharaSplit == "\xBF" ) printf "BF,";
  if( _AsciiCharaSplit == "\xC0" ) printf "C0,";
  if( _AsciiCharaSplit == "\xC1" ) printf "C1,";
  if( _AsciiCharaSplit == "\xC2" ) printf "C2,";
  if( _AsciiCharaSplit == "\xC3" ) printf "C3,";
  if( _AsciiCharaSplit == "\xC4" ) printf "C4,";
  if( _AsciiCharaSplit == "\xC5" ) printf "C5,";
  if( _AsciiCharaSplit == "\xC6" ) printf "C6,";
  if( _AsciiCharaSplit == "\xC7" ) printf "C7,";
  if( _AsciiCharaSplit == "\xC8" ) printf "C8,";
  if( _AsciiCharaSplit == "\xC9" ) printf "C9,";
  if( _AsciiCharaSplit == "\xCA" ) printf "CA,";
  if( _AsciiCharaSplit == "\xCB" ) printf "CB,";
  if( _AsciiCharaSplit == "\xCC" ) printf "CC,";
  if( _AsciiCharaSplit == "\xCD" ) printf "CD,";
  if( _AsciiCharaSplit == "\xCE" ) printf "CE,";
  if( _AsciiCharaSplit == "\xCF" ) printf "CF,";
  if( _AsciiCharaSplit == "\xD0" ) printf "D0,";
  if( _AsciiCharaSplit == "\xD1" ) printf "D1,";
  if( _AsciiCharaSplit == "\xD2" ) printf "D2,";
  if( _AsciiCharaSplit == "\xD3" ) printf "D3,";
  if( _AsciiCharaSplit == "\xD4" ) printf "D4,";
  if( _AsciiCharaSplit == "\xD5" ) printf "D5,";
  if( _AsciiCharaSplit == "\xD6" ) printf "D6,";
  if( _AsciiCharaSplit == "\xD7" ) printf "D7,";
  if( _AsciiCharaSplit == "\xD8" ) printf "D8,";
  if( _AsciiCharaSplit == "\xD9" ) printf "D9,";
  if( _AsciiCharaSplit == "\xDA" ) printf "DA,";
  if( _AsciiCharaSplit == "\xDB" ) printf "DB,";
  if( _AsciiCharaSplit == "\xDC" ) printf "DC,";
  if( _AsciiCharaSplit == "\xDD" ) printf "DD,";
  if( _AsciiCharaSplit == "\xDE" ) printf "DE,";
  if( _AsciiCharaSplit == "\xDF" ) printf "DF,";
  if( _AsciiCharaSplit == "\xE0" ) printf "E0,";
  if( _AsciiCharaSplit == "\xE1" ) printf "E1,";
  if( _AsciiCharaSplit == "\xE2" ) printf "E2,";
  if( _AsciiCharaSplit == "\xE3" ) printf "E3,";
  if( _AsciiCharaSplit == "\xE4" ) printf "E4,";
  if( _AsciiCharaSplit == "\xE5" ) printf "E5,";
  if( _AsciiCharaSplit == "\xE6" ) printf "E6,";
  if( _AsciiCharaSplit == "\xE7" ) printf "E7,";
  if( _AsciiCharaSplit == "\xE8" ) printf "E8,";
  if( _AsciiCharaSplit == "\xE9" ) printf "E9,";
  if( _AsciiCharaSplit == "\xEA" ) printf "EA,";
  if( _AsciiCharaSplit == "\xEB" ) printf "EB,";
  if( _AsciiCharaSplit == "\xEC" ) printf "EC,";
  if( _AsciiCharaSplit == "\xED" ) printf "ED,";
  if( _AsciiCharaSplit == "\xEE" ) printf "EE,";
  if( _AsciiCharaSplit == "\xEF" ) printf "EF,";
  if( _AsciiCharaSplit == "\xF0" ) printf "F0,";
  if( _AsciiCharaSplit == "\xF1" ) printf "F1,";
  if( _AsciiCharaSplit == "\xF2" ) printf "F2,";
  if( _AsciiCharaSplit == "\xF3" ) printf "F3,";
  if( _AsciiCharaSplit == "\xF4" ) printf "F4,";
  if( _AsciiCharaSplit == "\xF5" ) printf "F5,";
  if( _AsciiCharaSplit == "\xF6" ) printf "F6,";
  if( _AsciiCharaSplit == "\xF7" ) printf "F7,";
  if( _AsciiCharaSplit == "\xF8" ) printf "F8,";
  if( _AsciiCharaSplit == "\xF9" ) printf "F9,";
  if( _AsciiCharaSplit == "\xFA" ) printf "FA,";
  if( _AsciiCharaSplit == "\xFB" ) printf "FB,";
  if( _AsciiCharaSplit == "\xFC" ) printf "FC,";
  if( _AsciiCharaSplit == "\xFD" ) printf "FD,";
  if( _AsciiCharaSplit == "\xFE" ) printf "FE,";
  if( _AsciiCharaSplit == "\xFF" ) printf "FF,";
 }

 /* 【=】 を出力。*/
 printf "3D,";

 /* 二つめめのフィールド(SJISかな)長さについて、二バイト文字を考慮せず順次出力する。 */
 for(i=1;i<=_SjisLength;i++){
  _SjisCharaSplit = substr(_SjisChara, i, 1) ;

  /* 文字コードに応じて、整形済みの十六進値を出力 */
  /* OOoにて、 =CONCATENATE(F$2;B1;G$2;B1;H$2) などとして式を生成。*/
  if( _SjisCharaSplit == "\x00" ) printf "00,";
  if( _SjisCharaSplit == "\x01" ) printf "01,";
  if( _SjisCharaSplit == "\x02" ) printf "02,";
  if( _SjisCharaSplit == "\x03" ) printf "03,";
  if( _SjisCharaSplit == "\x04" ) printf "04,";
  if( _SjisCharaSplit == "\x05" ) printf "05,";
  if( _SjisCharaSplit == "\x06" ) printf "06,";
  if( _SjisCharaSplit == "\x07" ) printf "07,";
  if( _SjisCharaSplit == "\x08" ) printf "08,";
  if( _SjisCharaSplit == "\x09" ) printf "09,";
  if( _SjisCharaSplit == "\x0A" ) printf "0A,";
  if( _SjisCharaSplit == "\x0B" ) printf "0B,";
  if( _SjisCharaSplit == "\x0C" ) printf "0C,";
  if( _SjisCharaSplit == "\x0D" ) printf "0D,";
  if( _SjisCharaSplit == "\x0E" ) printf "0E,";
  if( _SjisCharaSplit == "\x0F" ) printf "0F,";
  if( _SjisCharaSplit == "\x10" ) printf "10,";
  if( _SjisCharaSplit == "\x11" ) printf "11,";
  if( _SjisCharaSplit == "\x12" ) printf "12,";
  if( _SjisCharaSplit == "\x13" ) printf "13,";
  if( _SjisCharaSplit == "\x14" ) printf "14,";
  if( _SjisCharaSplit == "\x15" ) printf "15,";
  if( _SjisCharaSplit == "\x16" ) printf "16,";
  if( _SjisCharaSplit == "\x17" ) printf "17,";
  if( _SjisCharaSplit == "\x18" ) printf "18,";
  if( _SjisCharaSplit == "\x19" ) printf "19,";
  if( _SjisCharaSplit == "\x1A" ) printf "1A,";
  if( _SjisCharaSplit == "\x1B" ) printf "1B,";
  if( _SjisCharaSplit == "\x1C" ) printf "1C,";
  if( _SjisCharaSplit == "\x1D" ) printf "1D,";
  if( _SjisCharaSplit == "\x1E" ) printf "1E,";
  if( _SjisCharaSplit == "\x1F" ) printf "1F,";
  if( _SjisCharaSplit == "\x20" ) printf "20,";
  if( _SjisCharaSplit == "\x21" ) printf "21,";
  if( _SjisCharaSplit == "\x22" ) printf "22,";
  if( _SjisCharaSplit == "\x23" ) printf "23,";
  if( _SjisCharaSplit == "\x24" ) printf "24,";
  if( _SjisCharaSplit == "\x25" ) printf "25,";
  if( _SjisCharaSplit == "\x26" ) printf "26,";
  if( _SjisCharaSplit == "\x27" ) printf "27,";
  if( _SjisCharaSplit == "\x28" ) printf "28,";
  if( _SjisCharaSplit == "\x29" ) printf "29,";
  if( _SjisCharaSplit == "\x2A" ) printf "2A,";
  if( _SjisCharaSplit == "\x2B" ) printf "2B,";
  if( _SjisCharaSplit == "\x2C" ) printf "2C,";
  if( _SjisCharaSplit == "\x2D" ) printf "2D,";
  if( _SjisCharaSplit == "\x2E" ) printf "2E,";
  if( _SjisCharaSplit == "\x2F" ) printf "2F,";
  if( _SjisCharaSplit == "\x30" ) printf "30,";
  if( _SjisCharaSplit == "\x31" ) printf "31,";
  if( _SjisCharaSplit == "\x32" ) printf "32,";
  if( _SjisCharaSplit == "\x33" ) printf "33,";
  if( _SjisCharaSplit == "\x34" ) printf "34,";
  if( _SjisCharaSplit == "\x35" ) printf "35,";
  if( _SjisCharaSplit == "\x36" ) printf "36,";
  if( _SjisCharaSplit == "\x37" ) printf "37,";
  if( _SjisCharaSplit == "\x38" ) printf "38,";
  if( _SjisCharaSplit == "\x39" ) printf "39,";
  if( _SjisCharaSplit == "\x3A" ) printf "3A,";
  if( _SjisCharaSplit == "\x3B" ) printf "3B,";
  if( _SjisCharaSplit == "\x3C" ) printf "3C,";
  if( _SjisCharaSplit == "\x3D" ) printf "3D,";
  if( _SjisCharaSplit == "\x3E" ) printf "3E,";
  if( _SjisCharaSplit == "\x3F" ) printf "3F,";
  if( _SjisCharaSplit == "\x40" ) printf "40,";
  if( _SjisCharaSplit == "\x41" ) printf "41,";
  if( _SjisCharaSplit == "\x42" ) printf "42,";
  if( _SjisCharaSplit == "\x43" ) printf "43,";
  if( _SjisCharaSplit == "\x44" ) printf "44,";
  if( _SjisCharaSplit == "\x45" ) printf "45,";
  if( _SjisCharaSplit == "\x46" ) printf "46,";
  if( _SjisCharaSplit == "\x47" ) printf "47,";
  if( _SjisCharaSplit == "\x48" ) printf "48,";
  if( _SjisCharaSplit == "\x49" ) printf "49,";
  if( _SjisCharaSplit == "\x4A" ) printf "4A,";
  if( _SjisCharaSplit == "\x4B" ) printf "4B,";
  if( _SjisCharaSplit == "\x4C" ) printf "4C,";
  if( _SjisCharaSplit == "\x4D" ) printf "4D,";
  if( _SjisCharaSplit == "\x4E" ) printf "4E,";
  if( _SjisCharaSplit == "\x4F" ) printf "4F,";
  if( _SjisCharaSplit == "\x50" ) printf "50,";
  if( _SjisCharaSplit == "\x51" ) printf "51,";
  if( _SjisCharaSplit == "\x52" ) printf "52,";
  if( _SjisCharaSplit == "\x53" ) printf "53,";
  if( _SjisCharaSplit == "\x54" ) printf "54,";
  if( _SjisCharaSplit == "\x55" ) printf "55,";
  if( _SjisCharaSplit == "\x56" ) printf "56,";
  if( _SjisCharaSplit == "\x57" ) printf "57,";
  if( _SjisCharaSplit == "\x58" ) printf "58,";
  if( _SjisCharaSplit == "\x59" ) printf "59,";
  if( _SjisCharaSplit == "\x5A" ) printf "5A,";
  if( _SjisCharaSplit == "\x5B" ) printf "5B,";
  if( _SjisCharaSplit == "\x5C" ) printf "5C,";
  if( _SjisCharaSplit == "\x5D" ) printf "5D,";
  if( _SjisCharaSplit == "\x5E" ) printf "5E,";
  if( _SjisCharaSplit == "\x5F" ) printf "5F,";
  if( _SjisCharaSplit == "\x60" ) printf "60,";
  if( _SjisCharaSplit == "\x61" ) printf "61,";
  if( _SjisCharaSplit == "\x62" ) printf "62,";
  if( _SjisCharaSplit == "\x63" ) printf "63,";
  if( _SjisCharaSplit == "\x64" ) printf "64,";
  if( _SjisCharaSplit == "\x65" ) printf "65,";
  if( _SjisCharaSplit == "\x66" ) printf "66,";
  if( _SjisCharaSplit == "\x67" ) printf "67,";
  if( _SjisCharaSplit == "\x68" ) printf "68,";
  if( _SjisCharaSplit == "\x69" ) printf "69,";
  if( _SjisCharaSplit == "\x6A" ) printf "6A,";
  if( _SjisCharaSplit == "\x6B" ) printf "6B,";
  if( _SjisCharaSplit == "\x6C" ) printf "6C,";
  if( _SjisCharaSplit == "\x6D" ) printf "6D,";
  if( _SjisCharaSplit == "\x6E" ) printf "6E,";
  if( _SjisCharaSplit == "\x6F" ) printf "6F,";
  if( _SjisCharaSplit == "\x70" ) printf "70,";
  if( _SjisCharaSplit == "\x71" ) printf "71,";
  if( _SjisCharaSplit == "\x72" ) printf "72,";
  if( _SjisCharaSplit == "\x73" ) printf "73,";
  if( _SjisCharaSplit == "\x74" ) printf "74,";
  if( _SjisCharaSplit == "\x75" ) printf "75,";
  if( _SjisCharaSplit == "\x76" ) printf "76,";
  if( _SjisCharaSplit == "\x77" ) printf "77,";
  if( _SjisCharaSplit == "\x78" ) printf "78,";
  if( _SjisCharaSplit == "\x79" ) printf "79,";
  if( _SjisCharaSplit == "\x7A" ) printf "7A,";
  if( _SjisCharaSplit == "\x7B" ) printf "7B,";
  if( _SjisCharaSplit == "\x7C" ) printf "7C,";
  if( _SjisCharaSplit == "\x7D" ) printf "7D,";
  if( _SjisCharaSplit == "\x7E" ) printf "7E,";
  if( _SjisCharaSplit == "\x7F" ) printf "7F,";
  if( _SjisCharaSplit == "\x80" ) printf "80,";
  if( _SjisCharaSplit == "\x81" ) printf "81,";
  if( _SjisCharaSplit == "\x82" ) printf "82,";
  if( _SjisCharaSplit == "\x83" ) printf "83,";
  if( _SjisCharaSplit == "\x84" ) printf "84,";
  if( _SjisCharaSplit == "\x85" ) printf "85,";
  if( _SjisCharaSplit == "\x86" ) printf "86,";
  if( _SjisCharaSplit == "\x87" ) printf "87,";
  if( _SjisCharaSplit == "\x88" ) printf "88,";
  if( _SjisCharaSplit == "\x89" ) printf "89,";
  if( _SjisCharaSplit == "\x8A" ) printf "8A,";
  if( _SjisCharaSplit == "\x8B" ) printf "8B,";
  if( _SjisCharaSplit == "\x8C" ) printf "8C,";
  if( _SjisCharaSplit == "\x8D" ) printf "8D,";
  if( _SjisCharaSplit == "\x8E" ) printf "8E,";
  if( _SjisCharaSplit == "\x8F" ) printf "8F,";
  if( _SjisCharaSplit == "\x90" ) printf "90,";
  if( _SjisCharaSplit == "\x91" ) printf "91,";
  if( _SjisCharaSplit == "\x92" ) printf "92,";
  if( _SjisCharaSplit == "\x93" ) printf "93,";
  if( _SjisCharaSplit == "\x94" ) printf "94,";
  if( _SjisCharaSplit == "\x95" ) printf "95,";
  if( _SjisCharaSplit == "\x96" ) printf "96,";
  if( _SjisCharaSplit == "\x97" ) printf "97,";
  if( _SjisCharaSplit == "\x98" ) printf "98,";
  if( _SjisCharaSplit == "\x99" ) printf "99,";
  if( _SjisCharaSplit == "\x9A" ) printf "9A,";
  if( _SjisCharaSplit == "\x9B" ) printf "9B,";
  if( _SjisCharaSplit == "\x9C" ) printf "9C,";
  if( _SjisCharaSplit == "\x9D" ) printf "9D,";
  if( _SjisCharaSplit == "\x9E" ) printf "9E,";
  if( _SjisCharaSplit == "\x9F" ) printf "9F,";
  if( _SjisCharaSplit == "\xA0" ) printf "A0,";
  if( _SjisCharaSplit == "\xA1" ) printf "A1,";
  if( _SjisCharaSplit == "\xA2" ) printf "A2,";
  if( _SjisCharaSplit == "\xA3" ) printf "A3,";
  if( _SjisCharaSplit == "\xA4" ) printf "A4,";
  if( _SjisCharaSplit == "\xA5" ) printf "A5,";
  if( _SjisCharaSplit == "\xA6" ) printf "A6,";
  if( _SjisCharaSplit == "\xA7" ) printf "A7,";
  if( _SjisCharaSplit == "\xA8" ) printf "A8,";
  if( _SjisCharaSplit == "\xA9" ) printf "A9,";
  if( _SjisCharaSplit == "\xAA" ) printf "AA,";
  if( _SjisCharaSplit == "\xAB" ) printf "AB,";
  if( _SjisCharaSplit == "\xAC" ) printf "AC,";
  if( _SjisCharaSplit == "\xAD" ) printf "AD,";
  if( _SjisCharaSplit == "\xAE" ) printf "AE,";
  if( _SjisCharaSplit == "\xAF" ) printf "AF,";
  if( _SjisCharaSplit == "\xB0" ) printf "B0,";
  if( _SjisCharaSplit == "\xB1" ) printf "B1,";
  if( _SjisCharaSplit == "\xB2" ) printf "B2,";
  if( _SjisCharaSplit == "\xB3" ) printf "B3,";
  if( _SjisCharaSplit == "\xB4" ) printf "B4,";
  if( _SjisCharaSplit == "\xB5" ) printf "B5,";
  if( _SjisCharaSplit == "\xB6" ) printf "B6,";
  if( _SjisCharaSplit == "\xB7" ) printf "B7,";
  if( _SjisCharaSplit == "\xB8" ) printf "B8,";
  if( _SjisCharaSplit == "\xB9" ) printf "B9,";
  if( _SjisCharaSplit == "\xBA" ) printf "BA,";
  if( _SjisCharaSplit == "\xBB" ) printf "BB,";
  if( _SjisCharaSplit == "\xBC" ) printf "BC,";
  if( _SjisCharaSplit == "\xBD" ) printf "BD,";
  if( _SjisCharaSplit == "\xBE" ) printf "BE,";
  if( _SjisCharaSplit == "\xBF" ) printf "BF,";
  if( _SjisCharaSplit == "\xC0" ) printf "C0,";
  if( _SjisCharaSplit == "\xC1" ) printf "C1,";
  if( _SjisCharaSplit == "\xC2" ) printf "C2,";
  if( _SjisCharaSplit == "\xC3" ) printf "C3,";
  if( _SjisCharaSplit == "\xC4" ) printf "C4,";
  if( _SjisCharaSplit == "\xC5" ) printf "C5,";
  if( _SjisCharaSplit == "\xC6" ) printf "C6,";
  if( _SjisCharaSplit == "\xC7" ) printf "C7,";
  if( _SjisCharaSplit == "\xC8" ) printf "C8,";
  if( _SjisCharaSplit == "\xC9" ) printf "C9,";
  if( _SjisCharaSplit == "\xCA" ) printf "CA,";
  if( _SjisCharaSplit == "\xCB" ) printf "CB,";
  if( _SjisCharaSplit == "\xCC" ) printf "CC,";
  if( _SjisCharaSplit == "\xCD" ) printf "CD,";
  if( _SjisCharaSplit == "\xCE" ) printf "CE,";
  if( _SjisCharaSplit == "\xCF" ) printf "CF,";
  if( _SjisCharaSplit == "\xD0" ) printf "D0,";
  if( _SjisCharaSplit == "\xD1" ) printf "D1,";
  if( _SjisCharaSplit == "\xD2" ) printf "D2,";
  if( _SjisCharaSplit == "\xD3" ) printf "D3,";
  if( _SjisCharaSplit == "\xD4" ) printf "D4,";
  if( _SjisCharaSplit == "\xD5" ) printf "D5,";
  if( _SjisCharaSplit == "\xD6" ) printf "D6,";
  if( _SjisCharaSplit == "\xD7" ) printf "D7,";
  if( _SjisCharaSplit == "\xD8" ) printf "D8,";
  if( _SjisCharaSplit == "\xD9" ) printf "D9,";
  if( _SjisCharaSplit == "\xDA" ) printf "DA,";
  if( _SjisCharaSplit == "\xDB" ) printf "DB,";
  if( _SjisCharaSplit == "\xDC" ) printf "DC,";
  if( _SjisCharaSplit == "\xDD" ) printf "DD,";
  if( _SjisCharaSplit == "\xDE" ) printf "DE,";
  if( _SjisCharaSplit == "\xDF" ) printf "DF,";
  if( _SjisCharaSplit == "\xE0" ) printf "E0,";
  if( _SjisCharaSplit == "\xE1" ) printf "E1,";
  if( _SjisCharaSplit == "\xE2" ) printf "E2,";
  if( _SjisCharaSplit == "\xE3" ) printf "E3,";
  if( _SjisCharaSplit == "\xE4" ) printf "E4,";
  if( _SjisCharaSplit == "\xE5" ) printf "E5,";
  if( _SjisCharaSplit == "\xE6" ) printf "E6,";
  if( _SjisCharaSplit == "\xE7" ) printf "E7,";
  if( _SjisCharaSplit == "\xE8" ) printf "E8,";
  if( _SjisCharaSplit == "\xE9" ) printf "E9,";
  if( _SjisCharaSplit == "\xEA" ) printf "EA,";
  if( _SjisCharaSplit == "\xEB" ) printf "EB,";
  if( _SjisCharaSplit == "\xEC" ) printf "EC,";
  if( _SjisCharaSplit == "\xED" ) printf "ED,";
  if( _SjisCharaSplit == "\xEE" ) printf "EE,";
  if( _SjisCharaSplit == "\xEF" ) printf "EF,";
  if( _SjisCharaSplit == "\xF0" ) printf "F0,";
  if( _SjisCharaSplit == "\xF1" ) printf "F1,";
  if( _SjisCharaSplit == "\xF2" ) printf "F2,";
  if( _SjisCharaSplit == "\xF3" ) printf "F3,";
  if( _SjisCharaSplit == "\xF4" ) printf "F4,";
  if( _SjisCharaSplit == "\xF5" ) printf "F5,";
  if( _SjisCharaSplit == "\xF6" ) printf "F6,";
  if( _SjisCharaSplit == "\xF7" ) printf "F7,";
  if( _SjisCharaSplit == "\xF8" ) printf "F8,";
  if( _SjisCharaSplit == "\xF9" ) printf "F9,";
  if( _SjisCharaSplit == "\xFA" ) printf "FA,";
  if( _SjisCharaSplit == "\xFB" ) printf "FB,";
  if( _SjisCharaSplit == "\xFC" ) printf "FC,";
  if( _SjisCharaSplit == "\xFD" ) printf "FD,";
  if( _SjisCharaSplit == "\xFE" ) printf "FE,";
  if( _SjisCharaSplit == "\xFF" ) printf "FF,";
 }

  /* 【00,】【\】【\n】 を出力。 */
 printf "00,\\\n";

}

END{
  /* 【00】【\n】 を出力。 */
 printf "00\n";
}