I'm using an american keyboard with Geany, but have recently been wanting to type in some unicode characters.
I don't have an AltGr key on my keyboard, nor do I have any special keys that I can spare to use as a Compose key (I know, most keyboards have a "Windows" key which folks probably usually use for this purpose, but that key is not easily accessible on my keyboard).
After a bit of searching, I found that the common way to get unicode characters (with Gnome anyway) is to hit Shift-Ctrl-U, release, then type in the hex digits representing the unicode code point, then hit Enter. This works nicely on Gedit, and in Firefox too: for example: è, é, ê.
In Geany, to get that to work, first I have to give up using Shift-Ctrl-U for dealing with case (I don't need this feature often anyway, and besides, there's always the menu item for it). Once Shift-Ctrl-U is unmapped though, it still doesn't work well. Geany wants me to *hold down* Shift-Ctrl-U while I type the hex digits (which requires some finger acrobatics), and then when I'm done, although hitting Enter gives me the character I wanted, it also inserts a newline into my file.
I think it would be great if I could enter unicode characters in Geany the same way as with Firefox, Gedit, the Gimp, the Gnome dictionary applet, Gaim, etc.
Thanks, ---John
On Wed, 11 Jul 2007 14:32:53 -0400, "John Gabriele" jmg3000@gmail.com wrote:
I'm using an american keyboard with Geany, but have recently been wanting to type in some unicode characters.
[...] After a bit of searching, I found that the common way to get unicode characters (with Gnome anyway) is to hit Shift-Ctrl-U, release, then type in the hex digits representing the unicode code point, then hit Enter. This works nicely on Gedit, and in Firefox too: for example: è, é, ê.
As I told you I didn't forget about this but did some testing. And finally, the solution so very simple ;-). Just unbind Ctrl-Shift-U in the preferences editor, restart Geany and you are done. The restart is necessary because of the menu item mnemonics which are set by default. But after the restart of Geany, Ctrl-Shift-U should work.
Just press Ctrl-Shift-u, then keep Ctrl and Shift pressed down and type u264d and hit Return.
Regards, Enrico
On 8/27/07, Enrico Tröger enrico.troeger@uvena.de wrote:
On Wed, 11 Jul 2007 14:32:53 -0400, "John Gabriele" jmg3000@gmail.com wrote:
I'm using an american keyboard with Geany, but have recently been wanting to type in some unicode characters.
[...] After a bit of searching, I found that the common way to get unicode characters (with Gnome anyway) is to hit Shift-Ctrl-U, release, then type in the hex digits representing the unicode code point, then hit Enter. This works nicely on Gedit, and in Firefox too: for example: è, é, ê.
As I told you I didn't forget about this but did some testing. And finally, the solution so very simple ;-). Just unbind Ctrl-Shift-U in the preferences editor, restart Geany and you are done. The restart is necessary because of the menu item mnemonics which are set by default. But after the restart of Geany, Ctrl-Shift-U should work.
Just press Ctrl-Shift-u, then keep Ctrl and Shift pressed down and type u264d and hit Return.
Ok. Thanks. [see attached doc patch]
---John
On 08/27/2007 12:02:35 PM, Enrico Tröger wrote:
On Wed, 11 Jul 2007 14:32:53 -0400, "John Gabriele" jmg3000@gmail.com wrote:
I'm using an american keyboard with Geany, but have recently been wanting to type in some unicode characters.
[...] After a bit of searching, I found that the common way to get
unicode
characters (with Gnome anyway) is to hit Shift-Ctrl-U, release,
then
type in the hex digits representing the unicode code point, then
hit
Enter. This works nicely on Gedit, and in Firefox too: for example:
è,
é, ê.
As I told you I didn't forget about this but did some testing. And finally, the solution so very simple ;-). Just unbind Ctrl-Shift-U in the preferences editor, restart Geany and you are done. The restart is necessary because of the menu item mnemonics which are set by default. But after the restart of Geany, Ctrl-Shift-U should work.
Just press Ctrl-Shift-u, then keep Ctrl and Shift pressed down and type u264d and hit Return.
I find on my system (Fedora 5, Xfce 4.2, Gtk 2.8, LANG=en_US.UTF-8) I don't need to type ctrl-shift-u, just hold ctrl-shift whilst typing the unicode numbers. Also, what does the d mean in u264d - for me I can press any key, e.g. right arrow after typing the numbers and the unicode char is inserted. If I type 'd' then the unicode char followed by 'd' is inserted.
I just thought - that trailing d is for decimal, right ;-)
Regards, Nick
On 8/27/07, Nick Treleaven nick.treleaven@btinternet.com wrote:
On 08/27/2007 12:02:35 PM, Enrico Tröger wrote:
On Wed, 11 Jul 2007 14:32:53 -0400, "John Gabriele" jmg3000@gmail.com wrote:
I'm using an american keyboard with Geany, but have recently been wanting to type in some unicode characters.
[...] After a bit of searching, I found that the common way to get
unicode
characters (with Gnome anyway) is to hit Shift-Ctrl-U, release,
then
type in the hex digits representing the unicode code point, then
hit
Enter. This works nicely on Gedit, and in Firefox too: for example:
è,
é, ê.
As I told you I didn't forget about this but did some testing. And finally, the solution so very simple ;-). Just unbind Ctrl-Shift-U in the preferences editor, restart Geany and you are done. The restart is necessary because of the menu item mnemonics which are set by default. But after the restart of Geany, Ctrl-Shift-U should work.
Just press Ctrl-Shift-u, then keep Ctrl and Shift pressed down and type u264d and hit Return.
I find on my system (Fedora 5, Xfce 4.2, Gtk 2.8, LANG=en_US.UTF-8) I don't need to type ctrl-shift-u, just hold ctrl-shift whilst typing the unicode numbers. Also, what does the d mean in u264d - for me I can press any key, e.g. right arrow after typing the numbers and the unicode char is inserted. If I type 'd' then the unicode char followed by 'd' is inserted.
I just thought - that trailing d is for decimal, right ;-)
The d is part of the hex number specifying the code point. On Ubuntu with Gnome, the unicode character 0x264d it gives me is ♍.
I'm not familiar with Xfce, but holding down Shift-Ctrl and then just typing hex digits seems odd to me, since it wastes an awful lot of available key combos (ex. Shift-Ctrl-{0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f}).
Also, the nice thing about the Gnome way is that, since you don't have to hold down the Shift and Ctrl keys, it frees up your fingers to type the hex number.
---John
On Mon, 27 Aug 2007 13:02:10 -0400, "John Gabriele" jmg3000@gmail.com wrote:
On 8/27/07, Nick Treleaven nick.treleaven@btinternet.com wrote:
On 08/27/2007 12:02:35 PM, Enrico Tröger wrote:
On Wed, 11 Jul 2007 14:32:53 -0400, "John Gabriele" jmg3000@gmail.com wrote:
I'm using an american keyboard with Geany, but have recently been wanting to type in some unicode characters.
[...] After a bit of searching, I found that the common way to get
unicode
characters (with Gnome anyway) is to hit Shift-Ctrl-U, release,
then
type in the hex digits representing the unicode code point, then
hit
Enter. This works nicely on Gedit, and in Firefox too: for example:
è,
é, ê.
As I told you I didn't forget about this but did some testing. And finally, the solution so very simple ;-). Just unbind Ctrl-Shift-U in the preferences editor, restart Geany and you are done. The restart is necessary because of the menu item mnemonics which are set by default. But after the restart of Geany, Ctrl-Shift-U should work.
Just press Ctrl-Shift-u, then keep Ctrl and Shift pressed down and type u264d and hit Return.
I find on my system (Fedora 5, Xfce 4.2, Gtk 2.8, LANG=en_US.UTF-8) I don't need to type ctrl-shift-u, just hold ctrl-shift whilst typing the unicode numbers. Also, what does the d mean in u264d - for me I can press any key, e.g. right arrow after typing the numbers and the unicode char is inserted. If I type 'd' then the unicode char followed by 'd' is inserted.
I just thought - that trailing d is for decimal, right ;-)
No, as John told it's part of the unicode character. 0x264 is ɤ and 0x264d is ♍.
I'm not familiar with Xfce, but holding down Shift-Ctrl and then just typing hex digits seems odd to me, since it wastes an awful lot of available key combos (ex. Shift-Ctrl-{0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f}).
See below.
Also, the nice thing about the Gnome way is that, since you don't have to hold down the Shift and Ctrl keys, it frees up your fingers to type the hex number.
This isn't a Gnome thing but a GTK thing. The behaviour changed in GTK 2.10. Before, in GTK 2.6 and 2.8, you had only to press Ctrl-Shift and type the hex number, since GTK 2.10 you have to type Ctrl-Shift-u to get it working. It's a GTK feature, not Gnome. One of the reasons for changing the behaviour is the waste of keybindings which John mentioned above.
Regards, Enrico
On 08/27/2007 10:34:05 PM, Enrico Tröger wrote:
On Mon, 27 Aug 2007 13:02:10 -0400, "John Gabriele" jmg3000@gmail.com wrote:
On 8/27/07, Nick Treleaven nick.treleaven@btinternet.com wrote:
On 08/27/2007 12:02:35 PM, Enrico Tröger wrote:
On Wed, 11 Jul 2007 14:32:53 -0400, "John Gabriele" jmg3000@gmail.com wrote:
I'm using an american keyboard with Geany, but have recently been wanting to type in some unicode characters.
[...] After a bit of searching, I found that the common way to get
unicode
characters (with Gnome anyway) is to hit Shift-Ctrl-U,
release,
then
type in the hex digits representing the unicode code point,
then
hit
Enter. This works nicely on Gedit, and in Firefox too: for example:
è,
é, ê.
As I told you I didn't forget about this but did some testing.
And
finally, the solution so very simple ;-). Just unbind Ctrl-Shift-U in the preferences editor, restart
Geany
and you are done. The restart is necessary because of the menu item mnemonics which are set by default. But after the restart
of
Geany, Ctrl-Shift-U should work.
Just press Ctrl-Shift-u, then keep Ctrl and Shift pressed down
and
type u264d and hit Return.
I find on my system (Fedora 5, Xfce 4.2, Gtk 2.8,
LANG=en_US.UTF-8)
I don't need to type ctrl-shift-u, just hold ctrl-shift whilst typing the unicode numbers. Also, what does the d mean in u264d - for me I can press any key, e.g. right arrow after typing the numbers and the unicode char is inserted. If I type 'd' then the unicode char followed by 'd' is inserted.
I just thought - that trailing d is for decimal, right ;-)
No, as John told it's part of the unicode character. 0x264 is ɤ and 0x264d is ♍.
OK, thanks. Guess I was confused with the Alt-nnn numeric keypad bindings for extended ascii characters.
[...] This isn't a Gnome thing but a GTK thing. The behaviour changed in GTK 2.10. Before, in GTK 2.6 and 2.8, you had only to press Ctrl-Shift and type the hex number, since GTK 2.10 you have to type Ctrl-Shift-u to get it working. It's a GTK feature, not Gnome. One of the reasons for changing the behaviour is the waste of keybindings which John mentioned above.
It makes sense now ;-)
Regards, Nick
On Tue, 28 Aug 2007 15:55:05 +0100, Nick Treleaven nick.treleaven@btinternet.com wrote:
Also, what does the d mean in u264d - for me I can press any key, e.g. right arrow after typing the numbers and the unicode char is inserted. If I type 'd' then the unicode char followed by 'd' is inserted.
I just thought - that trailing d is for decimal, right ;-)
No, as John told it's part of the unicode character. 0x264 is ɤ and 0x264d is ♍.
OK, thanks. Guess I was confused with the Alt-nnn numeric keypad bindings for extended ascii characters.
Hehe, does this work on Linux? Never tried it but I also still know it from along time ago where MS-DOS were a modern OS ;-).
But the nnn is the decimal representation of an ASCII character, the code typed after Ctrl-Shift-u is always a hex number.
Regards, Enrico
On 08/28/2007 11:07:23 PM, Enrico Tröger wrote:
On Tue, 28 Aug 2007 15:55:05 +0100, Nick Treleaven nick.treleaven@btinternet.com wrote:
OK, thanks. Guess I was confused with the Alt-nnn numeric keypad bindings for extended ascii characters.
Hehe, does this work on Linux? Never tried it but I also still know it from along time ago where MS-DOS were a modern OS ;-).
I don't think so, but IIRC it works on Windows.
Regards, Nick
On 08/27/2007 05:06:19 PM, John Gabriele wrote:
On 8/27/07, Enrico Tröger enrico.troeger@uvena.de wrote:
On Wed, 11 Jul 2007 14:32:53 -0400, "John Gabriele"
wrote: Just unbind Ctrl-Shift-U in the preferences editor, restart Geany
and
you are done. The restart is necessary because of the menu item mnemonics which are set by default. But after the restart of Geany, Ctrl-Shift-U should work.
Just press Ctrl-Shift-u, then keep Ctrl and Shift pressed down and
type
u264d and hit Return.
Ok. Thanks. [see attached doc patch]
Thanks for the patch. I rewrote some of the section to describe the different behaviour before GTK 2.10.
Regards, Nick