Re: math.bind: add keybindings for \widehat, \tilde, and \widetilde

2018-07-16 Thread Scott Kostyshak
On Sat, Jul 07, 2018 at 11:14:29AM +, Kornel Benko wrote:

> Scott, I propose you commit it.

Thanks. I'm traveling now so I have not been following the list. I will
come back to this probably in a few weeks.

Scott


signature.asc
Description: PGP signature


Re: math.bind: add keybindings for \widehat, \tilde, and \widetilde

2018-07-07 Thread Kornel Benko
Am Mittwoch, 20. Juni 2018 23:56:08 CEST schrieb Kornel Benko :
> Am Mittwoch, 20. Juni 2018 16:03:45 CEST schrieb Scott Kostyshak 
> :
> > On Wed, Jun 20, 2018 at 11:48:56AM +, Stephan Witt wrote:
> > 
> > > > Still, I like the idea with 'M-m q' as prefix for extra bindings.
> > > 
> > > Me too. :)
> > 
> > Sounds good. In addition to "q", "j" and "k" seem to be free. Any reason
> > to choose one over the other?
> 
> Apart from not finding a word describing 'wide'? Only 'q' (for quad) suggests 
> something big.
> From=20the alphanumeric there is also [0-79z] free.
> 
> > Any abstractions that come to mind that are related?
> 
> No, sorry
> 
> > For example, how
> > about the following?
> > 
> > \bind "M-m q i"   "math-insert \iint"
> > \bind "M-m q y"   "math-insert \oiint"
> > \bind "M-m q ~S-period"   "math-insert \ddot"
> > \bind "M-m q ~S-parenleft""math-bigdelim bigl ( bigr )"
> > 
> > Note that \ddot is already bound to <<">>, which does seem intuitive.
> > Nonetheless, using "M-m q" would allow us to free <<">> if we wanted to
> > use it for something else.
> 
> Yes.
> 
> > Scott
> 

Scott, I propose you commit it.

Kornel

signature.asc
Description: This is a digitally signed message part.


Re: math.bind: add keybindings for \widehat, \tilde, and \widetilde

2018-06-20 Thread Kornel Benko
Am Mittwoch, 20. Juni 2018 16:03:45 CEST schrieb Scott Kostyshak 
:
> On Wed, Jun 20, 2018 at 11:48:56AM +, Stephan Witt wrote:
>
> > > Still, I like the idea with 'M-m q' as prefix for extra bindings.
> >
> > Me too. :)
>
> Sounds good. In addition to "q", "j" and "k" seem to be free. Any reason
> to choose one over the other?

Apart from not finding a word describing 'wide'? Only 'q' (for quad) suggests 
something big.
From the alphanumeric there is also [0-79z] free.

> Any abstractions that come to mind that are related?

No, sorry

> For example, how
> about the following?
>
> \bind "M-m q i"   "math-insert \iint"
> \bind "M-m q y"   "math-insert \oiint"
> \bind "M-m q ~S-period"   "math-insert \ddot"
> \bind "M-m q ~S-parenleft""math-bigdelim bigl ( bigr )"
>
> Note that \ddot is already bound to <<">>, which does seem intuitive.
> Nonetheless, using "M-m q" would allow us to free <<">> if we wanted to
> use it for something else.

Yes.

> Scott

Kornel




signature.asc
Description: This is a digitally signed message part.


Re: math.bind: add keybindings for \widehat, \tilde, and \widetilde

2018-06-20 Thread Scott Kostyshak
On Wed, Jun 20, 2018 at 11:48:56AM +, Stephan Witt wrote:

> > Still, I like the idea with 'M-m q' as prefix for extra bindings.
> 
> Me too. :)

Sounds good. In addition to "q", "j" and "k" seem to be free. Any reason
to choose one over the other?

Any abstractions that come to mind that are related? For example, how
about the following?

\bind "M-m q i"   "math-insert \iint"
\bind "M-m q y"   "math-insert \oiint"
\bind "M-m q ~S-period"   "math-insert \ddot"
\bind "M-m q ~S-parenleft""math-bigdelim bigl ( bigr )"

