6

Alright. This is the scenery that I got: I am using Ubuntu 14.04 LTS, I am using an American (international) keyboard and my OS is in Portuguese Brazil (Brazilian Portuguese)

I am a new user of Linux. I am almost 30 years old, and I have been using Windows for my WHOLE life, so I don't know NOTHING about how to configure or set Linux/Ubuntu.

I've JUST installed this OS for the first in my notebook.

Every letter that I try to write with an accent comes, like in the examples above:

  • 'a, when the correct should be á.
  • 'c, when the correct should be ç.
  • ~a, when the correct should be ã.
  • ^o, when the correct should be ô.

Could please someone tell me how do I fix this?

Pablo Bianchi
  • 17,371

3 Answers3

7

(I do not know Brazilian portuguese.) The name of the feature you are trying to use is "dead keys". A dead key is chosen so that it has a label which is similar to an accent and when it pressed it does not create a new letter, you have to press a second key too. Some combination results in the accented version of the second letter.

There are more than one builtin keyboard layouts in Ubuntu even for a single language. As I see there are five for your language:

  1. Portuguese (Brazil)
  2. Portuguese (Brazil, Dvorak)
  3. Portuguese (Brazil, eliminate dead keys)
  4. Portuguese (Brazil, Nativo)
  5. Portuguese (Brazil, Nativo for US keyboards)

You have to choose either of 1, 4, 5. You can also choose the US international layout with dead keys, which seems to be popular among Brazilians:

  1. English (US, international with dead keys)

You can add a new layout by

  1. clicking on the input source (keyboard language layout) switcher near the right end of the panel to show the popup menu
  2. selecting Text Entry Settings from the menu
  3. Pressing the plus button below the Input sources to use list.

By the way, there is a keyboard icon on the right of the plus button which displays the chosen layout.

If you have more than one keyboard layout in your Input sources to use list, then you can switch them by either clicking on the input source icon on the profile or pressing Super + Space.

For example, if I select Portuguese (Brazil) I can type the letter á by pressing the English keys [a in sequence.

As usual, each of the things I mentioned above can be customized.

0

What Hontvári Levente said is right, but one need to test each keyboard layout in order to achieve the desired result.

In Ubuntu 20.04 press Super (Windows) key -> search for keyboard -> open it -> Layout tab -> in 'keyboard layout' section, change the layout. For me, I needed to remove all other layouts in order to work.

On my Acer laptop, Brazilian keyboard (...,j,k,l,ç,~,],enter), I selected:

layout: Portuguese (Brazil) Variant: Portuguese (Brazil, IBM/Lenovo Thinkpad)

  • Try first your native language/ all variants before move to others languages;
  • Check you country (Brazilian Portuguese is different from European Portuguese);
-1

I had the same problem. Solved it reinstalling ibus:

sudo apt install --reinstall ibus

You may need to do a full purge and then reinstall:

sudo apt purge ibus && sudo apt install ibus 
Pablo
  • 151
  • 4