Skip to content

Instantly share code, notes, and snippets.

@zonuexe
Last active January 6, 2018 14:36
Show Gist options
  • Save zonuexe/3655963 to your computer and use it in GitHub Desktop.
Save zonuexe/3655963 to your computer and use it in GitHub Desktop.
秀丸で現代仮名遣いを正字正かなに

ry2sei(假) v0.2tp(20070501)

現代仮名遣の文章を正字正かなに書換へるマクロです。 淒い文法解析をするわけではなくて、單純な置換の組合せしかしてゐません。 未完成かつ開發中ですが、 "それなり" な精度で變換します。

動作環境
秀丸(たぶんV6.0以降必須)

仕樣

變換前
現代仮名遣で記述された日本語を含むテキスト文書(秀丸で扱へるエンコード形式)
變換後
正漢字・正かなづかひに變換、及び代替表記・慣用表記の修正。
正漢字の範圍は JIS X 208 文字集合に限る

注意

  • 文章がめちゃくちゃになってしまふ可能性が高いので、 必ず バックアップを取ってください。マクロ側で元に戻すことはできません。
    (文章量にもよりますが、 Ctrl+Z で復元できることもあります)
  • お使ひの環境、及び對象のファイルに問題が發生しても作者は責任を負ひかねます。
  • 「つゐて」などいんちきなかなづかひを吐くおそれがあるので、 必ず 自分の目で確認してください。
  • ちょっとぐらゐの誤變換が赦せる方のみお使ひください。
  • 第三者に頒布する場合は 必ず 最低一度以上通讀を經ることを勸めます。

仕組

ry2sei.mac
置換機能を使って新字/略字を正字に置換するだけです。
ついでに「組み合わせ」のやうな語を「組合せ」に切詰めます。
kana.mac
語幹と活用部位を照しあはせて、現代仮名遣の活用を正かなづかひに變換します。
ソースを覗けばわかりますが、あまり合理的な手段は取ってゐません。
は行⇒わ行⇒ゐる⇒その他⇒訂正の順に處理してゐます。

問題點

  • 現行の手法では平假名表記の「いい(良い)」と「いひ(言ひ)」を峻別が困難なので放置してあります。
  • 「臭ひ(にほひ)」と「臭い(くさい)」の問題も解決してゐません。
  • 青空文庫形式など語幹と活用のあひだにルビ情報などが含まれてゐる場合は變換できません。
  • 「強ひる」は鬼門っぽいかをりがするので現行バージョンでは見送りました。
  • 平假名の名詞との相性が惡いです。
  • 「つゐて」「動ゐた」などの誤ったかなづかひになる虞れがあります(ありました)。

今後の計劃

次バージョン

  • kana.mac を精密版と高速版に分岐する(現行は精密のみ)。
  • 變換オプションを設定できるやうにする。
  • 辭書を整備する。

もっと後

  • マクロ本體と辭書ファイルを分ける。

著作權

  • ry2sei.mac / kana.mactad が作成しました。
    • 改變して構ひませんが、できれば聯絡していただけるとありがたく思ひます。特に、問題を解決できた方や修正すべき點を見付けた場合は tad まで聯絡ください。
    • ただし、まだ開發段階なのでほかの言語への單純移植はしないでください。
  • w.txt はSKK辭書から拔萃したものです。ライセンスはGPLになります。
  • 出力されたファイルの著作權は當然原作者に歸屬します。
    公開もまったく制限されませんが、變換には誤りを含む虞れがあるので自己責任でお願ひします。

謝辭

  • 活用語彙の抽出に SKK辞書 を利用しました。
  • 入力作業には skkime 及び北極、L辭書を利用してゐます。

宣傳

ry2sei(假) v0.2tp(20070501)
現代仮名遣の文章を正字正かなに書換へるマクロです。
淒い文法解析をするわけではなくて、單純な置換の組合せしかしてゐません。
未完成かつ開發中ですが、"それなり"な精度で變換します。
動作環境
 秀丸(たぶんV6.0以降必須)
仕樣
◇變換前
 現代仮名遣で記述された日本語を含むテキスト文書(秀丸で扱へるエンコード形式)
◇變換後
 正漢字・正かなづかひに變換、及び代替表記・慣用表記の修正。
 正漢字の範圍はJIS X 208文字集合に限る。
注意
◇文章がめちゃくちゃになってしまふ可能性が高いので、<必ず>バックアップを取ってください。
 マクロ側で元に戻すことはできません。
 (文章量にもよりますが、Ctrl+Zで復元できることもあります)
◇お使ひの環境、及び對象のファイルに問題が發生しても作者は責任を負ひかねます。
◇「つゐて」などいんちきなかなづかひを吐くおそれがあるので、<必ず>自分の目で確認してください。
◇ちょっとぐらゐの誤變換が赦せる方のみお使ひください。
◇第三者に頒布する場合は<必ず>最低一度以上通讀を經ることを勸めます。
仕組
◇ry2sei.mac
 置換機能を使って新字/略字を正字に置換するだけです。
 ついでに「組み合わせ」のやうな語を「組合せ」に切詰めます。
