mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-11 04:27:49 -05:00
This commit adds a new script, generate-wcwidth.py, that generates wcwidth tables from the bundled files (Unicode 14.0): * DerivedGeneralCategory.txt * EastAsianWidth.txt This commit also adds the functions my_wcwidth() and my_wcswidth() that replaces the system’s wcwidth()+wcswidth(), and uses the generated tables to map Unicode codepoints to widths. This is inspired by both XTerm’s wcwidth implementation, as well as https://github.com/jquast/wcwidth. Both of those are based on/inspired by https://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c
21 lines
1.2 KiB
Meson
21 lines
1.2 KiB
Meson
option('docs', type: 'feature',
|
||
description: 'Build and install documentation (man pages, example foot.ini, readme, changelog, license etc).')
|
||
|
||
option('themes', type: 'boolean', value: true,
|
||
description: 'Install themes (predefined color schemes)')
|
||
|
||
option('ime', type: 'boolean', value: true,
|
||
description: 'IME (Input Method Editor) support')
|
||
|
||
option('grapheme-clustering', type: 'feature',
|
||
description: 'Enables grapheme clustering using libutf8proc. Requires fcft with harfbuzz support to be useful.')
|
||
|
||
option('system-wcwidth', type: 'boolean', value: false,
|
||
description: 'Use the system’s (e.g. glibc or musl) wcwidth(). Foot’s builtin i susually more up-to-date with the latest Unicode specification, but using the system’s version reduces the size of the foot binary.')
|
||
|
||
option('terminfo', type: 'feature', value: 'enabled', description: 'Build and install foot\'s terminfo files.')
|
||
option('default-terminfo', type: 'string', value: 'foot',
|
||
description: 'Default value of the "term" option in foot.ini.')
|
||
|
||
option('custom-terminfo-install-location', type: 'string', value: '',
|
||
description: 'Path to foot\'s terminfo, relative to ${prefix}. If set, foot will set $TERMINFO to this value in the client process.')
|