Skip to content

Commit

Permalink
windows persian keyboard for ubuntu v1.1.0
Browse files Browse the repository at this point in the history
ir file updated, 3rd state of button removed, Persian keypad removed for having both English and Persian numbers, right alt take it's orginal rule! now you can easily switch between languages with "shift + alt"
  • Loading branch information
sinadarvi authored Sep 11, 2018
1 parent 7ef6b3f commit 23c962e
Showing 1 changed file with 60 additions and 62 deletions.
122 changes: 60 additions & 62 deletions ir
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@ xkb_symbols "pes_win" {

include "ir(pes_part_basic_win)"
include "ir(pes_part_ext_win)"
include "ir(pes_part_keypad)"

include "nbsp(zwnj2nb3nnb4)"
include "level3(ralt_switch)"
};

hidden partial alphanumeric_keys
Expand Down Expand Up @@ -110,58 +108,58 @@ hidden partial alphanumeric_keys
xkb_symbols "pes_part_basic_win" {

// Persian digits
key <AE01> { [ Farsi_1, exclam, grave ] };
key <AE02> { [ Farsi_2, at, 0x100066c ] };
key <AE03> { [ Farsi_3, numbersign, 0x100066b ] };
key <AE04> { [ Farsi_4, dollar, 0x100fdfc ] };
key <AE05> { [ Farsi_5, percent, 0x100066a ] };
key <AE06> { [ Farsi_6, asciicircum, 0x100200d ] };
key <AE07> { [ Farsi_7, ampersand, Arabic_comma ] };
key <AE08> { [ Farsi_8, asterisk, enfilledcircbullet ] };
key <AE09> { [ Farsi_9, parenright, 0x100200e ] };
key <AE10> { [ Farsi_0, parenleft, 0x100200f ] };
key <AE01> { [ Farsi_1, exclam ] };
key <AE02> { [ Farsi_2, at ] };
key <AE03> { [ Farsi_3, numbersign ] };
key <AE04> { [ Farsi_4, dollar ] };
key <AE05> { [ Farsi_5, percent ] };
key <AE06> { [ Farsi_6, asciicircum ] };
key <AE07> { [ Farsi_7, ampersand ] };
key <AE08> { [ Farsi_8, asterisk ] };
key <AE09> { [ Farsi_9, parenright ] };
key <AE10> { [ Farsi_0, parenleft ] };

// Persian letters and symbols
key <AD01> { [ Arabic_dad, Arabic_fathatan, degree ] };
key <AD02> { [ Arabic_sad, Arabic_dammatan, VoidSymbol ] };
key <AD03> { [ Arabic_theh, Arabic_kasratan, 0x13a4 ] };
key <AD04> { [ Arabic_qaf, 0x100fdfc, Arabic_sukun ] };
key <AD05> { [ Arabic_feh, Arabic_comma, VoidSymbol ] };
key <AD06> { [ Arabic_ghain, Arabic_semicolon, Arabic_yeh ] };
key <AD07> { [ Arabic_ain, comma, Arabic_fatha ] };
key <AD08> { [ Arabic_heh, bracketright, 0x100202d ] };
key <AD09> { [ Arabic_khah, bracketleft, 0x100202e ] };
key <AD10> { [ Arabic_hah, backslash, 0x100202c ] };
key <AD11> { [ Arabic_jeem, braceright, 0x100202a ] };
key <AD12> { [ Arabic_tcheh, braceleft, 0x100202b ] };

key <AC01> { [ Arabic_sheen, Arabic_fatha, Arabic_hamzaonwaw ] };
key <AC02> { [ Arabic_seen, Arabic_damma, Arabic_hamzaonyeh ] };
key <AC03> { [ Farsi_yeh, Arabic_kasra, Arabic_alefmaksura ] };
key <AC04> { [ Arabic_beh, Arabic_shadda, 0x100200c ] };
key <AC05> { [ Arabic_lam, Arabic_tehmarbuta, Arabic_hamzaonalef ] };
key <AC06> { [ Arabic_alef, Arabic_maddaonalef, 0x1000671 ] };
key <AC07> { [ Arabic_teh, Arabic_tatweel, VoidSymbol ] };
key <AC08> { [ Arabic_noon, guillemotright, 0x100fd3e ] };
key <AC09> { [ Arabic_meem, guillemotleft, 0x100fd3f ] };
key <AC10> { [ Arabic_keheh, colon, semicolon ] };
key <AC11> { [ Arabic_gaf, quotedbl, quotedbl ] };

key <AB01> { [ Arabic_zah, Arabic_tehmarbuta, VoidSymbol ] };
key <AB02> { [ Arabic_tah, Arabic_yeh, 0x1000653 ] };
key <AB03> { [ Arabic_zain, Arabic_jeh, VoidSymbol ] };
key <AB04> { [ Arabic_ra, Arabic_hamzaonwaw, 0x1000656 ] };
key <AB05> { [ Arabic_thal, Arabic_hamzaunderalef, 0x100200d ] };
key <AB06> { [ Arabic_dal, Arabic_hamzaonalef, Arabic_hamza_below ] };
key <AB07> { [ Arabic_hamzaonyeh, Arabic_hamza, ellipsis ] };
key <AB08> { [ Arabic_waw, greater, comma ] };
key <AB09> { [ period, less, apostrophe ] };
key <AB10> { [ slash, Arabic_question_mark, question ] };

key <TLDE> { [ division, multiply, asciitilde ] };
key <AE11> { [ minus, underscore, VoidSymbol ] };
key <AE12> { [ equal, plus, 0x1002212 ] };
key <BKSL> { [ Arabic_peh, bar, 0x1002010 ] };
key <AD01> { [ Arabic_dad, Arabic_fathatan ] };
key <AD02> { [ Arabic_sad, Arabic_dammatan ] };
key <AD03> { [ Arabic_theh, Arabic_kasratan ] };
key <AD04> { [ Arabic_qaf, 0x100fdfc ] };
key <AD05> { [ Arabic_feh, Arabic_comma ] };
key <AD06> { [ Arabic_ghain, Arabic_semicolon ] };
key <AD07> { [ Arabic_ain, comma ] };
key <AD08> { [ Arabic_heh, bracketright ] };
key <AD09> { [ Arabic_khah, bracketleft ] };
key <AD10> { [ Arabic_hah, backslash ] };
key <AD11> { [ Arabic_jeem, braceright ] };
key <AD12> { [ Arabic_tcheh, braceleft ] };

key <AC01> { [ Arabic_sheen, Arabic_fatha ] };
key <AC02> { [ Arabic_seen, Arabic_damma ] };
key <AC03> { [ Farsi_yeh, Arabic_kasra ] };
key <AC04> { [ Arabic_beh, Arabic_shadda ] };
key <AC05> { [ Arabic_lam, Arabic_tehmarbuta ] };
key <AC06> { [ Arabic_alef, Arabic_maddaonalef ] };
key <AC07> { [ Arabic_teh, Arabic_tatweel ] };
key <AC08> { [ Arabic_noon, guillemotright ] };
key <AC09> { [ Arabic_meem, guillemotleft ] };
key <AC10> { [ Arabic_keheh, colon ] };
key <AC11> { [ Arabic_gaf, quotedbl ] };

key <AB01> { [ Arabic_zah, Arabic_tehmarbuta ] };
key <AB02> { [ Arabic_tah, Arabic_yeh ] };
key <AB03> { [ Arabic_zain, Arabic_jeh ] };
key <AB04> { [ Arabic_ra, Arabic_hamzaonwaw ] };
key <AB05> { [ Arabic_thal, Arabic_hamzaunderalef ] };
key <AB06> { [ Arabic_dal, Arabic_hamzaonalef ] };
key <AB07> { [ Arabic_hamzaonyeh, Arabic_hamza ] };
key <AB08> { [ Arabic_waw, greater ] };
key <AB09> { [ period, less ] };
key <AB10> { [ slash, Arabic_question_mark ] };

key <TLDE> { [ division, multiply ] };
key <AE11> { [ minus, underscore ] };
key <AE12> { [ equal, plus ] };
key <BKSL> { [ Arabic_peh, bar ] };
};