Note that \ddot is already bound to <<">>, which does seem intuitive.
Nonetheless, using "M-m q" would allow us to free <<">> if we wanted to
use it for something else.

Scott


signature.asc
Description: PGP signature


Re: math.bind: add keybindings for \widehat, \tilde, and \widetilde

2018-06-20 Thread Scott Kostyshak
On Wed, Jun 20, 2018 at 10:06:02AM +, Kornel Benko wrote:
> Am Mittwoch, 20. Juni 2018 11:53:42 CEST schrieb Kornel Benko 
> :
> > Am Mittwoch, 20. Juni 2018 08:22:33 CEST schrieb Stephan Witt 
> > :
> > > Obviously the literal letter keys are not case sensitive in bind file. I 
> > > think this
> > > is because the output of keypress on „H“ is a lower case „h“ and the 
> > > combination
> > > of „Shift“ + „H“ gives you upper case „H“ - there is no key named „h“ (at 
> > > least on
> > > my keyboard :)
> > > 
> > 
> > And that is the whole difference. All the time I was setting the shortcuts 
> > in the bind-file math.bind.
> > Doing that now from the GUI, the bindings are in bind/user.bind. Apparently 
> > that way it works
> > for me too.
> > 
> 
> Ah 
> Checking the syntax in user.bind vs. math.bind, there are some differences.
> 
> math.bind:
>   \bind "M-m h" "math-insert \hat"
> user.bind:
>   \bind "M-m h" "math-insert \\hat"

Ah that is indeed interesting. I'm glad the mystery is solved.

Scott


signature.asc
Description: PGP signature


Re: math.bind: add keybindings for \widehat, \tilde, and \widetilde

2018-06-20 Thread Stephan Witt
Am 20.06.2018 um 12:06 schrieb Kornel Benko :
> 
> Am Mittwoch, 20. Juni 2018 11:53:42 CEST schrieb Kornel Benko 
> :
> > Am Mittwoch, 20. Juni 2018 08:22:33 CEST schrieb Stephan Witt 
> > :
> > > Obviously the literal letter keys are not case sensitive in bind file. I 
> > > think this
> > > is because the output of keypress on „H“ is a lower case „h“ and the 
> > > combination
> > > of „Shift“ + „H“ gives you upper case „H“ - there is no key named „h“ (at 
> > > least on
> > > my keyboard :)
> > > 
> > 
> > And that is the whole difference. All the time I was setting the shortcuts 
> > in the bind-file math.bind.
> > Doing that now from the GUI, the bindings are in bind/user.bind. Apparently 
> > that way it works
> > for me too.
> > 
>  
> Ah 
> Checking the syntax in user.bind vs. math.bind, there are some differences.
>  
> math.bind:
>   \bind "M-m h" "math-insert \hat"
> user.bind:
>   \bind "M-m h" "math-insert \\hat"
>  
> Also I had errors in math.bind. Sorry.
>  
> Still, I like the idea with 'M-m q' as prefix for extra bindings.

Me too. :)

Stephan



Re: math.bind: add keybindings for \widehat, \tilde, and \widetilde

2018-06-20 Thread Kornel Benko
Am Mittwoch, 20. Juni 2018 11:53:42 CEST schrieb Kornel Benko :
> Am Mittwoch, 20. Juni 2018 08:22:33 CEST schrieb Stephan Witt 
> :
> > Obviously the literal letter keys are not case sensitive in bind file. I 
> > think this
> > is because the output of keypress on „H“ is a lower case „h“ and the 
> > combination
> > of „Shift“ + „H“ gives you upper case „H“ - there is no key named „h“ (at 
> > least on
> > my keyboard :)
> > 
> 
> And that is the whole difference. All the time I was setting the shortcuts in 
> the bind-file math.bind.
> Doing that now from the GUI, the bindings are in bind/user.bind. Apparently 
> that way it works
> for me too.
> 

