pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/p5-Text-CharWidth Initial import of p5-Text-C...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fbacac931c25
branches:  trunk
changeset: 506276:fbacac931c25
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Fri Jan 13 18:17:23 2006 +0000

description:
Initial import of p5-Text-CharWidth-0.04:

This is a module to provide equivalent feature as wcwidth(3) and
wcswidth(3).  This also provides mblen(3) equivalent subroutine.

mbwidth() and mbswidth() are provided subroutines corresponding
wcwidth(3) and wcswidth(3) in C language.  The prefix "mb" expresses
that they handles "multibyte character" in C meaning, i.e., character
encoding specified by LC_CTYPE locale.

These subroutines are used to get the width of characters on terminal.
Though most characters have width of 1, there are exceptions.
Fullwidth characters are characters with width of 2.  Most of east
Asian characters such as Hiragana, Katakana, Hangul, Han Ideogram
are fullwidth.  Combining characters are characters with width of 0.
Unicode has many combining characters like diacritical marks.  There
are languages which need combining characters such as Thai and
Vietnamese.

Thus, if you would like to format international texts on terminal,
you will have to be aware of variation of character width and will
want to use this module.

diffstat:

 textproc/p5-Text-CharWidth/DESCR    |  20 ++++++++++++++++++++
 textproc/p5-Text-CharWidth/Makefile |  15 +++++++++++++++
 textproc/p5-Text-CharWidth/PLIST    |   1 +
 textproc/p5-Text-CharWidth/distinfo |   5 +++++
 4 files changed, 41 insertions(+), 0 deletions(-)

diffs (57 lines):

diff -r 9789479d74bf -r fbacac931c25 textproc/p5-Text-CharWidth/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/p5-Text-CharWidth/DESCR  Fri Jan 13 18:17:23 2006 +0000
@@ -0,0 +1,20 @@
+This is a module to provide equivalent feature as wcwidth(3) and
+wcswidth(3).  This also provides mblen(3) equivalent subroutine.
+
+mbwidth() and mbswidth() are provided subroutines corresponding
+wcwidth(3) and wcswidth(3) in C language.  The prefix "mb" expresses
+that they handles "multibyte character" in C meaning, i.e., character
+encoding specified by LC_CTYPE locale.
+
+These subroutines are used to get the width of characters on terminal.
+Though most characters have width of 1, there are exceptions.
+Fullwidth characters are characters with width of 2.  Most of east
+Asian characters such as Hiragana, Katakana, Hangul, Han Ideogram
+are fullwidth.  Combining characters are characters with width of 0.
+Unicode has many combining characters like diacritical marks.  There
+are languages which need combining characters such as Thai and
+Vietnamese.
+
+Thus, if you would like to format international texts on terminal,
+you will have to be aware of variation of character width and will
+want to use this module.
diff -r 9789479d74bf -r fbacac931c25 textproc/p5-Text-CharWidth/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/p5-Text-CharWidth/Makefile       Fri Jan 13 18:17:23 2006 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/01/13 18:17:23 wiz Exp $
+
+DISTNAME=       Text-CharWidth-0.04
+PKGNAME=        p5-${DISTNAME}
+CATEGORIES=    textproc perl5
+MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:=Text/}
+
+MAINTAINER=    tech-pkg%NetBSD.org@localhost
+HOMEPAGE=      http://search.cpan.org/dist/Text-CharWidth/
+COMMENT=       Perl5 wrappers around wcwidth(3) and family
+
+PERL5_PACKLIST=                auto/Text/CharWidth/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 9789479d74bf -r fbacac931c25 textproc/p5-Text-CharWidth/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/p5-Text-CharWidth/PLIST  Fri Jan 13 18:17:23 2006 +0000
@@ -0,0 +1,1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/01/13 18:17:23 wiz Exp $
diff -r 9789479d74bf -r fbacac931c25 textproc/p5-Text-CharWidth/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/p5-Text-CharWidth/distinfo       Fri Jan 13 18:17:23 2006 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/01/13 18:17:23 wiz Exp $
+
+SHA1 (Text-CharWidth-0.04.tar.gz) = b369ce7a531539ebf5b9cf1c1b09d66846f56aa4
+RMD160 (Text-CharWidth-0.04.tar.gz) = 044113e29630edee56af212d5e6b977ec929cac4
+Size (Text-CharWidth-0.04.tar.gz) = 8387 bytes



Home | Main Index | Thread Index | Old Index