French Keyboard (partial solution)
French Keyboard (partial solution)
- Subject: French Keyboard (partial solution)
- From: Yves Pouplard <email@hidden>
- Date: Sun, 12 Jan 2003 17:06:42 +0100
Configurer le clavier francais pour X11 d'Apple :
1) Lancer X11 dans un terminal (en background) / run X11 in the
terminal (background mode) :
/Applications/X11.app/Contents/MacOS/X11 --xquartz-be-xinit -
keymap Francais.keymapping &
2) Executer les commandes suivantes / launch the following commands :
a) remapping de la touche "alt"; les deux commandes sont nicessaires
pour obtenir une gestion correcte des combinaisons Alt-X et Shift-Alt-X
(ex: Alt-n = tilde, Shift-Alt-l = pipe) / both lines are mandatory :
xmodmap -e 'keycode 66 = Mode_switch'
xmodmap -e 'keycode 69 = Alt_L'
b) caracteres accentues / special chars :
(...not yet...)
3) Enregistrer la disposition du clavier dans le fichier idoine / save
the keyboard disposition ($HOME/.Xmodmap) :
xmodmap -pke >$HOME/.Xmodmap
4) Quitter X11. Le clavier sera (presque) correctement configuri lors
des lancements ulterieurs de X11. / Quit X11. The job is (almost) done.
=================
Notes / Remarks :
=================
- my computer is an iBook (G3/700) with Mac OSX 10.2.3
- in text mode, "stty -a" returns :
speed 9600 baud; 40 rows; 120 columns;
lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl
-echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo
-extproc
iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk
brkint -inpck -ignpar -parmrk
oflags: opost onlcr -oxtabs
cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -mdmbuf
cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
eol2 = <undef>; erase = ^?; intr = ^C; kill = ^U; lnext = ^V;
min = 1; quit = ^\; reprint = ^R; start = ^Q; status = <undef>;
stop = ^S; susp = ^Z; time = 0; werase = ^W;
- in X11 mode, "stty -a" returned (before I made changes) :
speed 9600 baud; 40 rows; 120 columns;
lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl
-echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo
-extproc
iflags: istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk
brkint -inpck -ignpar -parmrk
oflags: opost onlcr -oxtabs
cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -mdmbuf
cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
eol2 = <undef>; erase = ^H; intr = ^C; kill = ^U; lnext = ^V;
min = 1; quit = ^\; reprint = ^R; start = ^Q; status = <undef>;
stop = ^S; susp = ^Z; time = 0; werase = ^W;
... which was almost exactly the same, except for "erase = ^H" (X11) in
place of "^?" (text), and mainly "istrip" (X11) in place of "-istrip"
(text). As "man stty" gives this clue :
istrip (-istrip)
Strip (do not strip) input characters to seven bits.
... I have tested the command "stty -istrip" in the X11 terminal
(TERM=xterm), and it is enough for I get the accented characters, but
the command doesn't work when set to the $HOME/.xinitrc file. So I'm
still working on the subject :o)
My environment variables are as follow :
a) in text mode :
DISPLAY=:0.0
SHELL=/bin/zsh
PATH=/usr/bin:/bin:/usr/local/bin:/usr/sbin:/sbin:(...):/usr/X11R6/bin
SSH_AUTH_SOCK=/tmp/501/nl.uu.phil.SSHAgent.socket
__CF_USER_TEXT_ENCODING=0x1F5:0:91
TERM=vt100
TERM_PROGRAM=Apple_Terminal
TERM_PROGRAM_VERSION=81
LC_CTYPE=fr_FR@euro
MANPATH=/usr/share/man:/usr/local/share/man:/usr/local/man:/usr/local/teTeX/man:/usr/X11R6/man
b) in X11 mode :
DISPLAY=:0.0
SHELL=/bin/zsh
PATH=/usr/bin:/bin:/usr/local/bin:/usr/sbin:/sbin:(...):/usr/X11R6/bin
SSH_AUTH_SOCK=/tmp/501/nl.uu.phil.SSHAgent.socket
__CF_USER_TEXT_ENCODING=0x1F5:0:91
TERM=xterm
WINDOWID=4194318
LC_CTYPE=fr_FR@euro
MANPATH=/usr/share/man:/usr/local/share/man:/usr/local/man:/usr/local/teTeX/man:/usr/X11R6/man
Note: I have not tried these change effects under OpenOffice nor any
other application.
PS: mon fichier $HOME/.xinitrc / my $HOME/.xinitrc file :
---begin---
#!/bin/sh
xmodmap $HOME/.Xmodmap
quartz-wm &
----end----
PS2: sorry for the "franglais" language :o)
--
Yves Pouplard
email@hidden
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.