-
-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dr. Racket does not combine "Combining Macron Below" with previous character when rendering unicode #558
Comments
I think this has to do with the way the editor libraries draw text. It is possible to call in a way that the bit that's supposed to be under the "w" actually goes under it (that boolean passed to
|
Thanks Robby! |
Yes that's what I saw when I ran the code! |
It looks like a hard problem. There are a few similar reports. I'm posting them in case they hav some hint:
[In the first and second previous reports, did the acent move in a different direction or I'm just misinterpreting them?] |
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))
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
The text was updated successfully, but these errors were encountered: