summaryrefslogtreecommitdiffstats
path: root/gfx/harfbuzz/src/update-unicode-tables.make
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /gfx/harfbuzz/src/update-unicode-tables.make
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gfx/harfbuzz/src/update-unicode-tables.make')
-rwxr-xr-xgfx/harfbuzz/src/update-unicode-tables.make49
1 files changed, 49 insertions, 0 deletions
diff --git a/gfx/harfbuzz/src/update-unicode-tables.make b/gfx/harfbuzz/src/update-unicode-tables.make
new file mode 100755
index 0000000000..6f5b490f70
--- /dev/null
+++ b/gfx/harfbuzz/src/update-unicode-tables.make
@@ -0,0 +1,49 @@
+#!/usr/bin/env -S make -f
+
+all: packtab \
+ hb-ot-shaper-arabic-joining-list.hh \
+ hb-ot-shaper-arabic-table.hh hb-unicode-emoji-table.hh \
+ hb-ot-shaper-indic-table.cc hb-ot-tag-table.hh \
+ hb-ucd-table.hh hb-ot-shaper-use-table.hh \
+ hb-ot-shaper-vowel-constraints.cc
+
+.PHONY: all clean packtab
+
+hb-ot-shaper-arabic-joining-list.hh: gen-arabic-joining-list.py ArabicShaping.txt Scripts.txt
+ ./$^ > $@ || ($(RM) $@; false)
+hb-ot-shaper-arabic-table.hh: gen-arabic-table.py ArabicShaping.txt UnicodeData.txt Blocks.txt
+ ./$^ > $@ || ($(RM) $@; false)
+hb-unicode-emoji-table.hh: gen-emoji-table.py emoji-data.txt emoji-test.txt
+ ./$^ > $@ || ($(RM) $@; false)
+hb-ot-shaper-indic-table.cc: gen-indic-table.py IndicSyllabicCategory.txt IndicPositionalCategory.txt Blocks.txt
+ ./$^ > $@ || ($(RM) $@; false)
+hb-ot-tag-table.hh: gen-tag-table.py languagetags language-subtag-registry
+ ./$^ > $@ || ($(RM) $@; false)
+hb-ucd-table.hh: gen-ucd-table.py ucd.nounihan.grouped.zip hb-common.h
+ ./$^ > $@ || ($(RM) $@; false)
+hb-ot-shaper-use-table.hh: gen-use-table.py IndicSyllabicCategory.txt IndicPositionalCategory.txt ArabicShaping.txt DerivedCoreProperties.txt UnicodeData.txt Blocks.txt Scripts.txt ms-use/IndicSyllabicCategory-Additional.txt ms-use/IndicPositionalCategory-Additional.txt
+ ./$^ > $@ || ($(RM) $@; false)
+hb-ot-shaper-vowel-constraints.cc: gen-vowel-constraints.py ms-use/IndicShapingInvalidCluster.txt Scripts.txt
+ ./$^ > $@ || ($(RM) $@; false)
+
+packtab:
+ /usr/bin/env python3 -c "import packTab" 2>/dev/null || /usr/bin/env python3 -m pip install git+https://github.com/harfbuzz/packtab
+
+ArabicShaping.txt Blocks.txt DerivedCoreProperties.txt IndicPositionalCategory.txt IndicSyllabicCategory.txt Scripts.txt UnicodeData.txt:
+ curl -O https://unicode.org/Public/UCD/latest/ucd/$@
+emoji-data.txt:
+ curl -O https://www.unicode.org/Public/UCD/latest/ucd/emoji/emoji-data.txt
+emoji-test.txt:
+ curl -O https://www.unicode.org/Public/emoji/latest/emoji-test.txt
+languagetags:
+ curl -O https://learn.microsoft.com/en-us/typography/opentype/spec/languagetags
+language-subtag-registry:
+ curl -O https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
+ucd.nounihan.grouped.zip:
+ curl -O https://unicode.org/Public/UCD/latest/ucdxml/ucd.nounihan.grouped.zip
+
+clean:
+ $(RM) \
+ ArabicShaping.txt UnicodeData.txt Blocks.txt emoji-data.txt \
+ IndicSyllabicCategory.txt IndicPositionalCategory.txt \
+ languagetags language-subtag-registry ucd.nounihan.grouped.zip Scripts.txt