You are not logged in.

#1 2008-05-13 17:32:28

Ilya
Member
From: Russia, Saint-Petersburg
Registered: 2007-08-16
Posts: 98

Special characters

I need to put some greek symbols (Alpha, Pi) into text field of GTK (or Qt) application. How can i do that from keyboard (something like escape sequece, i.e. without any special "special characters application")?

Last edited by Ilya (2008-05-13 18:04:26)

Offline

#2 2008-05-14 17:57:56

fatlarry
Member
Registered: 2008-05-14
Posts: 31

Re: Special characters

depends what editor you may use. For example, in vi you can insert escape sequences with CTRL V: you press CTRL, V then say press ENTER and you will see a ^M in your text.

Offline

#3 2008-05-14 20:21:51

chapet
Member
Registered: 2008-05-11
Posts: 16

Re: Special characters

You can try to set the keyboard map to Greek

setxkbmap -layout el

But make sure you have the command to go back to your default keyboard map written down some where accessible, so you can copy and paste into the terminal, because normal characters won't be accessible with the Greek map.
US keyboard:

setxkbmap -layout us

Hope it helps

Offline

#4 2008-05-15 01:20:50

Ilya
Member
From: Russia, Saint-Petersburg
Registered: 2007-08-16
Posts: 98

Re: Special characters

No... hmm

I need to insert some Uncode symbols (into GUI application).
All i know is "Alpha"=U+03B1, "Pi"=U+03C0.

I meant something like this:
i press Esc+03C0
i see 1 greek symbol small "Pi" in the text field

Is that possible without keyboard switching?

Offline

#5 2008-05-16 07:57:13

N30N
Member
Registered: 2007-04-08
Posts: 273

Re: Special characters

I'd suggest setting up a compose key by adding the following to the keyboard section of your xorg.conf

Option "XkbOptions" "compose:rwin"

You can find a default key sequences and add your own (which you'll need to do for pi) in the Compose file located in /usr/share/X11/locale/en_US.UTF-8

Offline

Board footer

Powered by FluxBB