Extra layouts sometimes work, sometimes don't
Submitted by Henrik Pauli
Assigned to Xorg Project Team
Description
I have two layouts based on the US keyboard, with glyphs for the Hungarian language. One of them is similar to the US International variant (AltGr+letter produces accented letter, quotation marks on AltGr+{9,0} etc.), and the other is entirely the US layout, but on AltGr the layout becomes the normal 102-key QWERTZ Hungarian one).
I'd love to have them added to the official release and will gladly work on making the files better suitable for xkeyboard-config, but until then, we locally patch the xml.in files and the layouts.
This is where the problems come in. In 1.7 I saw the extras XML files, so I thought, okay, let's put them there, smaller file to patch, no need to worry about the symbols file because extras/hu doesn't even exist; and I even modify the Makefile there to make sure the file gets installed and all. Back with 1.4 I patched the "real" XML files, and that worked quite reliably.
And this worked about twice :) Then then setxkbmap decided it wouldn't load the layout:
$ setxkbmap -layout hu,th -variant hu_us_intl, -option -option compose:caps,grp:rwin_toggle Error loading new keyboard description
And I haven't been able to get it to work ever since.
I'll attach the patch, as I don't see what I'm doing wrong... (besides maybe that I shouldn't abuse the extras, but that's not really clear).