On Mon, Dec 10, 2001 at 09:17:37PM +0100, Lars Gullik Bjønnes wrote: > Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm > Precedence: bulk > X-No-Archive: yes > List-Post: <mailto:[EMAIL PROTECTED]> > List-Help: <mailto:[EMAIL PROTECTED]> > List-Unsubscribe: <mailto:[EMAIL PROTECTED]> > Delivered-To: mailing list [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: Re: Patches waiting > From: [EMAIL PROTECTED] (Lars Gullik Bjønnes) > Organization: LyX Developer http://www.lyx.org/ > Date: Mon, 10 Dec 2001 21:17:37 +0100 > In-Reply-To: <[EMAIL PROTECTED]> > User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1 (i686-pc-linux-gnu) > > Martin Vermeer <[EMAIL PROTECTED]> writes: > > | On Mon, Dec 10, 2001 at 03:30:10PM +0000, John Levon wrote: > | ... > >> (I think) > >> > >> Someone better apply the kbsequence one before Andre goes mad ... > >> > >> regards > >> john > > > | ... > > > | OK, I see this is in. Here is the redo of my LFUN_(SUB|SUPER)SCRIPT patch > | for review. Works for me. > > > | After this I could have a look at factoring the key bindings between > | hardwired and bind files. And perhaps a separate keypad.bind file. > > Ok, I'll let Andre decide on this one. (the patch) > > moving more things to bind files is not for 1.2. > > | Cheers Martin > > > | Index: src/lyx_main.C > | =================================================================== > | RCS file: /cvs/lyx/lyx-devel/src/lyx_main.C,v > | retrieving revision 1.97 > | diff -u -p -r1.97 lyx_main.C > | --- src/lyx_main.C 2001/11/26 10:19:49 1.97 > | +++ src/lyx_main.C 2001/12/10 19:55:02 > | @@ -523,6 +523,11 @@ void LyX::defaultKeyBindings(kb_keymap > | > | kbmap->bind("Delete", LFUN_DELETE); > | kbmap->bind("BackSpace", LFUN_BACKSPACE); > | + > | + // sub- and superscript -MV > | + kbmap->bind("S-underscore", LFUN_SUBSCRIPT); > | + kbmap->bind("S-asciicircum", LFUN_SUPERSCRIPT); > | + kbmap->bind("~S-dead_circumflex", LFUN_SUPERSCRIPT); > | > | // kbmap->bindings to enable the use of the numeric keypad > | // e.g. Num Lock set > | @@ -580,7 +585,8 @@ void LyX::deadKeyBindings(kb_keymap * kb > | kbmap->bind("~C-~S-~M-dead_caron", LFUN_CARON); > | kbmap->bind("~C-~S-~M-dead_cedilla", LFUN_CEDILLA); > | kbmap->bind("~C-~S-~M-dead_abovering", LFUN_CIRCLE); > | - kbmap->bind("~C-~S-~M-dead_circumflex", LFUN_CIRCUMFLEX); > | + // Renamed, conflicted with superscript -MV > | + kbmap->bind("M-m h", LFUN_CIRCUMFLEX); > | kbmap->bind("~C-~S-~M-dead_abovedot", LFUN_DOT); > | kbmap->bind("~C-~S-~M-dead_grave", LFUN_GRAVE); > | kbmap->bind("~C-~S-~M-dead_doubleacute", LFUN_HUNG_UMLAUT); > > but this look wrong... and it is not LFUN_CIRCUMFLEX that has a > conflicting keybinding it is LFUN_SUBPERSCRIPT. > > How du you expect me to write Kâdâz Dûm now?
K M-m h a d M-m h a z space D M-m h u m (as against K S-^ a d S-^ a z space D S-^ u m ) I can see that for some locales this would be a PITA. > The keybindings using dead_circumflex must be rethought I think. Yes... I did some thinking on this already. The problem as I see it is that you (LyX developers) will have to make up your collective minds as to what you want to use the "^" key for. Traditionally we have been able to use "_" for generating a subscript and "^" for generating a superscript (in mathed). Just like in TeX, and I would *really really hate* to lose that. (But if you can live with that, you'll have to state what key bindings you want instead for these functions.) Now, unless you can bind ^ to producing the "hat" accent (LFUN_CIRCUMFLEX) *only outside mathed*, you will run into trouble inside mathed. That is the current situation. So I don't disagree with you, but see no easy way to square that circle. Do you see the problem? Better, do you have a proposal for solving it? We need a consensus here. > -- > Lgb > Martin
msg30265/pgp00000.pgp
Description: PGP signature