Port details on branch 2022Q2 |
- p5-Text-CharWidth Get number of occupied columns of a string on terminal
- 0.04_2 textproc =2 0.04_2Version of this port present on the latest quarterly branch.
- Maintainer: perl@FreeBSD.org
- Port Added: 2008-08-31 23:07:56
- Last Update: 2022-09-07 21:58:51
- Commit Hash: fb16dfe
- People watching this port, also watch:: font-misc-meltho, xclock, py39-pycparser, freeimage, font-bh-lucidatypewriter-100dpi
- Also Listed In: perl5
- License: ART10 GPLv1+
- WWW:
- https://metacpan.org/release/Text-CharWidth
- Description:
- This module supplies features similar as wcwidth(3) and wcswidth(3) in C
language.
Characters have its own width on terminal depending on locale. For example,
ASCII characters occupy one column per character, east Asian fullwidth
characters (like Hiragana or Han Ideograph) occupy two columns per
character, and combining characters (apperaring in ISO-8859-11 Thai,
Unicode, and so on) occupy zero columns per character. mbwidth() gives the
width of the first character of the given string and mbswidth() gives the
width of the whole given string.
The names of mbwidth and mbswidth came from "multibyte" versions of wcwidth
and wcswidth which are "wide character" versions.
mblen(string) returns number of bytes of the first character of the string.
Please note that a character may consist of multiple bytes in multibyte
encodings such as UTF-8, EUC-JP, EUC-KR, GB2312, or Big5.
mbwidth(string) returns the width of the first character of the string.
mbswidth(string) returns the width of the whole string.
Parameters are to be given in locale encodings, not always in UTF-8.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- p5-Text-CharWidth>0:textproc/p5-Text-CharWidth
- To install the port:
- cd /usr/ports/textproc/p5-Text-CharWidth/ && make install clean
- To add the package, run one of these commands:
- pkg install textproc/p5-Text-CharWidth
- pkg install p5-Text-CharWidth
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: p5-Text-CharWidth
- Flavors: there is no flavor information for this port.
- distinfo:
- SHA256 (Text-CharWidth-0.04.tar.gz) = abded5f4fdd9338e89fd2f1d8271c44989dae5bf50aece41b6179d8e230704f8
SIZE (Text-CharWidth-0.04.tar.gz) = 8387
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- perl5>=5.32.r0<5.33 : lang/perl5.32
- Runtime dependencies:
-
- perl5>=5.32.r0<5.33 : lang/perl5.32
- This port is required by:
- for Build
-
- multimedia/gtk-youtube-viewer
- textproc/p5-Text-UnicodeBox
- textproc/p5-Text-WrapI18N
- for Run
-
- multimedia/gtk-youtube-viewer
- textproc/p5-Text-UnicodeBox
- textproc/p5-Text-WrapI18N
Configuration Options:
- No options to configure
- Options name:
- textproc_p5-Text-CharWidth
- USES:
- perl5
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|