mozilla / mozilla/pontoon

Editor: render invisible characters

Open
#4,332 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

days P3
Dominant language
Python
Stars
1.7k
Forks
611
Avg merge
1d 19h
Merged PRs (30d)
49

Description

We should look into rendering normally invisible characters like RLM, LRM, ALM, zero-width/directional isolation characters.

The behavior of the cursor outlined in #4240 changes substantially based on these characters.

Example:

AFTER https://github.com/mozilla/pontoon/pull/4300 MERGE
The alternation is either offset or causes the cursor to go entirely or partially invisible:
Offset case, spam home command: http://localhost:8000/he/amo/all-resources/?string=66783
Entirely invisible, spam end command: http://localhost:8000/he/amo/all-resources/?string=66621
Partially invisible, spam home command: http://localhost:8000/he/amo/all-resources/?string=66621

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the cursor behavior at the two example URLs, using the invisible-character cases described here and comparing with #4240. Inspect the editor rendering and cursor behavior around RLM, LRM, ALM, and directional-isolation characters. Done means these characters render predictably and the cursor remains visible and correctly positioned in the reported cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, internationalization, localization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.