Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Greek
  • Search

Greek Accented Vowels Howto (Ελληνικοι χαρακτήρες)

Καλώs ήρθατε στο ελληνικό φόρουμ του Gentoo!
Post Reply
  • Print view
Advanced search
8 posts • Page 1 of 1
Author
Message
Deathwing00
Bodhisattva
Bodhisattva
User avatar
Posts: 4087
Joined: Fri Jun 13, 2003 9:07 pm
Location: Berlin, Germany
Contact:
Contact Deathwing00
Website

Greek Accented Vowels Howto (Ελληνικοι χαρακτ

  • Quote

Post by Deathwing00 » Mon Nov 10, 2003 11:10 pm

1. Introduction

Why of this document?

This document was created to solve the trouble caused to users when they tried to type greek characters inside the X enviroinment. This document is mainly directed to greek users who would like to be able to type correctly greek characters in their favorite applications.

2. System Configuration

Keyboard Configuration on X

The first thing we need to do is to configure the X server in order to set the appropiate keyboard layout. We will use a dual layout, as it is necessary to have a latin-character layout in order to be able to interact correctly with the system. So we edit /etc/X11/XF86Config and we set up they keyboard as shown bellow.

Code listing 2.1: Keyboard Layout Configuration in /etc/X11/XF86Config

Code: Select all

Section "InputDevice"
    Identifier   "Keyboard"
    Driver   "Keyboard"
    Option   "AutoRepeat"  "500 30"
    Option   "XkbRules"    "xfree86"
    Option   "XkbModel"    "pc104"
    Option   "XkbLayout"   "us,el"
    Option   "XkbOptions"  "grp:alt_shift_toggle"
EndSection

Important: Beware that the options you have to add/chage are the two last: XkbLayout and XkbOptions. The rest must be configured to match your system. Also note that we used here Option "XkbLayout" "us,el", but sure you can use any possible keyboard layout combination.

Note: The option Option "XkbOptions" "grp:alt_shift_toggle" will allow you to switch keyboard layout inside X by just pressing the following key combination: ALT + SHIFT.


X Font Configuration


We don't have to worry about fonts, as Gentoo itself has already installed the appropiate True Type Fonts to type in Greek. We'll just have to keep in mind that we'll have to choose them when we get into X if we want to write in Greek correctly. There are some fonts that do not support Greek by default.

System Variable Exportation

If we have arrived to this point, it means that the greek keyboard layout is working... but not totally correct. You might write in Greek, but you'll notice you are unable to type accented greek vowels. Our next step will ensure that we will be able to type accents on vowels. To do that, we have to set two variables in our profile. In this example, the variables are set system-wide for all users.

Code listing 2.2: Adding system-wide variables in /etc/profile

Code: Select all

export LC_CTYPE=el_GR
export LC_COLLATE=el_GR

After this is done, we just have to issue the following command in order to have the system updated. Elsewhere we would have to reboot the system for the changes to take effect.

Code listing 2.3: Updating the system settings

Code: Select all

$ source /etc/profile


--------------------------------------------------------------------------------

Updated November 10, 2003

--------------------------------------------------------------------------------

Ioannis Aslanidis
Author

Arkalis Evangelos
Contributor

Theofilos Intzoglou
Contributor

--------------------------------------------------------------------------------
Top
feliguelo
n00b
n00b
Posts: 8
Joined: Tue Apr 13, 2004 12:27 pm

two languages with accents

  • Quote

Post by feliguelo » Wed Aug 25, 2004 3:08 pm

Thanks for the information. Now I have an Hellenic keyboard with accents and everything but the problem is that now I don't have the accents for Castellano (Spanish) that is my native language.

The thing is that I have to choose between Hellenic or Castellano when I define LC_CTYPE, depending on its value I get accents in one language or in the other.
I have tried this:

Code: Select all

export LC_CTYPE="es_ES@euro el_GR"
and many variants like "es_ES el_GR", "el_GR,es_ES" and so on, but they don't work.

Of course what I can do it to export everytime the right value in a xterminal and start the application i want from that xterminal but it isn't a very practical solution.

Any idea?
Top
Deathwing00
Bodhisattva
Bodhisattva
User avatar
Posts: 4087
Joined: Fri Jun 13, 2003 9:07 pm
Location: Berlin, Germany
Contact:
Contact Deathwing00
Website

  • Quote

Post by Deathwing00 » Wed Aug 25, 2004 5:38 pm

Yo tambiιn uso el teclado en castellano y tampoco he encontrado forma de hacer funcionar los acentos a la vez en castellano y en griego a la vez... estamos en ello, cuando sepamos algo te lo contaremos ;)
Top
feliguelo
n00b
n00b
Posts: 8
Joined: Tue Apr 13, 2004 12:27 pm

  • Quote

