Tomotaka SUWA
t-suw****@users*****
2006年 4月 25日 (火) 23:13:11 JST
Index: AquaSKK/ChangeLog diff -u AquaSKK/ChangeLog:1.20.2.25 AquaSKK/ChangeLog:1.20.2.26 --- AquaSKK/ChangeLog:1.20.2.25 Sat Apr 8 00:41:04 2006 +++ AquaSKK/ChangeLog Tue Apr 25 23:13:11 2006 @@ -1,3 +1,10 @@ +2006-04-25 Tomotaka SUWA <t.suw****@mac*****> + + * KanjiConversionMode.cpp: gOÏ·ÌÊðwK·éæ¤ÉC³B + + * WordRegisterMode.cpp: EUC Å\»Å«È¢R[hÍo^Å«È¢æ¤ + ÉbèIɧÀB[U[ÖÌtB[hobNðâ·Kv èB + 2006-04-08 Tomotaka SUWA <t.suw****@mac*****> * PreferencesController.*: ASCII ú»IvVÍ Panther ųøB Index: AquaSKK/KanjiConversionMode.cpp diff -u AquaSKK/KanjiConversionMode.cpp:1.2.2.2 AquaSKK/KanjiConversionMode.cpp:1.2.2.3 --- AquaSKK/KanjiConversionMode.cpp:1.2.2.2 Wed Mar 22 22:34:40 2006 +++ AquaSKK/KanjiConversionMode.cpp Tue Apr 25 23:13:11 2006 @@ -1,5 +1,5 @@ /* - $Id: KanjiConversionMode.cpp,v 1.2.2.2 2006/03/22 13:34:40 t-suwa Exp $ + $Id: KanjiConversionMode.cpp,v 1.2.2.3 2006/04/25 14:13:11 t-suwa Exp $ MacOS X implementation of the SKK input method. @@ -124,16 +124,20 @@ // rootðSpм¼ÉÏ·µÄ©çmèµÄI¹B // ½¾µSpм¼[h¾Á½ç½¼¼ÖÏ··éB - if (parent->isZenKataInputMode()) { - parent->fix(HiraganaInputMode::convert(root)); + CppCFString cand; + if(parent->isZenKataInputMode()) { + cand = HiraganaInputMode::convert(root); + } else { + cand = ZenKataInputMode::convert(root); } - else { - parent->fix(ZenKataInputMode::convert(root)); - } - + + // Âl«Éo^·é + sendWordToServerToRegister(root, cand); + + parent->fix(cand); parent->setEnabledKanjiMode(false); initialize(); - + return false; } else if (status == STATUS_BLACK || status == STATUS_BLACK_WITH_WINDOW) { Index: AquaSKK/WordRegisterMode.cpp diff -u AquaSKK/WordRegisterMode.cpp:1.3.2.3 AquaSKK/WordRegisterMode.cpp:1.3.2.4 --- AquaSKK/WordRegisterMode.cpp:1.3.2.3 Sun Apr 2 12:33:40 2006 +++ AquaSKK/WordRegisterMode.cpp Tue Apr 25 23:13:11 2006 @@ -1,5 +1,5 @@ /* - $Id: WordRegisterMode.cpp,v 1.3.2.3 2006/04/02 03:33:40 t-suwa Exp $ + $Id: WordRegisterMode.cpp,v 1.3.2.4 2006/04/25 14:13:11 t-suwa Exp $ MacOS X implementation of the SKK input method. @@ -62,8 +62,14 @@ if(!input_mode.handleReturn()) { fix(input_mode.getStringToFix()); - + if(buffer.length() > 0) { + // EUC ÉÏ·Å«È¢H + CFDataRef euc = CFStringCreateExternalRepresentation(NULL, buffer.getString(), kCFStringEncodingEUC_JP, 0); + if(!euc) { + return true; + } + CFRelease(euc); (dynamic_cast<RegistrationStarter*>(owner))->wordRegistrationFinished(); // Pêo^I¹B } else { (dynamic_cast<RegistrationStarter*>(owner))->wordRegistrationCanceled(); // Pêo^fB