hidden partial alphanumeric_keys
Expand All @@ -184,16 +182,16 @@ hidden partial alphanumeric_keys
xkb_symbols "pes_part_ext_win" {

// Persian and ASCII digits
key <AE01> { [ Farsi_1, exclam, grave ] };
key <AE02> { [ Farsi_2, at, 0x100066c ] };
key <AE03> { [ Farsi_3, numbersign, 0x100066b ] };
key <AE04> { [ Farsi_4, dollar, 0x100fdfc ] };
key <AE05> { [ Farsi_5, percent, 0x100066a ] };
key <AE06> { [ Farsi_6, asciicircum, 0x100200d ] };
key <AE07> { [ Farsi_7, ampersand, Arabic_comma ] };
key <AE08> { [ Farsi_8, asterisk, enfilledcircbullet ] };
key <AE09> { [ Farsi_9, parenright, 0x100200e ] };
key <AE10> { [ Farsi_0, parenleft, 0x100200f, 0 ] };
key <AE01> { [ Farsi_1, exclam ] };
key <AE02> { [ Farsi_2, at ] };
key <AE03> { [ Farsi_3, numbersign ] };
key <AE04> { [ Farsi_4, dollar ] };
key <AE05> { [ Farsi_5, percent ] };
key <AE06> { [ Farsi_6, asciicircum ] };
key <AE07> { [ Farsi_7, ampersand ] };
key <AE08> { [ Farsi_8, asterisk ] };
key <AE09> { [ Farsi_9, parenright ] };
key <AE10> { [ Farsi_0, parenleft, 0 ] };
};

hidden partial alphanumeric_keys
Expand Down

0 comments on commit 23c962e

Please sign in to comment.