From 611b54fefc8a02f67cd59041c1795a083ac0bb4c Mon Sep 17 00:00:00 2001 From: eunhhu Date: Wed, 30 Sep 2026 13:19:01 +0100 Subject: Show what would act on a screen as a picture on every surface, and keep a value's bidi within it Speech wrote a value's C1 controls (U+009B is a CSI to some terminals), DEL, line separators and bidi overrides as they were; the CLI and the TUI wrote line separators (a pipe's reader may break its line there) and the controls that turn text around (a terminal then reverses the rest of its line, other values' cells too); the web page showed controls as they were and let a label's override reverse its badge. Now every surface shows controls, DEL, C1 and line and paragraph separators as pictures (vega_visible); a terminal's cells show embeddings, overrides and isolates as U+FFFD too (vega_cell); speech says a space for the one and nothing for the other; the page shows the pictures and isolates each value, while /screen's JSON keeps values as they are. screen_meaning checks the CLI, the TUI, speech and the JSON against that rule, and that nothing a value holds reaches any output as a control; the browser check sees the page show it. --- surfaces/pixels.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'surfaces/pixels.c') diff --git a/surfaces/pixels.c b/surfaces/pixels.c index d58d5b2..59d5d07 100644 --- a/surfaces/pixels.c +++ b/surfaces/pixels.c @@ -312,8 +312,7 @@ static bool set_type(const VegaGrid *grid, VegaFace *face, uint32_t *out, size_t for (size_t at = 0; at < t->length;) { uint32_t code; at += vega_decode(grid->text + t->at, t->length, at, &code); - code = vega_visible(code); - w.codes[count++] = code == 0x2028 || code == 0x2029 ? ' ' : code; /* one line: no breaks in it */ + w.codes[count++] = vega_visible(code); /* one line: no breaks in it */ } } if (j < n && grid->spans[w.order[j]].row == s->row && grid->spans[w.order[j]].column < end) -- cgit v1.2.3