DESCRIPTION

This module provides functions to treat half-width and full-width characters and display correct size of text in one line on terminals and mobile phones. You can know the visual width of any text and truncate text by the visual width. Now this module support flagged UTF-8 and tested only with Japanese.

This module is pure perl version of Text::VisualWidth. This is bit slow, but it's not require compiler.

Ambiguous Characters

This module treats ambiguous characters are half width by default.

And you can specify the behavior by the $Text::VisualWidth::PP::EastAsian flag expressly.

Note: If $Unicode::EastAsianWidth::EastAsian is true on compilation time, this module set $Text::VisualWidth::PP::EastAsian as true for backward compatibility.