Skip to content

Commit a25d128

Browse files
jaysa68Jaysa Garcia24apricots
committed
More keyboard languages (#221)
* libpinyin support * fix pkg name * add fcitx5 support fully * remove cosmic input from tray so theres only fcitx5 * remove cached layouts --------- Co-authored-by: Jaysa Garcia <jaysa@spots.ocf.berkeley.edu> Co-authored-by: 24apricots <michaelzls@berkeley.edu>
1 parent c64e0f5 commit a25d128

6 files changed

Lines changed: 390 additions & 1 deletion

File tree

modules/graphical/default.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,15 @@ in
7171
{
7272
i18n.inputMethod = {
7373
enable = true;
74+
# see https://github.com/pop-os/libcosmic/pull/1182, cosmic specific text will have ime support once this is merged soon
75+
# see skel/.config/fcitx5 for IMEs enabled by default on cosmic
7476
type = "fcitx5";
7577
fcitx5.waylandFrontend = true;
7678
fcitx5.addons = with pkgs; [
7779
fcitx5-gtk
7880
fcitx5-mozc
7981
fcitx5-rime
82+
qt6Packages.fcitx5-chinese-addons
8083
fcitx5-hangul
8184
kdePackages.fcitx5-unikey
8285
fcitx5-bamboo

modules/graphical/skel/.config/cosmic/com.system76.CosmicPanel.Panel/v1/plugins_wings

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ Some(([
44
"com.system76.CosmicAppletWorkspaces",
55
], [
66
"ocf-theme-applet",
7-
"com.system76.CosmicAppletInputSources",
87
"com.system76.CosmicAppletStatusArea",
98
"com.system76.CosmicAppletA11y",
109
"io.github.cosmic_utils.cosmic-ext-applet-external-monitor-brightness",
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Keyboard Layout
2+
Keyboard=Dubeolsik
3+
# Auto Reorder
4+
AutoReorder=True
5+
# Word Commit
6+
WordCommit=False
7+
# Hanja Mode
8+
HanjaMode=False
9+
10+
[HanjaModeToggleKey]
11+
0=Hangul_Hanja
12+
1=F9
13+
14+
[PrevPage]
15+
0=Up
16+
17+
[NextPage]
18+
0=Down
19+
20+
[PrevCandidate]
21+
0=Shift+Tab
22+
23+
[NextCandidate]
24+
0=Tab
25+
Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
# Shuangpin Profile
2+
ShuangpinProfile=Ziranma
3+
# Show current shuangpin mode
4+
ShowShuangpinMode=True
5+
# Candidates Per Page
6+
PageSize=7
7+
# Show English Candidates
8+
SpellEnabled=True
9+
# Show symbol candidates
10+
SymbolsEnabled=True
11+
# Show Chaizi candidates
12+
ChaiziEnabled=True
13+
# Enable more Characters after Unicode CJK Extension B
14+
ExtBEnabled=True
15+
# Show stroke candidates when typing with h(一), s(丨), p(丿), n(㇏), z(𠃍)
16+
StrokeCandidateEnabled=True
17+
# Enable Cloud Pinyin
18+
CloudPinyinEnabled=False
19+
# Cloud Pinyin Candidate Order
20+
CloudPinyinIndex=2
21+
# Show animation when Cloud Pinyin is loading
22+
CloudPinyinAnimation=True
23+
# Always show Cloud Pinyin place holder
24+
KeepCloudPinyinPlaceHolder=False
25+
# Preedit Mode
26+
PreeditMode="Composing pinyin"
27+
# Fix embedded preedit cursor at the beginning of the preedit
28+
PreeditCursorPositionAtBeginning=True
29+
# Show complete pinyin in preedit
30+
PinyinInPreedit=False
31+
# Enable Prediction
32+
Prediction=False
33+
# Number of Predictions
34+
PredictionSize=49
35+
# Backspace behavior on prediction
36+
BackspaceBehaviorOnPrediction="Backspace when not using on-screen keyboard"
37+
# Action when switching input method
38+
SwitchInputMethodBehavior="Commit current preedit"
39+
# Select Second Candidate
40+
SecondCandidate=
41+
# Select Third Candidate
42+
ThirdCandidate=
43+
# Use Keypad as Selection key
44+
UseKeypadAsSelection=False
45+
# Use BackSpace to cancel the selection
46+
BackSpaceToUnselect=True
47+
# Number of Sentences
48+
Number of sentence=2
49+
# Number of Phrase Candidates
50+
WordCandidateLimit=15
51+
# Prompt long word length when input length over (0 for disable)
52+
LongWordLengthLimit=4
53+
# Key to trigger quickphrase
54+
QuickPhraseKey=semicolon
55+
# Use V to trigger quickphrase
56+
VAsQuickphrase=True
57+
# FirstRun
58+
FirstRun=False
59+
60+
[ForgetWord]
61+
0=Control+7
62+
63+
[PrevPage]
64+
0=minus
65+
1=Up
66+
2=KP_Up
67+
3=Page_Up
68+
69+
[NextPage]
70+
0=equal
71+
1=Down
72+
2=KP_Down
73+
3=Next
74+
75+
[PrevCandidate]
76+
0=Shift+Tab
77+
78+
[NextCandidate]
79+
0=Tab
80+
81+
[CurrentCandidate]
82+
0=space
83+
1=KP_Space
84+
85+
[CommitRawInput]
86+
0=Return
87+
1=KP_Enter
88+
2=Control+Return
89+
3=Control+KP_Enter
90+
4=Shift+Return
91+
5=Shift+KP_Enter
92+
6=Control+Shift+Return
93+
7=Control+Shift+KP_Enter
94+
95+
[ChooseCharFromPhrase]
96+
0=bracketleft
97+
1=bracketright
98+
99+
[FilterByStroke]
100+
0=grave
101+
102+
[QuickPhraseTriggerRegex]
103+
0=.(/|@)$
104+
1=^(www|bbs|forum|mail|bbs)\\.
105+
2=^(http|https|ftp|telnet|mailto):
106+
107+
[Fuzzy]
108+
# ue -> ve
109+
VE_UE=True
110+
# Common Typo
111+
NG_GN=True
112+
# Inner Segment (xian -> xi'an)
113+
Inner=True
114+
# Inner Segment for Short Pinyin (qie -> qi'e)
115+
InnerShort=True
116+
# Match partial finals (e -> en, eng, ei)
117+
PartialFinal=True
118+
# Match partial shuangpin if input length is longer than 4
119+
PartialSp=False
120+
# u <-> v
121+
V_U=False
122+
# an <-> ang
123+
AN_ANG=False
124+
# en <-> eng
125+
EN_ENG=False
126+
# ian <-> iang
127+
IAN_IANG=False
128+
# in <-> ing
129+
IN_ING=False
130+
# u <-> ou
131+
U_OU=False
132+
# uan <-> uang
133+
UAN_UANG=False
134+
# c <-> ch
135+
C_CH=False
136+
# f <-> h
137+
F_H=False
138+
# l <-> n
139+
L_N=False
140+
# l <-> r
141+
L_R=False
142+
# s <-> sh
143+
S_SH=False
144+
# z <-> zh
145+
Z_ZH=False
146+
# Correction Layout
147+
Correction=None
148+
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
[Hotkey]
2+
# Enumerate when holding modifier of Toggle key
3+
EnumerateWithTriggerKeys=True
4+
# Enumerate Input Method Forward
5+
EnumerateForwardKeys=
6+
# Enumerate Input Method Backward
7+
EnumerateBackwardKeys=
8+
# Skip first input method while enumerating
9+
EnumerateSkipFirst=False
10+
# Time limit in milliseconds for triggering modifier key shortcuts
11+
ModifierOnlyKeyTimeout=250
12+
13+
[Hotkey/TriggerKeys]
14+
0=Control+space
15+
1=Zenkaku_Hankaku
16+
2=Hangul
17+
18+
[Hotkey/ActivateKeys]
19+
0=Hangul_Hanja
20+
21+
[Hotkey/DeactivateKeys]
22+
0=Hangul_Romaja
23+
24+
[Hotkey/AltTriggerKeys]
25+
0=Shift_L
26+
27+
[Hotkey/EnumerateGroupForwardKeys]
28+
0=Super+space
29+
30+
[Hotkey/EnumerateGroupBackwardKeys]
31+
0=Shift+Super+space
32+
33+
[Hotkey/PrevPage]
34+
0=Up
35+
36+
[Hotkey/NextPage]
37+
0=Down
38+
39+
[Hotkey/PrevCandidate]
40+
0=Shift+Tab
41+
42+
[Hotkey/NextCandidate]
43+
0=Tab
44+
45+
[Hotkey/TogglePreedit]
46+
0=Control+Alt+P
47+
48+
[Behavior]
49+
# Active By Default
50+
ActiveByDefault=False
51+
# Reset state on Focus In
52+
resetStateWhenFocusIn=No
53+
# Share Input State
54+
ShareInputState=No
55+
# Show preedit in application
56+
PreeditEnabledByDefault=True
57+
# Show Input Method Information when switch input method
58+
ShowInputMethodInformation=True
59+
# Show Input Method Information when changing focus
60+
showInputMethodInformationWhenFocusIn=False
61+
# Show compact input method information
62+
CompactInputMethodInformation=True
63+
# Show first input method information
64+
ShowFirstInputMethodInformation=True
65+
# Default page size
66+
DefaultPageSize=5
67+
# Override XKB Option
68+
OverrideXkbOption=False
69+
# Custom XKB Option
70+
CustomXkbOption=
71+
# Force Enabled Addons
72+
EnabledAddons=
73+
# Force Disabled Addons
74+
DisabledAddons=
75+
# Preload input method to be used by default
76+
PreloadInputMethod=True
77+
# Allow input method in the password field
78+
AllowInputMethodForPassword=False
79+
# Show preedit text when typing password
80+
ShowPreeditForPassword=False
81+
# Interval of saving user data in minutes
82+
AutoSavePeriod=30
83+

0 commit comments

Comments
 (0)