Brazilian Portuguese Keyboard Layout.

Dear All,

I have just installed OpenSUSE 12.1 on my Laptop (Acer Aspire 5003WLMI).
My Laptop’s Keyboard is the Standard US International.
Every kind of letters do work fine, except one - “cedilla (ç)”; in portuguese “cedilha (ç)”. I am using “Portuguese (Brazil - US accents)”. When I write the “cedilla (ç)” it gives me a “cedilla upside down”.
I have already tried different kinds of keyboard layout under YAST/System Keyboard Layout, but none of then gives me the the right “cedilla (ç)”.

Best Regards, J.

If you are using KDE, use YaST to tell openSUSE which keyboard you are using, that is, if you are using the Standard US International keyboard, enter than in YaST; then in KDE go to System settings>Input devices>keyboard and select Brazil - I am not sure which of the ‘Nativo’ options will work but that is where you should start in KDE. If you are using Gnome you should be able to so something similar to set the layout you want.

Tks John,

I am running OpenSUSE 12.1/KDE.
On Yast, could not found “System Settings>Input Devices>Keyboard”.
There is only “Hardware>System Keyboard Layout”, which I am running on Portuguese (Brazil - US accents), and having problems only with cedilla - “ç” (" ’ " + “c”). Anything else and nothing works.

Best Regards, J.

System setting is in the KDE Menu - not YaST

I have the very same problem but john_hudson’s suggestion did not solve it. It works for Firefox (ç, Ç) but not in Dolphin, kwrite, LibreOffice ( ć, Ć). It is a shame that this is very old (at least since 2001) and is still not solved.

I ran into this problem recently after making some changes in my session settings, and after some analysis, I found the solution.

Basically, you need to set the environment variables LANG and LANGUAGE correctly.

I am an American using Portuguese as a second language. I installed openSUSE with the language set to English-US and then in openSUSE menu->Configure Desktop (which is KDE’s System Settings app), I set the keyboard layout to

Map: us
Layout: English (US)
Variant: English (US, International, with dead keys)

At that point, I was able to type some international characters (vowels with ', ~, or ^), but the cedilla and other keys found on the Microsoft US-International keyboard layout didn’t work. Typing 'c showed a question mark (?), not a cedilla.

Changing the keyboard layout did not change the value of the required environment variables. LANG was set to “en_US.UTF-8”, and both LANGUAGE and LC_ALL were unset.

To get the full support for the US international keyboard, I needed to set the environment variables like this:

unset LC_ALL
export LANG=en_US
export LANGUAGE=en_US

These shell commands can be added to .bash_profile in the user’s home directory, but the preferred method is to create a file ending in .sh in the directory ~/.kde4/env, containing the same commands. This file is sourced when the /usr/bin/startkde shell script is run to initialize the KDE session. Somewhere during that process, it seems that a bash shell is started as a login shell (maybe to execute /usr/bin/startkde), and that is why putting the commands in .bash_profile is effective. But it seems this behavior is not guaranteed to work in the future, so it is recommended to use the ~/.kde4/env/<scriptname>.sh file instead.

After creating that file, just log out of your KDE session and back in again, and it should work.

I explained this in terms of my own configuration, and if yours is different (for example, if you are Brazilian with openSUSE running in Portuguese), you may need to set the environment variables differently. I would guess that using pt_BR instead of en_US would be sufficient.

Jay Ts

On 2013-03-10 05:56, jayts wrote:
> To get the full support for the US international keyboard, I needed to
> set the environment variables like this:
>
> unset LC_ALL
> export LANG=en_US
> export LANGUAGE=en_US
>
> These shell commands can be added to .bash_profile in the user’s home
> directory, but the preferred method is to create a file ending in .sh in
> the directory ~/.kde4/env, containing the same commands.

The proper place is to create an ~/.i18n file and define the language
variables there. However, there are some bugs related to it in 12.3.


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

This is due to change in 12.3 . The US International keyboard does not allow the Compose key, change the system’s keyboard layout to US English, and the dead keys will work again, and ç will be normal again.