[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xkb hebrew mappings



Beside the man pages where can I find info on the xkb*? 
In particular, is there any tutorial on these tools?
What about an explanation about the syntax of the config files?


> --jRHKVT23PllUwdXP
> Content-Type: text/plain; charset=US-ASCII
> Content-Transfer-Encoding: 7bit
> 
> First of all, here's an proper (X-compilant?) xkb mappings
> where characters are represented in real X "semi-unicode"
> values, rather than 
> 
> This would make Netscape (and probalby other X apps)
> not accept those as characters at all (try running "xev" to
> see what I mean) unless they have a LOCALE which will has
> a character map to translate those into regular ASCII.
> (an X-to-ISO8859-8 table)
> 
> The mapping was stripped of the:
> 1. include "en"
>    A hebrew mapping should not impose an english mapping (Xkb group)
>    too. If you want English, just use:
>    
>            XkbSymbols      "us(pc104)+he ...
> 
> 2. Mode locking keys
>    Those should also belong to a separate symbol file, group.
>    I have updated the group file to support MSWin-style
>    switching (R/L Alt-Shift)
> 
>            XkbSymbols      "us(pc104)+he+shift(shift_alt_toggle)"
> 	
> -- 
> Best regards,
> Ilya Konstantinov a.k.a Toastie
> [http://toast.demon.co.il]
> ------------------------------------------------------------------------
> eGroups eLerts
> It's Easy. It's Fun. Best of All, it's Free!
> http://click.egroups.com/1/3079/5/_/284445/_/955798222/
> ------------------------------------------------------------------------
> 
> To Post a message, send it to:   iglu@eGroups.com
> 
> To Unsubscribe, send a blank message to: iglu-unsubscribe@eGroups.com
> 
> --jRHKVT23PllUwdXP
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: attachment; filename=he
> 
> // Layout based on the XConsortium: us (US/ASCII) layout.
> 
> partial default alphanumeric_keys
> xkb_symbols "basic" {
> 
>     name[Group1]= "Hebrew";
>     key <AD01> {	[	  q,	Q 		],	
> 			[	slash, Q		]	};
>     key <AD02> {	[	  w,	W		],	
> 			[	quoteright,  W		]	};
>     key <AD03> {	[	  e,	E		],	
> 			[	hebrew_qoph,	E		]	};
>     key <AD04> {	[	  r,	R		],	
> 			[	hebrew_resh,	R		]	};
>     key <AD05> {	[	  t,	T		],	
> 			[	hebrew_aleph,	T		]	};
>     key <AD06> {	[	  y,	Y		],	
> 			[	hebrew_tet,	Y		]	};
>     key <AD07> {	[	  u,	U		],	
> 			[	hebrew_waw,	U		]	};
>     key <AD08> {	[	  i,	I		],	
> 			[	hebrew_finalnun,	I		]	};
>     key <AD09> {	[	  o,	O		],	
> 			[	hebrew_finalmem,	O		]	};
>     key <AD10> {	[	  p,	P		],	
> 			[	hebrew_pe,	P		]	};
>     key <AC01> {	[	  a,	A 		],	
> 			[	hebrew_shin,	A               ]	};
>     key <AC02> {	[	  s,	S		],	
> 			[	hebrew_dalet,	S		]	};
>     key <AC03> {	[	  d,	D		],	
> 			[	hebrew_gimel,	D		]	};
>     key <AC04> {	[	  f,	F		],	
> 			[	hebrew_kaph,	F		]	};
>     key <AC05> {	[	  g,	G		],	
> 			[	hebrew_ayin,	G		]	};
>     key <AC06> {	[	  h,	H		],	
> 			[	hebrew_yod,	H		]	};
>     key <AC07> {	[	  j,	J		],	
> 			[	hebrew_chet,	J		]	};
>     key <AC08> {	[	  k,	K		],	
> 			[	hebrew_lamed,	K		]	};
>     key <AC09> {	[	  l,	L		],	
> 			[	hebrew_finalkaph,	L		]	};
>     key <AC10> {	[ semicolon,	colon		],	
> 			[	hebrew_finalpe,	colon		]	};
>     key <AC11> {	[ quoteright,	quotedbl	],	
> 			[	comma,	quotedbl	]	};
> 
>     key <AB01> {	[	  z,	Z 		],	
> 			[	hebrew_zain,	Z		]	};
>     key <AB02> {	[	  x,	X		],	
> 			[	hebrew_samech,	X		]	};
>     key <AB03> {	[	  c,	C		],	
> 			[	hebrew_bet,	C		]	};
>     key <AB04> {	[	  v,	V		],	
> 			[	hebrew_he,	V		]	};
>     key <AB05> {	[	  b,	B		],	
> 			[	hebrew_nun,	B		]	};
>     key <AB06> {	[	  n,	N		],	
> 			[	hebrew_mem,	N		]	};
>     key <AB07> {	[	  m,	M		],	
> 			[	hebrew_zadi,	M		]	};
>     key <AB08> {	[     comma,	less		],	
> 			[	hebrew_taw,	less		]	};
>     key <AB09> {	[    period,	greater		],	
> 			[	hebrew_finalzadi,	greater		]	};
>     key <AB10> {	[     slash,	question	],	
> 			[	period,	question	]	};
> 
> };
> 
> --jRHKVT23PllUwdXP
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: attachment; filename=group
> 
> // $TOG: group /main/3 1997/06/13 06:25:02 kaleb $
> // using the group(switch) map, the right alt key temporarily chooses 
> // the second keyboard group (until it is released).
> partial modifier_keys 
> xkb_symbols "switch" {
>     key <RALT>	{ 	
> 	symbols[Group1]= [	Mode_switch, Multi_key 	],
> 	virtualMods= AltGr
>     };
> };
> 
> // using the group(toggle) map, pressing the right alt key switches to
> // the next sequential group (until the next explicit group change).
> partial modifier_keys 
> xkb_symbols "toggle" {
>     virtual_modifiers AltGr;
>     key <RALT>	{	
> 	symbols[Group1]= [	ISO_Next_Group	],
> 	virtualMods= AltGr
>     };
> };
> 
> // using the group(shift_toggle) map, pressing both shift keys together
> // locks the next sequential keyboard group.
> partial modifier_keys 
> xkb_symbols "shift_toggle" {
>     key <LFSH>	{	[	Shift_L,	ISO_Prev_Group ]	};
>     key <RTSH>	{	[	Shift_R,	ISO_Next_Group ]	};
> };
> 
> // using the group(ctrl_shift_toggle) map, pressing:
> //     Control_L+Shift_L locks the previous group
> //     Control_R+Shift_R locks the next group
> // If you have two groups and group wrap is enabled, the effect is
> // indistinguishable.
> partial modifier_keys 
> xkb_symbols "ctrl_shift_toggle" {
>     key <LFSH> {
> 	type="PC_BREAK",
> 	symbols[Group1]= [ Shift_L,	ISO_Prev_Group ]
>     };
>     key <RTSH> {
> 	type="PC_BREAK",
> 	symbols[Group1]= [ Shift_R,	ISO_Next_Group ]
>     };
>     key <LCTL>	{	[	Control_L,	ISO_Prev_Group ]	};
>     key <RCTL>	{	[	Control_R,	ISO_Next_Group ]	};
> };
> 
> // using the group(caps_toggle) map, pressing:
> //     Caps Lock toggles groups
> //     Shift+Caps Lock toggles caps lock
> partial modifier_keys
> xkb_symbols "caps_toggle" {
>     key	<CAPS> {	[  ISO_Next_Group,	 Caps_Lock	]	};
> };
> 
> // using the group(ctrl_alt_toggle) map, pressing:
> //     Control_L+Alt_L locks the previous group
> //     Control_R+Alt_R locks the next group
> // If you have two groups and group wrap is enabled, the effect is
> // indistinguishable.
> partial modifier_keys 
> xkb_symbols "ctrl_alt_toggle" {
>     virtual_modifiers Alt;
>     key <LALT> {
> 	type="PC_BREAK",
> 	symbols[Group1]= [ Alt_L,	ISO_Prev_Group ],
> 	virtualMods= Alt
>     };
>     key <RALT> {
> 	type="PC_BREAK",
> 	symbols[Group1]= [ Alt_R,	ISO_Next_Group ],
> 	virtualMods= Alt
>     };
>     key <LCTL> {
> 	type="PC_SYSRQ",
> 	symbols[Group1]= [ Control_L,	ISO_Prev_Group ]
>     };
>     key <RCTL> {
> 	type="PC_SYSRQ",
> 	symbols[Group1]= [ Control_R,	ISO_Next_Group ]
>     };
> };
> 
> partial modifier_keys 
> xkb_symbols "shift_alt_toggle" {
>     key <LFSH> { type="PC_SYSRQ",	[	Shift_L	,	ISO_Prev_Group]	};
>     key <RTSH> { type="PC_SYSRQ",	[	Shift_R	,	ISO_Next_Group]	};
> };
> --jRHKVT23PllUwdXP--

-- 
	
	--  Shaul Karl <shaulk@israsrv.net.il>

[00:41:32 /tmp]$ echo; zgrep -A15 Introduction \
> /usr/share/doc/autoconf/autoconf.html.gz | tail -n12

A physicist, an engineer, and a computer scientist were
discussing the nature of God.  Surely a Physicist, said the
physicist, because early in the Creation, God made Light; and you
know, Maxwell's equations, the dual nature of electro-magnetic
waves, the relativist consequences... An Engineer!, said the
engineer, because before making Light, God split the Chaos into
Land and Water; it takes a hell of an engineer to handle that big
amount of mud, and orderly separation of solids from
liquids... The computer scientist shouted: And the Chaos,
where do you think it was coming from, hmm?

---Anonymous
[00:41:36 /tmp]$ 




=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il