Roman Maurer <[EMAIL PROTECTED]> writes:
| Hello!
|
| As it turns out, the LyX 1.1.6fix1 can not be used with the
| Latin-2 keyboard, ie. with keyboard that actually returns
| correct keysyms for ISO Latin 2 symbols (eg. ccaron, scaron,
| zcaron, etc.). LyX simply ignores those keysyms as shown
| by "lyx -dbg key" and such problems were recently reported
| in lyx-users by three Latin-2 users (me included).
I am not excatly willing to take patches that solve this problem by
special casing latin2.
and in any event we should to this for the other latinX xkeysyms as
well.
| I only discovered this recently, because Slovenian keyboard
| prior to XFree86 4.x did really fake that it's Latin-1 keyboard,
| which *is* understood by LyX. You could convince LyX with
| that old (wrong) keyboard that it should in fact display Latin-2
| font, even if it thought that it has Latin-1 input. This is no
| longer true with the new (ie. the correct) Latin-2 xkb keyboard,
| since it returns correct keysyms.
|
| I'm attaching a simple patch that enables support for Latin-2
| keysyms in LyX. It should not break anything for any other
| keyboard as it just adds translation of ISO Latin-2 keysyms
| to ISO Latin-2 characters as I saw them defined in
| X11R6/include/X11/keysymdef.h.
Of course this only works if you are using a latin2 font.
| Could you, please, consider to include such Latin-2 keyboard fix
| in the next stable release of the LyX?
| --
| Regards,
| Roman--- src/kbsequence.C.orig Sun Dec 17 07:09:34 2000
| +++ src/kbsequence.C Wed May 9 00:53:49 2001
| @@ -261,6 +261,9 @@
| char kb_sequence::getiso() const
| {
| int const c = getsym();
| +
| + if (c >= 0x1a1 && c <= 0x1ff) // ISO Latin 2 keysym
| + return static_cast<char>(c % 256);
|
| if (c > 0xff)
| return '\0';
--
Lgb