GVT-12 Draw and size emoji by the cells they take #24
Loading…
Reference in a new issue
No description provided.
Delete branch "GVT-12-grapheme-cells"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
MemScreen kept one rune per cell and dropped SetContent's combining runes, so an emoji with a skin tone or a ZWJ family came out split, and every emoji drew one column narrower than the terminal shows it. A cell now holds its whole cluster (new Text field); a wide one takes the next cell too, as in tcell, and writing over either half blanks the other. ToANSI, Snapshot and StyledSnapshot write each cluster once. New: MemScreen.Cell (tcell's GetContent shape) and Session.Screen, so a host can copy the frame onto its own tcell screen without an ANSI round trip.
Column widths (ComputeWidths, FormatRow, the tree's name column, the key pop-up) count screen columns through the new core.Width instead of runes, so a row with 😀 no longer runs into the next column. Grid, GetContent and ParseANSI are unchanged. fzt-terminal and fzt-automate tests pass against this branch.
PR 1 of 3 for the gvoice-tui emoji palette command (fzt, fzt-terminal, gvoice-tui).
Work package: https://openproject.home.romaine.life/wp/GVT-12
merge-queue stopped this at
fba6f6a: CI failed: Suite go / check-format (pull_request). Push a fix, or once it is fixed outside this pull request, remove and re-add thequeuelabel.GVT-12 MemScreen holds whole grapheme clusters, wide ones in two cellsto GVT-12 Draw and size emoji by the cells they takemerge-queue stopped this at
019f68a: CI failed: Suite go / check-format (pull_request). Push a fix, or once it is fixed outside this pull request, remove and re-add thequeuelabel.