Ah 
Checking the syntax in user.bind vs. math.bind, there are some differences.

math.bind:
\bind "M-m h" "math-insert \hat"
user.bind:
\bind "M-m h" "math-insert \\hat"

Also I had errors in math.bind. Sorry.

Still, I like the idea with 'M-m q' as prefix for extra bindings.

Kornel


signature.asc
Description: This is a digitally signed message part.


Re: math.bind: add keybindings for \widehat, \tilde, and \widetilde

2018-06-20 Thread Kornel Benko
Am Mittwoch, 20. Juni 2018 08:22:33 CEST schrieb Stephan Witt :
> Obviously the literal letter keys are not case sensitive in bind file. I 
> think this
> is because the output of keypress on „H“ is a lower case „h“ and the 
> combination
> of „Shift“ + „H“ gives you upper case „H“ - there is no key named „h“ (at 
> least on
> my keyboard :)
> 

And that is the whole difference. All the time I was setting the shortcuts in 
the bind-file math.bind.
Doing that now from the GUI, the bindings are in bind/user.bind. Apparently 
that way it works
for me too.

Kornel


signature.asc
Description: This is a digitally signed message part.


Re: math.bind: add keybindings for \widehat, \tilde, and \widetilde

2018-06-20 Thread Stephan Witt
Am 19.06.2018 um 19:48 schrieb Scott Kostyshak :
> 
> Both S-h and S-H work for me (i.e., I can insert \widehat and \hat is
> not masked). So to summarize:
> 
> For Stephan, the following has correct behavior:
> 
>  \bind "M-m h" "math-insert \\hat" 
>  \bind "M-m S-h" "math-insert \\widehat“ 

Yes, this works for me.

> but this does not have correct behavior:
> 
>  \bind "M-m h" "math-insert \\hat" 
>  \bind "M-m S-H" "math-insert \\widehat“ 

No, this works for me too.

 \bind "M-m H" "math-insert \\hat" 
 \bind "M-m S-H" "math-insert \\widehat“ 

And this works for me too.

> And for Kornel, neither one of the above pairs of bindings has correct
> behavior. Stephan and Kornel, can you confirm?
> 
> For me, both have correct behavior.
> 
> Note that by correct behavior, I mean that you can insert both \hat and
> \widehat with the bindings.

Yes, both combinations work and insert \hat resp. \widehat.

To be more precise I have to explain how the modifiers are interpreted on a Mac 
-
there are eight modifier keys on a Macbook-keyboard. From left to right:

Shift - (left shift to reach the upper level (xev output: Shift_L, keycode 64)
Function - to reach the special functions next to F1 .. F12 - not used (no xev 
output)
Control - (left) control (xev output: Control_L, keycode 67)
Option - (or Alternative) left option key (xev output: Mode_switch, keycode 66)
Command - left command key (xev output: Meta_L, keycode 63)
Space bar
Command - right command key (xev output: Meta_R, keycode 71)
Option - (or Alternative) right option key (xev output: Mode_switch, keycode 69)
Shift - (right shift to reach the upper level (xev output: Shift_R, keycode 68)

The left and right variants of the Shift, Option and Command modifiers are 
interpreted like-wise and there is no difference between them - at least Mac 
apps.

Usually we have the Command-modifier bound to the C-modifier of bind file and
the Control-modifier to the M-modifier of bind file. The Option-modifier should
be the A-modifier and is not used intentionally because most key combinations
with Option-modifier are mapped to special symbols like @ € µ º å and so on.
The users expect them to work as in other applications to insert non-ascii 
letters.

The mapping of the Command- and Control-modifiers can be made like non-Mac users
are used to - this is a boolean preference option. LyX is shipped with Mac 
defaults.

Obviously the literal letter keys are not case sensitive in bind file. I think 
this
is because the output of keypress on „H“ is a lower case „h“ and the combination
of „Shift“ + „H“ gives you upper case „H“ - there is no key named „h“ (at least 
on
my keyboard :)

Stephan

Re: math.bind: add keybindings for \widehat, \tilde, and \widetilde

2018-06-19 Thread Scott Kostyshak
On Tue, Jun 19, 2018 at 08:14:42PM +, Kornel Benko wrote:

> > Do you see the same behavior whether your keyboard layout (I refer to
> > the layout that you can change in Ubuntu) is Slovak, German, or English?
> 
> At least I see the same behaviour for qt5.6.1 and qt5.11.0. My keyboard is 
> generic 105 keys, US, but I
> have also configured some dead keys to be able to create many accented 
> characters.
> Changing the lang env does not change the behaviour (neither has the gui lang 
> in lyx an effect)
> I do neither need nor use keyboard mapping  in lyx.

OK I'll do some testing of different variations to see if I can
reproduce the behavior you see.

Scott


signature.asc
Description: PGP signature


Re: math.bind: add keybindings for \widehat, \tilde, and \widetilde

2018-06-19 Thread Kornel Benko
Am Dienstag, 19. Juni 2018 15:43:11 CEST schrieb Scott Kostyshak 
:
> On Tue, Jun 19, 2018 at 06:24:25PM +, Kornel Benko wrote:
> 
> > > And for Kornel, neither one of the above pairs of bindings has correct
> > > behavior. Stephan and Kornel, can you confirm?
> > 
> > I confirm,
> 
> Thanks.
> 
> > > For me, both have correct behavior.
> > 
> > and wonder. According to https://wiki.lyx.org/Tips/KeyboardShortcuts (see 
> > Equivalent keys)
> > I would expect also 'M-a', 'M-S-a' and 'M-S-A' equivalent.
> 
> Ah good to know. Then in this case, it might be me that is seeing a
> "bug" in that they are different behaviors.
> 
> > > Note that by correct behavior, I mean that you can insert both \hat and
> > > \widehat with the bindings.
> > > 
> > > Scott
> > 
> > If I may propose a key combination,
> > "M-m h" ==> \hat
> > "M-m q h" ==> \widehat  (q is still free, reminds me on quad)
> > "M-m ~" ==> \tilde
> > "M-m q ~" ==> \widetilde
> 
> I like that, and indeed we might be able to abstract "q" to other
> contexts in a natural way (e.g., any other bindings that have a
> "capitalized" or "wider" or "bigger" relative?). I can take a look at
> this if there is interest. I wonder what others think.

+1

> I think I even like your suggestion better than my original suggestion
> (I would need to test a bit to see what feels the most comfortable). In
> any case, we might want to still look into the differences in behavior
> that me, you, and Stephan experience.
> 
> Do you see the same behavior whether your keyboard layout (I refer to
> the layout that you can change in Ubuntu) is Slovak, German, or English?

At least I see the same behaviour for qt5.6.1 and qt5.11.0. My keyboard is 
generic 105 keys, US, but I
have also configured some dead keys to be able to create many accented 
characters.
Changing the lang env does not change the behaviour (neither has the gui lang 
in lyx an effect)
I do neither need nor use keyboard mapping  in lyx.

> Scott

Kornel




signature.asc
Description: This is a digitally signed message part.


Re: math.bind: add keybindings for \widehat, \tilde, and \widetilde

2018-06-19 Thread Scott Kostyshak
On Tue, Jun 19, 2018 at 06:24:25PM +, Kornel Benko wrote:

> > And for Kornel, neither one of the above pairs of bindings has correct
> > behavior. Stephan and Kornel, can you confirm?
> 
> I confirm,

Thanks.

> > For me, both have correct behavior.
> 
> and wonder. According to https://wiki.lyx.org/Tips/KeyboardShortcuts (see 
> Equivalent keys)
> I would expect also 'M-a', 'M-S-a' and 'M-S-A' equivalent.

Ah good to know. Then in this case, it might be me that is seeing a
"bug" in that they are different behaviors.

