import ports/textproc/p5-Text-CharWidth, comment/ok bluhm@

This module allows determining the display width of strings, mostly
useful with multibyte character encodings. It provides functionality
equivalent to C's wcwidth(3), wcswidth(3) and mblen(3).

While most characters have a width of 1, there are exceptions - many
east Asian characters have a width of 2, and some languages use Unicode
"combining characters" which have a zero width.
This commit is contained in:
sthen 2019-04-19 13:24:23 +00:00
parent 09e322589c
commit 4a177dcf95
4 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,16 @@
# $OpenBSD: Makefile,v 1.1.1.1 2019/04/19 13:24:23 sthen Exp $
COMMENT = get number of occupied columns of a string on terminal
DISTNAME = Text-CharWidth-0.04
CATEGORIES = textproc
# perl
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += c perl
MODULES = cpan
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (Text-CharWidth-0.04.tar.gz) = q97V9P3ZM46J/S8dgnHESYna5b9Qrs5BthedjiMHBPg=
SIZE (Text-CharWidth-0.04.tar.gz) = 8387

View File

@ -0,0 +1,7 @@
This module allows determining the display width of strings, mostly
useful with multibyte character encodings. It provides functionality
equivalent to C's wcwidth(3), wcswidth(3) and mblen(3).
While most characters have a width of 1, there are exceptions - many
east Asian characters have a width of 2, and some languages use Unicode
"combining characters" which have a zero width.

View File

@ -0,0 +1,9 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2019/04/19 13:24:23 sthen Exp $
${P5ARCH}/
${P5ARCH}/Text/
${P5ARCH}/Text/CharWidth.pm
${P5ARCH}/auto/
${P5ARCH}/auto/Text/
${P5ARCH}/auto/Text/CharWidth/
${P5ARCH}/auto/Text/CharWidth/CharWidth.so
@man man/man3p/Text::CharWidth.3p