status: final (2020-07-30)
See also SRFI 13: String Libraries, SRFI 159: Combinator Formatting, and SRFI 165: The Environment Monad.A library of procedures for formatting Scheme objects to text in various ways, and for easily concatenating, composing and extending these formatters efficiently without resorting to capturing and manipulating intermediate strings.
This SRFI is an updated version of SRFI 159, primarily with the difference that state variables are hygienic.
Summary of differences from SRFI 159:
written-shared, pretty-sharedas-italic, as-color, as-true-color, on-color background variants, and pretty-with-colorambiguous-is-wide? state variable and string-terminal-width/wide utilitysubstring/width state var for width-aware substring operations, with substring-terminal-width(/wide) utilitiessubstring/preserve state var used in trimming, with substring-terminal-preserve utilitypretty-environment state variableas-unicode to terminal-awareupcased and downcased