Tomotaka SUWA
t-suw****@users*****
2007年 8月 19日 (日) 23:20:53 JST
Index: AquaSKK/src/component/SKK.r diff -u AquaSKK/src/component/SKK.r:1.1.2.1 AquaSKK/src/component/SKK.r:1.1.2.2 --- AquaSKK/src/component/SKK.r:1.1.2.1 Sun Aug 19 19:00:32 2007 +++ AquaSKK/src/component/SKK.r Sun Aug 19 23:20:53 2007 @@ -1,5 +1,5 @@ /* - $Id: SKK.r,v 1.1.2.1 2007/08/19 10:00:32 t-suwa Exp $ + $Id: SKK.r,v 1.1.2.2 2007/08/19 14:20:53 t-suwa Exp $ MacOS X implementation of the SKK input method. @@ -60,7 +60,7 @@ #define kAquaSKKBaseResouceID 16384 #define kAquaSKKComponentFlags 0x8000 + smJapanese * 0x100 + langJapanese -// "jp.sourceforge.AquaSKKInputMethod" Ì pascal ¶ñ +// "jp.sourceforge.AquaSKKInputMethod" ã® pascal æåå data 'cbnm' (0) { $"216a 702e 736f 7572 6365 666f 7267 652e" $"4171 7561 534b 4b49 6e70 7574 4d65 7468" Index: AquaSKK/src/component/SKKComponent.h diff -u AquaSKK/src/component/SKKComponent.h:1.1.2.1 AquaSKK/src/component/SKKComponent.h:1.1.2.2 --- AquaSKK/src/component/SKKComponent.h:1.1.2.1 Sun Aug 19 19:00:32 2007 +++ AquaSKK/src/component/SKKComponent.h Sun Aug 19 23:20:53 2007 @@ -1,5 +1,5 @@ /* -*- C++ -*- - $Id: SKKComponent.h,v 1.1.2.1 2007/08/19 10:00:32 t-suwa Exp $ + $Id: SKKComponent.h,v 1.1.2.2 2007/08/19 14:20:53 t-suwa Exp $ MacOS X implementation of the SKK input method. @@ -25,7 +25,6 @@ #include <Carbon/Carbon.h> #include <map> -#include "SKK.h" class SKKSession; Index: AquaSKK/src/component/WordRegisterMode.cpp diff -u AquaSKK/src/component/WordRegisterMode.cpp:1.1.2.1 AquaSKK/src/component/WordRegisterMode.cpp:1.1.2.2 --- AquaSKK/src/component/WordRegisterMode.cpp:1.1.2.1 Sun Aug 19 19:00:32 2007 +++ AquaSKK/src/component/WordRegisterMode.cpp Sun Aug 19 23:20:53 2007 @@ -1,5 +1,5 @@ /* - $Id: WordRegisterMode.cpp,v 1.1.2.1 2007/08/19 10:00:32 t-suwa Exp $ + $Id: WordRegisterMode.cpp,v 1.1.2.2 2007/08/19 14:20:53 t-suwa Exp $ MacOS X implementation of the SKK input method. @@ -32,7 +32,7 @@ WordRegisterMode::WordRegisterMode(ChildInputMode& src, const CppCFString& word) : ParentInputMode(), owner(&src), caret(0) { - // [o^:word] + // [ç»é²:word] title.append('[').append(0x767b).append(0x9332).append(':').append(word).append(']'); imsession_input_mode = &SKKComponent::theInstance().Session().LegacyEngine(); @@ -40,7 +40,7 @@ bool WordRegisterMode::handleBackSpace() { if(getReallyCurrentInputMode().handleBackSpace()) { - // really current input modeªtrueðÔµ½ç½à¹¸ÉtrueðÔ·B + // really current input modeãtrueãè¿ãããä½ãããã«trueãè¿ãã redisplay(); return true; } @@ -48,7 +48,7 @@ ChildInputMode& input_mode = getReallyCurrentInputMode(); if(!input_mode.handleBackSpace()) { - // LbgÌÊuæèOɶª êÎê¶íB³¯êγB + // ãã£ã¬ããã®ä½ç½®ããåã«æåãããã°ä¸æååé¤ãç¡ããã°ç¡è¦ã if(caret > 0) { buffer.eraseCharAt(caret-1); caret--; @@ -56,7 +56,7 @@ } //redisplay(); display(CppCFString()); - return true; // Ç¿çÉÅà{¶ÍÁ³¹È¢B + return true; // ã©ã¡ãã«ã§ãæ¬æã¯æ¶ãããªãã } bool WordRegisterMode::handleReturn() { @@ -66,9 +66,9 @@ fix(input_mode.getStringToFix()); if(buffer.length() > 0) { - (dynamic_cast<RegistrationStarter*>(owner))->wordRegistrationFinished(); // Pêo^I¹B + (dynamic_cast<RegistrationStarter*>(owner))->wordRegistrationFinished(); // åèªç»é²çµäºã } else { - (dynamic_cast<RegistrationStarter*>(owner))->wordRegistrationCanceled(); // Pêo^fB + (dynamic_cast<RegistrationStarter*>(owner))->wordRegistrationCanceled(); // åèªç»é²ä¸æã } } return true; @@ -80,20 +80,20 @@ } switch(skkchar) { - case kLeftArrowCharCode: // ¶ + case kLeftArrowCharCode: // å·¦ if(caret > 0) { -- caret; } break; - case kRightArrowCharCode: // E + case kRightArrowCharCode: // å³ if(caret < buffer.length()) { ++ caret; } break; - case kUpArrowCharCode: // æª + case kUpArrowCharCode: // å é caret = 0; break; - case kDownArrowCharCode: // ö + case kDownArrowCharCode: // æ«å°¾ caret = buffer.length(); break; } @@ -105,23 +105,23 @@ bool WordRegisterMode::handleCg() { if(getReallyCurrentInputMode().handleCg()) { - // really current input modeªtrueðÔµ½ç½à¹¸ÉtrueðÔ·B + // really current input modeãtrueãè¿ãããä½ãããã«trueãè¿ãã redisplay(); return true; } getReallyCurrentInputMode().terminate(); - // bufferðóÉ·éB + // bufferã空ã«ããã buffer.clear(); caret = 0; - (dynamic_cast<RegistrationStarter*>(owner))->wordRegistrationCanceled(); // Pêo^fB + (dynamic_cast<RegistrationStarter*>(owner))->wordRegistrationCanceled(); // åèªç»é²ä¸æã return true; } bool WordRegisterMode::handleCy() { if(getReallyCurrentInputMode().handleCy()) { - // really current input modeªtrueðÔµ½ç½à¹¸ÉtrueðÔ·B + // really current input modeãtrueãè¿ãããä½ãããã«trueãè¿ãã return true; } @@ -134,7 +134,7 @@ PasteboardGetItemCount(pasteboard, &items); for(UInt32 pos = 0; pos < items; ++ pos) { PasteboardItemID id; - // index Í 1 based + // index 㯠1 based if(PasteboardGetItemIdentifier(pasteboard, pos + 1, &id) < 0) continue; CFDataRef data; @@ -168,7 +168,7 @@ bool WordRegisterMode::handleTab() { ParentInputMode::handleTab(); - return true; // íÉH¤B + return true; // 常ã«é£ãã } bool WordRegisterMode::handleInput(SKKChar skkchar) { @@ -205,7 +205,7 @@ CppCFString str_to_display = input_mode.getStringToDisplay(); if(str_to_display.length() == 0 || - (str_to_display.length() > 0 && str_to_display[0] != kIgnoreThis)) // kIgnoreThisÈçXVµÈ¢B + (str_to_display.length() > 0 && str_to_display[0] != kIgnoreThis)) // kIgnoreThisãªãæ´æ°ããªãã { display(str_to_display); } @@ -214,10 +214,10 @@ void WordRegisterMode::fix(const CppCFString& str_to_fix) { if(str_to_fix.length() > 0 && str_to_fix[0] == kIgnoreThis) return; - // obt@ÌLbgÌÊuÉ}ü·éB + // ãããã¡ã®ãã£ã¬ããã®ä½ç½®ã«æ¿å ¥ããã buffer.insert(caret,str_to_fix); - // Lbgð}üµ½¶ªAEÉÚ®·éB + // ãã£ã¬ãããæ¿å ¥ããæåæ°åãå³ã«ç§»åããã caret += str_to_fix.length(); imsession_input_mode->display(CppCFString(title).append('[') @@ -228,8 +228,8 @@ void WordRegisterMode::display(const CppCFString& str_to_display) { if(str_to_display.length() > 0 && str_to_display[0] == kIgnoreThis) return; - // \¦áF - // [¯*·][Á] + // 表示ä¾ï¼ + // [ã*ã][æ¶] imsession_input_mode->display(CppCFString(title).append('[') .append(buffer.substring(0, caret)).append(str_to_display).append(kCaret) .append(buffer.substring(caret)).append(']')); Index: AquaSKK/src/component/WordRegisterMode.h diff -u AquaSKK/src/component/WordRegisterMode.h:1.1.2.1 AquaSKK/src/component/WordRegisterMode.h:1.1.2.2 --- AquaSKK/src/component/WordRegisterMode.h:1.1.2.1 Sun Aug 19 19:00:32 2007 +++ AquaSKK/src/component/WordRegisterMode.h Sun Aug 19 23:20:53 2007 @@ -1,5 +1,5 @@ /* - $Id: WordRegisterMode.h,v 1.1.2.1 2007/08/19 10:00:32 t-suwa Exp $ + $Id: WordRegisterMode.h,v 1.1.2.2 2007/08/19 14:20:53 t-suwa Exp $ MacOS X implementation of the SKK input method. @@ -40,8 +40,8 @@ IMSessionInputMode* imsession_input_mode; public: - // titleÌáFuÉ°*évAuÍ°v - // ownerÍRegistrationStarteràp³µÄ¢È¯êÎÈçÈ¢B + // titleã®ä¾ï¼ãã«ã*ããããã¯ããç + // ownerã¯RegistrationStarterãç¶æ¿ãã¦ããªããã°ãªããªãã WordRegisterMode(class ChildInputMode& owner, const CppCFString& word); virtual ~WordRegisterMode() {}