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

polytonic Greek acute and grave accents #489

Closed
ousia opened this issue Sep 15, 2022 · 4 comments
Closed

polytonic Greek acute and grave accents #489

ousia opened this issue Sep 15, 2022 · 4 comments

Comments

@ousia
Copy link

ousia commented Sep 15, 2022

@rsms,

I got the fonts for https://github.com/rsms/inter/releases/download/v3.19/Inter-3.19.zip and used OTF versions (Inter Desktop).

Here you have single acute and grave accents for Greek (odd lines contain oxia and grave, the even lines contain tonos and grave):

abde-1
abde-2
abde-3
abde-4

For some strange reason, there are fonts that distinguish tonos and oxia. Well, tonos is accent and oxia is acute. The monotonic Greek accent (by law) is acute.

But since OpenType defines polytonic Greek as a language, if you want to keep different glyphs for tonos and oxia, there is a way to get automatic oxia with tonos using substitutions:

feature locl {

    @tonosuppercase = [Alphatonos Epsilontonos Etatonos Iotatonos
                       Omicrontonos Omegatonos Upsilontonos];

    @tonoslowercase = [alphatonos epsilontonos etatonos iotatonos
                       iotadieresistonos omicrontonos omegatonos
                       upsilontonos upsilondieresistonos];

    @oxiauppercase = [uni1FBB uni1FC9 uni1FCB uni1FDB uni1FF9
                      uni1FFB uni1FEB];

    @oxialowercase = [uni1F71 uni1F73 uni1F75 uni1F77 uni1FD3
                      uni1F79 uni1F7D uni1F7B uni1FE3];

    script grek;

        language PGR exclude_dflt;

            lookup TonosOxia {
                sub @tonosuppercase by @oxiauppercase;
                sub @tonoslowercase by @oxialowercase;
            } TonosOxia;

} locl;

Acute and grave accents aren’t placed at the same vowel height and there are too different from each other.

I think that varia (the grave accent) should be redone. I wonder whether which is best: from tonos or from oxia.

Many thanks for your excellent work.

@rsms
Copy link
Owner

rsms commented Sep 18, 2022

Thanks! Very interesting

@ousia
Copy link
Author

ousia commented Sep 19, 2022

This is related to the discussion in #490.

@ousia
Copy link
Author

ousia commented Oct 2, 2022

@rsms, I’m afraid I cannot contribute myself, since I don’t have any font editor that handles variable fonts.

BTW, the code for the feature file needs no extra editing, only to be added in the right file.

@rsms
Copy link
Owner

rsms commented Jun 7, 2023

Done in the past few days

greek-az-reg

greek-az-extralight

greek-az-extrabold

@rsms rsms closed this as completed Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants