1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-19 19:31:49 +03:00
wezterm/test-data
Wez Furlong 225e7a1243 introduce unicode_version config
This is a fairly far-reaching commit. The idea is:

* Introduce a unicode_version config that specifies the default level
  of unicode conformance for each newly created Terminal (each Pane)
* The unicode_version is passed down to the `grapheme_column_width`
  function which interprets the width based on the version
* `Cell` records the width so that later calculations don't need to
  know the unicode version

In a subsequent diff, I will introduce an escape sequence that allows
setting/pushing/popping the unicode version so that it can be overridden
via eg: a shell alias prior to launching an application that uses a
different version of unicode from the default.

This approach allows output from multiple applications with differing
understanding of unicode to coexist on the same screen a little more
sanely.

Note that the default `unicode_version` is set to 9, which means that
emoji presentation selectors are now by-default ignored.  This was
selected to better match the level of support in widely deployed
applications.

I expect to raise that default version in the future.

Also worth noting: there are a number of callers of
`unicode_column_width` in things like overlays and lua helper functions
that pass `None` for the unicode version: these will assume the latest
known-to-wezterm/termwiz version of unicode to be desired. If those
overlays do things with emoji presentation selectors, then there may be
some alignment artifacts. That can be tackled in a follow up commit.

refs: #1231
refs: #997
2021-11-25 09:00:45 -07:00
..
blocks.py improve 1/8th block drawing 2021-06-12 10:04:08 -07:00
box.txt add some test data files 2021-06-26 22:58:42 -07:00
braille-all-chars.txt Add test-data files for braille characters 2021-07-08 09:30:27 -07:00
braille-wezterm-logo.txt Add test-data files for braille characters 2021-07-08 09:30:27 -07:00
custom-powerline-symbols.txt Improve powerline filled semicircle custom glyphs 2021-11-12 18:38:11 -08:00
emoji-presentation.sh introduce unicode_version config 2021-11-25 09:00:45 -07:00
emoji-test.txt wezterm: improve shaping of emoji 2020-11-23 13:45:38 -08:00
kitty-png.py incomplete, basic implementation of kitty image protocol 2021-07-28 09:04:52 -07:00
legacy-box.txt add some test data files 2021-06-26 22:58:42 -07:00
light-lines-vs-heavy-lines.txt Add light line vs heavy line test data file 2021-07-07 13:26:23 -07:00
notcurses-gfx.txt Add graphic block output from notcurses-info 2021-08-03 21:59:00 -07:00
styles.txt fonts: improve cap-height and use_cap_height_to_scale_fallback_fonts 2021-10-02 18:23:51 -07:00
underlines.sh Add underline test script 2021-04-30 09:20:08 -07:00
unicode-dump.py more box drawing glyphs 2021-06-25 09:58:51 -07:00
width.sh test-data: add text from #614 to width script 2021-05-01 19:50:31 -07:00