aboutsummaryrefslogtreecommitdiff
path: root/meson_options.txt
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-05-02 15:29:00 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-05-02 15:29:00 +0000
commitd945b68b734427a03d114716ff8aeac7998a7c57 (patch)
tree93c73c5ab615ccf66244713d15a2a7a2fd139e0d /meson_options.txt
parentunicode-combining: don't limit ourselves to the (western) diacritics blocks (diff)
unicode-combine: remove utf8proc dependency
We only used utf8proc to try to pre-compose a glyph from a base and combining character. We can do this ourselves by using a pre-compiled table of valid pre-compositions. This table isn't _that_ big, and binary searching it is fast. That is, for a very small amount of code, and not too much extra RO data, we can get rid of the utf8proc dependency.
Diffstat (limited to 'meson_options.txt')
-rw-r--r--meson_options.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/meson_options.txt b/meson_options.txt
index cc601843..42a0663d 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1 +1,5 @@
-option('unicode-combining', type: 'feature', value: 'auto', description: 'Perform unicode combining')
+option('unicode-max-combining-chars', type: 'integer', value: 2,
+ description: 'Maximum number of combining characters to track per cell. A value of 0 completely disables unicode combining (this reduces the runtime memory footprint)')
+
+option('unicode-precompose', type: 'boolean', value: true,
+ description: 'Convert decomposed characters to precomposed. Ignored if "unicode-combining" has been disabled')