diff options
author | Benno Schulenberg <bensberg@telfort.nl> | 2023-03-31 17:31:21 +0200 |
---|---|---|
committer | Benno Schulenberg <bensberg@telfort.nl> | 2023-04-02 11:59:20 +0200 |
commit | 6b94eea124203c6c8710e04450df5f6f3a87b4ca (patch) | |
tree | 884b24bdef7dc7abbc35cca7f85d105f8bd61223 /symbols | |
parent | dfb4c6e138072173db12a378fbe0ba3d2d6d816c (diff) | |
download | xkeyboard-config-6b94eea124203c6c8710e04450df5f6f3a87b4ca.tar.gz |
symbols/ara: add Persian digits on fourth level of Arabic keypad
The fourth level (reached with Shift+AltGr) was empty, so this
gives it some marginal usefulness. Also, it allows eliding a
hidden partial variant.
Diffstat (limited to 'symbols')
-rw-r--r-- | symbols/ara | 46 |
1 files changed, 12 insertions, 34 deletions
diff --git a/symbols/ara b/symbols/ara index 98ef02b..1eb6f15 100644 --- a/symbols/ara +++ b/symbols/ara @@ -70,24 +70,25 @@ xkb_symbols "qwerty" { // Replaces the Western numeral signs with Arabic-script digits on the keypad, // pushing the Western digits to the third level accessible by the right Alt key. +// Additionally, the fourth level gives the Persian digits. hidden partial keypad_keys xkb_symbols "digits_KP" { key.type[Group1]="FOUR_LEVEL_MIXED_KEYPAD"; - key <KP7> {[ KP_Home, Arabic_7, 7, any ]}; - key <KP8> {[ KP_Up, Arabic_8, 8, any ]}; - key <KP9> {[ KP_Prior, Arabic_9, 9, any ]}; + key <KP7> {[ KP_Home, Arabic_7, 7, Farsi_7 ]}; + key <KP8> {[ KP_Up, Arabic_8, 8, Farsi_8 ]}; + key <KP9> {[ KP_Prior, Arabic_9, 9, Farsi_9 ]}; - key <KP4> {[ KP_Left, Arabic_4, 4, any ]}; - key <KP5> {[ KP_Begin, Arabic_5, 5, any ]}; - key <KP6> {[ KP_Right, Arabic_6, 6, any ]}; + key <KP4> {[ KP_Left, Arabic_4, 4, Farsi_4 ]}; + key <KP5> {[ KP_Begin, Arabic_5, 5, Farsi_5 ]}; + key <KP6> {[ KP_Right, Arabic_6, 6, Farsi_6 ]}; - key <KP1> {[ KP_End, Arabic_1, 1, any ]}; - key <KP2> {[ KP_Down, Arabic_2, 2, any ]}; - key <KP3> {[ KP_Next, Arabic_3, 3, any ]}; + key <KP1> {[ KP_End, Arabic_1, 1, Farsi_1 ]}; + key <KP2> {[ KP_Down, Arabic_2, 2, Farsi_2 ]}; + key <KP3> {[ KP_Next, Arabic_3, 3, Farsi_3 ]}; - key <KP0> {[ KP_Insert, Arabic_0, 0, any ]}; + key <KP0> {[ KP_Insert, Arabic_0, 0, Farsi_0 ]}; include "kpdl(momayyezoss)" }; @@ -409,29 +410,6 @@ xkb_symbols "basic_ext" { include "level3(ralt_switch)" }; -// Replaces the Western numeral signs with Arabic-script digits on the keypad, -// pushing the Western digits to the third level accessible by the right Alt key. -hidden partial keypad_keys -xkb_symbols "basic_ext_digits_KP" { - - key.type[Group1]="FOUR_LEVEL_MIXED_KEYPAD"; - - key <KP7> {[ KP_Home, Arabic_7, 7, Farsi_7 ]}; - key <KP8> {[ KP_Up, Arabic_8, 8, Farsi_8 ]}; - key <KP9> {[ KP_Prior, Arabic_9, 9, Farsi_9 ]}; - - key <KP4> {[ KP_Left, Arabic_4, 4, Farsi_4 ]}; - key <KP5> {[ KP_Begin, Arabic_5, 5, Farsi_5 ]}; - key <KP6> {[ KP_Right, Arabic_6, 6, Farsi_6 ]}; - - key <KP1> {[ KP_End, Arabic_1, 1, Farsi_1 ]}; - key <KP2> {[ KP_Down, Arabic_2, 2, Farsi_2 ]}; - key <KP3> {[ KP_Next, Arabic_3, 3, Farsi_3 ]}; - - key <KP0> {[ KP_Insert, Arabic_0, 0, Farsi_0 ]}; - - include "kpdl(momayyezoss)" -}; // Replaces the Western numeral signs with Arabic-script digits on the numeric row, // pushing the Western digits to the third level accessible by the right alt key. @@ -456,7 +434,7 @@ xkb_symbols "basic_ext_digits" { key <AE09> {[ Arabic_9, parenright, 9, Farsi_9 ]}; key <AE10> {[ Arabic_0, parenleft, 0, Farsi_0 ]}; - include "ara(basic_ext_digits_KP)" + include "ara(digits_KP)" }; // In this layout the Ugaritic characters get the places of the Arabic characters with the matching sound values. |