[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Google
  Web www.spinics.net

Re: Broken (finnish) xkb maps..



On Fri, 27 Dec 2002, Linus Torvalds wrote:
> 
> The finnish keyboard maps in current X sources appear broken in multiple
> ways:

Ok, here's an updated suggested patch which

 - fixes the "dead_tilde" behaviour, which I tracked down to a totally 
   hosed nls/Compose/en_US.UTF-8 file. I only added the dead_tilde 
   handling, but basically the same problem exists (as far as I can tell) 
   with just about all dead keyboard characters in that configuration.

   (check for example the iso8859-1 nls composition file, and notice that 
   that one does a lot more dead-key combinations correctly that do not 
   exists in the UTF-8 file.)

   Suggested real fix: make the "Autogenerated from UnicodeData.txt" part 
   have this part auto-generated for all the dead keys, instead of having 
   to add them by hand like I did for dead_tilde.

 - has a more correct patch for "nodeadkeys" for the FI and SE keymaps. 
   The "live" version of "dead_tilde" isn't called "tilde", it's called
   "asciitilde". Similarly "dead_circumflex" -> "asciicircum" (thank God
   for inconsistent naming! What would life be without illogical names).

The nodeadkeys thing still doesn't fix things for me, which makes me think
I just don't understand the language, or that I need to do "make World"  
_again_ after fixing the keysym names. However, the patch is certainly
better than it used to be, and my keyboard is at least remotely useable
now that I can type a tilde again, so maybe it can be the base for
somebody who actually understands what they are doing instead of just
trying desperately to munge through the tree to figure out how the hell
the xkb translations work in the first place ..

		Linus

----
Index: nls/Compose/en_US.UTF-8
===================================================================
RCS file: /cvs/xc/nls/Compose/en_US.UTF-8,v
retrieving revision 1.6
diff -u -r1.6 en_US.UTF-8
--- nls/Compose/en_US.UTF-8	2002/12/11 03:19:24	1.6
+++ nls/Compose/en_US.UTF-8	2002/12/28 00:44:46
@@ -38,6 +38,9 @@
 <Multi_key> <minus> <space>		: "~"	asciitilde
 <Multi_key> <space> <minus>		: "~"	asciitilde
 
+<dead_tilde> <space>                    : "~"   asciitilde
+<dead_tilde> <dead_tilde>               : "~"   asciitilde
+
 XCOMM Spaces
 <Multi_key> <space> <space> : " " nobreakspace # NO-BREAK SPACE
 <Multi_key> <space> <period>: "â??" U2008 # PUNCTUATION SPACE
Index: programs/xkbcomp/symbols/fi
===================================================================
RCS file: /cvs/xc/programs/xkbcomp/symbols/fi,v
retrieving revision 3.9
diff -u -r3.9 fi
--- programs/xkbcomp/symbols/fi	2002/12/19 01:07:54	3.9
+++ programs/xkbcomp/symbols/fi	2002/12/28 00:44:47
@@ -108,5 +108,14 @@
 
 partial alphanumeric_keys 
 xkb_symbols "nodeadkeys" {
+    // Modifies the basic Finnish layout to eliminate all dead keys
+
     include "fi(basic)"		// for consistent naming
+
+    key <AB08> {	[           comma,       semicolon     	],
+			[         cedilla,          ogonek	]};
+    key <AE12> {   	[           acute,           grave      ],
+			[	 NoSymbol,	  NoSymbol	]};
+    key <AD12> {   	[       diaeresis,     asciicircum      ],
+                 	[      asciitilde,           caron      ]};
 };
Index: programs/xkbcomp/symbols/se
===================================================================
RCS file: /cvs/xc/programs/xkbcomp/symbols/se,v
retrieving revision 3.10
diff -u -r3.10 se
--- programs/xkbcomp/symbols/se	2002/12/19 01:07:54	3.10
+++ programs/xkbcomp/symbols/se	2002/12/28 00:44:47
@@ -113,6 +113,12 @@
     // Modifies the basic Swedish layout to eliminate all dead keys
 
     include "se(basic)"
-    key <AE12> {	[           acute,           grave	]	};
-    key <AD12> {	[       diaeresis,     asciicircum     	]	};
+    key <AB08> {	[           comma,       semicolon     	],
+			[         cedilla,          ogonek	]};
+    key <AB09> {	[          period,           colon     	],
+			[  periodcentered,        abovedot	]};
+    key <AE12> {   	[           acute,           grave      ],
+			[	plusminus,         notsign	]};
+    key <AD12> {   	[       diaeresis,     asciicircum      ],
+                 	[      asciitilde,           caron      ]};
 };

_______________________________________________
Xpert mailing list
Xpert@xxxxxxxxxxx
http://XFree86.Org/mailman/listinfo/xpert




[XFree86]     [XFree86 Newbie]     [X.Org]     [Site Home]     [IETF Annouce]     [Security]     [Bugtraq]     [Share Pictures]     [Rubini]
[Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [XFree86 Forum]     [Linux Resources]

Powered by Linux