Editor: render invisible characters
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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