Skip to content
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

Order of stacked diacritics with U+035F (Combining double macron below) #1

Open
adamiturabi opened this issue Jul 5, 2021 · 4 comments

Comments

@adamiturabi
Copy link

Here is the input sequence: d, U+035F, U+0323, h

It is displayed thus:
image

I believe U+0323 (combining dot below) should be centered under U+035F (Combining double macron below), thus:
image

Thank you for your great work with this typeface.

@jvgaultney
Copy link
Contributor

Thanks - we'll look in this.

@jvgaultney
Copy link
Contributor

What typeface is your example of correct rendering in?

@jvgaultney
Copy link
Contributor

There's a complicated technical explanation for why that sequence (0064 035F 0323 0068) doesn't work. During Unicode normalization, adjacent diacritics are sorted by their canonical combining order. In this and many similar cases the CCC value for the diacritic dot is less than that of the bridging macron, so the order becomes 0064 0323 035F 0068 which places the dot under the d and then the bridging macron under that, which is not what is wanted.

The proper solution - according to Unicode - is to place a Combining Grapheme Joiner (U+034F) between the two diacritics (0064 035F 034F 0323 0068). The CGJ interrupts the canonical sorting and retains the bridge and diacritic in the desired order.

Unfortunately this correct sequence using the CGJ doesn't currently work in our v6 fonts. The dot is centered, but appears above, not below the macron.

image

I'll be working to fix this in the next version.

(I'm still really curious what font you're using to produce the correct rendering from 0064 035F 0323 0068)

@adamiturabi
Copy link
Author

Apologies for the late reply. I've gone through my notes but unfortunately I don't seem to remember how I came up with that rendering. I may have created it by moving around pixels in Paint. I'll try to update this if I'm able to remember. Thanks for your work on the update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants