Re: Keyboard shortcut for unicode input not working

2014-01-26 Thread William Furnass
On 23 January 2014 21:50, Scott Kostyshak skost...@lyx.org wrote:

 On Thu, Jan 23, 2014 at 4:21 PM, William Furnass w...@thearete.co.uk wrote:

 On 23 January 2014 16:23, Scott Kostyshak skost...@lyx.org wrote:

 On Thu, Jan 23, 2014 at 6:37 AM, William Furnass w...@thearete.co.uk 
 wrote:
 I'm running LyX v2.06 on Linux Mint 16.  In other applications I can
 enter a unicode character using ctrl-shift-u then the code point.
 However, I'm unable to do this in LyX, even if I explicitly bind
 'unicode-input' to ctrl-shift-u in the preferences (results in '\bind
 C-S-u unicode-insert' being added to .lyx/bind/user.bind).

 What happens for you when you do ctrl+shift+u? On Ubuntu 13.10 with
 LyX2.1beta2 I get a u with an underline, but on the next character
 it disappears. I have the feeling this is a Qt-related issue (I was
 just wrong on this same feeling in a thread before though so beware).

 I have a list of unicode code points taped to my monitor and want to
 be able to enter the corresponding characters for them all without
 having to set up shortcut keys for each.

 Nice idea. I often forget the usefulness of physical cheat sheets.
 I've been meaning to print some.

 I forgot to mention that Ctrl-Shift-u allows me to subsequently enter
 code points to input unicode characters in LyX on another machine
 running Ubuntu 13.10

 So you are saying that it works as you expect on this machine? Which
 version of LyX is it?

2.0.6-1 on both machines.

 and, more importantly, that pressing Ctrl-Shift-U
 on my machine oddly generates a O with a backslash through it, without
 me entering any characters afterwards.  I've now unset Ctrl-Shift-U in
 the key bindings and still see this behaviour.

 This is why I think it's Qt-related. I don't think there's a built-in
 LyX binding for Ctrl+Shift+U.

You're right: it's an OS issue rather than a LyX one.  The problem
seems to be that the 'ibus' input method isn't installed and enabled
by default on Linux Mint 16 (which comes with the older xim input
method enabled instead).  However, I think that ibus might be
installed and enabled if one installs either the KDE and/or XFCE
desktop environments, both of which are installed on the machine on
which unicode input works as desired.

Now that I've installed and enabled ibus I can enter unicode using
Ctrl-Shift-u code point.  I can add notes on this to the LyX wiki
- would anyone mind if I hijacked [1] and gave it a more general name
e.g. KeyboardInputMethods?

[1] http://wiki.lyx.org/Tips/FixDeadKeysAndCompose

Will


Re: Keyboard shortcut for unicode input not working

2014-01-26 Thread Scott Kostyshak
On Sun, Jan 26, 2014 at 1:34 PM, William Furnass w...@thearete.co.uk wrote:
 On 23 January 2014 21:50, Scott Kostyshak skost...@lyx.org wrote:

 On Thu, Jan 23, 2014 at 4:21 PM, William Furnass w...@thearete.co.uk wrote:

 On 23 January 2014 16:23, Scott Kostyshak skost...@lyx.org wrote:

 On Thu, Jan 23, 2014 at 6:37 AM, William Furnass w...@thearete.co.uk 
 wrote:
 I'm running LyX v2.06 on Linux Mint 16.  In other applications I can
 enter a unicode character using ctrl-shift-u then the code point.
 However, I'm unable to do this in LyX, even if I explicitly bind
 'unicode-input' to ctrl-shift-u in the preferences (results in '\bind
 C-S-u unicode-insert' being added to .lyx/bind/user.bind).

 What happens for you when you do ctrl+shift+u? On Ubuntu 13.10 with
 LyX2.1beta2 I get a u with an underline, but on the next character
 it disappears. I have the feeling this is a Qt-related issue (I was
 just wrong on this same feeling in a thread before though so beware).

 I have a list of unicode code points taped to my monitor and want to
 be able to enter the corresponding characters for them all without
 having to set up shortcut keys for each.

 Nice idea. I often forget the usefulness of physical cheat sheets.
 I've been meaning to print some.

 I forgot to mention that Ctrl-Shift-u allows me to subsequently enter
 code points to input unicode characters in LyX on another machine
 running Ubuntu 13.10

 So you are saying that it works as you expect on this machine? Which
 version of LyX is it?

 2.0.6-1 on both machines.

 and, more importantly, that pressing Ctrl-Shift-U
 on my machine oddly generates a O with a backslash through it, without
 me entering any characters afterwards.  I've now unset Ctrl-Shift-U in
 the key bindings and still see this behaviour.

 This is why I think it's Qt-related. I don't think there's a built-in
 LyX binding for Ctrl+Shift+U.

 You're right: it's an OS issue rather than a LyX one.  The problem
 seems to be that the 'ibus' input method isn't installed and enabled
 by default on Linux Mint 16 (which comes with the older xim input
 method enabled instead).  However, I think that ibus might be
 installed and enabled if one installs either the KDE and/or XFCE
 desktop environments, both of which are installed on the machine on
 which unicode input works as desired.

Thanks for investigating this, Will.

 Now that I've installed and enabled ibus I can enter unicode using
 Ctrl-Shift-u code point.  I can add notes on this to the LyX wiki
 - would anyone mind if I hijacked [1] and gave it a more general name
 e.g. KeyboardInputMethods?

Please put your notes. I'll be interested in reading them (I know
nothing about this subject).

Best,

Scott

 [1] http://wiki.lyx.org/Tips/FixDeadKeysAndCompose

 Will


Re: Keyboard shortcut for unicode input not working

2014-01-26 Thread William Furnass
On 23 January 2014 21:50, Scott Kostyshak skost...@lyx.org wrote:

 On Thu, Jan 23, 2014 at 4:21 PM, William Furnass w...@thearete.co.uk wrote:

 On 23 January 2014 16:23, Scott Kostyshak skost...@lyx.org wrote:

 On Thu, Jan 23, 2014 at 6:37 AM, William Furnass w...@thearete.co.uk 
 wrote:
 I'm running LyX v2.06 on Linux Mint 16.  In other applications I can
 enter a unicode character using ctrl-shift-u then the code point.
 However, I'm unable to do this in LyX, even if I explicitly bind
 'unicode-input' to ctrl-shift-u in the preferences (results in '\bind
 C-S-u unicode-insert' being added to .lyx/bind/user.bind).

 What happens for you when you do ctrl+shift+u? On Ubuntu 13.10 with
 LyX2.1beta2 I get a u with an underline, but on the next character
 it disappears. I have the feeling this is a Qt-related issue (I was
 just wrong on this same feeling in a thread before though so beware).

 I have a list of unicode code points taped to my monitor and want to
 be able to enter the corresponding characters for them all without
 having to set up shortcut keys for each.

 Nice idea. I often forget the usefulness of physical cheat sheets.
 I've been meaning to print some.

 I forgot to mention that Ctrl-Shift-u allows me to subsequently enter
 code points to input unicode characters in LyX on another machine
 running Ubuntu 13.10

 So you are saying that it works as you expect on this machine? Which
 version of LyX is it?

2.0.6-1 on both machines.

 and, more importantly, that pressing Ctrl-Shift-U
 on my machine oddly generates a O with a backslash through it, without
 me entering any characters afterwards.  I've now unset Ctrl-Shift-U in
 the key bindings and still see this behaviour.

 This is why I think it's Qt-related. I don't think there's a built-in
 LyX binding for Ctrl+Shift+U.

You're right: it's an OS issue rather than a LyX one.  The problem
seems to be that the 'ibus' input method isn't installed and enabled
by default on Linux Mint 16 (which comes with the older xim input
method enabled instead).  However, I think that ibus might be
installed and enabled if one installs either the KDE and/or XFCE
desktop environments, both of which are installed on the machine on
which unicode input works as desired.

Now that I've installed and enabled ibus I can enter unicode using
Ctrl-Shift-u code point.  I can add notes on this to the LyX wiki
- would anyone mind if I hijacked [1] and gave it a more general name
e.g. KeyboardInputMethods?

[1] http://wiki.lyx.org/Tips/FixDeadKeysAndCompose

Will


Re: Keyboard shortcut for unicode input not working

2014-01-26 Thread Scott Kostyshak
On Sun, Jan 26, 2014 at 1:34 PM, William Furnass w...@thearete.co.uk wrote:
 On 23 January 2014 21:50, Scott Kostyshak skost...@lyx.org wrote:

 On Thu, Jan 23, 2014 at 4:21 PM, William Furnass w...@thearete.co.uk wrote:

 On 23 January 2014 16:23, Scott Kostyshak skost...@lyx.org wrote:

 On Thu, Jan 23, 2014 at 6:37 AM, William Furnass w...@thearete.co.uk 
 wrote:
 I'm running LyX v2.06 on Linux Mint 16.  In other applications I can
 enter a unicode character using ctrl-shift-u then the code point.
 However, I'm unable to do this in LyX, even if I explicitly bind
 'unicode-input' to ctrl-shift-u in the preferences (results in '\bind
 C-S-u unicode-insert' being added to .lyx/bind/user.bind).

 What happens for you when you do ctrl+shift+u? On Ubuntu 13.10 with
 LyX2.1beta2 I get a u with an underline, but on the next character
 it disappears. I have the feeling this is a Qt-related issue (I was
 just wrong on this same feeling in a thread before though so beware).

 I have a list of unicode code points taped to my monitor and want to
 be able to enter the corresponding characters for them all without
 having to set up shortcut keys for each.

 Nice idea. I often forget the usefulness of physical cheat sheets.
 I've been meaning to print some.

 I forgot to mention that Ctrl-Shift-u allows me to subsequently enter
 code points to input unicode characters in LyX on another machine
 running Ubuntu 13.10

 So you are saying that it works as you expect on this machine? Which
 version of LyX is it?

 2.0.6-1 on both machines.

 and, more importantly, that pressing Ctrl-Shift-U
 on my machine oddly generates a O with a backslash through it, without
 me entering any characters afterwards.  I've now unset Ctrl-Shift-U in
 the key bindings and still see this behaviour.

 This is why I think it's Qt-related. I don't think there's a built-in
 LyX binding for Ctrl+Shift+U.

 You're right: it's an OS issue rather than a LyX one.  The problem
 seems to be that the 'ibus' input method isn't installed and enabled
 by default on Linux Mint 16 (which comes with the older xim input
 method enabled instead).  However, I think that ibus might be
 installed and enabled if one installs either the KDE and/or XFCE
 desktop environments, both of which are installed on the machine on
 which unicode input works as desired.

Thanks for investigating this, Will.

 Now that I've installed and enabled ibus I can enter unicode using
 Ctrl-Shift-u code point.  I can add notes on this to the LyX wiki
 - would anyone mind if I hijacked [1] and gave it a more general name
 e.g. KeyboardInputMethods?

Please put your notes. I'll be interested in reading them (I know
nothing about this subject).

Best,

Scott

 [1] http://wiki.lyx.org/Tips/FixDeadKeysAndCompose

 Will


Re: Keyboard shortcut for unicode input not working

2014-01-26 Thread William Furnass
On 23 January 2014 21:50, Scott Kostyshak  wrote:
>
> On Thu, Jan 23, 2014 at 4:21 PM, William Furnass  wrote:
>>
>> On 23 January 2014 16:23, Scott Kostyshak  wrote:
>>>
>>> On Thu, Jan 23, 2014 at 6:37 AM, William Furnass  
>>> wrote:
 I'm running LyX v2.06 on Linux Mint 16.  In other applications I can
 enter a unicode character using ctrl-shift-u then the code point.
 However, I'm unable to do this in LyX, even if I explicitly bind
 'unicode-input' to ctrl-shift-u in the preferences (results in '\bind
 "C-S-u" "unicode-insert"' being added to .lyx/bind/user.bind).
>>
>>> What happens for you when you do ctrl+shift+u? On Ubuntu 13.10 with
>>> LyX2.1beta2 I get a "u" with an underline, but on the next character
>>> it disappears. I have the feeling this is a Qt-related issue (I was
>>> just wrong on this same feeling in a thread before though so beware).
>>
>> I have a list of unicode code points taped to my monitor and want to
>> be able to enter the corresponding characters for them all without
>> having to set up shortcut keys for each.
>
> Nice idea. I often forget the usefulness of physical cheat sheets.
> I've been meaning to print some.
>
>> I forgot to mention that Ctrl-Shift-u allows me to subsequently enter
>> code points to input unicode characters in LyX on another machine
>> running Ubuntu 13.10
>
> So you are saying that it works as you expect on this machine? Which
> version of LyX is it?

2.0.6-1 on both machines.

>> and, more importantly, that pressing Ctrl-Shift-U
>> on my machine oddly generates a O with a backslash through it, without
>> me entering any characters afterwards.  I've now unset Ctrl-Shift-U in
>> the key bindings and still see this behaviour.
>
> This is why I think it's Qt-related. I don't think there's a built-in
> LyX binding for Ctrl+Shift+U.

You're right: it's an OS issue rather than a LyX one.  The problem
seems to be that the 'ibus' input method isn't installed and enabled
by default on Linux Mint 16 (which comes with the older xim input
method enabled instead).  However, I think that ibus might be
installed and enabled if one installs either the KDE and/or XFCE
desktop environments, both of which are installed on the machine on
which unicode input works as desired.

Now that I've installed and enabled ibus I can enter unicode using
Ctrl-Shift-u <>.  I can add notes on this to the LyX wiki
- would anyone mind if I hijacked [1] and gave it a more general name
e.g. KeyboardInputMethods?

[1] http://wiki.lyx.org/Tips/FixDeadKeysAndCompose

Will


Re: Keyboard shortcut for unicode input not working

2014-01-26 Thread Scott Kostyshak
On Sun, Jan 26, 2014 at 1:34 PM, William Furnass  wrote:
> On 23 January 2014 21:50, Scott Kostyshak  wrote:
>>
>> On Thu, Jan 23, 2014 at 4:21 PM, William Furnass  wrote:
>>>
>>> On 23 January 2014 16:23, Scott Kostyshak  wrote:

 On Thu, Jan 23, 2014 at 6:37 AM, William Furnass  
 wrote:
> I'm running LyX v2.06 on Linux Mint 16.  In other applications I can
> enter a unicode character using ctrl-shift-u then the code point.
> However, I'm unable to do this in LyX, even if I explicitly bind
> 'unicode-input' to ctrl-shift-u in the preferences (results in '\bind
> "C-S-u" "unicode-insert"' being added to .lyx/bind/user.bind).
>>>
 What happens for you when you do ctrl+shift+u? On Ubuntu 13.10 with
 LyX2.1beta2 I get a "u" with an underline, but on the next character
 it disappears. I have the feeling this is a Qt-related issue (I was
 just wrong on this same feeling in a thread before though so beware).
>>>
>>> I have a list of unicode code points taped to my monitor and want to
>>> be able to enter the corresponding characters for them all without
>>> having to set up shortcut keys for each.
>>
>> Nice idea. I often forget the usefulness of physical cheat sheets.
>> I've been meaning to print some.
>>
>>> I forgot to mention that Ctrl-Shift-u allows me to subsequently enter
>>> code points to input unicode characters in LyX on another machine
>>> running Ubuntu 13.10
>>
>> So you are saying that it works as you expect on this machine? Which
>> version of LyX is it?
>
> 2.0.6-1 on both machines.
>
>>> and, more importantly, that pressing Ctrl-Shift-U
>>> on my machine oddly generates a O with a backslash through it, without
>>> me entering any characters afterwards.  I've now unset Ctrl-Shift-U in
>>> the key bindings and still see this behaviour.
>>
>> This is why I think it's Qt-related. I don't think there's a built-in
>> LyX binding for Ctrl+Shift+U.
>
> You're right: it's an OS issue rather than a LyX one.  The problem
> seems to be that the 'ibus' input method isn't installed and enabled
> by default on Linux Mint 16 (which comes with the older xim input
> method enabled instead).  However, I think that ibus might be
> installed and enabled if one installs either the KDE and/or XFCE
> desktop environments, both of which are installed on the machine on
> which unicode input works as desired.

Thanks for investigating this, Will.

> Now that I've installed and enabled ibus I can enter unicode using
> Ctrl-Shift-u <>.  I can add notes on this to the LyX wiki
> - would anyone mind if I hijacked [1] and gave it a more general name
> e.g. KeyboardInputMethods?

Please put your notes. I'll be interested in reading them (I know
nothing about this subject).

Best,

Scott

> [1] http://wiki.lyx.org/Tips/FixDeadKeysAndCompose
>
> Will


Keyboard shortcut for unicode input not working

2014-01-23 Thread William Furnass
I'm running LyX v2.06 on Linux Mint 16.  In other applications I can
enter a unicode character using ctrl-shift-u then the code point.
However, I'm unable to do this in LyX, even if I explicitly bind
'unicode-input' to ctrl-shift-u in the preferences (results in '\bind
C-S-u unicode-insert' being added to .lyx/bind/user.bind).

Anyone got any ideas why this isn't working?  I know I can enter
unicode using alt-x then typing 'unicode-input codepoint' in the
input box that appears at the bottom of the main window but this is
rather cumbersome.

Regards,

Will


Re: Keyboard shortcut for unicode input not working

2014-01-23 Thread Scott Kostyshak
Hi William,

On Thu, Jan 23, 2014 at 6:37 AM, William Furnass w...@thearete.co.uk wrote:
 I'm running LyX v2.06 on Linux Mint 16.  In other applications I can
 enter a unicode character using ctrl-shift-u then the code point.
 However, I'm unable to do this in LyX, even if I explicitly bind
 'unicode-input' to ctrl-shift-u in the preferences (results in '\bind
 C-S-u unicode-insert' being added to .lyx/bind/user.bind).

 Anyone got any ideas why this isn't working?

Yes. It's because as you say one must enter the full string on the
mini-buffer. You can only make shortcuts to a full command, not
something that still requires input.

Also note that it's 'unicode-insert' and not 'unicode-input' in LyX
2.1 (perhaps this changed?).

What happens for you when you do ctrl+shift+u? On Ubuntu 13.10 with
LyX2.1beta2 I get a u with an underline, but on the next character
it disappears. I have the feeling this is a Qt-related issue (I was
just wrong on this same feeling in a thread before though so beware).

 I know I can enter
 unicode using alt-x then typing 'unicode-input codepoint' in the
 input box that appears at the bottom of the main window but this is
 rather cumbersome.

I've always been interested in use cases for this. Do you just
remember lots of handy unicode so you can enter them quickly? I only
use them when I look them up some where. So for me, the 10 seconds of
having to type alt-x then typing 'unicode-insert codepoint' is far
less than the time it takes for me to actually find the code of the
character I want to insert.

On the other hand, if you have 10 or so unicodes memorized, you could
just instead make shortcuts. For example, if you want to enter unicode
Ucode, bind something to 'unicode-insert Ucode' and for a
different one make a new one. This won't work if you have many of them
memorized though, but I just wanted to suggest that in case you hadn't
thought of it.

Best,

Scott


Re: Keyboard shortcut for unicode input not working

2014-01-23 Thread Scott Kostyshak
Hi William,

Please respond to the list (or tell me explicitly if you wish for an
email to be private).

On Thu, Jan 23, 2014 at 4:21 PM, William Furnass w...@thearete.co.uk wrote:
 Hi Scott,

 On 23 January 2014 16:23, Scott Kostyshak skost...@lyx.org wrote:

 On Thu, Jan 23, 2014 at 6:37 AM, William Furnass w...@thearete.co.uk wrote:
 I'm running LyX v2.06 on Linux Mint 16.  In other applications I can
 enter a unicode character using ctrl-shift-u then the code point.
 However, I'm unable to do this in LyX, even if I explicitly bind
 'unicode-input' to ctrl-shift-u in the preferences (results in '\bind
 C-S-u unicode-insert' being added to .lyx/bind/user.bind).

 What happens for you when you do ctrl+shift+u? On Ubuntu 13.10 with
 LyX2.1beta2 I get a u with an underline, but on the next character
 it disappears. I have the feeling this is a Qt-related issue (I was
 just wrong on this same feeling in a thread before though so beware).

 I have a list of unicode code points taped to my monitor and want to
 be able to enter the corresponding characters for them all without
 having to set up shortcut keys for each.

Nice idea. I often forget the usefulness of physical cheat sheets.
I've been meaning to print some.

 I forgot to mention that Ctrl-Shift-u allows me to subsequently enter
 code points to input unicode characters in LyX on another machine
 running Ubuntu 13.10

So you are saying that it works as you expect on this machine? Which
version of LyX is it?

 and, more importantly, that pressing Ctrl-Shift-U
 on my machine oddly generates a O with a backslash through it, without
 me entering any characters afterwards.  I've now unset Ctrl-Shift-U in
 the key bindings and still see this behaviour.

This is why I think it's Qt-related. I don't think there's a built-in
LyX binding for Ctrl+Shift+U.

Best,

Scott


Keyboard shortcut for unicode input not working

2014-01-23 Thread William Furnass
I'm running LyX v2.06 on Linux Mint 16.  In other applications I can
enter a unicode character using ctrl-shift-u then the code point.
However, I'm unable to do this in LyX, even if I explicitly bind
'unicode-input' to ctrl-shift-u in the preferences (results in '\bind
C-S-u unicode-insert' being added to .lyx/bind/user.bind).

Anyone got any ideas why this isn't working?  I know I can enter
unicode using alt-x then typing 'unicode-input codepoint' in the
input box that appears at the bottom of the main window but this is
rather cumbersome.

Regards,

Will


Re: Keyboard shortcut for unicode input not working

2014-01-23 Thread Scott Kostyshak
Hi William,

On Thu, Jan 23, 2014 at 6:37 AM, William Furnass w...@thearete.co.uk wrote:
 I'm running LyX v2.06 on Linux Mint 16.  In other applications I can
 enter a unicode character using ctrl-shift-u then the code point.
 However, I'm unable to do this in LyX, even if I explicitly bind
 'unicode-input' to ctrl-shift-u in the preferences (results in '\bind
 C-S-u unicode-insert' being added to .lyx/bind/user.bind).

 Anyone got any ideas why this isn't working?

Yes. It's because as you say one must enter the full string on the
mini-buffer. You can only make shortcuts to a full command, not
something that still requires input.

Also note that it's 'unicode-insert' and not 'unicode-input' in LyX
2.1 (perhaps this changed?).

What happens for you when you do ctrl+shift+u? On Ubuntu 13.10 with
LyX2.1beta2 I get a u with an underline, but on the next character
it disappears. I have the feeling this is a Qt-related issue (I was
just wrong on this same feeling in a thread before though so beware).

 I know I can enter
 unicode using alt-x then typing 'unicode-input codepoint' in the
 input box that appears at the bottom of the main window but this is
 rather cumbersome.

I've always been interested in use cases for this. Do you just
remember lots of handy unicode so you can enter them quickly? I only
use them when I look them up some where. So for me, the 10 seconds of
having to type alt-x then typing 'unicode-insert codepoint' is far
less than the time it takes for me to actually find the code of the
character I want to insert.

On the other hand, if you have 10 or so unicodes memorized, you could
just instead make shortcuts. For example, if you want to enter unicode
Ucode, bind something to 'unicode-insert Ucode' and for a
different one make a new one. This won't work if you have many of them
memorized though, but I just wanted to suggest that in case you hadn't
thought of it.

Best,

Scott


Re: Keyboard shortcut for unicode input not working

2014-01-23 Thread Scott Kostyshak
Hi William,

Please respond to the list (or tell me explicitly if you wish for an
email to be private).

On Thu, Jan 23, 2014 at 4:21 PM, William Furnass w...@thearete.co.uk wrote:
 Hi Scott,

 On 23 January 2014 16:23, Scott Kostyshak skost...@lyx.org wrote:

 On Thu, Jan 23, 2014 at 6:37 AM, William Furnass w...@thearete.co.uk wrote:
 I'm running LyX v2.06 on Linux Mint 16.  In other applications I can
 enter a unicode character using ctrl-shift-u then the code point.
 However, I'm unable to do this in LyX, even if I explicitly bind
 'unicode-input' to ctrl-shift-u in the preferences (results in '\bind
 C-S-u unicode-insert' being added to .lyx/bind/user.bind).

 What happens for you when you do ctrl+shift+u? On Ubuntu 13.10 with
 LyX2.1beta2 I get a u with an underline, but on the next character
 it disappears. I have the feeling this is a Qt-related issue (I was
 just wrong on this same feeling in a thread before though so beware).

 I have a list of unicode code points taped to my monitor and want to
 be able to enter the corresponding characters for them all without
 having to set up shortcut keys for each.

Nice idea. I often forget the usefulness of physical cheat sheets.
I've been meaning to print some.

 I forgot to mention that Ctrl-Shift-u allows me to subsequently enter
 code points to input unicode characters in LyX on another machine
 running Ubuntu 13.10

So you are saying that it works as you expect on this machine? Which
version of LyX is it?

 and, more importantly, that pressing Ctrl-Shift-U
 on my machine oddly generates a O with a backslash through it, without
 me entering any characters afterwards.  I've now unset Ctrl-Shift-U in
 the key bindings and still see this behaviour.

This is why I think it's Qt-related. I don't think there's a built-in
LyX binding for Ctrl+Shift+U.

Best,

Scott


Keyboard shortcut for unicode input not working

2014-01-23 Thread William Furnass
I'm running LyX v2.06 on Linux Mint 16.  In other applications I can
enter a unicode character using ctrl-shift-u then the code point.
However, I'm unable to do this in LyX, even if I explicitly bind
'unicode-input' to ctrl-shift-u in the preferences (results in '\bind
"C-S-u" "unicode-insert"' being added to .lyx/bind/user.bind).

Anyone got any ideas why this isn't working?  I know I can enter
unicode using alt-x then typing 'unicode-input <>' in the
input box that appears at the bottom of the main window but this is
rather cumbersome.

Regards,

Will


Re: Keyboard shortcut for unicode input not working

2014-01-23 Thread Scott Kostyshak
Hi William,

On Thu, Jan 23, 2014 at 6:37 AM, William Furnass  wrote:
> I'm running LyX v2.06 on Linux Mint 16.  In other applications I can
> enter a unicode character using ctrl-shift-u then the code point.
> However, I'm unable to do this in LyX, even if I explicitly bind
> 'unicode-input' to ctrl-shift-u in the preferences (results in '\bind
> "C-S-u" "unicode-insert"' being added to .lyx/bind/user.bind).
>
> Anyone got any ideas why this isn't working?

Yes. It's because as you say one must enter the full string on the
mini-buffer. You can only make shortcuts to a full command, not
something that still requires input.

Also note that it's 'unicode-insert' and not 'unicode-input' in LyX
2.1 (perhaps this changed?).

What happens for you when you do ctrl+shift+u? On Ubuntu 13.10 with
LyX2.1beta2 I get a "u" with an underline, but on the next character
it disappears. I have the feeling this is a Qt-related issue (I was
just wrong on this same feeling in a thread before though so beware).

> I know I can enter
> unicode using alt-x then typing 'unicode-input <>' in the
> input box that appears at the bottom of the main window but this is
> rather cumbersome.

I've always been interested in use cases for this. Do you just
remember lots of handy unicode so you can enter them quickly? I only
use them when I look them up some where. So for me, the 10 seconds of
having to type alt-x then typing 'unicode-insert <>' is far
less than the time it takes for me to actually find the code of the
character I want to insert.

On the other hand, if you have 10 or so unicodes memorized, you could
just instead make shortcuts. For example, if you want to enter unicode
, bind something to 'unicode-insert ' and for a
different one make a new one. This won't work if you have many of them
memorized though, but I just wanted to suggest that in case you hadn't
thought of it.

Best,

Scott


Re: Keyboard shortcut for unicode input not working

2014-01-23 Thread Scott Kostyshak
Hi William,

Please respond to the list (or tell me explicitly if you wish for an
email to be private).

On Thu, Jan 23, 2014 at 4:21 PM, William Furnass  wrote:
> Hi Scott,
>
> On 23 January 2014 16:23, Scott Kostyshak  wrote:
>>
>> On Thu, Jan 23, 2014 at 6:37 AM, William Furnass  wrote:
>>> I'm running LyX v2.06 on Linux Mint 16.  In other applications I can
>>> enter a unicode character using ctrl-shift-u then the code point.
>>> However, I'm unable to do this in LyX, even if I explicitly bind
>>> 'unicode-input' to ctrl-shift-u in the preferences (results in '\bind
>>> "C-S-u" "unicode-insert"' being added to .lyx/bind/user.bind).
>
>> What happens for you when you do ctrl+shift+u? On Ubuntu 13.10 with
>> LyX2.1beta2 I get a "u" with an underline, but on the next character
>> it disappears. I have the feeling this is a Qt-related issue (I was
>> just wrong on this same feeling in a thread before though so beware).
>
> I have a list of unicode code points taped to my monitor and want to
> be able to enter the corresponding characters for them all without
> having to set up shortcut keys for each.

Nice idea. I often forget the usefulness of physical cheat sheets.
I've been meaning to print some.

> I forgot to mention that Ctrl-Shift-u allows me to subsequently enter
> code points to input unicode characters in LyX on another machine
> running Ubuntu 13.10

So you are saying that it works as you expect on this machine? Which
version of LyX is it?

> and, more importantly, that pressing Ctrl-Shift-U
> on my machine oddly generates a O with a backslash through it, without
> me entering any characters afterwards.  I've now unset Ctrl-Shift-U in
> the key bindings and still see this behaviour.

This is why I think it's Qt-related. I don't think there's a built-in
LyX binding for Ctrl+Shift+U.

Best,

Scott