> > Note that by correct behavior, I mean that you can insert both \hat and
> > \widehat with the bindings.
> > 
> > Scott
> 
> If I may propose a key combination,
> "M-m h" ==> \hat
> "M-m q h" ==> \widehat  (q is still free, reminds me on quad)
> "M-m ~" ==> \tilde
> "M-m q ~" ==> \widetilde

I like that, and indeed we might be able to abstract "q" to other
contexts in a natural way (e.g., any other bindings that have a
"capitalized" or "wider" or "bigger" relative?). I can take a look at
this if there is interest. I wonder what others think.

I think I even like your suggestion better than my original suggestion
(I would need to test a bit to see what feels the most comfortable). In
any case, we might want to still look into the differences in behavior
that me, you, and Stephan experience.

Do you see the same behavior whether your keyboard layout (I refer to
the layout that you can change in Ubuntu) is Slovak, German, or English?

Scott


signature.asc
Description: PGP signature


Re: math.bind: add keybindings for \widehat, \tilde, and \widetilde

2018-06-19 Thread Kornel Benko
Am Dienstag, 19. Juni 2018 13:48:01 CEST schrieb Scott Kostyshak 
:
> On Tue, Jun 19, 2018 at 05:44:39AM +, Stephan Witt wrote:
> > Am 18.06.2018 um 23:44 schrieb Kornel Benko :
> > > 
> > > Am Montag, 18. Juni 2018 23:17:16 CEST schrieb Stephan Witt 
> > > :
> > > > Am 18.06.2018 um 17:46 schrieb Kornel Benko :
> > > > > 
> > > > > Am Montag, 18. Juni 2018 15:26:39 CEST schrieb José Abílio Matos 
> > > > > :
> > > > > > On Sunday, 17 June 2018 21.04.00 WEST Kornel Benko wrote:
> > > > > > > The settings in .lyx/math.bind are set to
> > > > > > > \bind "M-m ~S-H"   "math-insert \widehat
> > > > > > > \bind "M-m h"  "math-insert \hat
> > > > > > > 
> > > > > > > It doesn't make difference if using 'H' or 'h'.
> > > > > > 
> > > > > > That is precisely what the ~S means (i.e. regardless of the state 
> > > > > > of shift), 
> > > > > > IIRC.
> > > > >  
> > > > > You misunderstood: what I wanted to say, even
> > > > >   \bind "M-m h"  "math-insert \hat
> > > > > is bound to \widehat in this combination.
> > > > 
> > > > This is what works for me on Mac:
> > > > \bind "M-m S-h" "math-insert \\widehat"
> > > > 
> > > > Stephan
> > >  
> > > Sure, but that was not the problem. How do you get *also* binding for 
> > > \hat?
> > 
> > I’v tried 2.3.0 and 2.2.2…
> > 
> > \bind "M-m h" "math-insert \\hat" 
> > \bind "M-m S-h" "math-insert \\widehat" 
> > 
> > I think the point is to lower case „h“ in bind file while
> > the short cuts in preferences are presented while upper
> > case letters.
> 
> Both S-h and S-H work for me (i.e., I can insert \widehat and \hat is
> not masked). So to summarize:
> 
> For Stephan, the following has correct behavior:
> 
>   \bind "M-m h" "math-insert \\hat" 
>   \bind "M-m S-h" "math-insert \\widehat" 
> 
> but this does not have correct behavior:
> 
>   \bind "M-m h" "math-insert \\hat" 
>   \bind "M-m S-H" "math-insert \\widehat" 
> 
> And for Kornel, neither one of the above pairs of bindings has correct
> behavior. Stephan and Kornel, can you confirm?

I confirm,

> For me, both have correct behavior.

and wonder. According to https://wiki.lyx.org/Tips/KeyboardShortcuts (see 
Equivalent keys)
I would expect also 'M-a', 'M-S-a' and 'M-S-A' equivalent.

> Note that by correct behavior, I mean that you can insert both \hat and
> \widehat with the bindings.
> 
> Scott

If I may propose a key combination,
"M-m h" ==> \hat
"M-m q h" ==> \widehat  (q is still free, reminds me on quad)
"M-m ~" ==> \tilde
"M-m q ~" ==> \widetilde

