-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
as there was already a `languages` python module on PyPI (fonttools/fontbakery#3605 (comment))
- Loading branch information
1 parent
08cec65
commit 531c5ec
Showing
6 changed files
with
19 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.eggs/* | ||
*.egg-info | ||
*__pycache__ | ||
Lib/languages/_version.py | ||
Lib/gflanguages/_version.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
This python module provides an API with data about languages/regions/scripts for use in the language-support categorization of the font families in the Google Fonts collection. | ||
|
||
You can also directly access the raw **textproto** files on the `Lib/languages/data` directory: | ||
* [`languages`](https://github.com/felipesanches/languages/tree/main/Lib/languages/data/languages) | ||
* [`regions`](https://github.com/felipesanches/languages/tree/main/Lib/languages/data/regions) | ||
* [`scripts`](https://github.com/felipesanches/languages/tree/main/Lib/languages/data/scripts) | ||
You can also directly access the raw **textproto** files on the `Lib/gflanguages/data` directory: | ||
* [`languages`](https://github.com/felipesanches/gflanguages/tree/main/Lib/gflanguages/data/languages) | ||
* [`regions`](https://github.com/felipesanches/gflanguages/tree/main/Lib/gflanguages/data/regions) | ||
* [`scripts`](https://github.com/felipesanches/gflanguages/tree/main/Lib/gflanguages/data/scripts) | ||
|
||
Most of the code in this project was copied from the `gftools` repository (https://github.com/googlefonts/gftools/) so that language/region/script data can be easily available to all our tools without having to also get the large dependency tree of `gftools`. The most immediate user of this module is `Font Bakery`, which needs to validate language support on font binaries being checked. (see https://github.com/googlefonts/fontbakery/issues/3605) | ||
|
||
The second obvious user of this `languages` module will be `gftools` itself. I'll be sending a pull request soon. | ||
The second obvious user of this `gflanguages` module will be `gftools` itself. I'll be sending a pull request soon. | ||
|
||
Language/region/script definitions are still being gradualy updated on the `google/fonts` repo, on its **lang/** directory (https://github.com/google/fonts/tree/main/lang) and this `languages` module will try to be kept in sync. | ||
Language/region/script definitions are still being gradualy updated on the `google/fonts` repo, on its **lang/** directory (https://github.com/google/fonts/tree/main/lang) and this `gflanguages` module will try to be kept in sync. | ||
|
||
Ideally at some point this module would become the main place to update these definitions, avoiding data duplication and guaranteeing uniformity across tools. But that will require coordination with the Google Fonts team, so I hope this module can serve, for now, as a prototype for such proposed integration. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters