[ANN] wcwidth 0.4 - Calculate number of character cells used by an Unicode rune

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ANN] wcwidth 0.4 - Calculate number of character cells used by an Unicode rune

Adrian Perez de Castro
Hello,

Repository: https://github.com/aperezdc/lua-wcwidth
LuaRocks: luarocks install wcwidth

Changes from 0.3 to 0.4:

 * Updated Unicode tables to version 12. This covers the new codepoints
   added to the standard during 2019.

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

signature.asc (201 bytes) Download Attachment