Path to this page:
./
textproc/p5-Text-CharWidth,
Perl5 wrappers around wcwidth(3) and family
Branch: CURRENT,
Version: 0.04nb16,
Package name: p5-Text-CharWidth-0.04nb16,
Maintainer: pkgsrc-usersThis 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.
Required to run:[
lang/perl5]
Master sites: (Expand)
Filesize: 8.19 KB
Version history: (Expand)
- (2024-11-16) Updated to version: p5-Text-CharWidth-0.04nb16
- (2023-07-06) Updated to version: p5-Text-CharWidth-0.04nb15
- (2022-06-28) Updated to version: p5-Text-CharWidth-0.04nb14
- (2021-05-25) Updated to version: p5-Text-CharWidth-0.04nb13
- (2020-09-01) Updated to version: p5-Text-CharWidth-0.04nb12
- (2019-08-11) Updated to version: p5-Text-CharWidth-0.04nb11
CVS history: (Expand)