From: "Daniel Bünzli" <daniel.buenzli@erratique.ch>
To: OCaml List <caml-list@inria.fr>
Cc: "David Kaloper Meršinjak" <dk505@cam.ac.uk>
Subject: [Caml-list] [ANN] Uucp 1.1.0
Date: Fri, 20 Nov 2015 18:38:57 +0000 [thread overview]
Message-ID: <C86615C1DC5548008EB5A5D3FDE5BEA3@erratique.ch> (raw)
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
reply other threads:[~2015-11-20 18:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=C86615C1DC5548008EB5A5D3FDE5BEA3@erratique.ch \
--to=daniel.buenzli@erratique.ch \
--cc=caml-list@inria.fr \
--cc=dk505@cam.ac.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox