| |
---|
| | |
---|
| | 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; |
---|
| | if (tableConfig.find("RemoveRemainder") != tableConfig.end()) |
---|
| |
---|
| | if (buf.length() == 2) { |
---|
| | |
---|
| | // n+母音以外は「ん」+子音である |
---|
| | // ただし、nyは除外である。 |
---|
| | if (buf[0] == 'n') { |
---|
| | if (nProc && (buf[0] == 'n')) { |
---|
| | String b = "aiueoy"; |
---|
| | if (nnMode) b += "n"; |
---|
| | bool boin = false; |
---|
| | for(unsigned int i = 0;i < b.length();i ++) { |
---|
| |
---|
| | } |
---|
| | } |
---|
| | |
---|
| | // 同じ文字が2文字続くとそれは「っ」+子音である。母音の連打が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); |
---|
| | else if (mode == KROMA) convHiraKata(r); |
---|
| |
---|
| | |