◇kana.mac
 語幹と活用部位を照しあはせて、現代仮名遣の活用を正かなづかひに變換します。
 ソースを覗けばわかりますが、あまり合理的な手段は取ってゐません。
 は行⇒わ行⇒ゐる⇒その他⇒訂正の順に處理してゐます。
問題點
◇現行の手法では平假名表記の「いい(良い)」と「いひ(言ひ)」を峻別が困難なので放置してあります。
◇「臭ひ(にほひ)」と「臭い(くさい)」の問題も解決してゐません。
◇青空文庫形式など語幹と活用のあひだにルビ情報などが含まれてゐる場合は變換できません。
◇「強ひる」は鬼門っぽいかをりがするので現行バージョンでは見送りました。
◇平假名の名詞との相性が惡いです。
◇「つゐて」「動ゐた」などの誤ったかなづかひになる虞れがあります(ありました)。
今後の計畫
◇次バージョン
・kana.macを精密版と高速版に分岐する(現行は精密のみ)。
・變換オプションを設定できるやうにする。
・辭書を整備する。
◇もっと後
・マクロ本體と辭書ファイルを分ける。
著作權
◇ry2sei.mac/kana.macはtadが作成しました。
└改變して構ひませんが、できれば聯絡していただけるとありがたく思ひます。
 特に、問題を解決できた方や修正すべき點を見付けた場合はtadまで聯絡ください。
 ただし、まだ開發段階なのでほかの言語への單純移植はしないでください。
◇w.txtはSKK辭書から拔萃したものです。ライセンスはGPLになります。
◇出力されたファイルの著作權は當然原作者に歸屬します。
 公開もまったく制限されませんが、變換には誤りを含む虞れがあるので自己責任でお願ひします。
