Page MenuHomePhabricator

CX2: Unable to type diacritics in the translation
Open, Needs TriagePublic

Assigned To
None
Authored By
He7d3r
Nov 19 2018, 7:09 PM
Referenced Files
F27534561: Captura de tela de 2018-12-13 08-07-02.png
Dec 13 2018, 10:09 AM
F27534565: Captura de tela de 2018-12-13 08-07-38.png
Dec 13 2018, 10:09 AM
F27534562: Captura de tela de 2018-12-13 08-07-33.png
Dec 13 2018, 10:09 AM
F27534459: keyboard.png
Dec 13 2018, 10:09 AM
F27534563: Captura de tela de 2018-12-13 08-07-21.png
Dec 13 2018, 10:09 AM
F27534566: Captura de tela de 2018-12-13 08-07-10.png
Dec 13 2018, 10:09 AM
F27312035: keyboard.png
Nov 25 2018, 5:53 PM
Tokens
"Heartbreak" token, awarded by He7d3r.

Description

Steps to Reproduce

  1. Get ubuntu-18.10-desktop-amd64.iso
  2. Boot Ubuntu 18.10 by choosing "Try Ubuntu without installing", making sure to select Português do Brasil (aka pt-BR)
  3. Open Firefox 63.0 (64-bit) and start a new translation from English to Portuguese using ContenTranslation (V2)
  4. Attempt to type the translation of some paragraphs containing accented letters

Expected behaviour
The user should be able to finish the translation, with all accented letters where they should be.

Expected behaviour
Sometimes (I don't know what triggers this) it is not possible to type accented letters. E.g. if you want to type é and press ' followned by e, none of these key presses do anything. No character is shown. No sound is played (to signal there is some error). No feedback at all. The user only notices something is wrong after finishing typing and seeing half the letters (or their diacritics) are missing in the translation.

Workaround

  1. Click in the original text (or change the focus to another browser tab)
  2. Click in the translation field again

Event Timeline

Amire80 renamed this task from Unable to type diacritics in the translation to CX2: Unable to type diacritics in the translation.Nov 19 2018, 7:09 PM

Thanks for the report. Several questions:

Does the same work if you edit an article in Visual Editor?

Which operating system and browser are you using?

Which keyboard layout are you using in your operating system? How do you type diacritics—keys with shift? Long-press (common on Mac)? Dead keys (common in French and Spanish, I'm not sure about Portuguese)? Some other method?

I was not able to reproduce the bug using Visual Editor (on Firefox).
The problem happens with Firefox 63.0.3 (64-bit), on Ubuntu 18.04.1 LTS.
This is the keyboard layout:

keyboard.png (738×1 px, 83 KB)

When I want to type e.g. "ação", I type the following 5 keys:

  1. a
  2. ç
  3. ~
  4. a
  5. o

When I want to type e.g. "Ônibus", I type the following keys:

  1. SHIFT
  2. ^ (still holding SHIFT)
  3. O (at this point I see the letter Ô)
  4. n
  5. i
  6. b
  7. u
  8. s

@dchan Could you help here with the investigation? Thanks.

Hello, thanks for the detailed explanation.

I tested on Firefox 63.0.3 (64-bit), on Ubuntu 18.04.1 LTS, with the keyboard layout "Português (Brasil)". I was able to type both "ação" and "Ônibus" in the way you described. But to do it, I had to set a Compose Key, as explained here [AskUbuntu.com]. Does that work for you?

I don't get it: why would I need to change a configuration in the Ubuntu to make something work in ContentTranslation, if it already works in other places? And why would this happen intermittently and fix itself when I click in the left column (original text) and then click on the right column (translation) again?

@KartikMistry and I tested this with a recent version of Debian, which is similar to Ubuntu, with Firefox 63.0.3, with the "Portuguese (Brazil IBM/Lenovo Thinkpad)" keyboard, and we were able to type "ação" and "Ônibus" exactly as you describe.

This is a very strange problem. @He7d3r , can you please tell me the name of the keyboard layout that appears in your input (or keyboard) settings in the system settings?

(I agree that you shouldn't have to change your keyboard settings if they work correctly in other apps and sites.)

I'm not sure.

  • gnome-tweaks shows this:

keyboard.png (685×1 px, 98 KB)

  • gnome-control-center shows this:

Captura de tela de 2018-12-13 08-07-02.png (711×789 px, 107 KB)

Captura de tela de 2018-12-13 08-07-33.png (711×789 px, 99 KB)

Captura de tela de 2018-12-13 08-07-21.png (711×789 px, 100 KB)

Captura de tela de 2018-12-13 08-07-38.png (711×789 px, 98 KB)

Captura de tela de 2018-12-13 08-07-10.png (711×789 px, 115 KB)

The problem persists after installing Ubuntu 18.10.

He7d3r updated the task description. (Show Details)

Thanks, those "steps to reproduce" are impressively precise. I will investigate.

This still happens for each translation field.