Tomotaka SUWA
t-suw****@users*****
2007年 2月 3日 (土) 13:04:22 JST
Index: AquaSKK/AsciiConversionMode.cpp diff -u AquaSKK/AsciiConversionMode.cpp:1.9 AquaSKK/AsciiConversionMode.cpp:1.10 --- AquaSKK/AsciiConversionMode.cpp:1.9 Sat Jan 27 12:52:30 2007 +++ AquaSKK/AsciiConversionMode.cpp Sat Feb 3 13:04:21 2007 @@ -1,5 +1,5 @@ /* - $Id: AsciiConversionMode.cpp,v 1.9 2007/01/27 03:52:30 t-suwa Exp $ + $Id: AsciiConversionMode.cpp,v 1.10 2007/02/03 04:04:21 t-suwa Exp $ MacOS X implementation of the SKK input method. @@ -183,13 +183,21 @@ // ¤[hâóâIðæÊÈçfÊèB } - if(SKKConfig::AbbrevModeKey() == skkchar || SKKConfig::SetHenkanPointKey() == skkchar) { + if(SKKConfig::SetHenkanPointKey() == skkchar) { if(status == STATUS_BLACK || status == STATUS_BLACK_WITH_WINDOW) { - parent->fix(this->getStringToFix()); + parent->fix(getStringToFix()); return parent->handleInput(skkchar); } } + if(SKKConfig::AbbrevModeKey() == skkchar) { + if(status == STATUS_BLACK || status == STATUS_BLACK_WITH_WINDOW) { + parent->fix(getStringToFix()); + parent->setEnabledAsciiConversionMode(true); + return false; + } + } + if(SKKConfig::NextKouhoKey() == skkchar) { if(status == STATUS_WHITE) { if(index.length() == 0) { @@ -455,7 +463,7 @@ word_register_mode->terminate(); } - parent->fix(this->getStringToFix()); // mè·é + parent->fix(getStringToFix()); // mè·é parent->setEnabledAsciiConversionMode(false); initialize(); } Index: AquaSKK/BIM.cpp diff -u AquaSKK/BIM.cpp:1.15 AquaSKK/BIM.cpp:1.16 --- AquaSKK/BIM.cpp:1.15 Sat Jan 27 12:52:30 2007 +++ AquaSKK/BIM.cpp Sat Feb 3 13:04:21 2007 @@ -1,5 +1,5 @@ /* - $Id: BIM.cpp,v 1.15 2007/01/27 03:52:30 t-suwa Exp $ + $Id: BIM.cpp,v 1.16 2007/02/03 04:04:21 t-suwa Exp $ MacOS X implementation of the SKK input method. @@ -335,7 +335,12 @@ case 0x5b: // 8 case 0x5c: // 9 case 0x5f: // , - return (*inSessionHandle)->imsession_input_mode->handleNumKey(event.CharCode()); + if(ClientConfiguration::theInstance().isNumericKeypad_HalfWidth()) { + return (*inSessionHandle)->imsession_input_mode->handleNumKey(event.CharCode()); + } else { + return (*inSessionHandle)->imsession_input_mode->handleInput(event); + } + break; case 0x66: // p if(SKKConfig::UseEisuuToSetHenkanPoint()) { return (*inSessionHandle)->imsession_input_mode->handleInput(SKKConfig::SetHenkanPointKey()); Index: AquaSKK/ChangeLog diff -u AquaSKK/ChangeLog:1.38 AquaSKK/ChangeLog:1.39 --- AquaSKK/ChangeLog:1.38 Sat Jan 27 12:52:30 2007 +++ AquaSKK/ChangeLog Sat Feb 3 13:04:21 2007 @@ -1,3 +1,22 @@ +2007-02-03 Tomotaka SUWA <t.suw****@mac*****> + + * tests/TestAquaSKK.scpt: æ°è¦è¿½å ãAppleScript ã«ããèªåãã¹ãã¹ + ã¯ãªããã + +2007-01-28 Tomotaka SUWA <t.suw****@mac*****> + + * KanjiConversionMode.cpp: æé»ã®å¤æå¾ã次ç¶æ ã«æ£ããé·ç§»ããªãä¸ + å ·åãä¿®æ£ã + + * AsciiConversionMode.cpp: å¤æä¸ã« '/' ãæ¼ãããæã«ãæ£ããåå ¥ + ããªãä¸å ·åãä¿®æ£ã + + * Resources/translation-to-hiragana, + Resources/translation-to-katakana: åè§ã«ãã¢ã¼ãã§ãã©ãªã«ã¬ããã + ãã°ã«å¤æã§ããªãã£ãä¸å ·åãä¿®æ£ã + + * BIM.cpp: ãã³ãã¼åè§ãªãã·ã§ã³ã®åãæ¿ããç¡å¹ã«ãªã£ã¦ããä¸å ·åãä¿®æ£ã + 2007-01-27 Tomotaka SUWA <t.suw****@mac*****> * Makefile: ãã§ãã¯ããªãªã¼ã¹ç¨ã®ã¿ã¼ã²ããã追å ã Index: AquaSKK/Info-AquaSKKInputMethod.plist diff -u AquaSKK/Info-AquaSKKInputMethod.plist:1.14 AquaSKK/Info-AquaSKKInputMethod.plist:1.15 --- AquaSKK/Info-AquaSKKInputMethod.plist:1.14 Sat Jan 27 12:52:30 2007 +++ AquaSKK/Info-AquaSKKInputMethod.plist Sat Feb 3 13:04:21 2007 @@ -19,11 +19,11 @@ <key>CFBundlePackageType</key> <string>thng</string> <key>CFBundleShortVersionString</key> - <string>fix-skkserv 1.0</string> + <string>fix-skkserv 1.1</string> <key>CFBundleSignature</key> <string>askk</string> <key>CFBundleVersion</key> - <string>2007-01-27</string> + <string>2007-02-03</string> <key>CSResourcesFileMapped</key> <true/> <key>tsInputMethodIconFileKey</key> Index: AquaSKK/Info-AquaSKKServer.plist diff -u AquaSKK/Info-AquaSKKServer.plist:1.14 AquaSKK/Info-AquaSKKServer.plist:1.15 --- AquaSKK/Info-AquaSKKServer.plist:1.14 Sat Jan 27 12:52:30 2007 +++ AquaSKK/Info-AquaSKKServer.plist Sat Feb 3 13:04:21 2007 @@ -19,11 +19,11 @@ <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> - <string>fix-skkserv 1.0</string> + <string>fix-skkserv 1.1</string> <key>CFBundleSignature</key> <string>askk</string> <key>CFBundleVersion</key> - <string>2007-01-27</string> + <string>2007-02-03</string> <key>NSMainNibFile</key> <string>Principal</string> <key>NSPrincipalClass</key> Index: AquaSKK/KanjiConversionMode.cpp diff -u AquaSKK/KanjiConversionMode.cpp:1.10 AquaSKK/KanjiConversionMode.cpp:1.11 --- AquaSKK/KanjiConversionMode.cpp:1.10 Sat Jan 27 12:52:30 2007 +++ AquaSKK/KanjiConversionMode.cpp Sat Feb 3 13:04:21 2007 @@ -1,5 +1,5 @@ /* - $Id: KanjiConversionMode.cpp,v 1.10 2007/01/27 03:52:30 t-suwa Exp $ + $Id: KanjiConversionMode.cpp,v 1.11 2007/02/03 04:04:21 t-suwa Exp $ MacOS X implementation of the SKK input method. @@ -256,9 +256,8 @@ // KanjiConversionModeÍSTATUS_NULLÌÉÍ // íÉkIgnoreThisðÔ·B - parent->fix(this->getStringToFix()); - parent->handleInput(skkchar); - return false; + parent->fix(getStringToFix()); + return parent->handleInput(skkchar); } if(SKKConfig::NextKouhoKey() == skkchar) { @@ -344,12 +343,6 @@ return false; } - // »ÝÌóâðmèµÄp± - if(status == STATUS_BLACK) { - parent->fix(getStringToFix()); - return parent->handleInput(skkchar); - } - // Ið³ê½óâÅmè·é if(status == STATUS_BLACK_WITH_WINDOW) { CppCFString labels = CppCFString("asdfjkl").substring(0, candidates_window_cands_per_frame); @@ -434,6 +427,12 @@ return handleInput(' '); // ÄËüBÓ¡IÉÍÄAÅÍÈcontinueB } } + else if(status == STATUS_BLACK) { + // »ÝÌóâðmèµÄp± + parent->fix(getStringToFix()); + parent->setEnabledKanjiMode(true); + return handleInput(skkchar); + } } else { if(status == STATUS_WHITE_ROOT) { // ¼¼üÍðÀsB @@ -463,6 +462,11 @@ return handleInput(' '); // ÄËüBÓ¡IÉÍÄAÅÍÈcontinueB } } + else if(status == STATUS_BLACK) { + // »ÝÌóâðmèµÄp± + parent->fix(getStringToFix()); + return parent->handleInput(skkchar); + } } return false; @@ -741,7 +745,7 @@ root += to_fix; } - parent->fix(this->getStringToFix()); // mè·é + parent->fix(getStringToFix()); // mè·é parent->setEnabledKanjiMode(false); initialize(); } Index: AquaSKK/Makefile diff -u AquaSKK/Makefile:1.4 AquaSKK/Makefile:1.5 --- AquaSKK/Makefile:1.4 Sat Jan 27 12:52:30 2007 +++ AquaSKK/Makefile Sat Feb 3 13:04:21 2007 @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.4 2007/01/27 03:52:30 t-suwa Exp $ +# $Id: Makefile,v 1.5 2007/02/03 04:04:21 t-suwa Exp $ DARWIN = $(firstword $(subst ., ,$(shell uname -r))) TARGET = AquaSKKInputMethod.component @@ -29,6 +29,9 @@ check: all cd tests; make check; cd .. +test: + osascript tests/TestAquaSKK.scpt + beta: check cd Package; make beta; cd ..