kpdl revision 154daed1
1// $XKeyboardConfig: xkeyboard-config/symbols/kpdl,v 1.1 2007/07/16 14:00:42 svu Exp $ 2// $Xorg: keypad,v 1.3 2000/08/17 19:54:43 cpqbld Exp $ 3 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 9// default) 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> 17 18 19// Legacy <KPDL> #1 20// This assumes KP_Decimal will be translated in a dot 21partial keypad_keys 22xkb_symbols "dot" { 23 24 key.type[Group1]="KEYPAD" ; 25 26 key <KPDL> { [ KP_Delete, KP_Decimal ] }; // <delete> <separator> 27}; 28 29 30// Legacy <KPDL> #2 31// This assumes KP_Separator will be translated in a comma 32partial keypad_keys 33xkb_symbols "comma" { 34 35 key.type[Group1]="KEYPAD" ; 36 37 key <KPDL> { [ KP_Delete, KP_Separator ] }; // <delete> <separator> 38}; 39 40 41// Period <KPDL>, usual keyboard serigraphy in most countries 42partial keypad_keys 43xkb_symbols "dotoss" { 44 45 key.type[Group1]="FOUR_LEVEL_MIXED_KEYPAD" ; 46 47 key <KPDL> { [ KP_Delete, period, comma, 0x100202F ] }; // <delete> . , ⍽ (narrow no-break space) 48}; 49 50 51// Period <KPDL>, usual keyboard serigraphy in most countries, latin-9 restriction 52partial keypad_keys 53xkb_symbols "dotoss_latin9" { 54 55 key.type[Group1]="FOUR_LEVEL_MIXED_KEYPAD" ; 56 57 key <KPDL> { [ KP_Delete, period, comma, nobreakspace ] }; // <delete> . , ⍽ (no-break space) 58}; 59 60 61// Comma <KPDL>, what most non anglo-saxon people consider the real separator 62partial keypad_keys 63xkb_symbols "commaoss" { 64 65 key.type[Group1]="FOUR_LEVEL_MIXED_KEYPAD" ; 66 67 key <KPDL> { [ KP_Delete, comma, period, 0x100202F ] }; // <delete> , . ⍽ (narrow no-break space) 68}; 69 70 71// Momayyez <KPDL>: Bahrain, Iran, Iraq, Kuwait, Oman, Qatar, Saudi Arabia, Syria, UAE 72partial keypad_keys 73xkb_symbols "momayyezoss" { 74 75 key.type[Group1]="FOUR_LEVEL_MIXED_KEYPAD" ; 76 77 key <KPDL> { [ KP_Delete, 0x100066B, comma, 0x100202F ] }; // <delete> ? , ⍽ (narrow no-break space) 78}; 79 80 81// Abstracted <KPDL>, pray everything will work out (it usually does not) 82partial keypad_keys 83xkb_symbols "kposs" { 84 85 key.type[Group1]="FOUR_LEVEL_MIXED_KEYPAD" ; 86 87 key <KPDL> { [ KP_Delete, KP_Decimal, KP_Separator, 0x100202F ] }; // <delete> ? ? ⍽ (narrow no-break space) 88}; 89