racket / racket/drracket

Dr. Racket does not combine "Combining Macron Below" with previous character when rendering unicode

Open
#558 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Racket
Stars
516
Forks
103
PR merge metrics
No merged PRs in 30d

Description

On macOS, in racket, if I run
(bytes->string/utf-8 (bytes #x77 #xcc #xb1))

I get:
"w̱"
(w with an underline below it), but in Dr. Racket I get a w with an underline next to it, as though they were separate characters.

See:
https://en.wikipedia.org/wiki/Macron_below

For context: I noticed this while representing the "Squamish" in its native orthography:
(define B
(bytes #x53 #xe1 #xb8 #xb5 #x77 #x78 #xcc
#xb1 #x77 #xc3 #xba #x37 #x6d #x65 #x73 #x68))

(bytes->string/utf-8 B)
"Sḵwx̱wú7mesh"

In Dr. Racket, the k is properly rendered with the underscore (to be fair this is a built-in unicode character)

But the x renders without the overlap.

Interestingly enough, running string->length on the above gives "12", but I'm guessing that this is the appropriate answer if "combining diacritical marks" should count toward length

Contributor guide

No contributing guide indexed for this repository

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 issue in Dr. Racket with bytes->string/utf-8 using the combining macron-below example, then compare it with the built-in Squamish character rendering. Check the rendering path reached from these examples and verify that the combining mark is visually attached to the preceding character when done.

Written by the indexing model from the issue text.

Assessment

Domain
desktop, internationalization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.