comparison mupdf-source/thirdparty/harfbuzz/src/update-unicode-tables.make @ 2:b50eed0cc0ef upstream

ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4. The directory name has changed: no version number in the expanded directory now.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:43:07 +0200
parents
children
comparison
equal deleted inserted replaced
1:1d09e1dec1d9 2:b50eed0cc0ef
1 #!/usr/bin/env -S make -f
2
3 all: packtab \
4 hb-ot-shaper-arabic-joining-list.hh \
5 hb-ot-shaper-arabic-table.hh hb-unicode-emoji-table.hh \
6 hb-ot-shaper-indic-table.cc hb-ot-tag-table.hh \
7 hb-ucd-table.hh hb-ot-shaper-use-table.hh \
8 hb-ot-shaper-vowel-constraints.cc
9
10 .PHONY: all clean packtab
11
12 hb-ot-shaper-arabic-joining-list.hh: gen-arabic-joining-list.py ArabicShaping.txt Scripts.txt
13 ./$^ > $@ || ($(RM) $@; false)
14 hb-ot-shaper-arabic-table.hh: gen-arabic-table.py ArabicShaping.txt UnicodeData.txt Blocks.txt
15 ./$^ > $@ || ($(RM) $@; false)
16 hb-unicode-emoji-table.hh: gen-emoji-table.py emoji-data.txt emoji-test.txt
17 ./$^ > $@ || ($(RM) $@; false)
18 hb-ot-shaper-indic-table.cc: gen-indic-table.py IndicSyllabicCategory.txt IndicPositionalCategory.txt Blocks.txt
19 ./$^ > $@ || ($(RM) $@; false)
20 hb-ot-tag-table.hh: gen-tag-table.py languagetags language-subtag-registry
21 ./$^ > $@ || ($(RM) $@; false)
22 hb-ucd-table.hh: gen-ucd-table.py ucd.nounihan.grouped.zip hb-common.h
23 ./$^ > $@ || ($(RM) $@; false)
24 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
25 ./$^ > $@ || ($(RM) $@; false)
26 hb-ot-shaper-vowel-constraints.cc: gen-vowel-constraints.py ms-use/IndicShapingInvalidCluster.txt Scripts.txt
27 ./$^ > $@ || ($(RM) $@; false)
28
29 packtab:
30 /usr/bin/env python3 -c "import packTab" 2>/dev/null || /usr/bin/env python3 -m pip install git+https://github.com/harfbuzz/packtab
31
32 ArabicShaping.txt Blocks.txt DerivedCoreProperties.txt IndicPositionalCategory.txt IndicSyllabicCategory.txt Scripts.txt UnicodeData.txt:
33 curl -O https://unicode.org/Public/UCD/latest/ucd/$@
34 emoji-data.txt:
35 curl -O https://www.unicode.org/Public/UCD/latest/ucd/emoji/emoji-data.txt
36 emoji-test.txt:
37 curl -O https://www.unicode.org/Public/emoji/latest/emoji-test.txt
38 languagetags:
39 curl -O https://learn.microsoft.com/en-us/typography/opentype/spec/languagetags
40 language-subtag-registry:
41 curl -O https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
42 ucd.nounihan.grouped.zip:
43 curl -O https://unicode.org/Public/UCD/latest/ucdxml/ucd.nounihan.grouped.zip
44
45 clean:
46 $(RM) \
47 ArabicShaping.txt UnicodeData.txt Blocks.txt emoji-data.txt \
48 IndicSyllabicCategory.txt IndicPositionalCategory.txt \
49 languagetags language-subtag-registry ucd.nounihan.grouped.zip Scripts.txt