]> git.ipfire.org Git - thirdparty/google/fonts.git/log
thirdparty/google/fonts.git
3 years agoUpdate setup.py
Marc Foley [Thu, 27 Oct 2022 13:48:32 +0000 (14:48 +0100)] 
Update setup.py

don't hard pin protobuf.

3 years agoMerge pull request #28 from googlefonts/release
Marc Foley [Thu, 20 Oct 2022 14:55:04 +0000 (15:55 +0100)] 
Merge pull request #28 from googlefonts/release

actions: add publish-release

3 years agoactions: add publish-release
Marc Foley [Thu, 20 Oct 2022 14:36:53 +0000 (15:36 +0100)] 
actions: add publish-release

3 years agoMerge pull request #19 from googlefonts/m4rc1e-patch-1
Marc Foley [Wed, 5 Oct 2022 10:25:39 +0000 (11:25 +0100)] 
Merge pull request #19 from googlefonts/m4rc1e-patch-1

Pin protobuf to 3.19.4

3 years agoMerge pull request #22 from googlefonts/reinstate-mundari-fix
Rosalie Wagner [Wed, 5 Oct 2022 10:23:02 +0000 (12:23 +0200)] 
Merge pull request #22 from googlefonts/reinstate-mundari-fix

Fix Mundari sample text

3 years agoMerge pull request #21 from googlefonts/vi_latin
Rosalie Wagner [Wed, 5 Oct 2022 10:22:43 +0000 (12:22 +0200)] 
Merge pull request #21 from googlefonts/vi_latin

Corrected a breve dot below with proper codepoint.

3 years agoFix Mundari sample text
Simon Cozens [Wed, 5 Oct 2022 08:31:32 +0000 (09:31 +0100)] 
Fix Mundari sample text

3 years agoMerge pull request #17 from moyogo/update-readme
Chris Simpkins [Sun, 2 Oct 2022 23:12:07 +0000 (19:12 -0400)] 
Merge pull request #17 from moyogo/update-readme

Update README.md, used in gftools and google/fonts

3 years agoCorrected a breve dot below with proper codepoint.
Rosalie Wagner [Thu, 29 Sep 2022 14:50:10 +0000 (16:50 +0200)] 
Corrected a breve dot below with proper codepoint.

3 years agoPin protobuf to 3.19.4
Marc Foley [Thu, 29 Sep 2022 08:46:26 +0000 (09:46 +0100)] 
Pin protobuf to 3.19.4

Currently, we use the latest protobuf. Unfortunately there are breaking changes between v3 and v4. All our other tools such as gftools use 3.19.4 hence why I'm pinning to this version. If I install gflanguages in a repo such as gftools, I get the following traceback

```
Traceback (most recent call last):
  File "/Users/marcfoley/Type/font-browser-tests-action/test.py", line 8, in <module>
    from diffenator import run_proofing_tools, run_diffing_tools
  File "/Users/marcfoley/Type/font-browser-tests-action/venv/lib/python3.10/site-packages/diffenator/__init__.py", line 20, in <module>
    from diffenator.screenshot import screenshot_dir
  File "/Users/marcfoley/Type/font-browser-tests-action/venv/lib/python3.10/site-packages/diffenator/screenshot.py", line 6, in <module>
    from diffenator.utils import gen_gifs
  File "/Users/marcfoley/Type/font-browser-tests-action/venv/lib/python3.10/site-packages/diffenator/utils.py", line 22, in <module>
    from gflanguages import LoadLanguages
  File "/Users/marcfoley/Type/font-browser-tests-action/venv/lib/python3.10/site-packages/gflanguages/__init__.py", line 28, in <module>
    from gflanguages import languages_public_pb2
  File "/Users/marcfoley/Type/font-browser-tests-action/venv/lib/python3.10/site-packages/gflanguages/languages_public_pb2.py", line 36, in <module>
    _descriptor.FieldDescriptor(
  File "/Users/marcfoley/Type/font-browser-tests-action/venv/lib/python3.10/site-packages/google/protobuf/descriptor.py", line 560, in __new__
    _message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

```

3 years agoU+0323 instead of U+329 in yo_Latn
Denis Moyogo Jacquerye [Mon, 12 Sep 2022 15:23:14 +0000 (17:23 +0200)] 
U+0323 instead of U+329 in yo_Latn

3 years agoUpdate README.md, used in gftools and google/fonts
Denis Moyogo Jacquerye [Mon, 12 Sep 2022 20:07:10 +0000 (22:07 +0200)] 
Update README.md, used in gftools and google/fonts

