BSD Ports

textproc/lua-utf8 0.1.5 NetBSD

UTF-8 module for Lua 5.x

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
mit
Categories
textproc, lua
Package size
25.0 KiB, 87.1 KiB installed

Description

This module adds UTF-8 support to Lua. It's compatible with Lua's own string module, and passes all string and pattern matching tests in Lua's test suite.

It also adds some useful routines against UTF-8 features:

  • a convenient interface to escape Unicode sequences in strings.
  • string insert/remove, since UTF-8 substring extract may be expensive.
  • calculate Unicode width, useful when implementing e.g. console emulator.
  • a useful interface to translate Unicode offsets and byte offsets.

Install

Binary package:

pkgin install lua51-utf8

From pkgsrc:

cd /usr/pkgsrc/textproc/lua-utf8 && make install clean

Dependencies

Run dependencies 1
Required by 1

Configuration

No options to configure.

Service scripts
none
Flavors
lua52-utf8-0.1.5, lua53-utf8-0.1.5, lua54-utf8-0.1.5, lua55-utf8-0.1.5