summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChangwoo Ryu <cwryu@debian.org>2014-09-28 06:07:55 +0900
committerSergey Udaltsov <sergey.udaltsov@gmail.com>2015-01-15 01:13:29 +0000
commitf102fb0df6211d56ea1951fc1c35fb13cbc3d7d2 (patch)
tree95ac4420d476d714e2524431128c33d93b36011f
parentf1868bdacb4c227e1daa4088fb28f5968874a38e (diff)
update Korean
- Clear modifier when using RAlt/RCtrl as Hangul/Hanja keys https://bugs.freedesktop.org/show_bug.cgi?id=71696 - Add a new option, Korean Hangul/Hanja keys - Old kr and kr(kr104) layouts still remain, but as preset combinations of above options.
-rw-r--r--rules/base.o_s.part2
-rw-r--r--rules/base.xml.in24
-rw-r--r--symbols/kr48
-rw-r--r--symbols/sun_vndr/kr28
4 files changed, 85 insertions, 17 deletions
diff --git a/rules/base.o_s.part b/rules/base.o_s.part
index cda36e45..5e6f6648 100644
--- a/rules/base.o_s.part
+++ b/rules/base.o_s.part
@@ -125,6 +125,8 @@
nbsp:level4nl = +nbsp(level4nl)
japan:nicola_f_bs = +jp(nicola_f_bs)
japan:hztg_escape = +jp(hztg_escape)
+ korean:ralt_rctrl = +kr(ralt_hangul)+kr(rctrl_hanja)
+ korean:rctrl_ralt = +kr(rctrl_hangul)+kr(ralt_hanja)
kpdl:dot = +kpdl(dot)
kpdl:comma = +kpdl(comma)
kpdl:dotoss = +kpdl(dotoss)
diff --git a/rules/base.xml.in b/rules/base.xml.in
index 5f12801f..22967e3b 100644
--- a/rules/base.xml.in
+++ b/rules/base.xml.in
@@ -6930,6 +6930,30 @@
</configItem>
</option>
</group>
+ <group allowMultipleSelection="true">
+ <configItem>
+ <name>korean</name>
+ <_description>Korean Hangul/Hanja keys</_description>
+ </configItem>
+ <option>
+ <configItem>
+ <name>korean:hw_keys</name>
+ <_description>Hardware Hangul/Hanja keys</_description>
+ </configItem>
+ </option>
+ <option>
+ <configItem>
+ <name>korean:ralt_rctrl</name>
+ <_description>Right Alt as Hangul, right Ctrl as Hanja</_description>
+ </configItem>
+ </option>
+ <option>
+ <configItem>
+ <name>korean:rctrl_ralt</name>
+ <_description>Right Ctrl as Hangul, right Alt as Hanja</_description>
+ </configItem>
+ </option>
+ </group>
<group allowMultipleSelection="false">
<configItem>
<name>esperanto</name>
diff --git a/symbols/kr b/symbols/kr
index 1ee560bf..e554af0c 100644
--- a/symbols/kr
+++ b/symbols/kr
@@ -2,27 +2,53 @@ default alphanumeric_keys
xkb_symbols "kr106" {
include "us"
name[Group1]= "Korean";
- include "kr(koreankeys)"
+ include "kr(hw_keys)"
};
alphanumeric_keys
xkb_symbols "kr104" {
include "us"
name[Group1]= "Korean (101/104 key compatible)";
- include "kr(koreankeys)"
- include "kr(koreankeys_raltctl)"
+ include "kr(ralt_hangul)"
+ include "kr(rctrl_hanja)"
};
-hidden partial function_keys
-xkb_symbols "koreankeys" {
- key <K71> { [ Hangul ] };
- key <K72> { [ Hangul_Hanja ] };
+partial function_keys
+xkb_symbols "hw_keys" {
+ key <HNGL> { [ Hangul ] };
+ key <HJCV> { [ Hangul_Hanja ] };
};
-hidden partial function_keys
-xkb_symbols "koreankeys_raltctl" {
- key <RALT> { [ Hangul ] };
- key <RCTL> { [ Hangul_Hanja ] };
+partial function_keys
+xkb_symbols "ralt_hangul" {
+ replace key <RALT> {
+ type[Group1] = "ONE_LEVEL",
+ symbols[Group1]= [ Hangul ]
+ };
+};
+
+partial function_keys
+xkb_symbols "rctrl_hangul" {
+ replace key <RCTL> {
+ type[Group1] = "ONE_LEVEL",
+ symbols[Group1]= [ Hangul ]
+ };
+};
+
+partial function_keys
+xkb_symbols "ralt_hanja" {
+ replace key <RALT> {
+ type[Group1] = "ONE_LEVEL",
+ symbols[Group1]= [ Hangul_Hanja ]
+ };
+};
+
+partial function_keys
+xkb_symbols "rctrl_hanja" {
+ replace key <RCTL> {
+ type[Group1] = "ONE_LEVEL",
+ symbols[Group1]= [ Hangul_Hanja ]
+ };
};
// EXTRAS:
diff --git a/symbols/sun_vndr/kr b/symbols/sun_vndr/kr
index cc6d29e9..0cd6a866 100644
--- a/symbols/sun_vndr/kr
+++ b/symbols/sun_vndr/kr
@@ -58,12 +58,28 @@ partial alphanumeric_keys
include "kr(kr104)"
};
-partial alphanumeric_keys
- xkb_symbols "koreankeys" {
- include "kr(koreankeys)"
+partial function_keys
+ xkb_symbols "hw_keys" {
+ include "kr(hw_keys)"
};
-partial alphanumeric_keys
- xkb_symbols "koreankeys_raltctl" {
- include "kr(koreankeys_raltctl)"
+partial function_keys
+ xkb_symbols "ralt_hangul" {
+ include "kr(ralt_hangul)"
};
+
+partial function_keys
+ xkb_symbols "rctrl_hangul" {
+ include "kr(rctrl_hangul)"
+};
+
+partial function_keys
+ xkb_symbols "ralt_hanja" {
+ include "kr(ralt_hanja)"
+};
+
+partial function_keys
+ xkb_symbols "rctrl_hanja" {
+ include "kr(rctrl_hanja)"
+};
+