On Tue, Apr 24, 2007 at 12:59:32PM +0200, Andre Poenitz wrote:
>
> There's been a complaint about \alpha etc being more difficult to enter
> in plain text nowadways. The attached patch should get us on par with
> pre-1.4.0.
>
> Andre'
> Index: LyXAction.C
> ===================================================================
> --- LyXAction.C (revision 17939)
> +++ LyXAction.C (working copy)
> @@ -180,6 +180,7 @@
> { LFUN_FONT_STATE, "font-state", ReadOnly },
> { LFUN_FONT_UNDERLINE, "font-underline", Noop },
> { LFUN_FOOTNOTE_INSERT, "footnote-insert", Noop },
> + { LFUN_GREEK_INSERT, "greek-insert", Noop },
> { LFUN_HFILL_INSERT, "hfill-insert", Noop },
> { LFUN_HELP_OPEN, "help-open", NoBuffer | Argument},
[...]
A missing bit:
Index: sciword.bind
===================================================================
--- sciword.bind (revision 17939)
+++ sciword.bind (working copy)
@@ -26,46 +26,46 @@
# Since the toggles don't work in 1.2.0, let's define all letters.
# lowercase math Greek
-\bind "C-g a" "math-insert \alpha"
-\bind "C-g b" "math-insert \beta"
-\bind "C-g g" "math-insert \gamma"
-\bind "C-g d" "math-insert \delta"
-\bind "C-g e" "math-insert \varepsilon"
-\bind "C-g C-e" "math-insert \epsilon"
-\bind "C-g z" "math-insert \zeta"
-\bind "C-g h" "math-insert \eta"
-\bind "C-g q" "math-insert \theta"
-\bind "C-g C-q" "math-insert \vartheta"
-\bind "C-g i" "math-insert \iota"
-\bind "C-g k" "math-insert \kappa"
-\bind "C-g l" "math-insert \lambda"
-\bind "C-g m" "math-insert \mu"
-\bind "C-g n" "math-insert \nu"
-\bind "C-g x" "math-insert \xi"
-\bind "C-g p" "math-insert \pi"
-\bind "C-g C-p" "math-insert \varpi"
-\bind "C-g r" "math-insert \rho"
-\bind "C-g s" "math-insert \sigma"
-\bind "C-g C-s" "math-insert \varsigma"
-\bind "C-g t" "math-insert \tau"
-\bind "C-g v" "math-insert \upsilon"
-\bind "C-g f" "math-insert \phi"
-\bind "C-g c" "math-insert \chi"
-\bind "C-g y" "math-insert \psi"
-\bind "C-g w" "math-insert \omega"
+\bind "C-g a" "greek-insert \alpha"
+\bind "C-g b" "greek-insert \beta"
+\bind "C-g g" "greek-insert \gamma"
+\bind "C-g d" "greek-insert \delta"
+\bind "C-g e" "greek-insert \varepsilon"
+\bind "C-g C-e" "greek-insert \epsilon"
+\bind "C-g z" "greek-insert \zeta"
+\bind "C-g h" "greek-insert \eta"
+\bind "C-g q" "greek-insert \theta"
+\bind "C-g C-q" "greek-insert \vartheta"
+\bind "C-g i" "greek-insert \iota"
+\bind "C-g k" "greek-insert \kappa"
+\bind "C-g l" "greek-insert \lambda"
+\bind "C-g m" "greek-insert \mu"
+\bind "C-g n" "greek-insert \nu"
+\bind "C-g x" "greek-insert \xi"
+\bind "C-g p" "greek-insert \pi"
+\bind "C-g C-p" "greek-insert \varpi"
+\bind "C-g r" "greek-insert \rho"
+\bind "C-g s" "greek-insert \sigma"
+\bind "C-g C-s" "greek-insert \varsigma"
+\bind "C-g t" "greek-insert \tau"
+\bind "C-g v" "greek-insert \upsilon"
+\bind "C-g f" "greek-insert \phi"
+\bind "C-g c" "greek-insert \chi"
+\bind "C-g y" "greek-insert \psi"
+\bind "C-g w" "greek-insert \omega"
# uppercase math Greek
-\bind "C-g S-G" "math-insert \Gamma"
-\bind "C-g S-D" "math-insert \Delta"
-\bind "C-g S-Q" "math-insert \Theta"
-\bind "C-g S-L" "math-insert \Lambda"
-\bind "C-g S-X" "math-insert \Xi"
-\bind "C-g S-P" "math-insert \Pi"
-\bind "C-g S-S" "math-insert \Sigma"
-\bind "C-g S-V" "math-insert \Upsilon"
-\bind "C-g S-F" "math-insert \Phi"
-\bind "C-g S-Y" "math-insert \Psi"
-\bind "C-g S-W" "math-insert \Omega"
+\bind "C-g S-G" "greek-insert \Gamma"
+\bind "C-g S-D" "greek-insert \Delta"
+\bind "C-g S-Q" "greek-insert \Theta"
+\bind "C-g S-L" "greek-insert \Lambda"
+\bind "C-g S-X" "greek-insert \Xi"
+\bind "C-g S-P" "greek-insert \Pi"
+\bind "C-g S-S" "greek-insert \Sigma"
+\bind "C-g S-V" "greek-insert \Upsilon"
+\bind "C-g S-F" "greek-insert \Phi"
+\bind "C-g S-Y" "greek-insert \Psi"
+\bind "C-g S-W" "greek-insert \Omega"
# Do we need this?
Index: math.bind
===================================================================
--- math.bind (revision 17939)
+++ math.bind (working copy)
@@ -140,48 +140,48 @@
# This should be handled properly by some "get the next key" method
-\bind "M-m g a" "math-insert \alpha"
-\bind "M-m g b" "math-insert \beta"
-\bind "M-m g c" "math-insert \chi"
-\bind "M-m g d" "math-insert \delta"
-\bind "M-m g e" "math-insert \epsilon"
-\bind "M-m g f" "math-insert \phi"
-\bind "M-m g g" "math-insert \gamma"
-\bind "M-m g h" "math-insert \eta"
-\bind "M-m g i" "math-insert \iota"
-\bind "M-m g j" "math-insert \varphi"
-\bind "M-m g k" "math-insert \kappa"
-\bind "M-m g l" "math-insert \lambda"
-\bind "M-m g m" "math-insert \mu"
-\bind "M-m g n" "math-insert \nu"
-\bind "M-m g o" "math-insert \omega"
-\bind "M-m g p" "math-insert \pi"
-\bind "M-m g q" "math-insert \vartheta"
-\bind "M-m g r" "math-insert \rho"
-\bind "M-m g s" "math-insert \sigma"
-\bind "M-m g t" "math-insert \tau"
-\bind "M-m g u" "math-insert \upsilon"
-\bind "M-m g v" "math-insert \theta"
-\bind "M-m g w" "math-insert \omega"
-\bind "M-m g x" "math-insert \xi"
-\bind "M-m g y" "math-insert \psi"
-\bind "M-m g z" "math-insert \zeta"
+\bind "M-m g a" "greek-insert \alpha"
+\bind "M-m g b" "greek-insert \beta"
+\bind "M-m g c" "greek-insert \chi"
+\bind "M-m g d" "greek-insert \delta"
+\bind "M-m g e" "greek-insert \epsilon"
+\bind "M-m g f" "greek-insert \phi"
+\bind "M-m g g" "greek-insert \gamma"
+\bind "M-m g h" "greek-insert \eta"
+\bind "M-m g i" "greek-insert \iota"
+\bind "M-m g j" "greek-insert \varphi"
+\bind "M-m g k" "greek-insert \kappa"
+\bind "M-m g l" "greek-insert \lambda"
+\bind "M-m g m" "greek-insert \mu"
+\bind "M-m g n" "greek-insert \nu"
+\bind "M-m g o" "greek-insert \omega"
+\bind "M-m g p" "greek-insert \pi"
+\bind "M-m g q" "greek-insert \vartheta"
+\bind "M-m g r" "greek-insert \rho"
+\bind "M-m g s" "greek-insert \sigma"
+\bind "M-m g t" "greek-insert \tau"
+\bind "M-m g u" "greek-insert \upsilon"
+\bind "M-m g v" "greek-insert \theta"
+\bind "M-m g w" "greek-insert \omega"
+\bind "M-m g x" "greek-insert \xi"
+\bind "M-m g y" "greek-insert \psi"
+\bind "M-m g z" "greek-insert \zeta"
-\bind "M-m g S-D" "math-insert \Delta"
-\bind "M-m g S-E" "math-insert \varepsilon"
-\bind "M-m g S-F" "math-insert \Phi"
-\bind "M-m g S-G" "math-insert \Gamma"
-\bind "M-m g S-I" "math-insert \iota"
-\bind "M-m g S-J" "math-insert \epsilon"
-\bind "M-m g S-L" "math-insert \Lambda"
-\bind "M-m g S-O" "math-insert \Omega"
-\bind "M-m g S-P" "math-insert \Pi"
-\bind "M-m g S-Q" "math-insert \vartheta"
-\bind "M-m g S-R" "math-insert \varrho"
-\bind "M-m g S-S" "math-insert \Sigma"
-\bind "M-m g S-T" "math-insert \varsigma"
-\bind "M-m g S-U" "math-insert \Upsilon"
-\bind "M-m g S-V" "math-insert \Theta"
-\bind "M-m g S-W" "math-insert \Omega"
-\bind "M-m g S-X" "math-insert \Xi"
-\bind "M-m g S-Y" "math-insert \Psi"
+\bind "M-m g S-D" "greek-insert \Delta"
+\bind "M-m g S-E" "greek-insert \varepsilon"
+\bind "M-m g S-F" "greek-insert \Phi"
+\bind "M-m g S-G" "greek-insert \Gamma"
+\bind "M-m g S-I" "greek-insert \iota"
+\bind "M-m g S-J" "greek-insert \epsilon"
+\bind "M-m g S-L" "greek-insert \Lambda"
+\bind "M-m g S-O" "greek-insert \Omega"
+\bind "M-m g S-P" "greek-insert \Pi"
+\bind "M-m g S-Q" "greek-insert \vartheta"
+\bind "M-m g S-R" "greek-insert \varrho"
+\bind "M-m g S-S" "greek-insert \Sigma"
+\bind "M-m g S-T" "greek-insert \varsigma"
+\bind "M-m g S-U" "greek-insert \Upsilon"
+\bind "M-m g S-V" "greek-insert \Theta"
+\bind "M-m g S-W" "greek-insert \Omega"
+\bind "M-m g S-X" "greek-insert \Xi"
+\bind "M-m g S-Y" "greek-insert \Psi"