Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

Danish keyboard layout and QT applications

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
El Tazar
n00b
n00b
Posts: 57
Joined: Sat Nov 06, 2004 12:21 am

Danish keyboard layout and QT applications

  • Quote

Post by El Tazar » Fri Jun 13, 2008 11:07 am

I'm having issues with getting QT applications to properly accept the input of my Danish keyboard when the rest of the system is
properly set up to accept UTF8 characters and using "LANG=en_DK.utf8".

Instead of getting the special characters of "æ" "ø" and "å" when pressing the keys, they seem to be mapped to "f" "x" and "e". A few other key mappings are messed up too.

If I default back to a Posix locale, QT applications will work properly but the rest of the applications (xterm for instance), will have issues with printing a few special characters (such as ` ' which one needs for properly display GCC compiler warnings) .
A temporary fix is thus starting every program with the LC_ALL set, like

Code: Select all

LC_ALL=POSIX krusader
Output of locale (the reason for this setup is that I need all the danish characters, but I still want the system to display messages in english and use . for the decimal point)

Code: Select all

LANG=en_DK.utf8
LC_CTYPE=en_DK.utf8
LC_NUMERIC=en_US.utf8
LC_TIME=en_DK.utf8
LC_COLLATE=en_DK.utf8
LC_MONETARY=en_DK.utf8
LC_MESSAGES=en_DK.utf8
LC_PAPER=en_DK.utf8
LC_NAME=en_DK.utf8
LC_ADDRESS=en_DK.utf8
LC_TELEPHONE=en_DK.utf8
LC_MEASUREMENT=en_DK.utf8
LC_IDENTIFICATION=en_DK.utf8
LC_ALL=
Input device section from xorg.conf

Code: Select all

Section "InputDevice"
        Identifier  "Keyboard1"
        Driver      "kbd"
        Option      "AutoRepeat" "500 30"
        Option "CoreKeyboard"
        Option      "XkbRules" "xorg"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "dk"
        Option      "XkbOptions" "deadkeys"
EndSection
/usr/share/X11/locale/compose.dir:

Code: Select all

en_US.UTF-8/Compose             en_DK.utf8
en_US.UTF-8/Compose:            en_DK.utf8
/usr/share/X11/locale/locale.alias

Code: Select all

en_DK.utf8                                      en_DK.UTF-8
/usr/share/X11/locale/locale.dir

Code: Select all

en_US.UTF-8/XLC_LOCALE:                 en_DK.utf8
If I somehow could get some debug info from the QT applications I could probably figure this out.

Thank you for any input to this matter.
“If one does not know to which port one is sailing, no wind is favorable.” - Seneca
Top
dek
l33t
l33t
User avatar
Posts: 657
Joined: Thu May 16, 2002 8:34 pm
Location: Germany
Contact:
Contact dek
Website

  • Quote

Post by dek » Wed Jul 09, 2008 10:33 am

KDE doesn't honour the typical LANG variables, it takes the settings from kcontrol. You can use KDE_LANG instead. So some like this should work:

Code: Select all

KDE_LANG=en_US krusader
I don't know how to get POSIX this way, i don't think that's a valid language for KDE.
Top
Post Reply

2 posts • Page 1 of 1

Return to “Desktop Environments”

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

 

 

magic