-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce script to check for new upstream fonts
Also: - Update README - Move "Nag Mundari" to historical, as given in Unicode Standard pdf
- Loading branch information
Satish B
committed
May 5, 2023
1 parent
6bef8eb
commit a57c67e
Showing
3 changed files
with
31 additions
and
14 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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash -e | ||
|
||
# Use this script to see if Google has introduced new upstream fonts | ||
# which we have not yet packaged. | ||
|
||
url="notofonts.github.io" | ||
# Capture all lines between "Scripts" and "Noto Dashboard" (exclusive) | ||
all_scripts=$(w3m -dump "$url" | awk '/Scripts/{flag=1; next} /Noto Dashboard/{flag=0} flag') | ||
|
||
# Convert multi-line string to array (each line is new member) | ||
readarray -t scripts <<<"$all_scripts" | ||
|
||
for s in "${scripts[@]}"; do | ||
# strip spaces, tabs, etc. from "$s" before grepping | ||
if ! grep -iq "${s//[[:blank:]]}" categories.sh; then | ||
echo "$s from upstream Noto fonts not packaged yet" | ||
fi | ||
done |