Kornel




signature.asc
Description: This is a digitally signed message part.


Re: math.bind: add keybindings for \widehat, \tilde, and \widetilde

2018-06-19 Thread Scott Kostyshak
On Tue, Jun 19, 2018 at 05:44:39AM +, Stephan Witt wrote:
> Am 18.06.2018 um 23:44 schrieb Kornel Benko :
> > 
> > Am Montag, 18. Juni 2018 23:17:16 CEST schrieb Stephan Witt 
> > :
> > > Am 18.06.2018 um 17:46 schrieb Kornel Benko :
> > > > 
> > > > Am Montag, 18. Juni 2018 15:26:39 CEST schrieb José Abílio Matos 
> > > > :
> > > > > On Sunday, 17 June 2018 21.04.00 WEST Kornel Benko wrote:
> > > > > > The settings in .lyx/math.bind are set to
> > > > > > \bind "M-m ~S-H"   "math-insert \widehat
> > > > > > \bind "M-m h"  "math-insert \hat
> > > > > > 
> > > > > > It doesn't make difference if using 'H' or 'h'.
> > > > > 
> > > > > That is precisely what the ~S means (i.e. regardless of the state of 
> > > > > shift), 
> > > > > IIRC.
> > > >  
> > > > You misunderstood: what I wanted to say, even
> > > > \bind "M-m h"  "math-insert \hat
> > > > is bound to \widehat in this combination.
> > > 
> > > This is what works for me on Mac:
> > > \bind "M-m S-h" "math-insert \\widehat"
> > > 
> > > Stephan
> >  
> > Sure, but that was not the problem. How do you get *also* binding for \hat?
> 
> I’v tried 2.3.0 and 2.2.2…
> 
> \bind "M-m h" "math-insert \\hat" 
> \bind "M-m S-h" "math-insert \\widehat" 
> 
> I think the point is to lower case „h“ in bind file while
> the short cuts in preferences are presented while upper
> case letters.

Both S-h and S-H work for me (i.e., I can insert \widehat and \hat is
not masked). So to summarize:

For Stephan, the following has correct behavior:

  \bind "M-m h" "math-insert \\hat" 
  \bind "M-m S-h" "math-insert \\widehat" 

but this does not have correct behavior:

  \bind "M-m h" "math-insert \\hat" 
  \bind "M-m S-H" "math-insert \\widehat" 

And for Kornel, neither one of the above pairs of bindings has correct
behavior. Stephan and Kornel, can you confirm?

For me, both have correct behavior.

Note that by correct behavior, I mean that you can insert both \hat and
\widehat with the bindings.

Scott


signature.asc
Description: PGP signature


Re: math.bind: add keybindings for \widehat, \tilde, and \widetilde

2018-06-18 Thread Stephan Witt
Am 18.06.2018 um 23:44 schrieb Kornel Benko :
> 
> Am Montag, 18. Juni 2018 23:17:16 CEST schrieb Stephan Witt :
> > Am 18.06.2018 um 17:46 schrieb Kornel Benko :
> > > 
> > > Am Montag, 18. Juni 2018 15:26:39 CEST schrieb José Abílio Matos 
> > > :
> > > > On Sunday, 17 June 2018 21.04.00 WEST Kornel Benko wrote:
> > > > > The settings in .lyx/math.bind are set to
> > > > > \bind "M-m ~S-H"   "math-insert \widehat
> > > > > \bind "M-m h"  "math-insert \hat
> > > > > 
> > > > > It doesn't make difference if using 'H' or 'h'.
> > > > 
> > > > That is precisely what the ~S means (i.e. regardless of the state of 
> > > > shift), 
> > > > IIRC.
> > >  
> > > You misunderstood: what I wanted to say, even
> > >   \bind "M-m h"  "math-insert \hat
> > > is bound to \widehat in this combination.
> > 
> > This is what works for me on Mac:
> > \bind "M-m S-h" "math-insert \\widehat"
> > 
> > Stephan
>  
> Sure, but that was not the problem. How do you get *also* binding for \hat?

I’v tried 2.3.0 and 2.2.2…

\bind "M-m h" "math-insert \\hat" 
\bind "M-m S-h" "math-insert \\widehat" 

I think the point is to lower case „h“ in bind file while
the short cuts in preferences are presented while upper
case letters.

Stephan

Re: math.bind: add keybindings for \widehat, \tilde, and \widetilde

2018-06-18 Thread Kornel Benko
Am Montag, 18. Juni 2018 23:17:16 CEST schrieb Stephan Witt :
> Am 18.06.2018 um 17:46 schrieb Kornel Benko :
> > 
> > Am Montag, 18. Juni 2018 15:26:39 CEST schrieb José Abílio Matos 
> > :
> > > On Sunday, 17 June 2018 21.04.00 WEST Kornel Benko wrote:
> > > > The settings in .lyx/math.bind are set to
> > > > \bind "M-m ~S-H"   "math-insert \widehat
> > > > \bind "M-m h"  "math-insert \hat
> > > > 
> > > > It doesn't make difference if using 'H' or 'h'.
> > > 
> > > That is precisely what the ~S means (i.e. regardless of the state of 
> > > shift), 
> > > IIRC.
> >  
> > You misunderstood: what I wanted to say, even
> > \bind "M-m h"  "math-insert \hat
> > is bound to \widehat in this combination.
> 
> This is what works for me on Mac:
> \bind "M-m S-h" "math-insert \\widehat"
> 
> Stephan

Sure, but that was not the problem. How do you get *also* binding for \hat?

Kornel



signature.asc
Description: This is a digitally signed message part.


Re: math.bind: add keybindings for \widehat, \tilde, and \widetilde

2018-06-18 Thread Stephan Witt
Am 18.06.2018 um 17:46 schrieb Kornel Benko :
> 
> Am Montag, 18. Juni 2018 15:26:39 CEST schrieb José Abílio Matos 
> :
> > On Sunday, 17 June 2018 21.04.00 WEST Kornel Benko wrote:
> > > The settings in .lyx/math.bind are set to
> > > \bind "M-m ~S-H"   "math-insert \widehat
> > > \bind "M-m h"  "math-insert \hat
> > > 
> > > It doesn't make difference if using 'H' or 'h'.
> > 
> > That is precisely what the ~S means (i.e. regardless of the state of 
> > shift), 
> > IIRC.
>  
> You misunderstood: what I wanted to say, even
>   \bind "M-m h"  "math-insert \hat
> is bound to \widehat in this combination.

This is what works for me on Mac:
\bind "M-m S-h" "math-insert \\widehat"

Stephan

Re: math.bind: add keybindings for \widehat, \tilde, and \widetilde

2018-06-18 Thread Kornel Benko
Am Montag, 18. Juni 2018 15:26:39 CEST schrieb José Abílio Matos 
:
> On Sunday, 17 June 2018 21.04.00 WEST Kornel Benko wrote:
> > The settings in .lyx/math.bind are set to
> > \bind "M-m ~S-H"   "math-insert \widehat
> > \bind "M-m h"  "math-insert \hat
> > 
> > It doesn't make difference if using 'H' or 'h'.
> 
> That is precisely what the ~S means (i.e. regardless of the state of shift), 
> IIRC.

You misunderstood: what I wanted to say, even
\bind "M-m h"  "math-insert \hat
is bound to \widehat in this combination.

Kornel



signature.asc
Description: This is a digitally signed message part.


Re: math.bind: add keybindings for \widehat, \tilde, and \widetilde

2018-06-18 Thread José Abílio Matos
On Sunday, 17 June 2018 21.04.00 WEST Kornel Benko wrote:
> The settings in .lyx/math.bind are set to
> \bind "M-m ~S-H"   "math-insert \widehat
> \bind "M-m h"  "math-insert \hat
> 
> It doesn't make difference if using 'H' or 'h'.

