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:
parent
09e322589c
commit
4a177dcf95
16
textproc/p5-Text-CharWidth/Makefile
Normal file
16
textproc/p5-Text-CharWidth/Makefile
Normal 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>
|
2
textproc/p5-Text-CharWidth/distinfo
Normal file
2
textproc/p5-Text-CharWidth/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (Text-CharWidth-0.04.tar.gz) = q97V9P3ZM46J/S8dgnHESYna5b9Qrs5BthedjiMHBPg=
|
||||
SIZE (Text-CharWidth-0.04.tar.gz) = 8387
|
7
textproc/p5-Text-CharWidth/pkg/DESCR
Normal file
7
textproc/p5-Text-CharWidth/pkg/DESCR
Normal 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.
|
9
textproc/p5-Text-CharWidth/pkg/PLIST
Normal file
9
textproc/p5-Text-CharWidth/pkg/PLIST
Normal 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
|
Loading…
Reference in New Issue
Block a user