caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] [ANN] Uucp 1.1.0
@ 2015-11-20 18:38 Daniel Bünzli
  0 siblings, 0 replies; only message in thread
From: Daniel Bünzli @ 2015-11-20 18:38 UTC (permalink / raw)
  To: OCaml List; +Cc: David Kaloper Meršinjak

Hello,

It's my pleasure to announce the release of Uucp 1.1.0.

This release adds support for the East Asian width [1] character property which can be useful as an heuristic to perform layout of East-Asian text on devices with fixed-width character advances like terminals.

To that effect a *non-standard*, heuristic function Uucp.Break.tty_width_hint was contributed by David Kaloper. This function sums up all the practical knowledge he gathered about Unicode rendering in various terminals while developing his notty library [2].

Folding Uucp.Break.tty_width_hint [3] over the scalar values of a (preferably NFC) Unicode string can be used as an estimate of the number of columns it will occupy in a terminal. Given the non-homogenous state of tty Unicode rendering the function is not totally foolproof; it will at least work well with alphabetic scripts and some of the East Asian scripts, but your CHEESE WEDGE may vary. See the detailed documentation David wrote in [3] for more information on that unsolvable problem.

Release notes: https://github.com/dbuenzli/uucp/blob/v1.1.0/CHANGES.md

Uucp provides efficient access to a selection of character properties of the Unicode character database.
Homepage: http://erratique.ch/software/uucp

Best,

Daniel

[1] http://www.unicode.org/reports/tr11/tr11-29.html
[2] https://github.com/pqwy/notty
[3] http://erratique.ch/software/uucp/doc/Uucp.Break.html#VALtty_width_hint


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-11-20 18:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-20 18:38 [Caml-list] [ANN] Uucp 1.1.0 Daniel Bünzli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).