Post by feliguelo » Thu Aug 26, 2004 4:00 pm

It is curious how difficult can be certain things in GNU/Linux when it can manage the real complex task in a easier and more efficient way than other OS.

I'm also searching in maling lists, forums and google, let's see what we can get. By now what I have is a button in the KDE launching bar

Code: Select all

"export LC_CTYPE=el_GR.UTF-8 && kedit"
So I have a text editor where i can write Hellenic with accents and later paste it in the others applications.

Geia sas
Saludos

P.S. When I type "Geia sas" in Hellenic and I submit the post, it becomes "???? ???", i wonder why.

--
Vaya sorpresa, no esperaba encontrarme a un helιnico que usa la misma distribuciσn GNU/Linux que yo y con el mismo problema de acentos con el teclado.
Top
Deathwing00
Bodhisattva
Bodhisattva
User avatar
Posts: 4087
Joined: Fri Jun 13, 2003 9:07 pm
Location: Berlin, Germany
Contact:
Contact Deathwing00
Website

  • Quote

Post by Deathwing00 » Thu Aug 26, 2004 5:07 pm

feliguelo wrote:By now what I have is a button in the KDE launching bar

Code: Select all

"export LC_CTYPE=el_GR.UTF-8 && kedit"
This one is indeed a good idea.
feliguelo wrote:P.S. When I type "Geia sas" in Hellenic and I submit the post, it becomes "???? ???", i wonder why.
Check that you are not sending it in UTF and that your browser codepage is set properly.
Top
feliguelo
n00b
n00b
Posts: 8
Joined: Tue Apr 13, 2004 12:27 pm

  • Quote

Post by feliguelo » Thu Aug 26, 2004 10:48 pm

Check that you are not sending it in UTF and that your browser codepage is set properly.
Yes, I had to choose the proper codepage in the browser (cp 1253) when editing the text.

Ευχαριστώ
Γεια σας
Top
gakrivas
n00b
n00b
Posts: 3
Joined: Tue May 17, 2005 6:57 am

/etc/profile ignored; followed instructions for gr accent

  • Quote

Post by gakrivas » Thu Jun 02, 2005 3:29 pm

Hi,

I can write in Greek, both in consoles and from X. I can't use the accent from X, though I can use the accent from a console.

I suspect that my /etc/profile is totally ignored. Maybe I need a command to be executed upon login?

Thanks. My /etc/profile:

# /etc/profile:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/profile,v 1.23 2003/04/29 21:23:18 azarah Exp $

if [ -e "/etc/profile.env" ]
then
. /etc/profile.env
fi

# 077 would be more secure, but 022 is generally quite realistic
umask 022

if [ `/usr/bin/whoami` = 'root' ]
then
# Do not set PS1 for dumb terminals
if [ "$TERM" != 'dumb' ] && [ -n "$BASH" ]
then
export PS1='\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]'
fi
export PATH="/bin:/sbin:/usr/bin:/usr/sbin:${ROOTPATH}"
else
# Do not set PS1 for dumb terminals
if [ "$TERM" != 'dumb' ] && [ -n "$BASH" ]
then
export PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]'
fi
export PATH="/bin:/usr/bin:${PATH}"
fi
unset ROOTPATH

if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]
then
export INPUTRC="/etc/inputrc"
fi

# Extract the value of EDITOR
[ -z "$EDITOR" ] && EDITOR="`. /etc/rc.conf 2>/dev/null; echo $EDITOR`"
[ -z "$EDITOR" ] && EDITOR="`. /etc/conf.d/basic 2>/dev/null; echo $EDITOR`"
[ -z "$EDITOR" ] && EDITOR="/bin/nano"
export EDITOR

export XAUTHORITY="${HOME}/.Xauthority"
PATH=/usr/lib/ccache/bin:"${PATH}"
export LC_CTYPE=el_GR@euro.UTF-8
export LC_COLLATE=el_GR@euro.UTF-8
Top
Kosmas
Apprentice
Apprentice
User avatar
Posts: 282
Joined: Thu Sep 14, 2006 11:39 am
Location: Greece
Contact:
Contact Kosmas
Website

  • Quote

Post by Kosmas » Sat Sep 16, 2006 11:36 am

Hi,

I can write in Greek, both in consoles and from X. I can't use the accent from X, though I can use the accent from a console.

I suspect that my /etc/profile is totally ignored. Maybe I need a command to be executed upon login?
I made a post last week about that.
If you have el_GR@euro you have a problem in KDE mostly with accenting greek letters
If you just change to el_GR all works ok
Top
Post Reply
  • Print view

8 posts • Page 1 of 1

Return to “Greek”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy