Peleg Michaeli <[EMAIL PROTECTED]> schrieb:

> Very simple: I have reconfigured GNOME, so now when I press "Alt Gr +
> s", for example, I get σ. If I press the same key combination with
> Caps-Lock on, or with Shift key pressed as well, I get Σ. Pressing the
> key that is just near the "z" key on its left produces ∀, and doing that
> with Shift produces ∃, and many more options.
...
> it is much shorter to write emails to friends like this:
> "Let x∈P and y∈Q. Since P and Q are normal, xyx^-1y^-1∈P∩Q={e}... ⇒
> something..." or compare "...hence P\subseteq Q" to "...hence P⊆Q".
...
> It is important to say also that the configuration is very basic, and it
> works in ANY software on my computer, including LyX.

So LyX "sees" the unicode characters (Gnome/X11 does the key-combo ->
character conversion and LyX does not "know" which key was pressed to get
the char):

> So, in LyX, when I press "Alt Gr + a" I get α, but I don't want to get α
> − I want to get "\alpha", and I believed that LyX might have a solution
> to this need.

-> To bind other functions (like math-insert ...) to these key-combos,
   you must know the "QT-specification" of the given unicode char.

Example: For a German keyboard, I have in my personal gm.bind:

\bind "M-a S-equal"             "layout Part*"          # M-a S-0
\bind "M-a S-exclam"            "layout Chapter*"       # M-a S-1
\bind "M-a S-§"                 "layout Subsection*"    # M-a S-3 qt
\bind "M-a S-section"           "layout Subsection*"    # M-a S-3 xforms

* Some characters (=,!.#) have names (§), others are given literally
  (in QT)

* you will need to specify the Shift modifier. You can use the "~S" notation
  for "optionally with Shift" (this reverses the precedence when the
  same key-combo is bound again later).

> (and, apparently, it has − but only in 1.6). 

Binding a function to the characters (like µ -> math-insert \mu) should
be possible in 1.5 also. In LyX 1.6 you will not need to do this
because LyX should accept and work with unicode characters in math, so
that you can drag-and-drop your friends email with

> "Let x∈P and y∈Q. Since P and Q are normal, xyx^-1y^-1∈P∩Q={e}... ⇒

and LyX will produce a valid LaTeX source (keeping the characters as
unicode chars in the *.lyx file).

> I thought of moving to 1.6 (but still hesitating), unless you have a
> better solution!

You could consider home-compiling 1.6 configuring it to use a 16 prefix
(the binary and the used LYXDIR will be called lyx16 instead of lyx so
you can use it alongside LyX 1.5).

Günter

Reply via email to