Commit f1d09789 authored by Aron Xu's avatar Aron Xu

Imported Upstream version 0.2.2

parent 018bf8bf
......@@ -4,7 +4,7 @@ project(fcitx-chewing)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
FIND_PACKAGE(Chewing REQUIRED)
FIND_PACKAGE(Chewing 0.4.0 REQUIRED)
FIND_PACKAGE(Fcitx 4.2.7 REQUIRED)
_fcitx_add_uninstall_target()
......
......@@ -27,11 +27,12 @@ find_library(CHEWING_LIBRARIES
NAMES chewing
HINTS ${PC_LIBCHEWING_LIBDIR})
_pkgconfig_invoke("chewing" CHEWING DATADIR "" "--variable=datadir")
set(CHEWING_INCLUDE_DIR "${CHEWING_MAIN_INCLUDE_DIR}")
set(CHEWING_FOUND ${PC_LIBCHEWING_FOUND})
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Chewing DEFAULT_MSG CHEWING_LIBRARIES CHEWING_MAIN_INCLUDE_DIR CHEWING_DATADIR)
find_package_handle_standard_args(Chewing FOUND_VAR CHEWING_FOUND
REQUIRED_VARS CHEWING_LIBRARIES CHEWING_MAIN_INCLUDE_DIR
VERSION_VAR PC_LIBCHEWING_VERSION)
mark_as_advanced(CHEWING_INCLUDE_DIR CHEWING_LIBRARIES)
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
#
#
# Translators:
# mar well <marwell.1980@freenet.de>, 2013
# mar well <m.wellendorf@gmx.de>, 2013
msgid ""
msgstr ""
"Project-Id-Version: fcitx\n"
"Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n"
"POT-Creation-Date: 2013-06-03 14:02-0400\n"
"POT-Creation-Date: 2013-04-25 00:01-0400\n"
"PO-Revision-Date: 2013-05-22 06:07+0000\n"
"Last-Translator: mar well <marwell.1980@freenet.de>\n"
"Language-Team: German (http://www.transifex.com/projects/p/fcitx/language/"
"de/)\n"
"Language: de\n"
"Last-Translator: mar well <m.wellendorf@gmx.de>\n"
"Language-Team: German (http://www.transifex.com/projects/p/fcitx/language/de/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: de\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: src/eim.c:143 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 "Chewing"
#: src/fcitx-chewing.conf.in:4
msgid "Chewing Wrapper For Fcitx"
msgstr "Chewing Wrapper für Fcitx"
#: src/fcitx-chewing.desc:3
msgid "Selection Key"
msgstr "Auswahltaste"
#: src/fcitx-chewing.desc:6
msgid "1234567890"
msgstr "1234567890"
#: src/fcitx-chewing.desc:7
msgid "asdfghjkl;"
msgstr "asdfghjkl;"
#: src/fcitx-chewing.desc:8
msgid "asdfzxcv89"
msgstr "asdfzxcv89"
#: src/fcitx-chewing.desc:9
msgid "asdfjkl789"
msgstr "asdfjkl789"
#: src/fcitx-chewing.desc:10
msgid "aoeuhtn789"
msgstr "aoeuhtn789"
#: src/fcitx-chewing.desc:11
msgid "1234qweras"
msgstr "1234qweras"
......@@ -31,57 +61,26 @@ msgstr "1234qweras"
msgid "Add Phrase Forward"
msgstr ""
#: src/fcitx-chewing.desc:25
msgid "Automatically shift cursor"
msgstr "Cursor automatisch anheben"
#: src/fcitx-chewing.desc:20
msgid "Backward phrase choice"
msgstr ""
#: src/eim.c:143 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 "Chewing"
#: src/fcitx-chewing.desc:25
msgid "Automatically shift cursor"
msgstr "Cursor automatisch anheben"
#: src/fcitx-chewing.conf.in:4
msgid "Chewing Wrapper For Fcitx"
msgstr "Chewing Wrapper für Fcitx"
#: src/fcitx-chewing.desc:30
msgid "Space as selection key"
msgstr "SPACE als Auswahltaste"
#: src/fcitx-chewing.desc:46
msgid "DACHEN_CP26 Keyboard"
msgstr "DACHEN_CP26 Tastatur"
#: src/fcitx-chewing.desc:35
msgid "Keyboard Layout"
msgstr "Tastaturlayout"
#: src/fcitx-chewing.desc:38
msgid "Default Keyboard"
msgstr "Standard Tastatur"
#: src/fcitx-chewing.desc:44
msgid "Dvorak Keyboard"
msgstr "Dvorak Tastatur"
#: src/fcitx-chewing.desc:45
msgid "Dvorak Keyboard with Hsu's support"
msgstr "Dvorak Keyboard mit Hsu's Unterstützung"
#: src/fcitx-chewing.desc:42
msgid "ETen Keyboard"
msgstr "ETen Tastatur"
#: src/fcitx-chewing.desc:43
msgid "ETen26 Keyboard"
msgstr "ETen26 Tastatur"
#: src/fcitx-chewing.desc:41
msgid "Gin-Yieh Keyboard"
msgstr "Gin-Yieh Tastatur"
#: src/fcitx-chewing.desc:47
msgid "Han-Yu PinYin Keyboard"
msgstr "Han-Yu PinYin Tastatur"
#: src/fcitx-chewing.desc:39
msgid "Hsu's Keyboard"
msgstr "Hsu's Tastatur"
......@@ -90,30 +89,30 @@ msgstr "Hsu's Tastatur"
msgid "IBM Keyboard"
msgstr "IBM Tastatur"
#: src/fcitx-chewing.desc:35
msgid "Keyboard Layout"
msgstr "Tastaturlayout"
#: src/fcitx-chewing.desc:41
msgid "Gin-Yieh Keyboard"
msgstr "Gin-Yieh Tastatur"
#: src/fcitx-chewing.desc:3
msgid "Selection Key"
msgstr "Auswahltaste"
#: src/fcitx-chewing.desc:42
msgid "ETen Keyboard"
msgstr "ETen Tastatur"
#: src/fcitx-chewing.desc:30
msgid "Space as selection key"
msgstr "SPACE als Auswahltaste"
#: src/fcitx-chewing.desc:43
msgid "ETen26 Keyboard"
msgstr "ETen26 Tastatur"
#: src/fcitx-chewing.desc:10
msgid "aoeuhtn789"
msgstr "aoeuhtn789"
#: src/fcitx-chewing.desc:44
msgid "Dvorak Keyboard"
msgstr "Dvorak Tastatur"
#: src/fcitx-chewing.desc:7
msgid "asdfghjkl;"
msgstr "asdfghjkl;"
#: src/fcitx-chewing.desc:45
msgid "Dvorak Keyboard with Hsu's support"
msgstr "Dvorak Keyboard mit Hsu's Unterstützung"
#: src/fcitx-chewing.desc:9
msgid "asdfjkl789"
msgstr "asdfjkl789"
#: src/fcitx-chewing.desc:46
msgid "DACHEN_CP26 Keyboard"
msgstr "DACHEN_CP26 Tastatur"
#: src/fcitx-chewing.desc:8
msgid "asdfzxcv89"
msgstr "asdfzxcv89"
#: src/fcitx-chewing.desc:47
msgid "Han-Yu PinYin Keyboard"
msgstr "Han-Yu PinYin Tastatur"
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
#
#
# Translators:
# しろう <>, 2013
# shirou - しろう <shirou.faw@gmail.com>, 2013
# shirou - しろう <shirou.faw@gmail.com>, 2013
msgid ""
msgstr ""
"Project-Id-Version: fcitx\n"
"Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n"
"POT-Creation-Date: 2013-04-25 00:01-0400\n"
"PO-Revision-Date: 2013-04-14 13:46+0000\n"
"Last-Translator: しろう <>\n"
"Language-Team: Japanese (http://www.transifex.com/projects/p/fcitx/language/"
"ja/)\n"
"Language: ja\n"
"PO-Revision-Date: 2013-08-07 15:08+0000\n"
"Last-Translator: shirou - しろう <shirou.faw@gmail.com>\n"
"Language-Team: Japanese (http://www.transifex.com/projects/p/fcitx/language/ja/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ja\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#: src/eim.c:143 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 ""
#: src/fcitx-chewing.desc:3
msgid "Selection Key"
msgstr "選択キー"
#: src/fcitx-chewing.desc:6
msgid "1234567890"
msgstr "1234567890"
#: src/fcitx-chewing.desc:7
msgid "asdfghjkl;"
msgstr "asdfghjkl;"
#: src/fcitx-chewing.desc:8
msgid "asdfzxcv89"
msgstr "asdfzxcv89"
#: src/fcitx-chewing.desc:9
msgid "asdfjkl789"
msgstr "asdfjkl789"
#: src/fcitx-chewing.desc:10
msgid "aoeuhtn789"
msgstr "aoeuhtn789"
#: src/fcitx-chewing.desc:11
msgid "1234qweras"
msgstr "1234qweras"
......@@ -31,57 +62,26 @@ msgstr "1234qweras"
msgid "Add Phrase Forward"
msgstr ""
#: src/fcitx-chewing.desc:25
msgid "Automatically shift cursor"
msgstr ""
#: src/fcitx-chewing.desc:20
msgid "Backward phrase choice"
msgstr ""
#: src/eim.c:143 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"
#: src/fcitx-chewing.desc:25
msgid "Automatically shift cursor"
msgstr ""
#: src/fcitx-chewing.conf.in:4
msgid "Chewing Wrapper For Fcitx"
msgstr ""
#: src/fcitx-chewing.desc:30
msgid "Space as selection key"
msgstr "スペースを選択キーとして使う"
#: src/fcitx-chewing.desc:46
msgid "DACHEN_CP26 Keyboard"
msgstr "DACHEN_CP26 キーボード"
#: src/fcitx-chewing.desc:35
msgid "Keyboard Layout"
msgstr "キーボードレイアウト"
#: src/fcitx-chewing.desc:38
msgid "Default Keyboard"
msgstr "既定のキーボード"
#: src/fcitx-chewing.desc:44
msgid "Dvorak Keyboard"
msgstr "Dvorak キーボード"
#: src/fcitx-chewing.desc:45
msgid "Dvorak Keyboard with Hsu's support"
msgstr "Hsu サポートの Dvorak キーボード"
#: src/fcitx-chewing.desc:42
msgid "ETen Keyboard"
msgstr "Eten キーボード"
#: src/fcitx-chewing.desc:43
msgid "ETen26 Keyboard"
msgstr "Eten26 キーボード"
#: src/fcitx-chewing.desc:41
msgid "Gin-Yieh Keyboard"
msgstr "Gin-Yieh キーボード"
#: src/fcitx-chewing.desc:47
msgid "Han-Yu PinYin Keyboard"
msgstr "Han-Yu PinYin キーボード"
#: src/fcitx-chewing.desc:39
msgid "Hsu's Keyboard"
msgstr "Hsu キーボード"
......@@ -90,30 +90,30 @@ msgstr "Hsu キーボード"
msgid "IBM Keyboard"
msgstr "IBM キーボード"
#: src/fcitx-chewing.desc:35
msgid "Keyboard Layout"
msgstr "キーボードレイアウト"
#: src/fcitx-chewing.desc:41
msgid "Gin-Yieh Keyboard"
msgstr "Gin-Yieh キーボード"
#: src/fcitx-chewing.desc:3
msgid "Selection Key"
msgstr "選択キー"
#: src/fcitx-chewing.desc:42
msgid "ETen Keyboard"
msgstr "Eten キーボード"
#: src/fcitx-chewing.desc:30
msgid "Space as selection key"
msgstr ""
#: src/fcitx-chewing.desc:43
msgid "ETen26 Keyboard"
msgstr "Eten26 キーボード"
#: src/fcitx-chewing.desc:10
msgid "aoeuhtn789"
msgstr "aoeuhtn789"
#: src/fcitx-chewing.desc:44
msgid "Dvorak Keyboard"
msgstr "Dvorak キーボード"
#: src/fcitx-chewing.desc:7
msgid "asdfghjkl;"
msgstr "asdfghjkl;"
#: src/fcitx-chewing.desc:45
msgid "Dvorak Keyboard with Hsu's support"
msgstr "Hsu サポートの Dvorak キーボード"
#: src/fcitx-chewing.desc:9
msgid "asdfjkl789"
msgstr "asdfjkl789"
#: src/fcitx-chewing.desc:46
msgid "DACHEN_CP26 Keyboard"
msgstr "DACHEN_CP26 キーボード"
#: src/fcitx-chewing.desc:8
msgid "asdfzxcv89"
msgstr "asdfzxcv89"
#: src/fcitx-chewing.desc:47
msgid "Han-Yu PinYin Keyboard"
msgstr "Han-Yu PinYin キーボード"
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
#
#
# Translators:
# Xuetian Weng <wengxt@gmail.com>, 2010-2012
# Xuetian Weng <wengxt@gmail.com>, 2013
......@@ -10,19 +10,50 @@ msgstr ""
"Project-Id-Version: fcitx\n"
"Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n"
"POT-Creation-Date: 2013-04-25 00:01-0400\n"
"PO-Revision-Date: 2013-04-11 19:01+0000\n"
"PO-Revision-Date: 2013-04-29 10:04+0000\n"
"Last-Translator: Xuetian Weng <wengxt@gmail.com>\n"
"Language-Team: Chinese (China) <fcitx-dev@googlegroups.com>\n"
"Language: zh_CN\n"
"Language-Team: Chinese (China) (http://www.transifex.com/projects/p/fcitx/language/zh_CN/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: zh_CN\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#: src/eim.c:143 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:3
msgid "Selection Key"
msgstr "选词键"
#: src/fcitx-chewing.desc:6
msgid "1234567890"
msgstr "1234567890"
#: src/fcitx-chewing.desc:7
msgid "asdfghjkl;"
msgstr "asdfghjkl;"
#: src/fcitx-chewing.desc:8
msgid "asdfzxcv89"
msgstr "asdfzxcv89"
#: src/fcitx-chewing.desc:9
msgid "asdfjkl789"
msgstr "asdfjkl789"
#: src/fcitx-chewing.desc:10
msgid "aoeuhtn789"
msgstr "aoeuhtn789"
#: src/fcitx-chewing.desc:11
msgid "1234qweras"
msgstr "1234qweras"
......@@ -31,57 +62,26 @@ msgstr "1234qweras"
msgid "Add Phrase Forward"
msgstr "前方加词"
#: src/fcitx-chewing.desc:25
msgid "Automatically shift cursor"
msgstr "选词完毕自动移到下一个词"
#: src/fcitx-chewing.desc:20
msgid "Backward phrase choice"
msgstr "后方选择字词"
#: src/eim.c:143 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.desc:25
msgid "Automatically shift cursor"
msgstr "选词完毕自动移到下一个词"
#: src/fcitx-chewing.conf.in:4
msgid "Chewing Wrapper For Fcitx"
msgstr "Fcitx 的 新酷音封装"
#: src/fcitx-chewing.desc:30
msgid "Space as selection key"
msgstr "空格键选词"
#: src/fcitx-chewing.desc:46
msgid "DACHEN_CP26 Keyboard"
msgstr "大千26键键盘"
#: src/fcitx-chewing.desc:35
msgid "Keyboard Layout"
msgstr "键盘布局"
#: src/fcitx-chewing.desc:38
msgid "Default Keyboard"
msgstr "默认键盘"
#: src/fcitx-chewing.desc:44
msgid "Dvorak Keyboard"
msgstr "Dvorak键盘"
#: src/fcitx-chewing.desc:45
msgid "Dvorak Keyboard with Hsu's support"
msgstr "Dvorak键盘 + 许氏注音"
#: src/fcitx-chewing.desc:42
msgid "ETen Keyboard"
msgstr "倚天键盘"
#: src/fcitx-chewing.desc:43
msgid "ETen26 Keyboard"
msgstr "倚天26键键盘"
#: src/fcitx-chewing.desc:41
msgid "Gin-Yieh Keyboard"
msgstr "精业键盘"
#: src/fcitx-chewing.desc:47
msgid "Han-Yu PinYin Keyboard"
msgstr "汉语拼音键盘"
#: src/fcitx-chewing.desc:39
msgid "Hsu's Keyboard"
msgstr "许氏键盘"
......@@ -90,30 +90,30 @@ msgstr "许氏键盘"
msgid "IBM Keyboard"
msgstr "IBM键盘"
#: src/fcitx-chewing.desc:35
msgid "Keyboard Layout"
msgstr "键盘布局"
#: src/fcitx-chewing.desc:41
msgid "Gin-Yieh Keyboard"
msgstr "精业键盘"
#: src/fcitx-chewing.desc:3
msgid "Selection Key"
msgstr "选词键"
#: src/fcitx-chewing.desc:42
msgid "ETen Keyboard"
msgstr "倚天键盘"
#: src/fcitx-chewing.desc:30
msgid "Space as selection key"
msgstr "空格键选词"
#: src/fcitx-chewing.desc:43
msgid "ETen26 Keyboard"
msgstr "倚天26键键盘"
#: src/fcitx-chewing.desc:10
msgid "aoeuhtn789"
msgstr "aoeuhtn789"
#: src/fcitx-chewing.desc:44
msgid "Dvorak Keyboard"
msgstr "Dvorak键盘"
#: src/fcitx-chewing.desc:7
msgid "asdfghjkl;"
msgstr "asdfghjkl;"
#: src/fcitx-chewing.desc:45
msgid "Dvorak Keyboard with Hsu's support"
msgstr "Dvorak键盘 + 许氏注音"
#: src/fcitx-chewing.desc:9
msgid "asdfjkl789"
msgstr "asdfjkl789"
#: src/fcitx-chewing.desc:46
msgid "DACHEN_CP26 Keyboard"
msgstr "大千26键键盘"
#: src/fcitx-chewing.desc:8
msgid "asdfzxcv89"
msgstr "asdfzxcv89"
#: src/fcitx-chewing.desc:47
msgid "Han-Yu PinYin Keyboard"
msgstr "汉语拼音键盘"
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
#
#
# Translators:
# Alisha <alisha.4m@gmail.com>, 2012
# Cheng-Chia Tseng <pswo10680@gmail.com>, 2012
......@@ -12,20 +12,50 @@ msgstr ""
"Project-Id-Version: fcitx\n"
"Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n"
"POT-Creation-Date: 2013-04-25 00:01-0400\n"
"PO-Revision-Date: 2013-04-11 19:01+0000\n"
"PO-Revision-Date: 2013-04-29 10:04+0000\n"
"Last-Translator: Xuetian Weng <wengxt@gmail.com>\n"
"Language-Team: Chinese (Taiwan) (http://www.transifex.com/projects/p/fcitx/"
"language/zh_TW/)\n"
"Language: zh_TW\n"
"Language-Team: Chinese (Taiwan) (http://www.transifex.com/projects/p/fcitx/language/zh_TW/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: zh_TW\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#: src/eim.c:143 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:3
msgid "Selection Key"
msgstr "選詞鍵"
#: src/fcitx-chewing.desc:6
msgid "1234567890"
msgstr "1234567890"
#: src/fcitx-chewing.desc:7
msgid "asdfghjkl;"
msgstr "asdfghjkl;"
#: src/fcitx-chewing.desc:8
msgid "asdfzxcv89"
msgstr "asdfzxcv89"
#: src/fcitx-chewing.desc:9
msgid "asdfjkl789"
msgstr "asdfjkl789"
#: src/fcitx-chewing.desc:10
msgid "aoeuhtn789"
msgstr "aoeuhtn789"
#: src/fcitx-chewing.desc:11
msgid "1234qweras"
msgstr "1234qweras"
......@@ -34,57 +64,26 @@ msgstr "1234qweras"
msgid "Add Phrase Forward"
msgstr "前方加詞"
#: src/fcitx-chewing.desc:25
msgid "Automatically shift cursor"
msgstr "選字完畢自動移到下一個字"
#: src/fcitx-chewing.desc:20
msgid "Backward phrase choice"
msgstr "後方選擇字詞"
#: src/eim.c:143 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.desc:25
msgid "Automatically shift cursor"
msgstr "選字完畢自動移到下一個字"
#: src/fcitx-chewing.conf.in:4
msgid "Chewing Wrapper For Fcitx"
msgstr "Fcitx 的新酷音封装"
#: src/fcitx-chewing.desc:30
msgid "Space as selection key"
msgstr "使用空白鍵選擇候選字詞"
#: src/fcitx-chewing.desc:46
msgid "DACHEN_CP26 Keyboard"
msgstr "大千26鍵"
#: src/fcitx-chewing.desc:35
msgid "Keyboard Layout"
msgstr "鍵盤配置"
#: src/fcitx-chewing.desc:38
msgid "Default Keyboard"
msgstr "預設鍵盤"
#: src/fcitx-chewing.desc:44
msgid "Dvorak Keyboard"
msgstr "Dvorak 鍵盤"
#: src/fcitx-chewing.desc:45
msgid "Dvorak Keyboard with Hsu's support"
msgstr "Dvorak 鍵盤 + 許氏注音"
#: src/fcitx-chewing.desc:42
msgid "ETen Keyboard"
msgstr "倚天鍵盤"
#: src/fcitx-chewing.desc:43
msgid "ETen26 Keyboard"
msgstr "倚天26鍵鍵盤"
#: src/fcitx-chewing.desc:41
msgid "Gin-Yieh Keyboard"
msgstr "精業鍵盤"
#: src/fcitx-chewing.desc:47
msgid "Han-Yu PinYin Keyboard"
msgstr "漢語拼音排列"
#: src/fcitx-chewing.desc:39
msgid "Hsu's Keyboard"
msgstr "許氏鍵盤"
......@@ -93,30 +92,30 @@ msgstr "許氏鍵盤"
msgid "IBM Keyboard"
msgstr "IBM 鍵盤"
#: src/fcitx-chewing.desc:35
msgid "Keyboard Layout"
msgstr "鍵盤配置"
#: src/fcitx-chewing.desc:41
msgid "Gin-Yieh Keyboard"
msgstr "精業鍵盤"
#: src/fcitx-chewing.desc:3
msgid "Selection Key"
msgstr "選詞鍵"
#: src/fcitx-chewing.desc:42
msgid "ETen Keyboard"
msgstr "倚天鍵盤"
#: src/fcitx-chewing.desc:30
msgid "Space as selection key"
msgstr "使用空白鍵選擇候選字詞"
#: src/fcitx-chewing.desc:43
msgid "ETen26 Keyboard"
msgstr "倚天26鍵鍵盤"
#: src/fcitx-chewing.desc:10
msgid "aoeuhtn789"
msgstr "aoeuhtn789"
#: src/fcitx-chewing.desc:44
msgid "Dvorak Keyboard"
msgstr "Dvorak 鍵盤"
#: src/fcitx-chewing.desc:7
msgid "asdfghjkl;"
msgstr "asdfghjkl;"
#: src/fcitx-chewing.desc:45
msgid "Dvorak Keyboard with Hsu's support"
msgstr "Dvorak 鍵盤 + 許氏注音"
#: src/fcitx-chewing.desc:9
msgid "asdfjkl789"
msgstr "asdfjkl789"
#: src/fcitx-chewing.desc:46
msgid "DACHEN_CP26 Keyboard"
msgstr "大千26鍵"
#: src/fcitx-chewing.desc:8
msgid "asdfzxcv89"
msgstr "asdfzxcv89"
#: src/fcitx-chewing.desc:47
msgid "Han-Yu PinYin Keyboard"
msgstr "漢語拼音排列"
......@@ -102,21 +102,25 @@ void* FcitxChewingCreate(FcitxInstance* instance)
fclose(fp);
FcitxXDGGetFileUserWithPrefix("chewing", "", NULL, &user_path);
FcitxLog(INFO, "Chewing storage path %s", user_path);
if (0 == chewing_Init(CHEWING_DATADIR, user_path)) {
FcitxLog(DEBUG, "chewing init ok");
} else {
FcitxLog(DEBUG, "chewing init failed");
return NULL;
}
FcitxChewing* chewing = (FcitxChewing*) fcitx_utils_malloc0(sizeof(FcitxChewing));
FcitxGlobalConfig* config = FcitxInstanceGetGlobalConfig(instance);
FcitxInputState *input = FcitxInstanceGetInputState(instance);
bindtextdomain("fcitx-chewing", LOCALEDIR);
bind_textdomain_codeset("fcitx-chewing", "UTF-8");
chewing->context = chewing_new();
ChewingContext * ctx = chewing->context;
if (NULL == chewing->context) {
FcitxLog(DEBUG, "chewing init failed");
free(chewing);
return NULL;
} else {
FcitxLog(DEBUG, "chewing init ok");
}
chewing->owner = instance;
chewing_set_maxChiSymbolLen(ctx, CHEWING_MAX_LEN);
// chewing will crash without set page
......@@ -127,6 +131,7 @@ void* FcitxChewingCreate(FcitxInstance* instance)
FcitxIMIFace iface;
memset(&iface, 0, sizeof(FcitxIMIFace));
iface.Init = FcitxChewingInit;
iface.ResetIM = FcitxChewingReset;
iface.DoInput = FcitxChewingDoInput;
......@@ -146,6 +151,7 @@ void* FcitxChewingCreate(FcitxInstance* instance)
1,
"zh_TW"
);
return chewing;
}
......@@ -160,8 +166,7 @@ void* FcitxChewingCreate(FcitxInstance* instance)
INPUT_RETURN_VALUE FcitxChewingDoInput(void* arg, FcitxKeySym sym, unsigned int state)
{