That is precisely what the ~S means (i.e. regardless of the state of shift), 
IIRC.

>   Kornel

-- 
José Abílio


Re: math.bind: add keybindings for \widehat, \tilde, and \widetilde

2018-06-17 Thread Kornel Benko
Am Samstag, 16. Juni 2018 14:35:26 CEST schrieb Scott Kostyshak 
:
> On Sat, Jun 16, 2018 at 09:25:34AM +, José Abílio Matos wrote:
> > On Saturday, 16 June 2018 07.15.33 WEST Scott Kostyshak wrote:
> > > To create \hat, we have a keybinding alt+m, h. I propose the following
> > > bindings (patch attached):
> > > 
> > >   - alt + m, H -> \widehat
> > >   - alt + m, t -> \tilde
> > 
> > This seems to be taken by
> > M-m t ? -> math-mutate 
> 
> Ah yes good catch.
> 
> > No?
> > 
> > I am not sure this a problem, I am just raising the issue. :-)
> 
> I think it is a problem. At least, it would require a lot more thought,
> so I retract the change to alt + m, t.
> 
> > >   - alt + m, T -> \widetilde
> > >   - alt + m, ~ -> \tilde
> > > 
> > > Any thoughts?
> > > 
> > > Scott
> > 
> > This seems reasonable
> 
> Since remapping alt + m, t has issues as above, probably mapping T to
> \widetilde is not as useful/consistent. So for now I'll just propose the
> following:
> 
>   H -> \widehat
>   ~ -> \tilde
> 
> Thanks for taking a look, José.
> 
> Scott

It seems to not work as expected here.
Now I get \widehat even if I want \hat.
The math-dialog shows for both the keybindings 
hat [Alt+M H]
widehat [Alt+M H]

The settings in .lyx/math.bind are set to
\bind "M-m ~S-H"   "math-insert \widehat
\bind "M-m h"  "math-insert \hat

It doesn't make difference if using 'H' or 'h'.

Kornel




signature.asc
Description: This is a digitally signed message part.


Re: math.bind: add keybindings for \widehat, \tilde, and \widetilde

2018-06-16 Thread Scott Kostyshak
On Sat, Jun 16, 2018 at 09:25:34AM +, José Abílio Matos wrote:
> On Saturday, 16 June 2018 07.15.33 WEST Scott Kostyshak wrote:
> > To create \hat, we have a keybinding alt+m, h. I propose the following
> > bindings (patch attached):
> > 
> >   - alt + m, H -> \widehat
> >   - alt + m, t -> \tilde
> 
> This seems to be taken by
> M-m t ? -> math-mutate 

Ah yes good catch.

> No?
> 
> I am not sure this a problem, I am just raising the issue. :-)

I think it is a problem. At least, it would require a lot more thought,
so I retract the change to alt + m, t.

> >   - alt + m, T -> \widetilde
> >   - alt + m, ~ -> \tilde
> > 
> > Any thoughts?
> > 
> > Scott
> 
> This seems reasonable

Since remapping alt + m, t has issues as above, probably mapping T to
\widetilde is not as useful/consistent. So for now I'll just propose the
following:

  H -> \widehat
  ~ -> \tilde

Thanks for taking a look, José.

Scott


signature.asc
Description: PGP signature


Re: math.bind: add keybindings for \widehat, \tilde, and \widetilde

2018-06-16 Thread José Abílio Matos
On Saturday, 16 June 2018 07.15.33 WEST Scott Kostyshak wrote:
> To create \hat, we have a keybinding alt+m, h. I propose the following
> bindings (patch attached):
> 
>   - alt + m, H -> \widehat
>   - alt + m, t -> \tilde

This seems to be taken by
M-m t ? -> math-mutate 

No?

I am not sure this a problem, I am just raising the issue. :-)

>   - alt + m, T -> \widetilde
>   - alt + m, ~ -> \tilde
> 
> Any thoughts?
> 
> Scott

This seems reasonable
-- 
José Abílio