On Wed, Mar 4, 2009 at 1:20 PM, Ingar Pareliussen <[email protected]
> wrote:

> > I mainly use lyx to write project reports in english, but I
> > recently had
> > reason to write one in swedish and had some problems with
> > writing swedish
> > characters.
> > Whenever I type å, ä, ö or their uppercase equivalents on the
> > keyboard, I
> > get the à character instead.
> > However, if I input the characters in another program, I can
> > copy/paste them
> > without any problems.
> >
> > Does anyone know how to fix this problem?
> >
> > I'm using LyX 1.6.1 on Gentoo.
>
> It might be caused by many different things...
> So I am only guessing here :).
>
> Try this:
> Open a bash-shell
> type:
> export LANG=sv_SE.UTF-8
> Start Lyx frrom the bash-shell
>
> Does this help?
> If not, try the command xev
> what does it print in the bash window
> when you type å,ä or ö?
>
> Ingar


Thank you for your prompt answer.

I was already using a utf-8 locale (LANG=en_GB.utf8), and using the swedish
locale didn't help, I still have the same problem.
This is the output from xev when pressing and then releasing ö, å, ä. Since
these characters work in every other x program I have tried (i use various
kde4 programs, firefox, emacs...) I don't think that there is anything
(seriously) wrong with my X config.

KeyPress event, serial 31, synthetic NO, window 0x6200001,
    root 0x1a6, subw 0x0, time 1988497720, (-664,-228), root:(833,601),
    state 0x10, keycode 47 (keysym 0xf6, odiaeresis), same_screen YES,
    XLookupString gives 2 bytes: (c3 b6) "ö"
    XmbLookupString gives 2 bytes: (c3 b6) "ö"
    XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x6200001,
    root 0x1a6, subw 0x0, time 1988497808, (-664,-228), root:(833,601),
    state 0x10, keycode 47 (keysym 0xf6, odiaeresis), same_screen YES,
    XLookupString gives 2 bytes: (c3 b6) "ö"
    XFilterEvent returns: False

KeyPress event, serial 34, synthetic NO, window 0x6200001,
    root 0x1a6, subw 0x0, time 1988498408, (-664,-228), root:(833,601),
    state 0x10, keycode 48 (keysym 0xe4, adiaeresis), same_screen YES,
    XLookupString gives 2 bytes: (c3 a4) "ä"
    XmbLookupString gives 2 bytes: (c3 a4) "ä"
    XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x6200001,
    root 0x1a6, subw 0x0, time 1988498504, (-664,-228), root:(833,601),
    state 0x10, keycode 48 (keysym 0xe4, adiaeresis), same_screen YES,
    XLookupString gives 2 bytes: (c3 a4) "ä"
    XFilterEvent returns: False

KeyPress event, serial 34, synthetic NO, window 0x6200001,
    root 0x1a6, subw 0x0, time 1988499120, (-664,-228), root:(833,601),
    state 0x10, keycode 34 (keysym 0xe5, aring), same_screen YES,
    XLookupString gives 2 bytes: (c3 a5) "å"
    XmbLookupString gives 2 bytes: (c3 a5) "å"
    XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x6200001,
    root 0x1a6, subw 0x0, time 1988499217, (-664,-228), root:(833,601),
    state 0x10, keycode 34 (keysym 0xe5, aring), same_screen YES,
    XLookupString gives 2 bytes: (c3 a5) "å"
    XFilterEvent returns: False


/ peter

Reply via email to