Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
typing greek in aterm bash shell ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Greek
View previous topic :: View next topic  
Author Message
gnychis
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1004
Location: Pittsburgh, PA

PostPosted: Sat Jul 29, 2006 6:13 pm    Post subject: typing greek in aterm bash shell ? Reply with quote

Hi,

I have successfully setup the greek keyboard in X, so that if i do alt+shift, i can type greek in firefox and gaim for example: σδφιθσηδφ

However, whenever I have my keyboard setup as greek, I cannot type greek letters into my aterm terminals... i changed my locale:
Code:

export LC_ALL="el_GR.UTF-8"


However when i type locale again, it seems as though it can't find it:
Code:

gnychis@monster ~ $ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=
LC_CTYPE="el_GR.UTF-8"
LC_NUMERIC="el_GR.UTF-8"
LC_TIME="el_GR.UTF-8"
LC_COLLATE="el_GR.UTF-8"
LC_MONETARY="el_GR.UTF-8"
LC_MESSAGES="el_GR.UTF-8"
LC_PAPER="el_GR.UTF-8"
LC_NAME="el_GR.UTF-8"
LC_ADDRESS="el_GR.UTF-8"
LC_TELEPHONE="el_GR.UTF-8"
LC_MEASUREMENT="el_GR.UTF-8"
LC_IDENTIFICATION="el_GR.UTF-8"
LC_ALL=el_GR.UTF-8


there may be a post about this, but I do not understand greek well enough

thanks!
George
_________________
<---- me and Richard Stallman :)
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Sat Jul 29, 2006 11:10 pm    Post subject: Reply with quote

Did you generate those locales before using them? Have a look: http://www.gentoo.org/doc/en/guide-localization.xml#doc_chap3
Back to top
View user's profile Send private message
gnychis
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1004
Location: Pittsburgh, PA

PostPosted: Sun Jul 30, 2006 3:17 pm    Post subject: Reply with quote

ok now i've seem to have generated them:
Code:

gnychis@monster ~ $ export LC_ALL="el_GR.UTF-8"
gnychis@monster ~ $ locale
LANG=
LC_CTYPE="el_GR.UTF-8"
LC_NUMERIC="el_GR.UTF-8"
LC_TIME="el_GR.UTF-8"
LC_COLLATE="el_GR.UTF-8"
LC_MONETARY="el_GR.UTF-8"
LC_MESSAGES="el_GR.UTF-8"
LC_PAPER="el_GR.UTF-8"
LC_NAME="el_GR.UTF-8"
LC_ADDRESS="el_GR.UTF-8"
LC_TELEPHONE="el_GR.UTF-8"
LC_MEASUREMENT="el_GR.UTF-8"
LC_IDENTIFICATION="el_GR.UTF-8"
LC_ALL=el_GR.UTF-8


I think my next problem is a font... the greek font seems to be iso8859-7 ... so i try this:
Code:

gnychis@monster ~ $ xterm -T "xterm el_GR (ISO 8859-7)" -fn -etl-fixed-medium-r-normal--16-160-72-72-c-80-iso8859-7
xterm:  unable to open font "-etl-fixed-medium-r-normal--16-160-72-72-c-80-iso8859-7", trying "fixed"....


any more ideas?
_________________
<---- me and Richard Stallman :)
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Sun Jul 30, 2006 3:33 pm    Post subject: Reply with quote

gnychis wrote:
ok now i've seem to have generated them:
Code:

gnychis@monster ~ $ export LC_ALL="el_GR.UTF-8"
gnychis@monster ~ $ locale




Please read the document:

Quote:

Generating locales for glibc

You will probably only use one or maybe two locales on your system. You can specify locales you will need in /etc/locale.gen.

Code Listing 3.9: Adding locales to /etc/locale.gen

en_GB ISO-8859-1
en_GB.UTF-8 UTF-8
de_DE ISO-8859-1
de_DE@euro ISO-8859-15


The next step is to run locale-gen. It will generate all the locales you have specified in the /etc/locale.gen file.

Note: locale-gen is available in glibc-2.3.6-r4 and newer. If you have an older version of glibc, you should update it now.

Back to top
View user's profile Send private message
gnychis
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1004
Location: Pittsburgh, PA

PostPosted: Sun Jul 30, 2006 3:41 pm    Post subject: Reply with quote

i did read the document, and thats exactly what i did, here is my locales.gen:
Code:

en_US ISO-8859-1
en_US.UTF-8 UTF-8
el_GR.UTF-8 UTF-8


then i ran locale-gen

however it does not fix the font problem, nor can i type in greek still at the command prompt
_________________
<---- me and Richard Stallman :)
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Sun Jul 30, 2006 6:28 pm    Post subject: Reply with quote

I have my system fully in UTF-8 so I do not really know what could be causing that behaviour. Still, I do not use aterm either, but xterm. In case you want to give a shot to utf-8: http://www.gentoo.org/doc/en/utf-8.xml
Back to top
View user's profile Send private message
gnychis
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1004
Location: Pittsburgh, PA

PostPosted: Thu Aug 03, 2006 5:28 pm    Post subject: Reply with quote

ahhhh, got it with that last guide you gave me

however it only works in xterm, when i type in aterm is shows up as unreadable characters, i don't know if its a font problem or what, however it does work in xterm which is a major step

anyone have any ideas about aterm?

Thanks!
George
_________________
<---- me and Richard Stallman :)
Back to top
View user's profile Send private message
gnychis
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1004
Location: Pittsburgh, PA

PostPosted: Thu Aug 03, 2006 5:45 pm    Post subject: Reply with quote

putting this in my .Xdefaults seemed to give me a working font at the size i'd like it in xterm:
XTerm*font: -misc-fixed-medium-r-normal-*-15-*-iso10646-1

however, if aterm uses that same font it doesn't work... maybe aterm does not support utf-8?
_________________
<---- me and Richard Stallman :)
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Thu Aug 03, 2006 7:45 pm    Post subject: Reply with quote

Apparently aterm does not support UTF-8: xterm and urxvt are your safe choices.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Greek All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum