[gnome-characters/wip/exalm/unistring: 10/15] lib: Add a script to regenerate all headers




commit f4de9dd5db7f0f5d59e4166e77062fb56d47e122
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Fri Nov 26 05:25:10 2021 +0500

    lib: Add a script to regenerate all headers
    
    It's quite tedious to generate this by hand, let's automate it.

 lib/regenerate.sh | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
---
diff --git a/lib/regenerate.sh b/lib/regenerate.sh
new file mode 100755
index 0000000..b80e9c1
--- /dev/null
+++ b/lib/regenerate.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+CLDR_VERSION=27
+UCD_VERSION=9.0.0
+EMOJI_VERSION=5.0
+
+wget -c "https://www.unicode.org/Public/$UCD_VERSION/ucd/Blocks.txt";
+wget -c "https://www.unicode.org/Public/$UCD_VERSION/ucd/Jamo.txt";
+wget -c "https://www.unicode.org/Public/$UCD_VERSION/ucd/PropertyValueAliases.txt";
+wget -c "https://www.unicode.org/Public/$UCD_VERSION/ucd/UnicodeData.txt";
+wget -c "https://www.unicode.org/Public/cldr/$CLDR_VERSION/core.zip";
+wget -c "https://www.unicode.org/Public/emoji/$EMOJI_VERSION/emoji-test.txt";
+wget -c "https://www.unicode.org/Public/security/$UCD_VERSION/confusables.txt";
+
+unzip -jo core.zip common/supplemental/supplementalData.xml
+
+./gen-blocks.py Blocks.txt > blocks.h
+./gen-confusables.py confusables.txt > confusables.h
+./gen-emoji.py emoji-test.txt > emoji.h
+./gen-hangul.py Jamo.txt > hangul.h
+./gen-names.py UnicodeData.txt > names.h
+./gen-scripts.py supplementalData.xml PropertyValueAliases.txt > scripts.h


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]