Revision 11289,
2.9 KB
checked in by ara_t, 7 years ago
(diff) |
fcitx-skk: add fcitx-0.1.3-skk-newChooseKeyType.patch
|
-
diff -u -r fcitx-skk-0.1.3-orig/po/fcitx-skk.pot fcitx-skk-0.1.3/po/fcitx-skk.pot
old
|
new
|
|
166 | 166 | #: src/fcitx-skk.desc:61 |
167 | 167 | msgid "Qwerty Center Row (a,s,d,...)" |
168 | 168 | msgstr "" |
| 169 | |
| 170 | msgid "Qwerty Center Row2 (asdfjkl)" |
| 171 | msgstr "" |
-
diff -u -r fcitx-skk-0.1.3-orig/po/ja.po fcitx-skk-0.1.3/po/ja.po
old
|
new
|
|
126 | 126 | msgid "Qwerty Center Row (a,s,d,...)" |
127 | 127 | msgstr "Qwertyキーボード中央行 (a,s,d,...)" |
128 | 128 | |
| 129 | msgid "Qwerty Center Row2 (asdfjkl)" |
| 130 | msgstr "Qwertyキーボード中央行2 (asdfjkl)" |
| 131 | |
129 | 132 | #: src/fcitx-skk.desc:31 |
130 | 133 | msgid "Return-key does not insert new line on commit" |
131 | 134 | msgstr "確定時にリターンキーを押しても改行を挿入しない" |
-
diff -u -r fcitx-skk-0.1.3-orig/src/fcitx-skk.desc fcitx-skk-0.1.3/src/fcitx-skk.desc
old
|
new
|
|
55 | 55 | [General/CandidateChooseKey] |
56 | 56 | Type=Enum |
57 | 57 | Description=Keys to Select from Candidate Window |
58 | | EnumCount=3 |
| 58 | EnumCount=4 |
59 | 59 | Enum0=Digit (0,1,2,...) |
60 | 60 | Enum1=ABC (a,b,c,...) |
61 | 61 | Enum2=Qwerty Center Row (a,s,d,...) |
| 62 | Enum3=Qwerty Center Row2 (asdfjkl) |
62 | 63 | DefaultValue=Digit (0,1,2,...) |
63 | 64 | |
64 | 65 | |
-
diff -u -r fcitx-skk-0.1.3-orig/src/skk.c fcitx-skk-0.1.3/src/skk.c
old
|
new
|
|
637 | 637 | case ChooseASDF: |
638 | 638 | FcitxCandidateWordSetChoose(candList, ASDF_STR_CHOOSE); |
639 | 639 | break; |
| 640 | case ChooseASDFJ: |
| 641 | FcitxCandidateWordSetChoose(candList, ASDFJ_STR_CHOOSE); |
| 642 | break; |
640 | 643 | case ChooseDigit: |
641 | 644 | // FALL THRU |
642 | 645 | default: |
… |
… |
|
644 | 647 | break; |
645 | 648 | } |
646 | 649 | |
647 | | FcitxCandidateWordSetPageSize(candList, skk->config.pageSize); |
| 650 | switch (skk->config.candidateChooseKey){ |
| 651 | case ChooseASDFJ: |
| 652 | FcitxCandidateWordSetPageSize(candList, 7); |
| 653 | break; |
| 654 | default: |
| 655 | FcitxCandidateWordSetPageSize(candList, skk->config.pageSize); |
| 656 | break; |
| 657 | } |
648 | 658 | FcitxCandidateWordSetLayoutHint(candList, skk->config.candidateLayout); |
649 | 659 | |
650 | 660 | if (skk_candidate_list_get_page_visible(skkCandList)) { |
-
diff -u -r fcitx-skk-0.1.3-orig/src/skk.h fcitx-skk-0.1.3/src/skk.h
old
|
new
|
|
35 | 35 | |
36 | 36 | #define ABCD_STR_CHOOSE "abcdefghij" |
37 | 37 | #define ASDF_STR_CHOOSE "asdfghjkl;" |
| 38 | #define ASDFJ_STR_CHOOSE "asdfjkl;" |
38 | 39 | |
39 | 40 | typedef enum _FcitxSkkChooseKeyType { |
40 | 41 | ChooseDigit, |
41 | 42 | ChooseABCD, |
42 | | ChooseASDF |
| 43 | ChooseASDF, |
| 44 | ChooseASDFJ |
43 | 45 | } FcitxSkkChooseKeyType; |
44 | 46 | |
45 | 47 | typedef struct _FcitxSkkConfig { |
Note: See
TracBrowser
for help on using the repository browser.