4

How can I have one keyboard input layout and multiples languages in Ubuntu 17.10? If I have English language I can't type "'e" and get an "é", as I can do in Portuguese and Spanish.

When I manage to do that on Settings -> Region & Language, I'm able to change languages, but it also changes the keyboard layout.

Is there any way to change language (Portuguese or Spanish for example) and set the keyboard input layout (US International for example)?

  • You can set the keyboard input layout to US International according to this link, askubuntu.com/questions/967708/…; setxkbmap -rules evdev -model evdev -layout us -variant altgr-intl while a simple command would be for example setxkbmap es for Spanish. – sudodus Nov 5 '17 at 11:03
6

The US International keyboard layout isn't designed for diacritics because the target language is English and English doesn't use diacritics (it should, at least for foreign words like fiancé or coupé, but it doesn't and it sometimes results in an incorrect pronunciation like "coupe" instead of "coupeh" - I'm looking at you US citizens, in the other side of the pound we do pronounce it correctly).

In order to use input languages requiring diacritics users must choose the "US International with dead keys" variant, with caveats:

  • The apostrophe key is the same for the acute diacritic symbol. With "dead keys" you must press SPACE after the key.
  • As above, quotation marks is used for diaeresis (umlaut) therefore if you want the quotation mark instead, you need to press SPACE after the key.
  • As a general rule all the characters with diacritics are produced by a sequence of two keys, first the diacritic symbol then the letter - Example: à is obtained by pressing ` followed by a - the same way used with French, Spanish (and others) keyboard layouts.
  • Other special characters aren't so obvious as the example above. For instance, for the character ç, used in Portuguese and Catalan, there are two ways: 1. AltGr+c or 2. ' folowed by c.
  • It really look like what I need, but there is no option of that here... I can see a lot of English options, but no dead keys. What version of Ubuntu do you have? – mqueirozcorreia Nov 6 '17 at 22:51
  • 2
    @mqueirozcorreia: Select English (United States) and then you'll find English (US, international with dead keys) in the next window. – Gunnar Hjalmarsson Nov 6 '17 at 23:17
  • “The apostrophe key is the same for the acute diacritic symbol. With "dead keys" you must press SPACE after the key.”—Or the dead key twice. Although personally I would prefer Space. – Guildenstern Nov 8 '17 at 12:05
  • Nice! I think it is very important to add "Select English (United States) and then you'll find English (US, international with dead keys) in the next window", if possible with image to help anyone who found this answer. – mqueirozcorreia Nov 9 '17 at 1:48
2

For a newly created account it might happen that the current input source is changed undesirably if you change the (display) language. However, once you have switched input source explicitly once or twice, the selected (display) language and the current input source should be mutually independent.

Consequently, the answer to your question is yes. You can have any combination of (display) language and input source.

  • How can I set my layout (US International) using diacritics? Type "'e" and get an "é". – mqueirozcorreia Nov 6 '17 at 22:53
  • @mqueirozcorreia: See my comment under MichaelBay's answer. – Gunnar Hjalmarsson Nov 6 '17 at 23:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.