2 // $Xorg: keypad,v 1.3 2000/08/17 19:54:43 cpqbld Exp $
4 // The <KPDL> key is a mess.
5 // It was probably originally meant to be a decimal separator.
6 // Except since it was declared by USA people it didn't use the original
7 // SI separator "," but a "." (since then the USA managed to f-up the SI
8 // by making "." an accepted alternative, but standards still use "," as
10 // As a result users of SI-abiding countries expect either a "." or a ","
11 // or a "decimal_separator" which may or may not be translated in one of the
12 // above depending on applications.
13 // It's not possible to define a default per-country since user expectations
14 // depend on the conflicting choices of their most-used applications,
15 // operating system, etc. Therefore it needs to be a configuration setting
16 // Copyright © 2007 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
20 // This assumes KP_Decimal will be translated in a dot
24 key.type[Group1]="KEYPAD" ;
26 key <KPDL> { [ KP_Delete, KP_Decimal ] }; // <delete> <separator>
31 // This assumes KP_Separator will be translated in a comma
35 key.type[Group1]="KEYPAD" ;
37 key <KPDL> { [ KP_Delete, KP_Separator ] }; // <delete> <separator>
41 // Period <KPDL>, usual keyboard serigraphy in most countries
43 xkb_symbols "dotoss" {
45 key.type[Group1]="FOUR_LEVEL_MIXED_KEYPAD" ;
47 key <KPDL> { [ KP_Delete, period, comma, 0x100202F ] }; // <delete> . , ⍽ (narrow no-break space)
51 // Period <KPDL>, usual keyboard serigraphy in most countries, latin-9 restriction
53 xkb_symbols "dotoss_latin9" {
55 key.type[Group1]="FOUR_LEVEL_MIXED_KEYPAD" ;
57 key <KPDL> { [ KP_Delete, period, comma, nobreakspace ] }; // <delete> . , ⍽ (no-break space)
61 // Comma <KPDL>, what most non anglo-saxon people consider the real separator
63 xkb_symbols "commaoss" {
65 key.type[Group1]="FOUR_LEVEL_MIXED_KEYPAD" ;
67 key <KPDL> { [ KP_Delete, comma, period, 0x100202F ] }; // <delete> , . ⍽ (narrow no-break space)
71 // Momayyez <KPDL>: Bahrain, Iran, Iraq, Kuwait, Oman, Qatar, Saudi Arabia, Syria, UAE
73 xkb_symbols "momayyezoss" {
75 key.type[Group1]="FOUR_LEVEL_MIXED_KEYPAD" ;
77 key <KPDL> { [ KP_Delete, 0x100066B, comma, 0x100202F ] }; // <delete> ? , ⍽ (narrow no-break space)
81 // Abstracted <KPDL>, pray everything will work out (it usually does not)
85 key.type[Group1]="FOUR_LEVEL_MIXED_KEYPAD" ;
87 key <KPDL> { [ KP_Delete, KP_Decimal, KP_Separator, 0x100202F ] }; // <delete> ? ? ⍽ (narrow no-break space)