Page MenuHomePhabricator

Syntax highlighting option makes characters with accent to disappear (compose character)
Open, Needs TriagePublicBUG REPORT

Description

When using a Spanish keyboard, the "composed characters" disappear when using the syntax highlighting.

NB: Spanish keyboards (as Catalan, and other ones) have the "compose characters" option, meaning that you create accented characters by clicking the "accent" key first, then the "character" key. E.g. `+ o = ò

What happens to me is that such characters sometimes disappear right after clicking on the second key.

Steps to Reproduce:

  1. Open any page in edit mode
  2. Write a "composed character", e.g. è

Actual Results:

  • It randomly disappears!

Expected Results:

  • Should write the accented character.

Thanks!

Event Timeline

Ruthven created this task.Sep 14 2019, 11:38 AM
Restricted Application added a project: Community-Tech. · View Herald TranscriptSep 14 2019, 11:38 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Hi, which website is this about? Which MediaWiki version? Which web browsers and web browser versions has this been tested with, and on which operating system (as that influences the input method)?

Ruthven added a comment.EditedSep 16 2019, 6:46 PM

@Aklapper For instance, it happened on the following pages:

  • it.wp Using Brave browser Version 0.66.101 Chromium: 75.0.3770.142 (64-bit) on OS X version 10.13.6, MediaWiki: 1.34.0-wmf.22 415c14d 13:21, 16 set 2019
  • it.ws Using Safari browser Version 12.0.1, on OS X version 10.13.6, MediaWiki: same version as above, but happened with older versions as well.
  • en.wp, not logged in, in order to rule out gadget interference, same Safari browser and MediWiki version as the former entry.
  • NB: I tested under Windows 10 today (Firefox, IE), but wasn't able to replicate the issue. But, as long as it happens randomly, I cannot be sure that it's an OS issue.

After several weeks of testing, I'm rather sure that it's an OS X issue. But I have no "autoreplace" option activated, or anything similar, apparently.

TheDJ added a subscriber: TheDJ.Nov 20 2019, 2:52 PM

Testing this requires you to make use of the Spanish input method in Keyboard Settings -> input sources -> add Spanish

The compose keys work basically similarly to how you always input accents on a Mac. Namely: alt key & accent key followed by the letter you want accented. In Spanish input however, the usage of alt is not required for the ` and ' keys. Sticky compose as you will.

I tried with both Safari and Firefox for a while though and was unable to reproduce.

I think this is the same as T171374: Make CodeMirror support IME functionality (see "ULS transliteration" section). I spent a lot of time trying to come up with a fix, to no avail.

A major overhaul of CodeMirror should be released in 2020, I believe. This will fix many of the bugs and fundamental issues with the current implementation.

aezell added a subscriber: aezell.Nov 21 2019, 5:22 PM

A major overhaul of CodeMirror should be released in 2020, I believe. This will fix many of the bugs and fundamental issues with the current implementation.

Yes! A new and improved version of CodeMirror is coming next year. I think it's going to be much, much better and extensible.

Base added a subscriber: Base.Oct 10 2020, 3:22 AM