Skip to content

Commit

Permalink
Add primary_language field to Chinese fonts; Add languages to new C…
Browse files Browse the repository at this point in the history
…hinese fonts; (#7792)

* Add primary language to Chinese fonts

* Fix Chinese language naming

* Fix Chinese language naming

* Remove language and primary_language for non-Noto fonts

* Add primary_language for new Chinese fonts
  • Loading branch information
laubonghaudoi authored Jun 4, 2024
1 parent 28899d9 commit 1b7253f
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 24 deletions.
1 change: 1 addition & 0 deletions ofl/cactusclassicalserif/METADATA.pb
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ source {
branch: "main"
}
primary_script: "Hant"
primary_language: "yue_Hant"
stroke: "SERIF"
1 change: 1 addition & 0 deletions ofl/chocolateclassicalsans/METADATA.pb
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ source {
branch: "main"
}
primary_script: "Hant"
primary_language: "yue_Hant"
stroke: "SANS_SERIF"
1 change: 1 addition & 0 deletions ofl/lxgwwenkaimonotc/METADATA.pb
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,5 @@ source {
branch: "main"
}
primary_script: "Hant"
primary_language: "zh_Hant"
classifications: "MONOSPACE"
1 change: 1 addition & 0 deletions ofl/lxgwwenkaitc/METADATA.pb
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,5 @@ source {
branch: "main"
}
primary_script: "Hant"
primary_language: "zh_Hant"
classifications: "HANDWRITING"
9 changes: 5 additions & 4 deletions ofl/notosanshk/METADATA.pb
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,16 @@ axes {
max_value: 900.0
}
is_noto: true
languages: "cjy_Hant" # Chinese, Jinyu
languages: "cjy_Hant" # Jin Chinese
languages: "gan_Hant" # Gan Chinese
languages: "hak_Hant" # Hakka Chinese, Traditional
languages: "hak_Hant" # Hakka Chinese
languages: "hsn_Hant" # Xiang Chinese
languages: "lzh_Hant" # Literary Chinese, Traditional
languages: "nan_Hant" # Min Nan Chinese, Traditional
languages: "lzh_Hant" # Literary Chinese
languages: "nan_Hant" # Southern Min Chinese
languages: "wuu_Hant" # Wu Chinese
languages: "yue_Hant" # Cantonese
languages: "za_Hant" # Zhuang, Traditional Han
languages: "zh_Hant" # Chinese (Traditional)
display_name: "Noto Sans Hong Kong"
primary_script: "Hant"
primary_language: "yue_Hant"
17 changes: 9 additions & 8 deletions ofl/notosanssc/METADATA.pb
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,16 @@ axes {
min_value: 100.0
max_value: 900.0
}
languages: "cjy_Hans" # Chinese, Jinyu
languages: "gan_Hans" # Gan Chinese
languages: "hak_Hans" # Hakka Chinese, Simplified
languages: "hsn_Hans" # Xiang Chinese
languages: "lzh_Hans" # Literary Chinese, Simplified
languages: "nan_Hans" # Min Nan Chinese, Simplified
languages: "wuu_Hans" # Wu Chinese
languages: "yue_Hans" # Cantonese
languages: "cjy_Hans" # Jin Chinese (Simplified)
languages: "gan_Hans" # Gan Chinese (Simplified)
languages: "hak_Hans" # Hakka Chinese (Simplified)
languages: "hsn_Hans" # Xiang Chinese (Simplified)
languages: "lzh_Hans" # Literary Chinese (Simplified)
languages: "nan_Hans" # Southern Min Chinese (Simplified)
languages: "wuu_Hans" # Wu Chinese (Simplified)
languages: "yue_Hans" # Cantonese (Simplified)
languages: "za_Hans" # Zhuang, Simplified Han
languages: "zh_Hans" # Chinese (Simplified)
display_name: "Noto Sans Simplified Chinese"
primary_script: "Hans"
primary_language: "zh_Hans"
9 changes: 5 additions & 4 deletions ofl/notosanstc/METADATA.pb
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,16 @@ axes {
min_value: 100.0
max_value: 900.0
}
languages: "cjy_Hant" # Chinese, Jinyu
languages: "cjy_Hant" # Jin Chinese
languages: "gan_Hant" # Gan Chinese
languages: "hak_Hant" # Hakka Chinese, Traditional
languages: "hak_Hant" # Hakka Chinese
languages: "hsn_Hant" # Xiang Chinese
languages: "lzh_Hant" # Literary Chinese, Traditional
languages: "nan_Hant" # Min Nan Chinese, Traditional
languages: "lzh_Hant" # Literary Chinese
languages: "nan_Hant" # Southern Min Chinese
languages: "wuu_Hant" # Wu Chinese
languages: "yue_Hant" # Cantonese
languages: "za_Hant" # Zhuang, Traditional Han
languages: "zh_Hant" # Chinese (Traditional)
display_name: "Noto Sans Traditional Chinese"
primary_script: "Hant"
primary_language: "zh_Hant"
9 changes: 5 additions & 4 deletions ofl/notoserifhk/METADATA.pb
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ axes {
max_value: 900.0
}
is_noto: true
languages: "cjy_Hant" # Chinese, Jinyu
languages: "cjy_Hant" # Jin Chinese
languages: "gan_Hant" # Gan Chinese
languages: "hak_Hant" # Hakka Chinese, Traditional
languages: "hak_Hant" # Hakka Chinese
languages: "hsn_Hant" # Xiang Chinese
languages: "lzh_Hant" # Literary Chinese, Traditional
languages: "nan_Hant" # Min Nan Chinese, Traditional
languages: "lzh_Hant" # Literary Chinese
languages: "nan_Hant" # Southern Min Chinese
languages: "wuu_Hant" # Wu Chinese
languages: "yue_Hant" # Cantonese
languages: "zh_Hant" # Chinese (Traditional)
display_name: "Noto Serif Hong Kong"
primary_script: "Hant"
primary_language: "yue_Hant"
1 change: 1 addition & 0 deletions ofl/notoserifsc/METADATA.pb
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ languages: "za_Hans" # Zhuang, Simplified Han
languages: "zh_Hans" # Chinese (Simplified)
display_name: "Noto Serif Simplified Chinese"
primary_script: "Hans"
primary_language: "zh_Hans"
9 changes: 5 additions & 4 deletions ofl/notoseriftc/METADATA.pb
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,16 @@ axes {
max_value: 900.0
}
is_noto: true
languages: "cjy_Hant" # Chinese, Jinyu
languages: "cjy_Hant" # Jin Chinese
languages: "gan_Hant" # Gan Chinese
languages: "hak_Hant" # Hakka Chinese, Traditional
languages: "hak_Hant" # Hakka Chinese
languages: "hsn_Hant" # Xiang Chinese
languages: "lzh_Hant" # Literary Chinese, Traditional
languages: "nan_Hant" # Min Nan Chinese, Traditional
languages: "lzh_Hant" # Literary Chinese
languages: "nan_Hant" # Southern Min Chinese
languages: "wuu_Hant" # Wu Chinese
languages: "yue_Hant" # Cantonese
languages: "za_Hant" # Zhuang, Traditional Han
languages: "zh_Hant" # Chinese (Traditional)
display_name: "Noto Serif Traditional Chinese"
primary_script: "Hant"
primary_language: "zh_Hant"

0 comments on commit 1b7253f

Please sign in to comment.