Codebase list mozc / 4ebcbd3
Update fcitx-mozc.patch to 1.12.1599.102.1 Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@debian.org> Nobuhiro Iwamatsu 10 years ago
1 changed file(s) with 64 addition(s) and 66 deletion(s). Raw diff Collapse all Expand all
00 Daescription: Support fcitx
11 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
44
55 diff --git a/unix/fcitx/eim.cc b/unix/fcitx/eim.cc
66 new file mode 100644
7 index 0000000..a39ab01
7 index 0000000..d96a7ff
88 --- /dev/null
99 +++ b/unix/fcitx/eim.cc
10 @@ -0,0 +1,267 @@
10 @@ -0,0 +1,268 @@
1111 +// Copyright 2012~2013, Weng Xuetian <wengxt@gmail.com>
1212 +// All rights reserved.
1313 +//
100100 +{
101101 + FcitxMozcState* mozcState = (FcitxMozcState*) fcitx_utils_malloc0(sizeof(FcitxMozcState));
102102 + bindtextdomain("fcitx-mozc", LOCALEDIR);
103 + bind_textdomain_codeset("fcitx-mozc", "UTF-8");
103104 +
104105 + mozcState->mozc = new mozc::fcitx::FcitxMozc(
105106 + instance,
740741 +#endif // MOZC_UNIX_FCITX_KEY_EVENT_HANDLER_H_
741742 diff --git a/unix/fcitx/fcitx_key_translator.cc b/unix/fcitx/fcitx_key_translator.cc
742743 new file mode 100644
743 index 0000000..62a87d9
744 index 0000000..e0ccd12
744745 --- /dev/null
745746 +++ b/unix/fcitx/fcitx_key_translator.cc
746 @@ -0,0 +1,528 @@
747 @@ -0,0 +1,524 @@
747748 +// Copyright 2010-2012, Google Inc.
748749 +// Copyright 2012~2013, Weng Xuetian <wengxt@gmail.com>
749750 +// All rights reserved.
869870 + {FcitxKey_KP_Delete, mozc::commands::KeyEvent::DEL},
870871 + {FcitxKey_KP_Insert, mozc::commands::KeyEvent::INSERT},
871872 + {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},
876873 +
877874 + // Shift+TAB.
878875 + {FcitxKey_ISO_Left_Tab, mozc::commands::KeyEvent::TAB},
14011398 +#endif // MOZC_UNIX_FCITX_FCITX_KEY_TRANSLATOR_H_
14021399 diff --git a/unix/fcitx/fcitx_mozc.cc b/unix/fcitx/fcitx_mozc.cc
14031400 new file mode 100644
1404 index 0000000..08be04e
1401 index 0000000..5499fde
14051402 --- /dev/null
14061403 +++ b/unix/fcitx/fcitx_mozc.cc
1407 @@ -0,0 +1,571 @@
1404 @@ -0,0 +1,566 @@
14081405 +// Copyright 2012~2013, Weng Xuetian <wengxt@gmail.com>
14091406 +// All rights reserved.
14101407 +//
18431840 +boolean CompositionMenuAction(struct _FcitxUIMenu *menu, int index)
18441841 +{
18451842 + 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);
18521844 + return true;
18531845 +}
18541846 +
31473139 +echo "Done"
31483140 diff --git a/unix/fcitx/po/de.po b/unix/fcitx/po/de.po
31493141 new file mode 100644
3150 index 0000000..c42eae5
3142 index 0000000..6c9c1e0
31513143 --- /dev/null
31523144 +++ b/unix/fcitx/po/de.po
3153 @@ -0,0 +1,88 @@
3145 @@ -0,0 +1,89 @@
31543146 +# SOME DESCRIPTIVE TITLE.
31553147 +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
31563148 +# This file is distributed under the same license as the PACKAGE package.
31573149 +#
31583150 +# Translators:
3151 +# Seneca, 2013
31593152 +# mar well <marwell.1980@freenet.de>, 2013
31603153 +msgid ""
31613154 +msgstr ""
31623155 +"Project-Id-Version: fcitx\n"
31633156 +"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"
31663159 +"Last-Translator: Xuetian Weng <wengxt@gmail.com>\n"
31673160 +"Language-Team: German (http://www.transifex.com/projects/p/fcitx/language/"
31683161 +"de/)\n"
31903183 +
31913184 +#: ../fcitx_mozc.cc:83
31923185 +msgid "Half ASCII"
3193 +msgstr ""
3186 +msgstr "6-Bit ASCII (Half ASCII)"
31943187 +
31953188 +#: ../fcitx_mozc.cc:88
31963189 +msgid "Full ASCII"
3197 +msgstr ""
3190 +msgstr "7-Bit ASCII (Full ASCII)"
31983191 +
31993192 +#: ../fcitx_mozc.cc:93
32003193 +msgid "Half Katakana"
32013194 +msgstr "Halbbreite Katakana"
32023195 +
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
32043197 +msgid "Composition Mode"
32053198 +msgstr "Kompositionsmodus"
32063199 +
3207 +#: ../fcitx_mozc.cc:405 ../fcitx_mozc.cc:406
3200 +#: ../fcitx_mozc.cc:421 ../fcitx_mozc.cc:422
32083201 +msgid "Tool"
32093202 +msgstr "Werkzeug"
32103203 +
3211 +#: ../fcitx_mozc.cc:486
3204 +#: ../fcitx_mozc.cc:497
32123205 +msgid "Mozc Tool"
32133206 +msgstr "Mozc Werkzeug"
32143207 +
3215 +#: ../fcitx_mozc.cc:492
3208 +#: ../fcitx_mozc.cc:503
32163209 +msgid "Configuration Tool"
32173210 +msgstr "Konfigurationswerkzeug"
32183211 +
3219 +#: ../fcitx_mozc.cc:493
3212 +#: ../fcitx_mozc.cc:504
32203213 +msgid "Dictionary Tool"
32213214 +msgstr "Wörterbuchwerkzeug"
32223215 +
3223 +#: ../fcitx_mozc.cc:494
3216 +#: ../fcitx_mozc.cc:505
32243217 +msgid "Hand Writing"
32253218 +msgstr "Eingabe Handschrift"
32263219 +
3227 +#: ../fcitx_mozc.cc:495
3220 +#: ../fcitx_mozc.cc:506
32283221 +msgid "Character Palette"
32293222 +msgstr "Palette Symbole"
32303223 +
3231 +#: ../fcitx_mozc.cc:496
3224 +#: ../fcitx_mozc.cc:507
32323225 +msgid "Add Word"
32333226 +msgstr "Wort hinzufügen"
32343227 +
3235 +#: ../fcitx_mozc.cc:497
3228 +#: ../fcitx_mozc.cc:508
32363229 +msgid "About Mozc"
32373230 +msgstr "Über Mozc"
32383231 +
3239 +#: ../mozc_response_parser.cc:351
3232 +#: ../mozc_response_parser.cc:374
32403233 +msgid "Press Ctrl+Alt+H to show usages."
32413234 +msgstr ""
32423235 diff --git a/unix/fcitx/po/fcitx-mozc.pot b/unix/fcitx/po/fcitx-mozc.pot
33333326 +msgstr ""
33343327 diff --git a/unix/fcitx/po/ja.po b/unix/fcitx/po/ja.po
33353328 new file mode 100644
3336 index 0000000..7867054
3329 index 0000000..b837570
33373330 --- /dev/null
33383331 +++ b/unix/fcitx/po/ja.po
3339 @@ -0,0 +1,90 @@
3332 @@ -0,0 +1,94 @@
33403333 +# SOME DESCRIPTIVE TITLE.
33413334 +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
33423335 +# This file is distributed under the same license as the PACKAGE package.
33433336 +#
33443337 +# Translators:
3338 +# しろう, 2013
33453339 +# いくや あわしろ <ikunya@gmail.com>, 2013
3346 +# いくや あわしろ <ikunya@gmail.com>, 2012
3340 +# いくや あわしろ <ikunya@gmail.com>, 2012-2013
3341 +# しろう, 2013
3342 +# Xuetian Weng <wengxt@gmail.com>, 2013
33473343 +# Xuetian Weng <wengxt@gmail.com>, 2012
3344 +# Xuetian Weng <wengxt@gmail.com>, 2012-2013
33483345 +msgid ""
33493346 +msgstr ""
33503347 +"Project-Id-Version: fcitx\n"
33513348 +"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"
33553352 +"Language-Team: Japanese (http://www.transifex.com/projects/p/fcitx/language/"
33563353 +"ja/)\n"
33573354 +"Language: ja\n"
33603357 +"Content-Transfer-Encoding: 8bit\n"
33613358 +"Plural-Forms: nplurals=1; plural=0;\n"
33623359 +
3363 +#: ../eim.cc:183
3360 +#: ../eim.cc:184
33643361 +msgid "Press Escape to go back"
33653362 +msgstr "Escキーを押して戻る"
33663363 +
33883385 +msgid "Half Katakana"
33893386 +msgstr "半角カタカナ"
33903387 +
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
33923389 +msgid "Composition Mode"
33933390 +msgstr "変換モード"
33943391 +
3395 +#: ../fcitx_mozc.cc:405 ../fcitx_mozc.cc:406
3392 +#: ../fcitx_mozc.cc:421 ../fcitx_mozc.cc:422
33963393 +msgid "Tool"
33973394 +msgstr "ツール"
33983395 +
3399 +#: ../fcitx_mozc.cc:486
3396 +#: ../fcitx_mozc.cc:497
34003397 +msgid "Mozc Tool"
34013398 +msgstr "Mozc ツール"
34023399 +
3403 +#: ../fcitx_mozc.cc:492
3400 +#: ../fcitx_mozc.cc:503
34043401 +msgid "Configuration Tool"
34053402 +msgstr "設定ツール"
34063403 +
3407 +#: ../fcitx_mozc.cc:493
3404 +#: ../fcitx_mozc.cc:504
34083405 +msgid "Dictionary Tool"
34093406 +msgstr "辞書ツール"
34103407 +
3411 +#: ../fcitx_mozc.cc:494
3408 +#: ../fcitx_mozc.cc:505
34123409 +msgid "Hand Writing"
34133410 +msgstr "手書き文字認識"
34143411 +
3415 +#: ../fcitx_mozc.cc:495
3412 +#: ../fcitx_mozc.cc:506
34163413 +msgid "Character Palette"
34173414 +msgstr "文字パレット"
34183415 +
3419 +#: ../fcitx_mozc.cc:496
3416 +#: ../fcitx_mozc.cc:507
34203417 +msgid "Add Word"
34213418 +msgstr "単語登録"
34223419 +
3423 +#: ../fcitx_mozc.cc:497
3420 +#: ../fcitx_mozc.cc:508
34243421 +msgid "About Mozc"
34253422 +msgstr "Mozc について"
34263423 +
3427 +#: ../mozc_response_parser.cc:351
3424 +#: ../mozc_response_parser.cc:374
34283425 +msgid "Press Ctrl+Alt+H to show usages."
34293426 +msgstr "Ctrl+Alt+H キーを押して用例を表示"
34303427 diff --git a/unix/fcitx/po/zh_CN.po b/unix/fcitx/po/zh_CN.po
34313428 new file mode 100644
3432 index 0000000..0cfc3da
3429 index 0000000..cba3207
34333430 --- /dev/null
34343431 +++ b/unix/fcitx/po/zh_CN.po
3435 @@ -0,0 +1,89 @@
3432 @@ -0,0 +1,90 @@
34363433 +# SOME DESCRIPTIVE TITLE.
34373434 +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
34383435 +# This file is distributed under the same license as the PACKAGE package.
34453442 +msgstr ""
34463443 +"Project-Id-Version: fcitx\n"
34473444 +"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"
34503447 +"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"
34523450 +"Language: zh_CN\n"
34533451 +"MIME-Version: 1.0\n"
34543452 +"Content-Type: text/plain; charset=UTF-8\n"
34573455 +
34583456 +#: ../eim.cc:183
34593457 +msgid "Press Escape to go back"
3460 +msgstr "按下 Escape 返回"
3458 +msgstr ""
34613459 +
34623460 +#: ../fcitx_mozc.cc:68
34633461 +msgid "Direct"
34833481 +msgid "Half Katakana"
34843482 +msgstr "半角片假名"
34853483 +
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
34873485 +msgid "Composition Mode"
34883486 +msgstr "编辑模式"
34893487 +
34913489 +msgid "Tool"
34923490 +msgstr "工具"
34933491 +
3494 +#: ../fcitx_mozc.cc:502
3492 +#: ../fcitx_mozc.cc:497
34953493 +msgid "Mozc Tool"
34963494 +msgstr "Mozc 工具"
34973495 +
3498 +#: ../fcitx_mozc.cc:508
3496 +#: ../fcitx_mozc.cc:503
34993497 +msgid "Configuration Tool"
35003498 +msgstr "配置工具"
35013499 +
3502 +#: ../fcitx_mozc.cc:509
3500 +#: ../fcitx_mozc.cc:504
35033501 +msgid "Dictionary Tool"
35043502 +msgstr "词典工具"
35053503 +
3506 +#: ../fcitx_mozc.cc:510
3504 +#: ../fcitx_mozc.cc:505
35073505 +msgid "Hand Writing"
35083506 +msgstr "手写输入"
35093507 +
3510 +#: ../fcitx_mozc.cc:511
3508 +#: ../fcitx_mozc.cc:506
35113509 +msgid "Character Palette"
35123510 +msgstr "字符映射表"
35133511 +
3514 +#: ../fcitx_mozc.cc:512
3512 +#: ../fcitx_mozc.cc:507
35153513 +msgid "Add Word"
35163514 +msgstr "添加单词"
35173515 +
3518 +#: ../fcitx_mozc.cc:513
3516 +#: ../fcitx_mozc.cc:508
35193517 +msgid "About Mozc"
35203518 +msgstr "关于 Mozc"
35213519 +
35223520 +#: ../mozc_response_parser.cc:374
35233521 +msgid "Press Ctrl+Alt+H to show usages."
3524 +msgstr "按下 Ctrl+Alt+H 显示用法。"
3522 +msgstr ""
35253523 diff --git a/unix/fcitx/po/zh_TW.po b/unix/fcitx/po/zh_TW.po
35263524 new file mode 100644
35273525 index 0000000..62bc891