3 years agoMerge pull request #15 from googlefonts/zx_hyphen
Zhao [Wed, 7 Sep 2022 18:25:22 +0000 (11:25 -0700)] 
Merge pull request #15 from googlefonts/zx_hyphen

replace U+2010 HYPHEN with U+002D Hyphen-Minus in sample texts

3 years agoreplace U+2010 HYPHEN with U+002D Hyphen-Minus in sample texts
zhao [Wed, 7 Sep 2022 00:36:50 +0000 (17:36 -0700)] 
replace U+2010 HYPHEN with U+002D Hyphen-Minus in sample texts

3 years agoRevert "replace U+2010 HYPHEN with U+002D Hyphen-Minus in sample texts"
zhao [Wed, 7 Sep 2022 00:34:29 +0000 (17:34 -0700)] 
Revert "replace U+2010 HYPHEN with U+002D Hyphen-Minus in sample texts"

This reverts commit c00b8eb13c79599903775a51d0963b1b8dbebbe9.

3 years agoreplace U+2010 HYPHEN with U+002D Hyphen-Minus in sample texts
zhao [Wed, 7 Sep 2022 00:32:11 +0000 (17:32 -0700)] 
replace U+2010 HYPHEN with U+002D Hyphen-Minus in sample texts

3 years agoMerge pull request #14 from googlefonts/vv-viet-sample-fix
Chris Simpkins [Sat, 20 Aug 2022 13:08:58 +0000 (09:08 -0400)] 
Merge pull request #14 from googlefonts/vv-viet-sample-fix

3 years agouhorntilde 1EEF fix
Viviana Monsalve [Fri, 19 Aug 2022 22:22:11 +0000 (17:22 -0500)] 
uhorntilde 1EEF fix

3 years agoatilde 00E3 fix
Viviana Monsalve [Fri, 19 Aug 2022 22:20:09 +0000 (17:20 -0500)] 
atilde 00E3 fix

3 years agoecircumflextilde 1EC5 fix
Viviana Monsalve [Fri, 19 Aug 2022 22:18:33 +0000 (17:18 -0500)] 
ecircumflextilde 1EC5 fix

3 years agoacircumflexgrave 1EA7 fix
Viviana Monsalve [Fri, 19 Aug 2022 22:17:16 +0000 (17:17 -0500)] 
acircumflexgrave 1EA7 fix

3 years agoeacute 00E9 fix
Viviana Monsalve [Fri, 19 Aug 2022 22:16:11 +0000 (17:16 -0500)] 
eacute 00E9 fix

3 years agooacute 00F3 fix
Viviana Monsalve [Fri, 19 Aug 2022 22:15:05 +0000 (17:15 -0500)] 
oacute 00F3 fix

3 years agoohorndotbelow 1EE3 fix
Viviana Monsalve [Fri, 19 Aug 2022 22:13:55 +0000 (17:13 -0500)] 
ohorndotbelow 1EE3 fix

3 years agoocircumflexdotbelow 1ED9 fix
Viviana Monsalve [Fri, 19 Aug 2022 22:12:48 +0000 (17:12 -0500)] 
ocircumflexdotbelow 1ED9 fix

3 years agoaacute 00E1 fix
Viviana Monsalve [Fri, 19 Aug 2022 22:11:38 +0000 (17:11 -0500)] 
aacute 00E1 fix

3 years agoadotbelow 1EA1 fix
Viviana Monsalve [Fri, 19 Aug 2022 22:09:23 +0000 (17:09 -0500)] 
adotbelow 1EA1 fix

3 years agoacircumflexacute 1EA5 fix
Viviana Monsalve [Fri, 19 Aug 2022 22:08:18 +0000 (17:08 -0500)] 
acircumflexacute 1EA5 fix

3 years agoygrave 1EF3 fix
Viviana Monsalve [Fri, 19 Aug 2022 22:07:13 +0000 (17:07 -0500)] 
ygrave 1EF3 fix

3 years agoagrave 00E0 fix
Viviana Monsalve [Fri, 19 Aug 2022 22:06:07 +0000 (17:06 -0500)] 
agrave 00E0 fix

3 years agoahookabove 1EA3 fix
Viviana Monsalve [Fri, 19 Aug 2022 22:04:56 +0000 (17:04 -0500)] 
ahookabove 1EA3 fix

