2015-11-03 09:56:27 +01:00
|
|
|
# Base and default-included sources and headers
|
|
|
|
|
|
|
|
HB_BASE_sources = \
|
2018-08-26 07:36:36 +02:00
|
|
|
hb-atomic.hh \
|
|
|
|
hb-blob.hh \
|
2015-11-03 09:56:27 +01:00
|
|
|
hb-blob.cc \
|
2018-08-26 07:36:36 +02:00
|
|
|
hb-buffer.hh \
|
2015-11-03 09:56:27 +01:00
|
|
|
hb-buffer-serialize.cc \
|
|
|
|
hb-buffer.cc \
|
2018-09-11 12:02:34 +02:00
|
|
|
hb-cache.hh \
|
2015-11-03 09:56:27 +01:00
|
|
|
hb-common.cc \
|
2017-11-03 21:57:30 +01:00
|
|
|
hb-debug.hh \
|
2017-10-31 22:34:01 +01:00
|
|
|
hb-dsalgs.hh \
|
2018-08-26 07:36:36 +02:00
|
|
|
hb-face.hh \
|
2015-11-03 09:56:27 +01:00
|
|
|
hb-face.cc \
|
2018-08-26 07:36:36 +02:00
|
|
|
hb-font.hh \
|
2015-11-03 09:56:27 +01:00
|
|
|
hb-font.cc \
|
2018-08-26 07:36:36 +02:00
|
|
|
hb-iter.hh \
|
|
|
|
hb-map.hh \
|
2018-05-30 01:28:48 +02:00
|
|
|
hb-map.cc \
|
2018-08-26 07:36:36 +02:00
|
|
|
hb-machinery.hh \
|
|
|
|
hb-mutex.hh \
|
2018-08-06 14:01:52 +02:00
|
|
|
hb-null.hh \
|
2018-08-26 07:36:36 +02:00
|
|
|
hb-object.hh \
|
|
|
|
hb-open-file.hh \
|
|
|
|
hb-open-type.hh \
|
2018-03-04 00:17:26 +01:00
|
|
|
hb-ot-color-cbdt-table.hh \
|
2015-11-03 09:56:27 +01:00
|
|
|
hb-ot-cmap-table.hh \
|
|
|
|
hb-ot-glyf-table.hh \
|
2018-02-21 23:18:49 +01:00
|
|
|
hb-ot-hdmx-table.hh \
|
2015-11-03 09:56:27 +01:00
|
|
|
hb-ot-head-table.hh \
|
|
|
|
hb-ot-hhea-table.hh \
|
|
|
|
hb-ot-hmtx-table.hh \
|
2017-11-02 00:31:29 +01:00
|
|
|
hb-ot-kern-table.hh \
|
2015-11-03 09:56:27 +01:00
|
|
|
hb-ot-maxp-table.hh \
|
|
|
|
hb-ot-name-table.hh \
|
|
|
|
hb-ot-os2-table.hh \
|
2018-02-27 00:20:23 +01:00
|
|
|
hb-ot-os2-unicode-ranges.hh \
|
2017-10-27 04:34:04 +02:00
|
|
|
hb-ot-post-macroman.hh \
|
2016-04-30 19:20:56 +02:00
|
|
|
hb-ot-post-table.hh \
|
Autogenerate the BCP 47 to OpenType mappings
The new script, gen-tag-table.py, generates `ot_languages` automatically
from the [OpenType language system tag registry][ot] and the [IANA
Language Subtag Registry][bcp47] with some manual modifications. If an
OpenType tag maps to a BCP 47 macrolanguage, all the macrolanguage's
individual languages are mapped to the same OpenType tag, except for
individual languages with their own OpenType mappings. Deprecated
BCP 47 tags are canonicalized.
[ot]: https://docs.microsoft.com/en-us/typography/opentype/spec/languagetags
[bcp47]: https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
Some OpenType tags correspond to multiple ISO 639 codes. The mapping
from ISO 639 codes lists OpenType tags in priority order, such that more
specific or more likely tags appear first.
Some OpenType tags have no corresponding ISO 639 code in the registry so
their mappings use BCP 47 subtags besides the language. For example, any
BCP 47 tag with a fonipa variant subtag is mapped to 'IPPH', and 'IPPH'
is mapped back to und-fonipa.
Other OpenType tags have no corresponding ISO 639 code because it is not
clear what they are for. HarfBuzz just ignores these tags.
One such ignored tag is 'ZHP ' (Chinese Phonetic). It probably means
zh-Latn. However, it is used in Microsoft JhengHei and Microsoft YaHei
with the script tag 'hani', implying that it is not a romanization
scheme after all. It would be simple enough to add this mapping to
gen-tag-table.py once a definitive mapping is determined.
The manual modifications are mainly either obvious mappings that the
OpenType registry omits or mappings for compatibility with previous
versions of HarfBuzz. Some of the old mappings were discarded, though,
for homophonous language names. For example, OpenType maps 'KUI ' to
kxu; previous versions of HarfBuzz also mapped it to kvd, because kvd
and kxu both happen to be called "Kui".
gen-tag-table.py also generates a function to convert multi-subtag tags
like el-polyton and zh-HK to OpenType tags, replacing `ot_languages_zh`
and the hard-coded list of special cases in `hb_ot_tags_from_language`.
It also generates a function to convert OpenType tags to BCP 47,
replacing the hard-coded list of special cases in
`hb_ot_tag_to_language`.
2017-12-09 04:45:52 +01:00
|
|
|
hb-ot-tag-table.hh \
|
2015-11-03 09:56:27 +01:00
|
|
|
hb-ot-tag.cc \
|
2018-08-26 07:36:36 +02:00
|
|
|
hb.hh \
|
|
|
|
hb-set-digest.hh \
|
|
|
|
hb-set.hh \
|
2015-11-03 09:56:27 +01:00
|
|
|
hb-set.cc \
|
|
|
|
hb-shape.cc \
|
2018-08-26 07:36:36 +02:00
|
|
|
hb-shape-plan.hh \
|
2015-11-03 09:56:27 +01:00
|
|
|
hb-shape-plan.cc \
|
|
|
|
hb-shaper-list.hh \
|
2018-08-26 07:36:36 +02:00
|
|
|
hb-shaper-impl.hh \
|
|
|
|
hb-shaper.hh \
|
2015-11-03 09:56:27 +01:00
|
|
|
hb-shaper.cc \
|
2018-05-25 00:58:26 +02:00
|
|
|
hb-static.cc \
|
2017-10-27 03:48:33 +02:00
|
|
|
hb-string-array.hh \
|
2018-08-26 07:36:36 +02:00
|
|
|
hb-unicode.hh \
|
2018-10-03 20:19:17 +02:00
|
|
|
hb-unicode-emoji-table.hh \
|
2015-11-03 09:56:27 +01:00
|
|
|
hb-unicode.cc \
|
2018-08-26 07:36:36 +02:00
|
|
|
hb-vector.hh \
|
|
|
|
hb-utf.hh \
|
2015-11-03 09:56:27 +01:00
|
|
|
hb-warning.cc \
|
|
|
|
$(NULL)
|
|
|
|
|
2017-04-05 11:21:23 +02:00
|
|
|
HB_BASE_RAGEL_GENERATED_sources = \
|
|
|
|
hb-buffer-deserialize-json.hh \
|
|
|
|
hb-buffer-deserialize-text.hh \
|
|
|
|
$(NULL)
|
2017-04-05 15:42:11 +02:00
|
|
|
HB_BASE_RAGEL_sources = \
|
|
|
|
hb-buffer-deserialize-json.rl \
|
|
|
|
hb-buffer-deserialize-text.rl \
|
|
|
|
$(NULL)
|
2017-04-05 11:21:23 +02:00
|
|
|
|
2015-11-03 09:56:27 +01:00
|
|
|
HB_BASE_headers = \
|
|
|
|
hb.h \
|
|
|
|
hb-blob.h \
|
|
|
|
hb-buffer.h \
|
|
|
|
hb-common.h \
|
|
|
|
hb-deprecated.h \
|
|
|
|
hb-face.h \
|
|
|
|
hb-font.h \
|
2018-05-30 01:28:48 +02:00
|
|
|
hb-map.h \
|
2015-11-03 09:56:27 +01:00
|
|
|
hb-set.h \
|
|
|
|
hb-shape.h \
|
|
|
|
hb-shape-plan.h \
|
|
|
|
hb-unicode.h \
|
|
|
|
hb-version.h \
|
|
|
|
$(NULL)
|
|
|
|
|
2017-10-18 16:27:28 +02:00
|
|
|
HB_FALLBACK_sources = \
|
|
|
|
hb-fallback-shape.cc \
|
|
|
|
$(NULL)
|
2015-11-03 09:56:27 +01:00
|
|
|
|
|
|
|
HB_OT_sources = \
|
2017-08-15 02:24:36 +02:00
|
|
|
hb-aat-layout.cc \
|
2018-08-26 07:36:36 +02:00
|
|
|
hb-aat-layout-common.hh \
|
2018-02-25 22:01:09 +01:00
|
|
|
hb-aat-layout-ankr-table.hh \
|
2018-03-30 17:06:00 +02:00
|
|
|
hb-aat-layout-bsln-table.hh \
|
2018-04-01 09:46:42 +02:00
|
|
|
hb-aat-layout-feat-table.hh \
|
2018-02-19 20:57:08 +01:00
|
|
|
hb-aat-layout-kerx-table.hh \
|
2018-02-25 22:01:09 +01:00
|
|
|
hb-aat-layout-morx-table.hh \
|
2018-02-19 20:57:08 +01:00
|
|
|
hb-aat-layout-trak-table.hh \
|
2018-08-26 07:36:36 +02:00
|
|
|
hb-aat-layout.hh \
|
2018-03-26 10:58:26 +02:00
|
|
|
hb-aat-ltag-table.hh \
|
2018-08-26 08:06:37 +02:00
|
|
|
hb-ot-face.hh \
|
|
|
|
hb-ot-face.cc \
|
2015-11-03 09:56:27 +01:00
|
|
|
hb-ot-font.cc \
|
|
|
|
hb-ot-layout.cc \
|
2017-02-19 08:48:22 +01:00
|
|
|
hb-ot-layout-base-table.hh \
|
2018-08-26 07:36:36 +02:00
|
|
|
hb-ot-layout-common.hh \
|
2015-11-03 09:56:27 +01:00
|
|
|
hb-ot-layout-gdef-table.hh \
|
|
|
|
hb-ot-layout-gpos-table.hh \
|
2018-08-26 07:36:36 +02:00
|
|
|
hb-ot-layout-gsubgpos.hh \
|
2015-11-03 09:56:27 +01:00
|
|
|
hb-ot-layout-gsub-table.hh \
|
|
|
|
hb-ot-layout-jstf-table.hh \
|
2018-08-26 07:36:36 +02:00
|
|
|
hb-ot-layout.hh \
|
2018-02-27 17:45:54 +01:00
|
|
|
hb-ot-color.cc \
|
2018-03-03 20:13:23 +01:00
|
|
|
hb-ot-color-colr-table.hh \
|
|
|
|
hb-ot-color-cpal-table.hh \
|
2018-03-10 08:43:52 +01:00
|
|
|
hb-ot-color-sbix-table.hh \
|
|
|
|
hb-ot-color-svg-table.hh \
|
2015-11-03 09:56:27 +01:00
|
|
|
hb-ot-map.cc \
|
2018-08-26 07:36:36 +02:00
|
|
|
hb-ot-map.hh \
|
2017-01-03 05:55:09 +01:00
|
|
|
hb-ot-math.cc \
|
2017-01-10 06:11:00 +01:00
|
|
|
hb-ot-math-table.hh \
|
2015-11-03 09:56:27 +01:00
|
|
|
hb-ot-shape.cc \
|
|
|
|
hb-ot-shape-complex-arabic.cc \
|
|
|
|
hb-ot-shape-complex-arabic-fallback.hh \
|
2018-08-26 07:36:36 +02:00
|
|
|
hb-ot-shape-complex-arabic.hh \
|
2015-11-03 09:56:27 +01:00
|
|
|
hb-ot-shape-complex-arabic-table.hh \
|
|
|
|
hb-ot-shape-complex-arabic-win1256.hh \
|
|
|
|
hb-ot-shape-complex-default.cc \
|
|
|
|
hb-ot-shape-complex-hangul.cc \
|
|
|
|
hb-ot-shape-complex-hebrew.cc \
|
|
|
|
hb-ot-shape-complex-indic.cc \
|
2018-08-26 07:36:36 +02:00
|
|
|
hb-ot-shape-complex-indic.hh \
|
2015-11-03 09:56:27 +01:00
|
|
|
hb-ot-shape-complex-indic-table.cc \
|
2018-08-26 07:36:36 +02:00
|
|
|
hb-ot-shape-complex-khmer.hh \
|
2018-01-05 15:54:31 +01:00
|
|
|
hb-ot-shape-complex-khmer.cc \
|
2018-08-26 07:36:36 +02:00
|
|
|
hb-ot-shape-complex-myanmar.hh \
|
2015-11-03 09:56:27 +01:00
|
|
|
hb-ot-shape-complex-myanmar.cc \
|
|
|
|
hb-ot-shape-complex-thai.cc \
|
|
|
|
hb-ot-shape-complex-use.cc \
|
2018-08-26 07:36:36 +02:00
|
|
|
hb-ot-shape-complex-use.hh \
|
2015-11-03 09:56:27 +01:00
|
|
|
hb-ot-shape-complex-use-table.cc \
|
2018-08-26 07:36:36 +02:00
|
|
|
hb-ot-shape-complex.hh \
|
|
|
|
hb-ot-shape-normalize.hh \
|
2015-11-03 09:56:27 +01:00
|
|
|
hb-ot-shape-normalize.cc \
|
2018-08-26 07:36:36 +02:00
|
|
|
hb-ot-shape-fallback.hh \
|
2015-11-03 09:56:27 +01:00
|
|
|
hb-ot-shape-fallback.cc \
|
2018-08-26 07:36:36 +02:00
|
|
|
hb-ot-shape.hh \
|
2017-01-20 04:35:48 +01:00
|
|
|
hb-ot-var.cc \
|
2017-01-23 03:52:00 +01:00
|
|
|
hb-ot-var-avar-table.hh \
|
2017-01-20 04:35:48 +01:00
|
|
|
hb-ot-var-fvar-table.hh \
|
2017-01-23 20:41:43 +01:00
|
|
|
hb-ot-var-hvar-table.hh \
|
2017-01-24 08:42:53 +01:00
|
|
|
hb-ot-var-mvar-table.hh \
|
2015-11-03 09:56:27 +01:00
|
|
|
$(NULL)
|
|
|
|
|
2017-04-05 11:21:23 +02:00
|
|
|
HB_OT_RAGEL_GENERATED_sources = \
|
|
|
|
hb-ot-shape-complex-indic-machine.hh \
|
2018-01-05 15:54:31 +01:00
|
|
|
hb-ot-shape-complex-khmer-machine.hh \
|
2017-04-05 11:21:23 +02:00
|
|
|
hb-ot-shape-complex-myanmar-machine.hh \
|
|
|
|
hb-ot-shape-complex-use-machine.hh \
|
|
|
|
$(NULL)
|
2017-04-05 15:42:11 +02:00
|
|
|
HB_OT_RAGEL_sources = \
|
|
|
|
hb-ot-shape-complex-indic-machine.rl \
|
2018-01-05 15:54:31 +01:00
|
|
|
hb-ot-shape-complex-khmer-machine.rl \
|
2017-04-05 15:42:11 +02:00
|
|
|
hb-ot-shape-complex-myanmar-machine.rl \
|
|
|
|
hb-ot-shape-complex-use-machine.rl \
|
2015-11-03 09:56:27 +01:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
HB_OT_headers = \
|
|
|
|
hb-ot.h \
|
|
|
|
hb-ot-font.h \
|
|
|
|
hb-ot-layout.h \
|
2016-08-25 11:06:41 +02:00
|
|
|
hb-ot-math.h \
|
2018-10-12 21:52:31 +02:00
|
|
|
hb-ot-name.h \
|
2015-11-03 09:56:27 +01:00
|
|
|
hb-ot-shape.h \
|
|
|
|
hb-ot-tag.h \
|
2017-01-20 04:35:48 +01:00
|
|
|
hb-ot-var.h \
|
2015-11-03 09:56:27 +01:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
# Optional Sources and Headers with external deps
|
|
|
|
|
|
|
|
HB_FT_sources = hb-ft.cc
|
|
|
|
HB_FT_headers = hb-ft.h
|
|
|
|
|
|
|
|
HB_GLIB_sources = hb-glib.cc
|
|
|
|
HB_GLIB_headers = hb-glib.h
|
|
|
|
|
|
|
|
HB_GRAPHITE2_sources = hb-graphite2.cc
|
|
|
|
HB_GRAPHITE2_headers = hb-graphite2.h
|
|
|
|
|
|
|
|
# System-dependent sources and headers
|
|
|
|
|
|
|
|
HB_CORETEXT_sources = hb-coretext.cc
|
|
|
|
HB_CORETEXT_headers = hb-coretext.h
|
|
|
|
|
2016-02-03 11:31:23 +01:00
|
|
|
HB_DIRECTWRITE_sources = hb-directwrite.cc
|
|
|
|
HB_DIRECTWRITE_headers = hb-directwrite.h
|
|
|
|
|
2015-11-03 09:56:27 +01:00
|
|
|
HB_UNISCRIBE_sources = hb-uniscribe.cc
|
|
|
|
HB_UNISCRIBE_headers = hb-uniscribe.h
|
|
|
|
|
|
|
|
# Additional supplemental sources
|
|
|
|
HB_UCDN_sources = hb-ucdn.cc
|
|
|
|
|
|
|
|
# Sources for libharfbuzz-gobject and libharfbuzz-icu
|
|
|
|
HB_ICU_sources = hb-icu.cc
|
|
|
|
HB_ICU_headers = hb-icu.h
|
|
|
|
|
2018-01-18 07:09:07 +01:00
|
|
|
# Sources for libharfbuzz-subset
|
2018-02-03 02:50:45 +01:00
|
|
|
HB_SUBSET_sources = \
|
2018-06-13 00:24:54 +02:00
|
|
|
hb-static.cc \
|
2018-02-03 02:50:45 +01:00
|
|
|
hb-subset.cc \
|
2018-08-29 02:22:38 +02:00
|
|
|
hb-subset.hh \
|
2018-02-07 01:04:09 +01:00
|
|
|
hb-subset-glyf.cc \
|
2018-08-29 02:22:38 +02:00
|
|
|
hb-subset-glyf.hh \
|
2018-02-13 22:50:50 +01:00
|
|
|
hb-subset-input.cc \
|
2018-08-31 22:25:19 +02:00
|
|
|
hb-subset-input.hh \
|
2018-02-06 00:22:30 +01:00
|
|
|
hb-subset-plan.cc \
|
2018-08-29 02:22:38 +02:00
|
|
|
hb-subset-plan.hh \
|
2018-02-03 02:50:45 +01:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
HB_SUBSET_headers = \
|
|
|
|
hb-subset.h \
|
|
|
|
$(NULL)
|
2018-01-18 07:09:07 +01:00
|
|
|
|
2018-02-23 22:19:34 +01:00
|
|
|
HB_GOBJECT_DIST_sources = hb-gobject-structs.cc
|
|
|
|
HB_GOBJECT_DIST_headers = hb-gobject.h hb-gobject-structs.h
|
2015-11-03 09:56:27 +01:00
|
|
|
HB_GOBJECT_ENUM_sources = hb-gobject-enums.cc
|
|
|
|
HB_GOBJECT_ENUM_headers = hb-gobject-enums.h
|
2018-02-23 22:19:34 +01:00
|
|
|
HB_GOBJECT_NODIST_sources = $(HB_GOBJECT_ENUM_sources)
|
|
|
|
HB_GOBJECT_NODIST_headers = $(HB_GOBJECT_ENUM_headers)
|
|
|
|
HB_GOBJECT_sources = $(HB_GOBJECT_DIST_sources) $(HB_GOBJECT_NODIST_sources)
|
|
|
|
HB_GOBJECT_headers = $(HB_GOBJECT_DIST_headers) $(HB_GOBJECT_NODIST_headers)
|