Hi,
Posted this to the OpenOffice Mailing List, seems a real nut to crack. Seems like nobody solved this one. Here we go.
***************************
First of all, my apologies to all the people who tried to figure out this
problem about two months ago. I had to let the thread die because I was
without PC for all that time.
I just got a new one and installed Gentoo Linux on it. About everything runs
fine, except I have no french circumflex (â, ê, î, ô, û) or tréma (ë, ï, ü)
accents, e. g. those that require a double keystroke <accent> + <accented
letter>. When I type the accent, I just get nothing. Every other X
application works fine with the accents (KEdit, where I write this thing
on, KWord, Mozilla, Konqueror, Abiword, ...).
I browsed through the archives and also found the thread that I started two
months ago. I read all the messages, and some other also, because it seems
that many people (french, spanish, portuguese, ...) have got the same or a
similar problem. Solutions are numerous, but none worked for me. I'll try
and resume the information that I have, and try to put some order into it.
Maybe a better description of my ignorance is a way of finding out how it
could work.
1) OS
I use Gentoo Linux 1.2, with KDE3. I tried (in that order) Mandrake,
Slackware and Debian before. I have about eight months Linux experience and
am just an average user (I work mainly as a translator).
Important: OpenOffice *had* accents with Mandrake when I chose to do a
French installation. I even briefly reconsidered switching back to Mandrake
just because of this annoying bug. But then, Gentoo is so good in every
other aspect that I quickly gave up the idea.
2) Keymaps I need in my daily work
- german (de) to write german texts: qwertz with ö, ä, ü, ß. These print OK,
as the accents are one-keystroke here.
- swiss french (fr_CH) to write french and english texts (the latter because
the often used apostrope ( ' ) is better reachable (I'm a ten-finger
fast-typer). This is qwertz too, but with é, è, à and ç instead. This is
where I mainly have my accent problem.
- french (fr): I don't really use this, my french students do when they
occasionally use my computer. It's an azerty layout, but with the same
no-accent-problem in OpenOffice.
3) Console keymap
I wonder if this has something to do with the problem. I tried out several
ones, but with no results. In my /etc/rc.conf, I have:
KEYMAP="fr_CH"
I tried out "de" and "de-latin1" (haphazardly), with no result.
4) Charset
Now I only vaguely know what this is and how it affects my system. But two
people on the list suggested I use an iso8859-15 charset. I found the
corresponding line in /etc/rc.conf, and now it goes like this:
CONSOLETRANSLATION="8859-15_to_uni"
5) Console font
I don't know if this could be of some importance. On the german Gentoo site,
they have a tutorial about german locale definition, and they said to
define a certain consolefont to have a euro symbol. Anyway, my /etc/rc.conf
looks like this in that section:
CONSOLEFONT="default8x16"
6) Dead keys
Now I don't know exactly what they are or what they do. I vaguely understand
that they are linked to my problem. I read the help file in OO about
accents several times over, and it makes mention about the importance of
dead keys. But then, the text was so cryptic that I just gave up. I figure
it must be possible to understand a word processor without being Stephen
Hawking;o)
7) /etc/X11/XF86Config
Looks like this:
Option "XkbRules" "xfree86"
Option "XkbModel" "pc104"
Option "XkbLayout" "fr_CH"
REM: I have a Logitech keyboard with some supplemental keys I never use,
like "www", "mail" and "search". Should I maybe try out some other
XkbModel?
eight) setxkbmap
I tried this out. Open OO, open a console, setxkbmap fr_CH, and then de, and
then fr. Everytime it works fine... but without two-keys-accents.
9) locale
I tried to change that too. My default locale (LANG, LC_ALL) is POSIX
(whatever that means). I tried to change it with:
$ export LANG=fr_CH
$ export LC_ALL=fr_CH
Nothing.
I confess I don't understand very well (or rather: I don't have the
slightest idea) what locale does. Maybe there's some additional package I
have to install? I tried to install kde-i18n-fr, and once it's installed, I
have one more option in KDE Control Center: add language. So I add this
language, and then suddenly all my menubars and apps and all are in french
(what I don't want, since the translation is bad, and I'm accustomed to
english in that context: I hate these square french computer-neologisms).
...
Phew.
Now what can a poor boy do?
Open a can of beer, light a cigarette and post this message?
Cheers,
Niki Kovacs




