On Wed, Dec 12, 2001 at 04:44:37PM +0100, Jean-Marc Lasgouttes wrote:
...
> 
> >>>>> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes:
> 
> Andre> I think I'll simply apply the patch. It seems to work and the
> Andre> only "non working case" (LyX handles deadkeys, and we are in
> Andre> mathed) is clearly "on my territory", so I'll looking for a
> Andre> workaround if people _really_ need it.
> 
> There is another "non working case" though: how do I get a ^ or a _ in
> normal text? These tend to be very useful, especially _ for code.
> 
> JMarc

Oops! This should not happen.

This means we have to bite the bullet, I think. I.e. the following: 


Ctrl-_ subscript

Ctr-^  superscript

_ and ^  insert themselves.

I managed to get to the point where this works  -- as long as X handles
the deadkeys. If Lyx handles them, it sort-of works it seems, but you may 
have to type a space after the ^. It's just tricky. Are you sure the
~C-~S-~M stuff is being decoded and entered into internal tables correctly?

It requires this in lyx_main.C

    // sub- and superscript -MV
    kbmap->bind("C-~S-~M-underscore", LFUN_SUBSCRIPT);
    kbmap->bind("C-~S-~M-dead_circumflex", LFUN_SUPERSCRIPT);
    kbmap->bind("C-~S-~M-asciicircum", LFUN_SUPERSCRIPT);

and for the deadkeys

    kbmap->bind("~S-~M-dead_circumflex", LFUN_CIRCUMFLEX);

Ah yes, when changing the deadkey handling in Preferences I get sometimes
upon exit:

Received unhandled X11 event
Type: 0x7Target: 0x48000f8
lyx: Attempting to save document newfile2.lyx as...
 /home/mv/newfile2.lyx.emergency
  Save seems successful. Phew.
BadWindow (invalid Window parameter)
Aborted (core dumped)

That is in X through an ssh pipe.

Cheers Martin

Attachment: msg30444/pgp00000.pgp
Description: PGP signature

Reply via email to