3 years agouhornacute 1EE9 fix
Viviana Monsalve [Fri, 19 Aug 2022 22:03:34 +0000 (17:03 -0500)] 
uhornacute 1EE9 fix

3 years agoecircumflexdotbelow 1EC7 fix
Viviana Monsalve [Fri, 19 Aug 2022 22:02:32 +0000 (17:02 -0500)] 
ecircumflexdotbelow 1EC7 fix

3 years agouhorngrave 1EEb fix
Viviana Monsalve [Fri, 19 Aug 2022 22:01:28 +0000 (17:01 -0500)] 
uhorngrave 1EEb fix

3 years agoacircumflexdotbelow 1EAD fix
Viviana Monsalve [Fri, 19 Aug 2022 21:59:57 +0000 (16:59 -0500)] 
acircumflexdotbelow 1EAD fix

3 years agoacircumflexhookabove 1EA9 fix
Viviana Monsalve [Fri, 19 Aug 2022 21:58:46 +0000 (16:58 -0500)] 
acircumflexhookabove 1EA9 fix

3 years agoocircumflexacute 1ED1 fix
Viviana Monsalve [Fri, 19 Aug 2022 21:57:08 +0000 (16:57 -0500)] 
ocircumflexacute 1ED1 fix

3 years agoecircumflexgrave 1EC1 fix
Viviana Monsalve [Fri, 19 Aug 2022 21:55:59 +0000 (16:55 -0500)] 
ecircumflexgrave 1EC1 fix

3 years agoabrevehookabove 1EB3 fix
Viviana Monsalve [Fri, 19 Aug 2022 21:54:52 +0000 (16:54 -0500)] 
abrevehookabove 1EB3 fix

3 years agoecircumflexhookabove 1EC3 fix
Viviana Monsalve [Fri, 19 Aug 2022 21:53:06 +0000 (16:53 -0500)] 
ecircumflexhookabove 1EC3 fix

3 years agoohorngrave 1EDD fix
Viviana Monsalve [Fri, 19 Aug 2022 21:51:37 +0000 (16:51 -0500)] 
ohorngrave 1EDD fix

3 years agouhookabove 1EE7 fix
Viviana Monsalve [Fri, 19 Aug 2022 21:46:44 +0000 (16:46 -0500)] 
uhookabove 1EE7 fix

3 years agoodotbelow 1ECD fix
Viviana Monsalve [Fri, 19 Aug 2022 21:45:41 +0000 (16:45 -0500)] 
odotbelow 1ECD fix

3 years agoohornhookabove 1EDF fix
Viviana Monsalve [Fri, 19 Aug 2022 21:43:56 +0000 (16:43 -0500)] 
ohornhookabove 1EDF fix

3 years agouhorndotbelow 1EF1 fix
Viviana Monsalve [Fri, 19 Aug 2022 21:41:36 +0000 (16:41 -0500)] 
uhorndotbelow 1EF1 fix

3 years agoabrevegrave 1EB1 fix
Viviana Monsalve [Fri, 19 Aug 2022 21:40:09 +0000 (16:40 -0500)] 
abrevegrave 1EB1 fix

3 years agoecircumflexacute 1EBF fix
Viviana Monsalve [Fri, 19 Aug 2022 21:38:55 +0000 (16:38 -0500)] 
ecircumflexacute 1EBF fix

3 years agoohornacute 1EDB fix
Viviana Monsalve [Fri, 19 Aug 2022 21:37:08 +0000 (16:37 -0500)] 
ohornacute 1EDB fix

3 years agoMerge pull request #13 from googlefonts/region-CN-fix
Viviana Monsalve [Wed, 17 Aug 2022 16:29:41 +0000 (11:29 -0500)] 
Merge pull request #13 from googlefonts/region-CN-fix

"CN" region added to Chinese languages

3 years agoza_Hant.textproto file adde including CN region
Viviana Monsalve [Fri, 12 Aug 2022 21:32:51 +0000 (16:32 -0500)] 
za_Hant.textproto file adde including CN region

3 years agoyue_Hant region CN added
Viviana Monsalve [Fri, 12 Aug 2022 20:52:47 +0000 (15:52 -0500)] 
yue_Hant region CN added

3 years agolzh_Hant region CN added
Viviana Monsalve [Fri, 12 Aug 2022 20:50:52 +0000 (15:50 -0500)] 
lzh_Hant region CN added

3 years agohak_Hant region CN added
Viviana Monsalve [Fri, 12 Aug 2022 20:46:12 +0000 (15:46 -0500)] 
hak_Hant region CN added

