diff --git a/honoka/plugins/romkan.cpp b/honoka/plugins/romkan.cpp index 839d828..ceb71f0 100644 --- a/honoka/plugins/romkan.cpp +++ b/honoka/plugins/romkan.cpp @@ -165,6 +165,12 @@ if (tableConfig.find("nnMode") != tableConfig.end()) nnMode = string2bool(tableConfig["nnMode"]); else nnMode = false; + if (tableConfig.find("nProc") != tableConfig.end()) + nProc = string2bool(tableConfig["nProc"]); + else nProc = true; + if (tableConfig.find("xtProc") != tableConfig.end()) + nProc = string2bool(tableConfig["xtProc"]); + else xtProc = true; if (tableConfig.find("AsciiModeCancel") != tableConfig.end()) asciiCancel = string2bool(tableConfig["AsciiModeCancel"]); else asciiCancel = true; @@ -276,7 +282,7 @@ // n���첻�ʳ��ϡ֤�סܻҲ��Ǥ��� // ��������ny�Ͻ����Ǥ��롣 - if (buf[0] == 'n') { + if (nProc && (buf[0] == 'n')) { String b = "aiueoy"; if (nnMode) b += "n"; bool boin = false; @@ -295,7 +301,7 @@ } // Ʊ��ʸ������ʸ��³���Ȥ���ϡ֤áסܻҲ��Ǥ��롣�첻��Ϣ�Ǥ�buf�˻ĤäƤϤ��ʤ��Ϥ��� - else if (buf[0] == buf[1]) { + else if (xtProc && (buf[0] == buf[1])) { WideString r; r += convChars[KANA_XTU]; if (mode == HROMA) convZenHan(r,0); diff --git a/honoka/plugins/romkan.h b/honoka/plugins/romkan.h index 5b53c9e..b81e9a8 100644 --- a/honoka/plugins/romkan.h +++ b/honoka/plugins/romkan.h @@ -86,6 +86,8 @@ enum inputMode {ROMA,HROMA,KROMA,ASCII,WASCII}; inputMode mode; bool nnMode; + bool nProc; + bool xtProc; bool asciiCancel; bool removeRemainder; HonokaKeyEventList key_ascii_mode,key_wascii_mode,key_toggle_hw,key_toggle_hk;