XyScript v0.1.7 is released. The binary downloads are here:
https://ammaze.net/xyscript
Please back up your startup.xpl and other personal configuration files
before unzipping the new binary.
New in this release:
- Multi-layout keyboard facility for immediate switching between KBD files (alternate languages, special-purpose layouts, Vim-style modal editing). New commands:
- `ADDKBD <name> <file>` — load a .kbd into a resident named slot
- `KBDMODE <name>` — switch the operative keyboard instantly
- `$KBDMODE` / `$KBDMODES` for scripts (returns current mode / all modes)
- Tools that implement Vim-style modal editing: A suite of two KBD files (`./examples/vim-nav.kbd`, `./examples/vim-insert.kbd`) and a related libraryN` / `UNDOEND`, to facilitate single-stroke undo, and `DIB` / `DIQ` to automate selecting text enclosed in brackets or quotes
- Added option to use proportional fonts in the editor pane: `EDPROPFAMILY <font name>` sets the font; `EDPROPFONTS` opens a font picker; `USEFONT mono|prop|auto` sets the font mode for the current document (`auto` usessole, and dir|grep output)
- XPL function ReadFile()/RF() and verb WriteFile/WF now support reading and writing text files encoded in legacy code pages and binary files, as wellmal bytes. For details, command `REF ReadFile` and `MAN reading and writing
- Added library (xyscript.lib) routine VIEWIMG: view image file in the Preview pane
- New command `COLORNAMES` lists built-in X11-style color names (about 650 in all; source: http://web.njit.edu/~walsh), with color swatches; the listing can be filtered, e.g. `COLORNAMES red` (replaces library routine of
- Named colors can now be used in place of RGB or HSL values in commands that set colors; e.g. `URLFGCOLOR blue`.
- New command `MDALL <BO|IT|UL|BU|BI|RV>|<r g b>|<color name> <text>` sets text mode/color for all instances of <text>. `MDALL/B` sets background color; `MDALL/R|/P` operates on all strings matching a regular _expression_. Undo with `MDALL off <text>|<regex>`
- `RUNHERE` now passes arguments to fenced code via positionals $1, $2, ...
- Foreground and background colors of Preview pane are now adjustable via new commands `PVFGCOLOR <r g b>` and `PVBGCOLOR <r g b>` (read back with special variables $PVFGCOLOR and $PFBGCOLOR)
- Expanded regex engine now includes support for most Perl-compatible regular expressions, including lookarounds and back references. Use switch /P in
- New command `HLCOLOR/BG <kind> r g b` sets background colors for syntax highlighting
- New command `HLMODE <kind> IT|BO|BI|UL|BU|RV` enables incorporatingrline, reverse-video) for syntax higlighing rules
- New syntax highlighting paradigm enables highlighting for big files
- Improved Typst-to-text conversion for HELP|REF results
--
Carl Distefano
cld@xxxxxxxxxx