Permalink
Browse files

[chewing] use new 4.2.7 api for paging, and add option for customize …

…selection key
  • Loading branch information...
1 parent b6fd6cf commit 3eddb901616f1e9a9704e7e6e247313a86992ff6 @wengxt wengxt committed Apr 2, 2013
Showing with 197 additions and 73 deletions.
  1. +47 −18 po/fcitx-chewing.pot
  2. +49 −19 po/zh_CN.po
  3. +49 −19 po/zh_TW.po
  4. +1 −0 src/config.c
  5. +37 −17 src/eim.c
  6. +2 −0 src/eim.h
  7. +12 −0 src/fcitx-chewing.desc
View
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n"
-"POT-Creation-Date: 2013-01-25 13:06-0500\n"
+"POT-Creation-Date: 2013-04-01 23:00-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -17,9 +17,10 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
-#: src/eim.c:129 src/chewing.conf.in:3 src/fcitx-chewing.conf.in:3
-#: src/fcitx-chewing.desc:1 src/fcitx-chewing.desc:6 src/fcitx-chewing.desc:11
-#: src/fcitx-chewing.desc:16 src/fcitx-chewing.desc:21
+#: src/eim.c:142 src/chewing.conf.in:3 src/fcitx-chewing.conf.in:3
+#: src/fcitx-chewing.desc:1 src/fcitx-chewing.desc:13
+#: src/fcitx-chewing.desc:18 src/fcitx-chewing.desc:23
+#: src/fcitx-chewing.desc:28 src/fcitx-chewing.desc:33
msgid "Chewing"
msgstr ""
@@ -28,61 +29,89 @@ msgid "Chewing Wrapper For Fcitx"
msgstr ""
#: src/fcitx-chewing.desc:3
-msgid "Add Phrase Forward"
+msgid "Selection Key"
+msgstr ""
+
+#: src/fcitx-chewing.desc:6
+msgid "1234567890"
+msgstr ""
+
+#: src/fcitx-chewing.desc:7
+msgid "asdfghjkl;"
msgstr ""
#: src/fcitx-chewing.desc:8
+msgid "asdfzxcv89"
+msgstr ""
+
+#: src/fcitx-chewing.desc:9
+msgid "asdfjkl789"
+msgstr ""
+
+#: src/fcitx-chewing.desc:10
+msgid "aoeuhtn789"
+msgstr ""
+
+#: src/fcitx-chewing.desc:11
+msgid "1234qweras"
+msgstr ""
+
+#: src/fcitx-chewing.desc:15
+msgid "Add Phrase Forward"
+msgstr ""
+
+#: src/fcitx-chewing.desc:20
msgid "Backward phrase choice"
msgstr ""
-#: src/fcitx-chewing.desc:13
+#: src/fcitx-chewing.desc:25
msgid "Automatically shift cursor"
msgstr ""
-#: src/fcitx-chewing.desc:18
+#: src/fcitx-chewing.desc:30
msgid "Space as selection key"
msgstr ""
-#: src/fcitx-chewing.desc:23
+#: src/fcitx-chewing.desc:35
msgid "Keyboard Layout"
msgstr ""
-#: src/fcitx-chewing.desc:26
+#: src/fcitx-chewing.desc:38
msgid "Default Keyboard"
msgstr ""
-#: src/fcitx-chewing.desc:27
+#: src/fcitx-chewing.desc:39
msgid "Hsu's Keyboard"
msgstr ""
-#: src/fcitx-chewing.desc:28
+#: src/fcitx-chewing.desc:40
msgid "IBM Keyboard"
msgstr ""
-#: src/fcitx-chewing.desc:29
+#: src/fcitx-chewing.desc:41
msgid "Gin-Yieh Keyboard"
msgstr ""
-#: src/fcitx-chewing.desc:30
+#: src/fcitx-chewing.desc:42
msgid "ETen Keyboard"
msgstr ""
-#: src/fcitx-chewing.desc:31
+#: src/fcitx-chewing.desc:43
msgid "ETen26 Keyboard"
msgstr ""
-#: src/fcitx-chewing.desc:32
+#: src/fcitx-chewing.desc:44
msgid "Dvorak Keyboard"
msgstr ""
-#: src/fcitx-chewing.desc:33
+#: src/fcitx-chewing.desc:45
msgid "Dvorak Keyboard with Hsu's support"
msgstr ""
-#: src/fcitx-chewing.desc:34
+#: src/fcitx-chewing.desc:46
msgid "DACHEN_CP26 Keyboard"
msgstr ""
-#: src/fcitx-chewing.desc:35
+#: src/fcitx-chewing.desc:47
msgid "Han-Yu PinYin Keyboard"
msgstr ""
View
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: fcitx\n"
"Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n"
-"POT-Creation-Date: 2013-01-25 13:06-0500\n"
+"POT-Creation-Date: 2013-04-01 23:00-0400\n"
"PO-Revision-Date: 2012-01-25 08:25+0000\n"
"Last-Translator: Xuetian Weng <wengxt@gmail.com>\n"
"Language-Team: Chinese (China) <fcitx-dev@googlegroups.com>\n"
@@ -18,72 +18,102 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
-#: src/fcitx-chewing.desc:3
+#: src/fcitx-chewing.desc:6
+msgid "1234567890"
+msgstr ""
+
+#: src/fcitx-chewing.desc:11
+msgid "1234qweras"
+msgstr ""
+
+#: src/fcitx-chewing.desc:15
msgid "Add Phrase Forward"
msgstr "前方加词"
-#: src/fcitx-chewing.desc:13
+#: src/fcitx-chewing.desc:25
msgid "Automatically shift cursor"
msgstr "选词完毕自动移到下一个词"
-#: src/fcitx-chewing.desc:8
+#: src/fcitx-chewing.desc:20
msgid "Backward phrase choice"
msgstr "后方选择字词"
-#: src/eim.c:129 src/chewing.conf.in:3 src/fcitx-chewing.conf.in:3
-#: src/fcitx-chewing.desc:1 src/fcitx-chewing.desc:6 src/fcitx-chewing.desc:11
-#: src/fcitx-chewing.desc:16 src/fcitx-chewing.desc:21
+#: src/eim.c:142 src/chewing.conf.in:3 src/fcitx-chewing.conf.in:3
+#: src/fcitx-chewing.desc:1 src/fcitx-chewing.desc:13
+#: src/fcitx-chewing.desc:18 src/fcitx-chewing.desc:23
+#: src/fcitx-chewing.desc:28 src/fcitx-chewing.desc:33
msgid "Chewing"
msgstr "新酷音"
#: src/fcitx-chewing.conf.in:4
msgid "Chewing Wrapper For Fcitx"
msgstr "Fcitx 的 新酷音封装"
-#: src/fcitx-chewing.desc:34
+#: src/fcitx-chewing.desc:46
msgid "DACHEN_CP26 Keyboard"
msgstr "大千26键键盘"
-#: src/fcitx-chewing.desc:26
+#: src/fcitx-chewing.desc:38
msgid "Default Keyboard"
msgstr "默认键盘"
-#: src/fcitx-chewing.desc:32
+#: src/fcitx-chewing.desc:44
msgid "Dvorak Keyboard"
msgstr "Dvorak键盘"
-#: src/fcitx-chewing.desc:33
+#: src/fcitx-chewing.desc:45
msgid "Dvorak Keyboard with Hsu's support"
msgstr "Dvorak键盘 + 许氏注音"
-#: src/fcitx-chewing.desc:30
+#: src/fcitx-chewing.desc:42
msgid "ETen Keyboard"
msgstr "倚天键盘"
-#: src/fcitx-chewing.desc:31
+#: src/fcitx-chewing.desc:43
msgid "ETen26 Keyboard"
msgstr "倚天26键键盘"
-#: src/fcitx-chewing.desc:29
+#: src/fcitx-chewing.desc:41
msgid "Gin-Yieh Keyboard"
msgstr "精业键盘"
-#: src/fcitx-chewing.desc:35
+#: src/fcitx-chewing.desc:47
msgid "Han-Yu PinYin Keyboard"
msgstr "汉语拼音键盘"
-#: src/fcitx-chewing.desc:27
+#: src/fcitx-chewing.desc:39
msgid "Hsu's Keyboard"
msgstr "许氏键盘"
-#: src/fcitx-chewing.desc:28
+#: src/fcitx-chewing.desc:40
msgid "IBM Keyboard"
msgstr "IBM键盘"
-#: src/fcitx-chewing.desc:23
+#: src/fcitx-chewing.desc:35
msgid "Keyboard Layout"
msgstr "键盘布局"
-#: src/fcitx-chewing.desc:18
+#: src/fcitx-chewing.desc:3
+#, fuzzy
+msgid "Selection Key"
+msgstr "空格键选词"
+
+#: src/fcitx-chewing.desc:30
msgid "Space as selection key"
msgstr "空格键选词"
+
+#: src/fcitx-chewing.desc:10
+msgid "aoeuhtn789"
+msgstr ""
+
+#: src/fcitx-chewing.desc:7
+msgid "asdfghjkl;"
+msgstr ""
+
+#: src/fcitx-chewing.desc:9
+msgid "asdfjkl789"
+msgstr ""
+
+#: src/fcitx-chewing.desc:8
+msgid "asdfzxcv89"
+msgstr ""
View
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: fcitx\n"
"Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n"
-"POT-Creation-Date: 2013-01-25 13:06-0500\n"
+"POT-Creation-Date: 2013-04-01 23:00-0400\n"
"PO-Revision-Date: 2012-12-06 16:36+0000\n"
"Last-Translator: Hiunn_Hue <hiunnhue108@ymail.com>\n"
"Language-Team: Chinese (Taiwan) (http://www.transifex.com/projects/p/fcitx/"
@@ -22,72 +22,102 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
-#: src/fcitx-chewing.desc:3
+#: src/fcitx-chewing.desc:6
+msgid "1234567890"
+msgstr ""
+
+#: src/fcitx-chewing.desc:11
+msgid "1234qweras"
+msgstr ""
+
+#: src/fcitx-chewing.desc:15
msgid "Add Phrase Forward"
msgstr "前方加詞"
-#: src/fcitx-chewing.desc:13
+#: src/fcitx-chewing.desc:25
msgid "Automatically shift cursor"
msgstr "選字完畢自動移到下一個字"
-#: src/fcitx-chewing.desc:8
+#: src/fcitx-chewing.desc:20
msgid "Backward phrase choice"
msgstr "後方選擇字詞"
-#: src/eim.c:129 src/chewing.conf.in:3 src/fcitx-chewing.conf.in:3
-#: src/fcitx-chewing.desc:1 src/fcitx-chewing.desc:6 src/fcitx-chewing.desc:11
-#: src/fcitx-chewing.desc:16 src/fcitx-chewing.desc:21
+#: src/eim.c:142 src/chewing.conf.in:3 src/fcitx-chewing.conf.in:3
+#: src/fcitx-chewing.desc:1 src/fcitx-chewing.desc:13
+#: src/fcitx-chewing.desc:18 src/fcitx-chewing.desc:23
+#: src/fcitx-chewing.desc:28 src/fcitx-chewing.desc:33
msgid "Chewing"
msgstr "新酷音"
#: src/fcitx-chewing.conf.in:4
msgid "Chewing Wrapper For Fcitx"
msgstr "Fcitx 的新酷音封装"
-#: src/fcitx-chewing.desc:34
+#: src/fcitx-chewing.desc:46
msgid "DACHEN_CP26 Keyboard"
msgstr "大千26鍵"
-#: src/fcitx-chewing.desc:26
+#: src/fcitx-chewing.desc:38
msgid "Default Keyboard"
msgstr "預設鍵盤"
-#: src/fcitx-chewing.desc:32
+#: src/fcitx-chewing.desc:44
msgid "Dvorak Keyboard"
msgstr "Dvorak 鍵盤"
-#: src/fcitx-chewing.desc:33
+#: src/fcitx-chewing.desc:45
msgid "Dvorak Keyboard with Hsu's support"
msgstr "Dvorak 鍵盤 + 許氏注音"
-#: src/fcitx-chewing.desc:30
+#: src/fcitx-chewing.desc:42
msgid "ETen Keyboard"
msgstr "倚天鍵盤"
-#: src/fcitx-chewing.desc:31
+#: src/fcitx-chewing.desc:43
msgid "ETen26 Keyboard"
msgstr "倚天26鍵鍵盤"
-#: src/fcitx-chewing.desc:29
+#: src/fcitx-chewing.desc:41
msgid "Gin-Yieh Keyboard"
msgstr "精業鍵盤"
-#: src/fcitx-chewing.desc:35
+#: src/fcitx-chewing.desc:47
msgid "Han-Yu PinYin Keyboard"
msgstr "漢語拼音排列"
-#: src/fcitx-chewing.desc:27
+#: src/fcitx-chewing.desc:39
msgid "Hsu's Keyboard"
msgstr "許氏鍵盤"
-#: src/fcitx-chewing.desc:28
+#: src/fcitx-chewing.desc:40
msgid "IBM Keyboard"
msgstr "IBM 鍵盤"
-#: src/fcitx-chewing.desc:23
+#: src/fcitx-chewing.desc:35
msgid "Keyboard Layout"
msgstr "鍵盤配置"
-#: src/fcitx-chewing.desc:18
+#: src/fcitx-chewing.desc:3
+#, fuzzy
+msgid "Selection Key"
+msgstr "使用空白鍵選擇候選字詞"
+
+#: src/fcitx-chewing.desc:30
msgid "Space as selection key"
msgstr "使用空白鍵選擇候選字詞"
+
+#: src/fcitx-chewing.desc:10
+msgid "aoeuhtn789"
+msgstr ""
+
+#: src/fcitx-chewing.desc:7
+msgid "asdfghjkl;"
+msgstr ""
+
+#: src/fcitx-chewing.desc:9
+msgid "asdfjkl789"
+msgstr ""
+
+#: src/fcitx-chewing.desc:8
+msgid "asdfzxcv89"
+msgstr ""
View
@@ -22,6 +22,7 @@
/* USE fcitx provided macro to bind config and variable */
CONFIG_BINDING_BEGIN(FcitxChewingConfig)
+CONFIG_BINDING_REGISTER("Chewing", "SelectionKey", selkey)
CONFIG_BINDING_REGISTER("Chewing", "AddPhraseForward", bAddPhraseForward)
CONFIG_BINDING_REGISTER("Chewing", "ChoiceBackward", bChoiceBackward)
CONFIG_BINDING_REGISTER("Chewing", "AutoShiftCursor", bAutoShiftCursor)
Oops, something went wrong.

0 comments on commit 3eddb90

Please sign in to comment.