mailing-list for TeXmacs Users

Text archives Help


XFree 4.3 and alt-gr


Chronological Thread 
  • From: Jan Alboszta <address@hidden>
  • To: address@hidden
  • Subject: XFree 4.3 and alt-gr
  • Date: Mon, 6 Oct 2003 23:02:10 +0200
  • Organization: Gwozdzie SA

Hello
Some time ago I've got trouble with polish chars in TeXmacs only and
XFree 4.3. suggested solution was downgrade to 4.2. but for some reasons I
wanted now 4.3. So started to experiment.

I uncommented lines with cout in src/Window/X/x_loop.cpp and it
give something strange:
In xfree 4.2 pressing right alt with some letter display
key press: char
with correct char [0].
In xfree 4.3 the same produces
key press: Mod5-Mod3-char
and in TeXmacs it isn't displayed.

I made dirty trick in src/Window/X/x_loop.cpp

if (ev->state&16) s= "Mod2-" * s;
+ if ((ev->state&32) && (ev->state&128)) return s;
if (ev->state&32) s= "Mod3-" * s;

It bases on ISO_Level3_Shift being Mod3 and Mod5 on the same time.
And it's working for me, and there shouldn't be side effects.

pozdr.
Janek

[0] It would be nice if it could be iso-8859-2... editing .tm files in
other editors would be easier. And conversion to html/latex. I know it's
one sed rule. So I use it after export, but it would be nice to have it
inside TeXmacs. (ok it's in TeXmacs becouse of ispell, but export also
could use it....)

--
To, co krzywe, nie da się wyprostować,
a czego nie ma, tego nie można liczyć
Koh 1,15


  • XFree 4.3 and alt-gr, Jan Alboszta, 10/06/2003

Archive powered by MHonArc 2.6.19.

Top of page