3 years agoupdate github url on setup.py
Felipe Corrêa da Silva Sanches [Wed, 9 Mar 2022 23:09:15 +0000 (20:09 -0300)] 
update github url on setup.py

3 years agoUse default DATA_DIR if user passes base_dir=None
Felipe Corrêa da Silva Sanches [Wed, 9 Mar 2022 06:05:10 +0000 (03:05 -0300)] 
Use default DATA_DIR if user passes base_dir=None

To make it easier to use the API and to avoid problems like this:
https://github.com/googlefonts/gftools/pull/511#issuecomment-1060398562

3 years agoSimplify/Update API
Felipe Corrêa da Silva Sanches [Fri, 4 Mar 2022 21:06:58 +0000 (18:06 -0300)] 
Simplify/Update API

  - Simplify API by removing the `lang_support` module. Now one does `from gflanguages import LoadLanguages` instead of `from gflanguages.lang_support import LoadLanguages` (issue #6)
  - Also, all `Load_*` methods now accept base_dir as optional argument. (motivated by: https://github.com/googlefonts/gftools/pull/511#issuecomment-1059081028)
  - This will be the v0.3.0 API.

3 years agoCorrect Google companyname
Felipe Corrêa da Silva Sanches [Fri, 4 Mar 2022 20:30:55 +0000 (17:30 -0300)] 
Correct Google companyname

3 years agoUpdate AUTHORS.txt
Dave Crossland [Sat, 26 Feb 2022 00:04:55 +0000 (19:04 -0500)] 
Update AUTHORS.txt

Correct Google companyname

3 years agoDropped hyperglot dependency due to licensing.
Felipe Corrêa da Silva Sanches [Fri, 18 Feb 2022 18:49:38 +0000 (15:49 -0300)] 
Dropped hyperglot dependency due to licensing.

 - Removed SupportedLanguages method as it relies on hyperglot, which is under the GPLv3, to keep gftranslate under Apache 2.0
 - The method is still available as a separate code-snippet (not part of gflanguages itself), and any program using that snippet will need to comply with the GPLv3.
 - For more details, see: https://github.com/googlefonts/fontbakery/pull/3617#issuecomment-1044898812

3 years agoremove redundant second copy of the license text
Felipe Corrêa da Silva Sanches [Fri, 18 Feb 2022 08:20:41 +0000 (05:20 -0300)] 
remove redundant second copy of the license text

3 years agoupdated and simplified the textproto definition
Felipe Corrêa da Silva Sanches [Fri, 18 Feb 2022 07:45:02 +0000 (04:45 -0300)] 
updated and simplified the textproto definition

to workaround this kind of problem when using the module
on projects that also import `fonts_public_pb2.py`:
https://github.com/protocolbuffers/protobuf/issues/3002

3 years agofiles for license / authors / contributors
Felipe Corrêa da Silva Sanches [Wed, 16 Feb 2022 23:38:25 +0000 (20:38 -0300)] 
files for license / authors / contributors

3 years agore-enabling many linters checks
Felipe Corrêa da Silva Sanches [Wed, 16 Feb 2022 21:48:31 +0000 (18:48 -0300)] 
re-enabling many linters checks

3 years agoRename module to gflanguages
Felipe Corrêa da Silva Sanches [Wed, 16 Feb 2022 21:45:07 +0000 (18:45 -0300)] 
Rename module to gflanguages

as there was already a `languages` python module on PyPI
(https://github.com/googlefonts/fontbakery/issues/3605#issuecomment-1041276941)

3 years agotidying up the code/comments/headers
Felipe Corrêa da Silva Sanches [Wed, 16 Feb 2022 21:46:06 +0000 (18:46 -0300)] 
tidying up the code/comments/headers

* copyright strings
* code-style
* doc-strings

3 years agocode test for lang_support.SupportedLanguages()
Felipe Corrêa da Silva Sanches [Wed, 16 Feb 2022 08:58:58 +0000 (05:58 -0300)] 
code test for lang_support.SupportedLanguages()

3 years agofixing the GitHub Actions build
Felipe Corrêa da Silva Sanches [Wed, 16 Feb 2022 08:03:53 +0000 (05:03 -0300)] 
fixing the GitHub Actions build

addressing linter warnings/errors

3 years agoInitial implementation of the `languages` module.
Felipe Corrêa da Silva Sanches [Wed, 16 Feb 2022 07:49:46 +0000 (04:49 -0300)] 
Initial implementation of the `languages` module.

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)

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.

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.

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.