[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: [ANN] wcwidth 0.3 - Calculate number of character cells used by an Unicode rune
- From: Adrian Perez de Castro <aperez@...>
- Date: Fri, 15 Feb 2019 12:32:22 +0200
Hello,
Repository: https://github.com/aperezdc/lua-wcwidth
LuaRocks: luarocks install wcwidth
Changes from 0.2 to 0.3:
* Updated Unicode tables to version 11. This covers the new codepoints
added to the standard since 2016.
The lua-wcwidth module implements the wcwidth(3) function as specified by
the POSIX.1-2001 and POSIX.1-2008 specifications in pure Lua, without any
dependencies.
This function is mostly useful to determine how many “cells” a character
takes, in order to precisely write and position Unicode text content into
a terminal — or into any other output device using monospaced fonts.
Cheers,
-Adrián
Attachment:
pgp6KrtFydfXS.pgp
Description: PGP signature