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

Wrong placement of combining diacritic marks #385

Open
Vuizur opened this issue Aug 8, 2023 · 7 comments
Open

Wrong placement of combining diacritic marks #385

Vuizur opened this issue Aug 8, 2023 · 7 comments
Assignees

Comments

@Vuizur
Copy link

Vuizur commented Aug 8, 2023

When I for example place a combining acute accent mark over a cyrillic symbol, it should look like this: прода́жу.

With Roboto flex, it unfortunately places the symbol incorrectly over the character one to the right of the correct character.
image

Other google fonts do not have this problem and place it correctly:
image

Thanks for the help!

@dberlow
Copy link
Contributor

dberlow commented Aug 8, 2023

Thanks for your comment,
My input works fine:
image
What’s your input?

@Vuizur
Copy link
Author

Vuizur commented Aug 8, 2023

It is the same what you have written (copy-pasted прода́жу from my first comment).

I can reproduce the problem on two Windows PCs (one Windows 10 and one Windows 11). I just checked it also on my android tablet, and there I have the same problem. I'm surprised iOs gets it right, it might render fonts differently 🤔.

@dberlow
Copy link
Contributor

dberlow commented Aug 8, 2023 via email

@Vuizur
Copy link
Author

Vuizur commented Aug 8, 2023

Thanks for the reply.

My input was á (option-e, a) in the mac.

I think this is LATIN SMALL LETTER A WITH ACUTE, this one should be displayed everywhere well. In the original word I had CYRILLIC SMALL LETTER A + COMBINING ACUTE ACCENT. (There are other combinations where there is no latin alternative and the acute accent can not in theory be replaced, like Маши́на). I used this tool: https://apps.timwhitlock.info/unicode/inspect

My current Windows is Windows 11 22H2. I have a Samsung Tablet with Android 12. On both systems both Chrome and Firefox are affected.

@kenmcd
Copy link

kenmcd commented Aug 9, 2023

Cyrillic small letter a (U+0430) does not have a top anchor in Roboto Flex v3.200.
So the acutecomb has nowhere to attach.

On my Windows 10, your text above (прода́жу) is displayed with Segoe UI - and that font does have a top anchor on Cyrillic small letter a (U+0430) so it looks OK.

@dberlow
Copy link
Contributor

dberlow commented Aug 9, 2023

Thanks, I see (прода́жу) it not working in Chrome in another font.
It's simple enough to script a copy of marks from e.g. /a to a component of itself in each source.
Is that á the only combination though?

@m4rc1e can tell us how to proceed?

@VladWinner
Copy link

VladWinner commented Aug 20, 2023

Is that á the only combination though?

An acute accent can be applied to almost all Cyrillic vowels (ё is excluded because it is a stressed syllable by default).
а → а́
у → у́
о → о́
е → е́
и → и́
я → я́
ю → ю́
э → э́
ы → ы́

Example: сала́т, ку́ртка, коро́ва, пе́сня, ли́ния, семья́, ю́бка, э́ра, ры́ба
image

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

5 participants