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

Divergent unicode ranges #2

Open
kappaj opened this issue Jul 18, 2024 · 0 comments
Open

Divergent unicode ranges #2

kappaj opened this issue Jul 18, 2024 · 0 comments

Comments

@kappaj
Copy link

kappaj commented Jul 18, 2024

I noticed some differences between the unicode ranges defined in the download.php and in the google css file.

  • "cyrillic":
    • php: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116
    • css: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116
  • "cyrillic-ext": the same
  • "vietnames":
    • php: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB
    • css: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB
  • "latin-ext":
    • php: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF
    • css: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF
  • "latin":
    • php: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
    • css: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD

More charsets I have not tested.

It is possible that google is adjusting these unicode-ranges depending how many glyphes the font supports/contains. Maybe you take over the unicode ranges from the css file from google 1:1. So you don't have to maintain the ranges in the php file.

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

1 participant