monowind 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -47,10 +47,18 @@ defineMonoWind();
47
47
  the art and copy exactly what you see. Double- and triple-click select
48
48
  the element under the pointer — the word or the paragraph, as on any
49
49
  page — and drag extends word by word or paragraph by paragraph.
50
- `select="text"` selects the light DOM natively instead. In both modes
51
- a copy of light-DOM text is plain text laid out by the standard
52
- `innerText` rules (paragraphs separated by a blank line, table cells
53
- by tabs).
50
+ `select="text"` selects your elements' text instead, character by
51
+ character, the way a page does. In both modes the highlight is drawn
52
+ on the grid, cell for cell, as reverse video: each cell's colors swap,
53
+ so colored text selects as a band of its color. A copy of element
54
+ text is plain text laid out by the standard `innerText` rules
55
+ (paragraphs separated by a blank line, table cells by tabs).
56
+
57
+ Glyph widths follow the terminal convention: CJK, Hangul, and emoji
58
+ take two cells, everything else one, whatever the font draws — a
59
+ glyph the font lacks is scaled into its cells so the grid never
60
+ drifts. `clusterWidth`, `clusterAdvances`, `graphemes`, and
61
+ `textCells` are exported for code that lays out text of its own.
54
62
 
55
63
  ## Keyboard focus
56
64