Update fcitx-mozc.patch to 1.12.1599.102.1
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@debian.org>
Nobuhiro Iwamatsu
10 years ago
0 | 0 | Daescription: Support fcitx |
1 | 1 | Author: Weng Xuetian <wengxt@gmail.com> |
2 | Origin: upstream of fcitx, http://download.fcitx-im.org/fcitx-mozc/fcitx-mozc-1.11.1522.102.1.patch | |
3 | Last-Update: 2013-09-13 | |
2 | Origin: upstream of fcitx, http://download.fcitx-im.org/fcitx-mozc/fcitx-mozc-1.12.1599.102.1.patch | |
3 | Last-Update: 2013-11-06 | |
4 | 4 | |
5 | 5 | diff --git a/unix/fcitx/eim.cc b/unix/fcitx/eim.cc |
6 | 6 | new file mode 100644 |
7 | index 0000000..a39ab01 | |
7 | index 0000000..d96a7ff | |
8 | 8 | --- /dev/null |
9 | 9 | +++ b/unix/fcitx/eim.cc |
10 | @@ -0,0 +1,267 @@ | |
10 | @@ -0,0 +1,268 @@ | |
11 | 11 | +// Copyright 2012~2013, Weng Xuetian <wengxt@gmail.com> |
12 | 12 | +// All rights reserved. |
13 | 13 | +// |
100 | 100 | +{ |
101 | 101 | + FcitxMozcState* mozcState = (FcitxMozcState*) fcitx_utils_malloc0(sizeof(FcitxMozcState)); |
102 | 102 | + bindtextdomain("fcitx-mozc", LOCALEDIR); |
103 | + bind_textdomain_codeset("fcitx-mozc", "UTF-8"); | |
103 | 104 | + |
104 | 105 | + mozcState->mozc = new mozc::fcitx::FcitxMozc( |
105 | 106 | + instance, |
740 | 741 | +#endif // MOZC_UNIX_FCITX_KEY_EVENT_HANDLER_H_ |
741 | 742 | diff --git a/unix/fcitx/fcitx_key_translator.cc b/unix/fcitx/fcitx_key_translator.cc |
742 | 743 | new file mode 100644 |
743 | index 0000000..62a87d9 | |
744 | index 0000000..e0ccd12 | |
744 | 745 | --- /dev/null |
745 | 746 | +++ b/unix/fcitx/fcitx_key_translator.cc |
746 | @@ -0,0 +1,528 @@ | |
747 | @@ -0,0 +1,524 @@ | |
747 | 748 | +// Copyright 2010-2012, Google Inc. |
748 | 749 | +// Copyright 2012~2013, Weng Xuetian <wengxt@gmail.com> |
749 | 750 | +// All rights reserved. |
869 | 870 | + {FcitxKey_KP_Delete, mozc::commands::KeyEvent::DEL}, |
870 | 871 | + {FcitxKey_KP_Insert, mozc::commands::KeyEvent::INSERT}, |
871 | 872 | + {FcitxKey_Caps_Lock, mozc::commands::KeyEvent::CAPS_LOCK}, |
872 | + | |
873 | + // This key event is for hangul IME. Do not handle this key event on Japanese | |
874 | + // IME. | |
875 | + {FcitxKey_Hangul_Hanja, mozc::commands::KeyEvent::HANJA}, | |
876 | 873 | + |
877 | 874 | + // Shift+TAB. |
878 | 875 | + {FcitxKey_ISO_Left_Tab, mozc::commands::KeyEvent::TAB}, |
1401 | 1398 | +#endif // MOZC_UNIX_FCITX_FCITX_KEY_TRANSLATOR_H_ |
1402 | 1399 | diff --git a/unix/fcitx/fcitx_mozc.cc b/unix/fcitx/fcitx_mozc.cc |
1403 | 1400 | new file mode 100644 |
1404 | index 0000000..08be04e | |
1401 | index 0000000..5499fde | |
1405 | 1402 | --- /dev/null |
1406 | 1403 | +++ b/unix/fcitx/fcitx_mozc.cc |
1407 | @@ -0,0 +1,571 @@ | |
1404 | @@ -0,0 +1,566 @@ | |
1408 | 1405 | +// Copyright 2012~2013, Weng Xuetian <wengxt@gmail.com> |
1409 | 1406 | +// All rights reserved. |
1410 | 1407 | +// |
1843 | 1840 | +boolean CompositionMenuAction(struct _FcitxUIMenu *menu, int index) |
1844 | 1841 | +{ |
1845 | 1842 | + FcitxMozc* mozc = (FcitxMozc*) menu->priv; |
1846 | + if (index == mozc::commands::DIRECT) { | |
1847 | + FcitxInstanceCloseIM(mozc->GetInstance(), FcitxInstanceGetCurrentIC(mozc->GetInstance())); | |
1848 | + } | |
1849 | + else { | |
1850 | + mozc->SendCompositionMode((mozc::commands::CompositionMode) index); | |
1851 | + } | |
1843 | + mozc->SendCompositionMode((mozc::commands::CompositionMode) index); | |
1852 | 1844 | + return true; |
1853 | 1845 | +} |
1854 | 1846 | + |
3147 | 3139 | +echo "Done" |
3148 | 3140 | diff --git a/unix/fcitx/po/de.po b/unix/fcitx/po/de.po |
3149 | 3141 | new file mode 100644 |
3150 | index 0000000..c42eae5 | |
3142 | index 0000000..6c9c1e0 | |
3151 | 3143 | --- /dev/null |
3152 | 3144 | +++ b/unix/fcitx/po/de.po |
3153 | @@ -0,0 +1,88 @@ | |
3145 | @@ -0,0 +1,89 @@ | |
3154 | 3146 | +# SOME DESCRIPTIVE TITLE. |
3155 | 3147 | +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER |
3156 | 3148 | +# This file is distributed under the same license as the PACKAGE package. |
3157 | 3149 | +# |
3158 | 3150 | +# Translators: |
3151 | +# Seneca, 2013 | |
3159 | 3152 | +# mar well <marwell.1980@freenet.de>, 2013 |
3160 | 3153 | +msgid "" |
3161 | 3154 | +msgstr "" |
3162 | 3155 | +"Project-Id-Version: fcitx\n" |
3163 | 3156 | +"Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" |
3164 | +"POT-Creation-Date: 2013-08-25 18:02-0400\n" | |
3165 | +"PO-Revision-Date: 2013-08-25 10:07+0000\n" | |
3157 | +"POT-Creation-Date: 2013-10-31 06:03-0400\n" | |
3158 | +"PO-Revision-Date: 2013-10-31 09:21+0000\n" | |
3166 | 3159 | +"Last-Translator: Xuetian Weng <wengxt@gmail.com>\n" |
3167 | 3160 | +"Language-Team: German (http://www.transifex.com/projects/p/fcitx/language/" |
3168 | 3161 | +"de/)\n" |
3190 | 3183 | + |
3191 | 3184 | +#: ../fcitx_mozc.cc:83 |
3192 | 3185 | +msgid "Half ASCII" |
3193 | +msgstr "" | |
3186 | +msgstr "6-Bit ASCII (Half ASCII)" | |
3194 | 3187 | + |
3195 | 3188 | +#: ../fcitx_mozc.cc:88 |
3196 | 3189 | +msgid "Full ASCII" |
3197 | +msgstr "" | |
3190 | +msgstr "7-Bit ASCII (Full ASCII)" | |
3198 | 3191 | + |
3199 | 3192 | +#: ../fcitx_mozc.cc:93 |
3200 | 3193 | +msgid "Half Katakana" |
3201 | 3194 | +msgstr "Halbbreite Katakana" |
3202 | 3195 | + |
3203 | +#: ../fcitx_mozc.cc:394 ../fcitx_mozc.cc:395 ../fcitx_mozc.cc:473 | |
3196 | +#: ../fcitx_mozc.cc:410 ../fcitx_mozc.cc:411 ../fcitx_mozc.cc:484 | |
3204 | 3197 | +msgid "Composition Mode" |
3205 | 3198 | +msgstr "Kompositionsmodus" |
3206 | 3199 | + |
3207 | +#: ../fcitx_mozc.cc:405 ../fcitx_mozc.cc:406 | |
3200 | +#: ../fcitx_mozc.cc:421 ../fcitx_mozc.cc:422 | |
3208 | 3201 | +msgid "Tool" |
3209 | 3202 | +msgstr "Werkzeug" |
3210 | 3203 | + |
3211 | +#: ../fcitx_mozc.cc:486 | |
3204 | +#: ../fcitx_mozc.cc:497 | |
3212 | 3205 | +msgid "Mozc Tool" |
3213 | 3206 | +msgstr "Mozc Werkzeug" |
3214 | 3207 | + |
3215 | +#: ../fcitx_mozc.cc:492 | |
3208 | +#: ../fcitx_mozc.cc:503 | |
3216 | 3209 | +msgid "Configuration Tool" |
3217 | 3210 | +msgstr "Konfigurationswerkzeug" |
3218 | 3211 | + |
3219 | +#: ../fcitx_mozc.cc:493 | |
3212 | +#: ../fcitx_mozc.cc:504 | |
3220 | 3213 | +msgid "Dictionary Tool" |
3221 | 3214 | +msgstr "Wörterbuchwerkzeug" |
3222 | 3215 | + |
3223 | +#: ../fcitx_mozc.cc:494 | |
3216 | +#: ../fcitx_mozc.cc:505 | |
3224 | 3217 | +msgid "Hand Writing" |
3225 | 3218 | +msgstr "Eingabe Handschrift" |
3226 | 3219 | + |
3227 | +#: ../fcitx_mozc.cc:495 | |
3220 | +#: ../fcitx_mozc.cc:506 | |
3228 | 3221 | +msgid "Character Palette" |
3229 | 3222 | +msgstr "Palette Symbole" |
3230 | 3223 | + |
3231 | +#: ../fcitx_mozc.cc:496 | |
3224 | +#: ../fcitx_mozc.cc:507 | |
3232 | 3225 | +msgid "Add Word" |
3233 | 3226 | +msgstr "Wort hinzufügen" |
3234 | 3227 | + |
3235 | +#: ../fcitx_mozc.cc:497 | |
3228 | +#: ../fcitx_mozc.cc:508 | |
3236 | 3229 | +msgid "About Mozc" |
3237 | 3230 | +msgstr "Über Mozc" |
3238 | 3231 | + |
3239 | +#: ../mozc_response_parser.cc:351 | |
3232 | +#: ../mozc_response_parser.cc:374 | |
3240 | 3233 | +msgid "Press Ctrl+Alt+H to show usages." |
3241 | 3234 | +msgstr "" |
3242 | 3235 | diff --git a/unix/fcitx/po/fcitx-mozc.pot b/unix/fcitx/po/fcitx-mozc.pot |
3333 | 3326 | +msgstr "" |
3334 | 3327 | diff --git a/unix/fcitx/po/ja.po b/unix/fcitx/po/ja.po |
3335 | 3328 | new file mode 100644 |
3336 | index 0000000..7867054 | |
3329 | index 0000000..b837570 | |
3337 | 3330 | --- /dev/null |
3338 | 3331 | +++ b/unix/fcitx/po/ja.po |
3339 | @@ -0,0 +1,90 @@ | |
3332 | @@ -0,0 +1,94 @@ | |
3340 | 3333 | +# SOME DESCRIPTIVE TITLE. |
3341 | 3334 | +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER |
3342 | 3335 | +# This file is distributed under the same license as the PACKAGE package. |
3343 | 3336 | +# |
3344 | 3337 | +# Translators: |
3338 | +# しろう, 2013 | |
3345 | 3339 | +# いくや あわしろ <ikunya@gmail.com>, 2013 |
3346 | +# いくや あわしろ <ikunya@gmail.com>, 2012 | |
3340 | +# いくや あわしろ <ikunya@gmail.com>, 2012-2013 | |
3341 | +# しろう, 2013 | |
3342 | +# Xuetian Weng <wengxt@gmail.com>, 2013 | |
3347 | 3343 | +# Xuetian Weng <wengxt@gmail.com>, 2012 |
3344 | +# Xuetian Weng <wengxt@gmail.com>, 2012-2013 | |
3348 | 3345 | +msgid "" |
3349 | 3346 | +msgstr "" |
3350 | 3347 | +"Project-Id-Version: fcitx\n" |
3351 | 3348 | +"Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" |
3352 | +"POT-Creation-Date: 2013-08-27 12:02-0400\n" | |
3353 | +"PO-Revision-Date: 2013-08-27 14:10+0000\n" | |
3354 | +"Last-Translator: いくや あわしろ <ikunya@gmail.com>\n" | |
3349 | +"POT-Creation-Date: 2013-10-31 10:55-0400\n" | |
3350 | +"PO-Revision-Date: 2013-10-31 14:51+0000\n" | |
3351 | +"Last-Translator: Xuetian Weng <wengxt@gmail.com>\n" | |
3355 | 3352 | +"Language-Team: Japanese (http://www.transifex.com/projects/p/fcitx/language/" |
3356 | 3353 | +"ja/)\n" |
3357 | 3354 | +"Language: ja\n" |
3360 | 3357 | +"Content-Transfer-Encoding: 8bit\n" |
3361 | 3358 | +"Plural-Forms: nplurals=1; plural=0;\n" |
3362 | 3359 | + |
3363 | +#: ../eim.cc:183 | |
3360 | +#: ../eim.cc:184 | |
3364 | 3361 | +msgid "Press Escape to go back" |
3365 | 3362 | +msgstr "Escキーを押して戻る" |
3366 | 3363 | + |
3388 | 3385 | +msgid "Half Katakana" |
3389 | 3386 | +msgstr "半角カタカナ" |
3390 | 3387 | + |
3391 | +#: ../fcitx_mozc.cc:394 ../fcitx_mozc.cc:395 ../fcitx_mozc.cc:473 | |
3388 | +#: ../fcitx_mozc.cc:410 ../fcitx_mozc.cc:411 ../fcitx_mozc.cc:484 | |
3392 | 3389 | +msgid "Composition Mode" |
3393 | 3390 | +msgstr "変換モード" |
3394 | 3391 | + |
3395 | +#: ../fcitx_mozc.cc:405 ../fcitx_mozc.cc:406 | |
3392 | +#: ../fcitx_mozc.cc:421 ../fcitx_mozc.cc:422 | |
3396 | 3393 | +msgid "Tool" |
3397 | 3394 | +msgstr "ツール" |
3398 | 3395 | + |
3399 | +#: ../fcitx_mozc.cc:486 | |
3396 | +#: ../fcitx_mozc.cc:497 | |
3400 | 3397 | +msgid "Mozc Tool" |
3401 | 3398 | +msgstr "Mozc ツール" |
3402 | 3399 | + |
3403 | +#: ../fcitx_mozc.cc:492 | |
3400 | +#: ../fcitx_mozc.cc:503 | |
3404 | 3401 | +msgid "Configuration Tool" |
3405 | 3402 | +msgstr "設定ツール" |
3406 | 3403 | + |
3407 | +#: ../fcitx_mozc.cc:493 | |
3404 | +#: ../fcitx_mozc.cc:504 | |
3408 | 3405 | +msgid "Dictionary Tool" |
3409 | 3406 | +msgstr "辞書ツール" |
3410 | 3407 | + |
3411 | +#: ../fcitx_mozc.cc:494 | |
3408 | +#: ../fcitx_mozc.cc:505 | |
3412 | 3409 | +msgid "Hand Writing" |
3413 | 3410 | +msgstr "手書き文字認識" |
3414 | 3411 | + |
3415 | +#: ../fcitx_mozc.cc:495 | |
3412 | +#: ../fcitx_mozc.cc:506 | |
3416 | 3413 | +msgid "Character Palette" |
3417 | 3414 | +msgstr "文字パレット" |
3418 | 3415 | + |
3419 | +#: ../fcitx_mozc.cc:496 | |
3416 | +#: ../fcitx_mozc.cc:507 | |
3420 | 3417 | +msgid "Add Word" |
3421 | 3418 | +msgstr "単語登録" |
3422 | 3419 | + |
3423 | +#: ../fcitx_mozc.cc:497 | |
3420 | +#: ../fcitx_mozc.cc:508 | |
3424 | 3421 | +msgid "About Mozc" |
3425 | 3422 | +msgstr "Mozc について" |
3426 | 3423 | + |
3427 | +#: ../mozc_response_parser.cc:351 | |
3424 | +#: ../mozc_response_parser.cc:374 | |
3428 | 3425 | +msgid "Press Ctrl+Alt+H to show usages." |
3429 | 3426 | +msgstr "Ctrl+Alt+H キーを押して用例を表示" |
3430 | 3427 | diff --git a/unix/fcitx/po/zh_CN.po b/unix/fcitx/po/zh_CN.po |
3431 | 3428 | new file mode 100644 |
3432 | index 0000000..0cfc3da | |
3429 | index 0000000..cba3207 | |
3433 | 3430 | --- /dev/null |
3434 | 3431 | +++ b/unix/fcitx/po/zh_CN.po |
3435 | @@ -0,0 +1,89 @@ | |
3432 | @@ -0,0 +1,90 @@ | |
3436 | 3433 | +# SOME DESCRIPTIVE TITLE. |
3437 | 3434 | +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER |
3438 | 3435 | +# This file is distributed under the same license as the PACKAGE package. |
3445 | 3442 | +msgstr "" |
3446 | 3443 | +"Project-Id-Version: fcitx\n" |
3447 | 3444 | +"Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" |
3448 | +"POT-Creation-Date: 2013-08-28 12:59-0400\n" | |
3449 | +"PO-Revision-Date: 2013-08-28 17:01+0000\n" | |
3445 | +"POT-Creation-Date: 2013-10-10 12:00-0400\n" | |
3446 | +"PO-Revision-Date: 2013-10-10 10:06+0000\n" | |
3450 | 3447 | +"Last-Translator: Xuetian Weng <wengxt@gmail.com>\n" |
3451 | +"Language-Team: Chinese (China) <fcitx-dev@googlegroups.com>\n" | |
3448 | +"Language-Team: Chinese (China) (http://www.transifex.com/projects/p/fcitx/" | |
3449 | +"language/zh_CN/)\n" | |
3452 | 3450 | +"Language: zh_CN\n" |
3453 | 3451 | +"MIME-Version: 1.0\n" |
3454 | 3452 | +"Content-Type: text/plain; charset=UTF-8\n" |
3457 | 3455 | + |
3458 | 3456 | +#: ../eim.cc:183 |
3459 | 3457 | +msgid "Press Escape to go back" |
3460 | +msgstr "按下 Escape 返回" | |
3458 | +msgstr "" | |
3461 | 3459 | + |
3462 | 3460 | +#: ../fcitx_mozc.cc:68 |
3463 | 3461 | +msgid "Direct" |
3483 | 3481 | +msgid "Half Katakana" |
3484 | 3482 | +msgstr "半角片假名" |
3485 | 3483 | + |
3486 | +#: ../fcitx_mozc.cc:410 ../fcitx_mozc.cc:411 ../fcitx_mozc.cc:489 | |
3484 | +#: ../fcitx_mozc.cc:410 ../fcitx_mozc.cc:411 ../fcitx_mozc.cc:484 | |
3487 | 3485 | +msgid "Composition Mode" |
3488 | 3486 | +msgstr "编辑模式" |
3489 | 3487 | + |
3491 | 3489 | +msgid "Tool" |
3492 | 3490 | +msgstr "工具" |
3493 | 3491 | + |
3494 | +#: ../fcitx_mozc.cc:502 | |
3492 | +#: ../fcitx_mozc.cc:497 | |
3495 | 3493 | +msgid "Mozc Tool" |
3496 | 3494 | +msgstr "Mozc 工具" |
3497 | 3495 | + |
3498 | +#: ../fcitx_mozc.cc:508 | |
3496 | +#: ../fcitx_mozc.cc:503 | |
3499 | 3497 | +msgid "Configuration Tool" |
3500 | 3498 | +msgstr "配置工具" |
3501 | 3499 | + |
3502 | +#: ../fcitx_mozc.cc:509 | |
3500 | +#: ../fcitx_mozc.cc:504 | |
3503 | 3501 | +msgid "Dictionary Tool" |
3504 | 3502 | +msgstr "词典工具" |
3505 | 3503 | + |
3506 | +#: ../fcitx_mozc.cc:510 | |
3504 | +#: ../fcitx_mozc.cc:505 | |
3507 | 3505 | +msgid "Hand Writing" |
3508 | 3506 | +msgstr "手写输入" |
3509 | 3507 | + |
3510 | +#: ../fcitx_mozc.cc:511 | |
3508 | +#: ../fcitx_mozc.cc:506 | |
3511 | 3509 | +msgid "Character Palette" |
3512 | 3510 | +msgstr "字符映射表" |
3513 | 3511 | + |
3514 | +#: ../fcitx_mozc.cc:512 | |
3512 | +#: ../fcitx_mozc.cc:507 | |
3515 | 3513 | +msgid "Add Word" |
3516 | 3514 | +msgstr "添加单词" |
3517 | 3515 | + |
3518 | +#: ../fcitx_mozc.cc:513 | |
3516 | +#: ../fcitx_mozc.cc:508 | |
3519 | 3517 | +msgid "About Mozc" |
3520 | 3518 | +msgstr "关于 Mozc" |
3521 | 3519 | + |
3522 | 3520 | +#: ../mozc_response_parser.cc:374 |
3523 | 3521 | +msgid "Press Ctrl+Alt+H to show usages." |
3524 | +msgstr "按下 Ctrl+Alt+H 显示用法。" | |
3522 | +msgstr "" | |
3525 | 3523 | diff --git a/unix/fcitx/po/zh_TW.po b/unix/fcitx/po/zh_TW.po |
3526 | 3524 | new file mode 100644 |
3527 | 3525 | index 0000000..62bc891 |