RomkanTableにnProcとxtProcを追加。
1 parent bdc980d commit f02a7b5cb1ea413bb471b90a7af1aa035f9f0cde
@tamra tamra authored on 15 Jul 2005
Showing 2 changed files
View
10
honoka/plugins/romkan.cpp
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);
View
2
■■■
honoka/plugins/romkan.h
String modeName;
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;
map<String,WideString> RomkanTable;