diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-04-11 21:20:31 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-04-11 21:20:37 +0200 |
commit | 4be9da8d2d4f428de60dd7af874a28630d33b542 (patch) | |
tree | 8e7cfc5c9814f350ef1569bd3b21dfdb660f42b7 /gen | |
parent | a1749aa9bbe5abc10bde30b2bf1210091e0ee2d4 (diff) |
Remove .txt from Unicode data files
Diffstat (limited to 'gen')
-rwxr-xr-x | gen/data-files | 34 | ||||
-rwxr-xr-x | gen/prop/bool-props | 10 | ||||
-rwxr-xr-x | gen/prop/bpb | 2 | ||||
-rwxr-xr-x | gen/prop/bpt | 2 | ||||
-rwxr-xr-x | gen/prop/dt | 2 | ||||
-rwxr-xr-x | gen/prop/ea | 2 | ||||
-rwxr-xr-x | gen/prop/gc | 2 | ||||
-rwxr-xr-x | gen/prop/lb | 2 | ||||
-rwxr-xr-x | gen/prop/na | 2 | ||||
-rwxr-xr-x | gen/prop/na1 | 2 | ||||
-rwxr-xr-x | gen/prop/nt | 2 | ||||
-rwxr-xr-x | gen/prop/nv | 2 | ||||
-rwxr-xr-x | gen/prop/slc | 2 | ||||
-rwxr-xr-x | gen/prop/stc | 2 | ||||
-rwxr-xr-x | gen/prop/suc | 2 |
15 files changed, 35 insertions, 35 deletions
diff --git a/gen/data-files b/gen/data-files index 550ef82..3deb623 100755 --- a/gen/data-files +++ b/gen/data-files @@ -6,25 +6,25 @@ mkdir -p data readonly BASE=https://www.unicode.org/Public/UCD/latest/ucd -readonly URLS=' -auxiliary/GraphemeBreakProperty.txt -BidiBrackets.txt -DerivedCoreProperties.txt -DerivedNormalizationProps.txt -emoji/emoji-data.txt -extracted/DerivedBinaryProperties.txt -extracted/DerivedDecompositionType.txt -extracted/DerivedEastAsianWidth.txt -extracted/DerivedLineBreak.txt -extracted/DerivedNumericType.txt -extracted/DerivedNumericValues.txt -PropList.txt -UnicodeData.txt +readonly PATHS=' +auxiliary/GraphemeBreakProperty +BidiBrackets +DerivedCoreProperties +DerivedNormalizationProps +emoji/emoji-data +extracted/DerivedBinaryProperties +extracted/DerivedDecompositionType +extracted/DerivedEastAsianWidth +extracted/DerivedLineBreak +extracted/DerivedNumericType +extracted/DerivedNumericValues +PropList +UnicodeData ' -for url in $URLS +for path in $PATHS do - name="data/${url##*/}" - test -f "$name" || wget -q "$BASE/$url" -O "$name" & + name="data/${path##*/}" + test -f "$name" || wget -q "$BASE/$path.txt" -O "$name" & done wait diff --git a/gen/prop/bool-props b/gen/prop/bool-props index 5e93a8e..04e1e32 100755 --- a/gen/prop/bool-props +++ b/gen/prop/bool-props @@ -85,11 +85,11 @@ gen() printf 'DONE uprop_is_%s()\n' $p >&2 } -for prop in $props1; do gen $prop PropList.txt & done -for prop in $props2; do gen $prop DerivedCoreProperties.txt & done -for prop in $props3; do gen $prop emoji-data.txt & done -for prop in $props4; do gen $prop DerivedNormalizationProps.txt & done -for prop in $props5; do gen $prop DerivedBinaryProperties.txt & done +for prop in $props1; do gen $prop PropList & done +for prop in $props2; do gen $prop DerivedCoreProperties & done +for prop in $props3; do gen $prop emoji-data & done +for prop in $props4; do gen $prop DerivedNormalizationProps & done +for prop in $props5; do gen $prop DerivedBinaryProperties & done printf '[[__nodiscard__, __unsequenced__]] bool uprop_is_%s(rune);\n' \ $(printf '%s\n' $props1 $props2 $props3 $props4 $props5 | cut -d= -f1) \ diff --git a/gen/prop/bpb b/gen/prop/bpb index 52e3a9d..c6fdf5d 100755 --- a/gen/prop/bpb +++ b/gen/prop/bpb @@ -49,4 +49,4 @@ END { print "\treturn ch < lengthof(lookup_lat1) ? lookup_lat1[ch] : mlib_lookup_kv(ch);" print "}" } -' data/BidiBrackets.txt +' data/BidiBrackets diff --git a/gen/prop/bpt b/gen/prop/bpt index b73b804..c9726a6 100755 --- a/gen/prop/bpt +++ b/gen/prop/bpt @@ -50,4 +50,4 @@ END { print "\treturn ch < lengthof(lookup_lat1) ? lookup_lat1[ch] : mlib_lookup_kv(ch);" print "}" } -' data/BidiBrackets.txt +' data/BidiBrackets diff --git a/gen/prop/dt b/gen/prop/dt index 82d6331..eb4884c 100755 --- a/gen/prop/dt +++ b/gen/prop/dt @@ -81,4 +81,4 @@ END { print "\treturn ch < lengthof(lookup_lat1) ? lookup_lat1[ch] : mlib_lookup(ch);" print "}" } -' data/DerivedDecompositionType.txt | sed 's/\s*$//' +' data/DerivedDecompositionType | sed 's/\s*$//' diff --git a/gen/prop/ea b/gen/prop/ea index 6bf1291..a72ff10 100755 --- a/gen/prop/ea +++ b/gen/prop/ea @@ -62,4 +62,4 @@ END { print "\treturn ch < lengthof(lookup_lat1) ? lookup_lat1[ch] : mlib_lookup(ch);" print "}" } -' data/DerivedEastAsianWidth.txt | sed 's/\s*$//' +' data/DerivedEastAsianWidth | sed 's/\s*$//' diff --git a/gen/prop/gc b/gen/prop/gc index 219df8a..c027754 100755 --- a/gen/prop/gc +++ b/gen/prop/gc @@ -65,4 +65,4 @@ END { print "\treturn ch < lengthof(lookup_lat1) ? lookup_lat1[ch] : mlib_lookup(ch);" print "}" } -' data/UnicodeData.txt +' data/UnicodeData diff --git a/gen/prop/lb b/gen/prop/lb index 25febdb..251a947 100755 --- a/gen/prop/lb +++ b/gen/prop/lb @@ -62,4 +62,4 @@ END { print "\treturn ch < lengthof(lookup_lat1) ? lookup_lat1[ch] : mlib_lookup(ch);" print "}" } -' data/DerivedLineBreak.txt | sed 's/\s*$//' +' data/DerivedLineBreak | sed 's/\s*$//' diff --git a/gen/prop/na b/gen/prop/na index 291a7d9..250b746 100755 --- a/gen/prop/na +++ b/gen/prop/na @@ -35,4 +35,4 @@ END { print "\treturn ch < lengthof(lookup) ? lookup[ch] : (struct u8view){};" print "}" } -' data/UnicodeData.txt +' data/UnicodeData diff --git a/gen/prop/na1 b/gen/prop/na1 index 7ed1a0a..855f1de 100755 --- a/gen/prop/na1 +++ b/gen/prop/na1 @@ -41,4 +41,4 @@ END { print "\treturn mlib_lookup_kv(ch);" print "}" } -' data/UnicodeData.txt +' data/UnicodeData diff --git a/gen/prop/nt b/gen/prop/nt index a55ea45..720baf2 100755 --- a/gen/prop/nt +++ b/gen/prop/nt @@ -66,4 +66,4 @@ END { print "\treturn ch < lengthof(lookup_lat1) ? lookup_lat1[ch] : mlib_lookup(ch);" print "}" } -' data/DerivedNumericType.txt | sed 's/\s*$//' +' data/DerivedNumericType | sed 's/\s*$//' diff --git a/gen/prop/nv b/gen/prop/nv index 4d81fa9..9cb6ba9 100755 --- a/gen/prop/nv +++ b/gen/prop/nv @@ -62,4 +62,4 @@ END { print "\treturn ch < lengthof(lookup_lat1) ? lookup_lat1[ch] : mlib_lookup_kv(ch);" print "}" } -' data/DerivedNumericValues.txt +' data/DerivedNumericValues diff --git a/gen/prop/slc b/gen/prop/slc index 57ee4c0..c7019e4 100755 --- a/gen/prop/slc +++ b/gen/prop/slc @@ -50,4 +50,4 @@ END { print "\treturn ch < lengthof(lookup_lat1) ? lookup_lat1[ch] : mlib_lookup_kv(ch);" print "}" } -' data/UnicodeData.txt +' data/UnicodeData diff --git a/gen/prop/stc b/gen/prop/stc index 42dca19..252cfa5 100755 --- a/gen/prop/stc +++ b/gen/prop/stc @@ -42,4 +42,4 @@ END { print "\treturn mlib_lookup_kv(ch);" print "}" } -' data/UnicodeData.txt +' data/UnicodeData diff --git a/gen/prop/suc b/gen/prop/suc index 8a53060..1ae4ad4 100755 --- a/gen/prop/suc +++ b/gen/prop/suc @@ -50,4 +50,4 @@ END { print "\treturn ch < lengthof(lookup_lat1) ? lookup_lat1[ch] : mlib_lookup_kv(ch);" print "}" } -' data/UnicodeData.txt +' data/UnicodeData |