謝辭
◇活用語彙の抽出に
  SKK辞書(http://openlab.jp/skk/wiki/wiki.cgi?page=SKK%BC%AD%BD%F1)
 を利用しました。
◇入力作業にはskkime及び北極、L辭書を利用してゐます。
宣傳
◇WX310K 正字正かな辭書(http://greengablez.net/wx310kdic/)
 ウィルコムのPHS端末WX310K/WX320Kで正字正かなの入力ができるやうになります。
 知る限りでは滿足な容量の自作辭書を使へるのはこの2端末のほかにありません(スマートフォン除く)。
◇歴史的かなづかひ for MS-IME.lzh(http://greengablez.net/kanadukahiformsime.lzh)
 MS-IMEで正字正かな入力ができるやうになるらしいです(自分では使ってゐないので詳細不明)。
 http://nippongo.hp.infoseek.co.jp/seikana/seikanadounyuu.html の補強版です。
disabledraw;
call w2h "住ま";
call w2h "棲ま";
call w2h "合";
call w2h "会";
call w2h "併";
call w2h "逢";
call w2h "遭";
call w2h "會";
call w2h "遇";
call w2h "贖";
call w2h "購";
call w2h "商";
call w2h "賈";
call w2h "論";
call w2h "糾";
call w2h "味";
call w2h "能";
call w2h "あた";
call w2h "与";
call w2h "與";
call w2h "扱";
call w2h "表";
call w2h "現";
call w2h "洗";
call w2h "抗";
call w2h "諍";
call w2h "争";
call w2h "爭";
//call w2h "い";
call w2h "言";
call w2h "云";
call w2h "謂";
call w2h "憩";
call w2h "憇";
call w2h "誘";
call w2h "労";
call w2h "厭";
call w2h "祝";
call w2h "伺";
call w2h "窺";
call w2h "覘";
call w2h "失";
call w2h "喪";
call w2h "歌";
call w2h "唄";
call w2h "謳";
call w2h "謡";
call w2h "唱";
call w2h "謠";
call w2h "謌";
call w2h "詠";
call w2h "疑";
call w2h "奪";
call w2h "うば";
call w2h "諾";
call w2h "敬";
call w2h "占";
call w2h "卜";
call w2h "潤";
call w2h "抑";
call w2h "押さ";
call w2h "終";
call w2h "追";
call w2h "負";
call w2h "逐";
call w2h "覆";
call w2h "被";
call w2h "蔽";
call w2h "蓋";
call w2h "掩";
call w2h "奄";
call w2h "補";
call w2h "行";
call w2h "行な";
call w2h "おそ";
call w2h "教";
call w2h "襲";
call w2h "思";
call w2h "想";
call w2h "念";
call w2h "変";
call w2h "代";
call w2h "交";
call w2h "替";
call w2h "買";
call w2h "換";
call w2h "飼";
call w2h "變";
call w2h "支";
call w2h "関";
call w2h "係";
call w2h "かか";
call w2h "抱";
call w2h "拘";
call w2h "關";
call w2h "匿";
call w2h "囲";
call w2h "圍";
call w2h "叶";
call w2h "敵";
call w2h "適";
call w2h "庇";
call w2h "構";
call w2h "かよ";
call w2h "通";
call w2h "考";
call w2h "かんが";
call w2h "競";
call w2h "竸";
call w2h "嫌";
call w2h "食";
call w2h "喰";
call w2h "狂";
call w2h "加";
call w2h "請";
call w2h "乞";
call w2h "こしら";
call w2h "こた";
call w2h "答";
call w2h "応";
call w2h "堪";
call w2h "應";
call w2h "恋";
call w2h "戀";
call w2h "流離";
call w2h "候";
call w2h "彷徨";
call w2h "さ迷";
call w2h "彷";
call w2h "攫";
call w2h "浚";
call w2h "掠";
call w2h "復習";
call w2h "渫";
call w2h "濬";
call w2h "慕";
call w2h "従";
call w2h "随";
call w2h "順";
call w2h "从";
call w2h "從";
call w2h "啝";
call w2h "撓";
call w2h "しま";
call w2h "終";
call w2h "了";
call w2h "蓄";
call w2h "貯";
call w2h "蔵";
call w2h "藏";
call w2h "吸";
call w2h "喫";
call w2h "救";
call w2h "掬";
call w2h "巣喰";
call w2h "済";
call w2h "抄";
call w2h "沿";
call w2h "添";
call w2h "副";
call w2h "似";
call w2h "損";
call w2h "害";
call w2h "備";
call w2h "具";
call w2h "揃";
call w2h "耐";
call w2h "携";
call w2h "攜";
call w2h "戦";
call w2h "闘";
call w2h "戰";
call w2h "鬪";
call w2h "斗";
call w2h "賜";
call w2h "給";
call w2h "躊躇";
call w2h "猶豫";
call w2h "揺蕩";
call w2h "誓";
call w2h "ちが";
call w2h "盟";
call w2h "違";
call w2h "使";
call w2h "つか";
call w2h "づか";
call w2h "とな";
call w2h "遣";
call w2h "仕";
call w2h "番";
call w2h "つかま";
call w2h "捕ま";
call w2h "掴ま";
call w2h "繕";
call w2h "償";
call w2h "つた";
call w2h "伝";
call w2h "傳";
call w2h "培";
call w2h "集";
call w2h "衒";
call w2h "問";
call w2h "訪";
call w2h "整";
call w2h "調";
call w2h "斉";
call w2h "伴";
call w2h "囚";
call w2h "捕";
call w2h "捉";
call w2h "綯";
call w2h "習";
call w2h "慣";
call w2h "倣";
call w2h "肄";
call w2h "匂";
call w2h "臭";
call w2h "賑";
call w2h "担";
call w2h "擔";
call w2h "縫";
call w2h "拭";
call w2h "願";
call w2h "希";
call w2h "労";
call w2h "犒";
call w2h "狙";
call w2h "宣";
call w2h "曰";
call w2h "呪";
call w2h "詛";
call w2h "咒";
call w2h "這";
call w2h "匍";
call w2h "払";
call w2h "拂";
call w2h "祓";
call w2h "掃";
call w2h "禳";
call w2h "控";
call w2h "拾";
call w2h "相応";
call w2h "相應";
call w2h "震";
call w2h "奮";
call w2h "振";
call w2h "揮";
call w2h "篩";
call w2h "諂";
call w2h "諛";
call w2h "舞";
call w2h "賄";
call w2h "紛";
call w2h "擬";
call w2h "纏";
call w2h "繚";
call w2h "惑";
call w2h "悗";
call w2h "迷";
call w2h "紕";
call w2h "むか";
call w2h "向";
call w2h "迎";
call w2h "対";
call w2h "對";
call w2h "舫";
call w2h "もら";
call w2h "貰";
call w2h "養";
call w2h "豢";
call w2h "雇";
call w2h "傭";
call w2h "結";
call w2h "酔";
call w2h "醉";
call w2h "装";
call w2h "粧";
call w2h "裝";
call w2h "煩";
call w2h "患";
call w2h "笑";
call w2h "嗤";
call i2w "用";
call i2w "率";
call i2w "ひき";
call e2w "す";
call e2w "据";
call e2w "餓";
call e2w "飢";
call e2w "植";
call e2wz;
call o2w;
call i2w2;
call correct;
endmacro;
w2h:
disabledraw;
replaceallfast $$1+"わい", $$1+"はひ"; //味はひ
replaceallfast $$1+"わう", $$1+"はふ", regular; //味はふ
replaceallfast $$1+"わえ", $$1+"はへ", regular; //味はへ
replaceallfast $$1+"わくば", $$1+"はくば", regular; //願はくば
replaceallfast $$1+"わし", $$1+"はし", regular; //遣はし
replaceallfast $$1+"わす", $$1+"はす", regular; //遣はす
replaceallfast $$1+"わず", $$1+"はず", regular; //與はず
replaceallfast $$1+"わせ", $$1+"はせ", regular; //震はせ
replaceallfast $$1+"わって", $$1+"はって", regular; //賑はって
replaceallfast $$1+"わな", $$1+"はな", regular; //敵はない
replaceallfast $$1+"わぬ", $$1+"はぬ", regular; //叶はぬ
replaceallfast $$1+"わら", $$1+"はら", regular; //關はら
replaceallfast $$1+"わり", $$1+"はり", regular; //賜はり
replaceallfast $$1+"わる", $$1+"はる", regular; //賜はる
replaceallfast $$1+"われ", $$1+"はれ", regular; //現はれ
replaceallfast $$1+"わろう", $$1+"はらう", regular; //交はらう
replaceallfast $$1+"いが", $$1+"ひが", regular; //行ひが
replaceallfast $$1+"いし", $$1+"ひし", regular; //戀ひし
replaceallfast $$1+"いそう", $$1+"ひさう", regular; //買ひさう
replaceallfast $$1+"いた", $$1+"ひた", regular; //食ひたい
replaceallfast $$1+"ひな", $$1+"ひな", regular; //氣違ひなの
replaceallfast $$1+"いに", $$1+"ひに", regular; //終ひに
replaceallfast $$1+"いは", $$1+"ひは", regular; //違ひは
replaceallfast $$1+"いま", $$1+"ひま", regular; //洗ひます
replaceallfast $$1+"いを", $$1+"ひを", regular; //裝ひを
replaceallfast $$1+"い候", $$1+"ひ候", regular; //
replaceallfast $$1+"い致", $$1+"ひ致", regular; //お願ひ致します
replaceallfast $$1+"うこと", $$1+"ふこと", regular;
replaceallfast $$1+"うと", $$1+"ふと", regular; //行ふと
replaceallfast $$1+"うな", $$1+"ふな", regular; //追ふな
replaceallfast $$1+"う、", $$1+"ふ、", regular; //云ふ、
replaceallfast $$1+"う。", $$1+"ふ。", regular; //
replaceallfast $$1+"え、", $$1+"へ、", regular; //給へ、
replaceallfast $$1+"え候", $$1+"へ候", regular; //
replaceallfast $$1+"え直", $$1+"へ直", regular; //
replaceallfast $$1+"えさ", $$1+"へさ", regular; //
replaceallfast $$1+"えし", $$1+"へし", regular; //
replaceallfast $$1+"えず", $$1+"へず", regular; //
replaceallfast $$1+"えた", $$1+"へた", regular; //
replaceallfast $$1+"えだ", $$1+"へだ", regular; //
replaceallfast $$1+"えて", $$1+"へて", regular; //
replaceallfast $$1+"えな", $$1+"へな", regular; //
replaceallfast $$1+"えぬ", $$1+"へぬ", regular; //
replaceallfast $$1+"えば", $$1+"へば", regular; //
replaceallfast $$1+"えよ", $$1+"へよ", regular; //唱へよ
replaceallfast $$1+"えら", $$1+"へら", regular; //支へら
replaceallfast $$1+"える", $$1+"へる", regular; //支へる
replaceallfast $$1+"おう", $$1+"はう", regular; //
replaceallfast "が"+$$1+"わ", "が"+$$1+"は", regular; //
replaceallfast "で"+$$1+"わ", "で"+$$1+"は", regular; //
replaceallfast "と"+$$1+"わ", "と"+$$1+"は", regular; //
replaceallfast "に"+$$1+"わ", "に"+$$1+"は", regular; //
replaceallfast "の"+$$1+"わ", "の"+$$1+"は", regular; //
replaceallfast "は"+$$1+"わ", "は"+$$1+"は", regular; //
replaceallfast "へ"+$$1+"わ", "へ"+$$1+"は", regular; //
replaceallfast "も"+$$1+"わ", "も"+$$1+"は", regular; //
replaceallfast "を"+$$1+"わ", "を"+$$1+"は", regular; //
replaceallfast "が"+$$1+"い", "が"+$$1+"ひ", regular; //
replaceallfast "で"+$$1+"い", "で"+$$1+"ひ", regular; //
replaceallfast "と"+$$1+"い", "と"+$$1+"ひ", regular; //
replaceallfast "に"+$$1+"い", "に"+$$1+"ひ", regular; //
replaceallfast "の"+$$1+"い", "の"+$$1+"ひ", regular; //
replaceallfast "は"+$$1+"い", "は"+$$1+"ひ", regular; //
replaceallfast "へ"+$$1+"い", "へ"+$$1+"ひ", regular; //
replaceallfast "も"+$$1+"い", "も"+$$1+"ひ", regular; //
replaceallfast "を"+$$1+"い", "を"+$$1+"ひ", regular; //
replaceallfast "が"+$$1+"う", "が"+$$1+"ふ", regular; //
replaceallfast "で"+$$1+"う", "で"+$$1+"ふ", regular; //
replaceallfast "と"+$$1+"う", "と"+$$1+"ふ", regular; //
replaceallfast "に"+$$1+"う", "に"+$$1+"ふ", regular; //
replaceallfast "の"+$$1+"う", "の"+$$1+"ふ", regular; //
replaceallfast "は"+$$1+"う", "は"+$$1+"ふ", regular; //
replaceallfast "へ"+$$1+"ふ", "は"+$$1+"ふ", regular; //
replaceallfast "も"+$$1+"う", "も"+$$1+"ふ", regular; //
replaceallfast "を"+$$1+"う", "を"+$$1+"ふ", regular; //
replaceallfast "が"+$$1+"え", "が"+$$1+"へ", regular; //
replaceallfast "で"+$$1+"え", "で"+$$1+"へ", regular; //
replaceallfast "と"+$$1+"え", "と"+$$1+"へ", regular; //
replaceallfast "に"+$$1+"え", "に"+$$1+"へ", regular; //
replaceallfast "の"+$$1+"え", "の"+$$1+"へ", regular; //
replaceallfast "は"+$$1+"え", "は"+$$1+"へ", regular; //
replaceallfast "へ"+$$1+"へ", "へ"+$$1+"へ", regular; //
replaceallfast "も"+$$1+"え", "も"+$$1+"へ", regular; //
replaceallfast "を"+$$1+"え", "を"+$$1+"へ", regular; //
return;
i2w:
replaceallfast $$1+"い", $$1+"ゐ";
return;
e2w:
replaceallfast $$1+"え", $$1+"ゑ";
return;
h2y:
replaceallfast $$1+"ひた", $$1+"いた";
replaceallfast $$1+"ひて", $$1+"いて";
replaceallfast $$1+"ひる", $$1+"いる";
replaceallfast $$1+"へた", $$1+"えた";
replaceallfast $$1+"へて", $$1+"えて";
replaceallfast $$1+"へる", $$1+"える";
return;
e2wz:
replaceallfast "座ら", "坐ら";
replaceallfast "座り", "坐り";
replaceallfast "座る", "坐る";
replaceallfast "座れ", "坐れ";
replaceallfast "座ろ", "坐ら";
replaceallfast "座った", "坐った";
replaceallfast "座って", "坐って";
return;
o2w:
replaceallfast "おらず", "をらず";
replaceallfast "おらぬ", "をらぬ";
replaceallfast "おられ", "をられ";
replaceallfast "おりまし", "をりまし";
replaceallfast "おります", "をります";
replaceallfast "ており", "てをり";
replaceallfast "ておる", "てをる";
replaceallfast "におり", "にをり";
replaceallfast "におる", "にをる";
return;
i2w2:
//*必ず*全ての活用語を變換した後に實行すること
replaceallfast "いない", "ゐない";
replaceallfast "いまし", "ゐまし";
replaceallfast "います", "ゐます";
replaceallfast "いませ", "ゐませ";
//replaceallfast "いたの", "ゐたの";
replaceallfast "いなかっ", "ゐなかっ";
replaceallfast "いられ", "ゐられ";
replaceallfast "いる。", "ゐる。";
replaceallfast "いるのか", "ゐるのか";
replaceallfast "いません", "ゐません";
replaceallfast "していた", "してゐた";
replaceallfast "していて", "してゐて";
replaceallfast "ていれば", "てゐれば";
replaceallfast "がいた", "がゐた";
replaceallfast "がいて", "がゐて";
replaceallfast "がいる", "がゐる";
replaceallfast "ていた", "てゐた";
replaceallfast "ていて", "てゐて";
replaceallfast "ている", "てゐる";
replaceallfast "でいた", "でゐた";
replaceallfast "でいて", "でゐて";
replaceallfast "でいる", "でゐる";
replaceallfast "にいた", "にゐた";
replaceallfast "にいて", "にゐて";
replaceallfast "にいる", "にゐる";
replaceallfast "のいた", "のゐた";
replaceallfast "のいて", "のゐて";
replaceallfast "のいる", "のゐる";
return;
other:
replaceallfast "ああいう", "ああいふ";
replaceallfast "あおいだ", "あふいだ";
replaceallfast "あおいで", "あふいで";
replaceallfast "あおぎ", "あふぎ";
replaceallfast "あおぐ", "あふぐ";
replaceallfast "あおげ", "あふげ";
replaceallfast "いう。", "いふ。";
replaceallfast "いう、", "いふ、";
replaceallfast "いえば", "いへば";
replaceallfast "いうか", "いふか";
replaceallfast "いうだ", "いふだ";
replaceallfast "がいう", "がいふ";
replaceallfast "という", "といふ";
replaceallfast "にいふ", "にいふ";
replaceallfast "いわな", "いはな";
replaceallfast "いわれ", "いはれ";
replaceallfast "いわゆる", "いはゆる";
replaceallfast "おこう", "おかう";
replaceallfast "かえさ", "かへさ";
replaceallfast "かえし", "かへし";
replaceallfast "かえす", "かへす";
replaceallfast "かえた", "かへた";
replaceallfast "かえて", "かへて";
replaceallfast "かえり", "かへり";
replaceallfast "かえる", "かへる";
replaceallfast "かえった", "かへった";
replaceallfast "かえって", "かへって";
replaceallfast "かわり", "かはり";
replaceallfast "かわる", "かはる";
replaceallfast "かわれ", "かはれ";
replaceallfast "かわった", "かはった";
replaceallfast "かわって", "かはって";
replaceallfast "けずった", "けづった";
replaceallfast "けずって", "けづって";
replaceallfast "けずら", "けづら";
replaceallfast "けずり", "けづり";
replaceallfast "けずる", "けづる";
replaceallfast "けずれ", "けづれ";
replaceallfast "けずろ", "けづら";
replaceallfast "でしょう", "でせう";
replaceallfast "てしまい", "てしまひ";
replaceallfast "てしまう", "てしまふ";
replaceallfast "てしまえ", "てしまへ";
replaceallfast "という", "といふ";
replaceallfast "どういう", "どういふ";
replaceallfast "とおら", "とほら";
replaceallfast "とおり", "とほり";
replaceallfast "とおる", "とほる";
replaceallfast "とおれ", "とほれ";
replaceallfast "くらい", "くらゐ";
replaceallfast "ましょう", "ませう";
replaceallfast "まわし", "まはし";
replaceallfast "まわす", "まはす";
replaceallfast "まわせ", "まはせ";
replaceallfast "久しゅう", "久しう";
replaceallfast "かえって", "かへって";
replaceallfast "かろう", "からう";
replaceallfast "だろう", "だらう";
replaceallfast "のじゃ", "のぢゃ";
replaceallfast "じゃろう", "ぢゃらう";
replaceallfast "ようだ", "やうだ";
replaceallfast "ようで", "やうで";
replaceallfast "ような", "やうな";
replaceallfast "ように", "やうに";
replaceallfast "やろう", "やらう";
replaceallfast "ひきかえ", "ひきかへ";
replaceallfast "れたまえ", "れたまへ";
replaceallfast "なおし", "なほし";
replaceallfast "なおす", "なほす";
replaceallfast "なおせ", "なほせ";
return;
correct:
replaceallfast "向ひて", "向いて";
replaceallfast "ござゐま", "ございま";
replaceallfast "あいづち", "あひづち";
replaceallfast "あわせ", "あはせ";
replaceallfast "おゐた", "おいた";
replaceallfast "つゐた", "ついた";
replaceallfast "ちがゐ", "ちがひ";
replaceallfast "てゐただこう", "ていただかう";
replaceallfast "てゐただ", "ていただ";
replaceallfast "あろう", "あらう";
replaceallfast "吸いこ", "吸ひこ";
replaceallfast "そうし", "さうし";
replaceallfast "そうす", "さうす";
replaceallfast "そうだ", "さうだ";
replaceallfast "そうで", "さうで";
replaceallfast "たまえ。", "たまへ。";
replaceallfast "ちがゐ", "ちがひ";
return;
disabledraw;
/*replaceallfast "用い", "用ゐ";*/
replaceallfast "申し訳", "申し訣";
replaceallfast "総合", "綜合";
replaceallfast "編集", "編輯";
replaceallfast "制御", "制禦";
replaceallfast "広げ", "擴げ";
replaceallfast "知恵", "智慧";
replaceallfast "智恵", "智慧";
replaceallfast "快復", "恢復";
replaceallfast "全快", "全恢";
replaceallfast "一画", "一劃";
replaceallfast "区画", "區劃";
replaceallfast "画一", "劃一";
replaceallfast "画期", "劃期";
replaceallfast "画然", "劃然";
replaceallfast "閉じ", "閉ぢ";
replaceallfast "注文", "註文";
replaceallfast "了解", "諒解";
replaceallfast "了承", "諒承";
replaceallfast "廃人", "癈人";
replaceallfast "間欠", "間歇";
replaceallfast "画期", "劃期";
replaceallfast "白亜", "白堊";
replaceallfast "湾曲", "彎曲";
replaceallfast "放棄", "抛棄";
replaceallfast "膨大", "厖大";
replaceallfast "格闘", "挌鬪";
replaceallfast "略奪", "掠奪";
replaceallfast "死体", "屍體";
replaceallfast "死骸", "屍骸";
replaceallfast "死没", "死歿";
replaceallfast "戦没", "戰歿";
replaceallfast "台風", "颱風";
replaceallfast "抵触", "觝觸";
replaceallfast "丁寧", "叮嚀";
replaceallfast "丁重", "鄭重";
replaceallfast "人参", "人蔘";
replaceallfast "舗装", "鋪裝";
replaceallfast "舗道", "鋪道";
replaceallfast "発酵", "醗酵";
replaceallfast "いずれ", "いづれ";
replaceallfast "読み込", "讀込";
replaceallfast "読み取", "讀取";
replaceallfast "書き込", "書込";
replaceallfast "書き出", "書出";
replaceallfast "書き換", "書換";
replaceallfast "切り出", "切出";
replaceallfast "切り取", "切取";
replaceallfast "切り抜", "切拔";
replaceallfast "切り拔", "切拔";
replaceallfast "切り詰", "切詰";
replaceallfast "切り替", "切替";
replaceallfast "切り換", "切換";
replaceallfast "切り落", "切落";
replaceallfast "貼り付", "貼付";
replaceallfast "抜き出", "拔出";
replaceallfast "抜き取", "拔取";
replaceallfast "吸い出", "吸出";
replaceallfast "吸い取", "吸取";
replaceallfast "吸い込", "吸込";
replaceallfast "繰り返", "繰返";
replaceallfast "組み込", "組込";
replaceallfast "組み合わ", "組合";
replaceallfast "組合わ", "組合";
replaceallfast "問い合わ", "問合";
replaceallfast "きゅうり", "きうり";
replaceallfast "すなわち", "すなはち";
replaceallfast "むずかし", "むづかし";
replaceallfast "希有", "稀有";
replaceallfast "希少", "稀少";
replaceallfast "希薄", "稀薄";
replaceallfast "希土", "稀土";
replaceallfast "亜", "亞";
replaceallfast "悪", "惡";
replaceallfast "圧", "壓";
replaceallfast "為", "爲";
replaceallfast "囲", "圍";
replaceallfast "医", "醫";
replaceallfast "壱", "壹";
replaceallfast "隠", "隱";
replaceallfast "飲", "飮";
replaceallfast "営", "營";
replaceallfast "艶", "艷";
replaceallfast "応", "應";
replaceallfast "栄", "榮";
replaceallfast "衛", "衞";
replaceallfast "駅", "驛";
replaceallfast "円", "圓";
replaceallfast "塩", "鹽";
replaceallfast "桜", "櫻";
replaceallfast "欧", "歐";
replaceallfast "殴", "毆";
replaceallfast "奥", "奧";
replaceallfast "穏", "穩";
replaceallfast "仮", "假";
replaceallfast "価", "價";
replaceallfast "画", "畫";
replaceallfast "会", "會";
replaceallfast "絵", "繪";
replaceallfast "懐", "懷";
replaceallfast "壊", "壞";
replaceallfast "届", "屆";
replaceallfast "拡", "擴";
replaceallfast "覚", "覺";
replaceallfast "学", "學";
replaceallfast "楽", "樂";
replaceallfast "岳", "嶽";
replaceallfast "関", "關";
replaceallfast "歓", "歡";
replaceallfast "観", "觀";
replaceallfast "勧", "勸";
replaceallfast "陥", "陷";
replaceallfast "顔", "顏";
replaceallfast "厳", "嚴";
replaceallfast "巌", "巖";
replaceallfast "巻", "卷";
replaceallfast "気", "氣";
replaceallfast "亀", "龜";
replaceallfast "帰", "歸";
replaceallfast "偽", "僞";
replaceallfast "戯", "戲";
replaceallfast "犠", "犧";
replaceallfast "双", "雙";
replaceallfast "旧", "舊";
replaceallfast "挙", "擧";
replaceallfast "拠", "據";
replaceallfast "峡", "峽";
replaceallfast "狭", "狹";
replaceallfast "挟", "挾";
replaceallfast "区", "區";
replaceallfast "駆", "缺";
replaceallfast "経", "經";
replaceallfast "蛍", "螢";
replaceallfast "軽", "輕";
replaceallfast "渓", "溪";
replaceallfast "恵", "惠";
replaceallfast "鶏", "鷄";
replaceallfast "径", "徑";
replaceallfast "茎", "莖";
replaceallfast "芸", "藝";
replaceallfast "継", "繼";
replaceallfast "蛍", "螢";
replaceallfast "欠", "缺";
replaceallfast "検", "檢";
replaceallfast "険", "險";
replaceallfast "剣", "劍";
replaceallfast "倹", "儉";
replaceallfast "験", "驗";
replaceallfast "権", "權";
replaceallfast "顕", "顯";
replaceallfast "県", "縣";
replaceallfast "献", "獻";
replaceallfast "広", "廣";
replaceallfast "鉱", "鑛";
replaceallfast "効", "效";
replaceallfast "亘", "亙";
replaceallfast "恒", "恆";
replaceallfast "号", "號";
replaceallfast "国", "國";
replaceallfast "砕", "碎";
replaceallfast "済", "濟";
replaceallfast "斎", "齋";
replaceallfast "冊", "册";
replaceallfast "雑", "雜";
replaceallfast "参", "參";
replaceallfast "蚕", "蠶";
replaceallfast "賛", "贊";
replaceallfast "讃", "讚";
replaceallfast "惨", "慘";
replaceallfast "糸", "絲";
replaceallfast "歯", "齒";
replaceallfast "辞", "辭";
replaceallfast "児", "兒";
replaceallfast "湿", "濕";
replaceallfast "写", "寫";
replaceallfast "真", "眞";
replaceallfast "釈", "釋";
replaceallfast "実", "實";
replaceallfast "寿", "壽";
replaceallfast "収", "收";
replaceallfast "従", "從";
replaceallfast "渋", "澁";
replaceallfast "縦", "縱";
replaceallfast "粛", "肅";
replaceallfast "処", "處";
replaceallfast "証", "證";
replaceallfast "焼", "燒";
replaceallfast "称", "稱";
replaceallfast "将", "將";
replaceallfast "奨", "奬";
replaceallfast "浄", "淨";
replaceallfast "乗", "乘";
replaceallfast "剰", "剩";
replaceallfast "譲", "讓";
replaceallfast "条", "條";
replaceallfast "縄", "繩";
replaceallfast "蝿", "蠅";
replaceallfast "嬢", "孃";
replaceallfast "譲", "讓";
replaceallfast "壌", "壤";
replaceallfast "穣", "穰";
replaceallfast "醸", "釀";
replaceallfast "畳", "疊";
replaceallfast "触", "觸";
replaceallfast "寝", "寢";
replaceallfast "真", "眞";
replaceallfast "慎", "愼";
replaceallfast "槙", "槇";
replaceallfast "尽", "盡";
replaceallfast "図", "圖";
replaceallfast "嘱", "囑";
replaceallfast "酔", "醉";
replaceallfast "粋", "粹";
replaceallfast "随", "隨";
replaceallfast "髄", "髓";
replaceallfast "穂", "穗";
replaceallfast "数", "數";
replaceallfast "舎", "舍";
replaceallfast "声", "聲";
replaceallfast "斉", "齊";
replaceallfast "静", "靜";
replaceallfast "剤", "劑";
replaceallfast "凄", "淒";
replaceallfast "婿", "壻";
replaceallfast "摂", "攝";
replaceallfast "窃", "竊";
replaceallfast "戦", "戰";
replaceallfast "残", "殘";
replaceallfast "銭", "錢";
replaceallfast "専", "專";
replaceallfast "潜", "潛";
replaceallfast "浅", "淺";
replaceallfast "籖", "籤";
replaceallfast "繊", "纖";
replaceallfast "殱", "殲";
replaceallfast "窓", "窗";
replaceallfast "総", "總";
replaceallfast "聡", "聰";
replaceallfast "争", "爭";
replaceallfast "壮", "壯";
replaceallfast "荘", "莊";
replaceallfast "双", "雙";
replaceallfast "騒", "騷";
replaceallfast "捜", "搜";
replaceallfast "挿", "插";
replaceallfast "装", "裝";
replaceallfast "薮", "藪";
replaceallfast "蔵", "藏";
replaceallfast "臓", "臟";
replaceallfast "続", "續";
replaceallfast "属", "屬";
replaceallfast "堕", "墮";
replaceallfast "体", "體";
replaceallfast "対", "對";
replaceallfast "帯", "帶";
replaceallfast "滞", "滯";
replaceallfast "沢", "澤";
replaceallfast "択", "擇";
replaceallfast "単", "單";
replaceallfast "担", "擔";
replaceallfast "胆", "膽";
replaceallfast "断", "斷";
replaceallfast "団", "團";
replaceallfast "弾", "彈";
replaceallfast "遅", "遲";
replaceallfast "昼", "晝";
replaceallfast "虫", "蟲";
replaceallfast "庁", "廳";
replaceallfast "鋳", "鑄";
replaceallfast "聴", "聽";
replaceallfast "鉄", "鐵";
replaceallfast "転", "轉";
replaceallfast "点", "點";
replaceallfast "伝", "傳";
replaceallfast "稲", "稻";
replaceallfast "当", "當";
replaceallfast "灯", "燈";
replaceallfast "盗", "盜";
replaceallfast "闘", "鬪";
replaceallfast "党", "黨";
replaceallfast "涛", "濤";
replaceallfast "独", "獨";
replaceallfast "読", "讀";
replaceallfast "悩", "惱";
replaceallfast "脳", "腦";
replaceallfast "拝", "拜";
replaceallfast "麦", "麥";
replaceallfast "廃", "廢";
replaceallfast "売", "賣";
replaceallfast "発", "發";
replaceallfast "抜", "拔";
replaceallfast "払", "拂";
replaceallfast "秘", "祕";
replaceallfast "浜", "濱";
replaceallfast "仏", "佛";
replaceallfast "並", "竝";
replaceallfast "餅", "餠";
replaceallfast "変", "變";
replaceallfast "辺", "邊";
replaceallfast "褒", "襃";
replaceallfast "没", "沒";
replaceallfast "翻", "飜";
replaceallfast "満", "滿";
replaceallfast "万", "萬";
replaceallfast "黙", "默";
replaceallfast "弥", "彌";
replaceallfast "薬", "藥";
replaceallfast "訳", "譯";
replaceallfast "与", "與";
replaceallfast "予", "豫";
replaceallfast "余", "餘";
replaceallfast "誉", "譽";
replaceallfast "様", "樣";
replaceallfast "遥", "遙";
replaceallfast "揺", "搖";
replaceallfast "謡", "謠";
replaceallfast "来", "來";
replaceallfast "覧", "覽";
replaceallfast "乱", "亂";
replaceallfast "竜", "龍";
replaceallfast "滝", "瀧";
replaceallfast "両", "兩";
replaceallfast "猟", "獵";
replaceallfast "塁", "壘";
replaceallfast "礼", "禮";
replaceallfast "齢", "令";
replaceallfast "励", "勵";
replaceallfast "霊", "靈";
replaceallfast "恋", "戀";
replaceallfast "楼", "樓";
replaceallfast "労", "勞";
replaceallfast "湾", "灣";
replaceallfast "藝閣", "芸閣";
replaceallfast "藝香", "芸香";
replaceallfast "終はり]", "終わり]"; //青空文庫形式
enabledraw;
endmacro;
//rcf:
//replaceallfast $$1, $$2;
//return;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment