Context-sensitive vertical alignment for ligatures
Nobody has claimed this yet.
- Dominant language
- Clojure
- Stars
- 82k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
Currently, :: and -> are always rendered at the same height regardless of context, even though : and - can change height. I feel like this is inconsistent, and the ligatures should also have context-dependent height.
My original motivation was seeing an IPv6 address with all the colons aligned but the double colon vertically lower, 1080::8:800:200C:417A. Unfortunately making this change would usually not help in IPv6 addresses, since they are usually written in lowercase and I doubt context sensitivity can cover the whole word (please correct me if I’m wrong on that). It still seems like this could help in some situations and is unlikely to hurt.
Contributor guide
No contributing guide indexed for this repository
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 investigating how the :: and -> ligatures are defined and how the component : and - glyphs change height by context. Reproduce the IPv6 example 1080::8:800:200C:417A and compare it with other contextual uses; done means the ligatures align appropriately with their surrounding characters without disrupting existing rendering.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure
- Domain
- design
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100