Daniel Muey > Locale-Maketext-Utils > Locale::Maketext::Utils::Phrase::Norm::WhiteSpace



Annotate this POD


New  5
Open  4
View/Report Bugs

Normalization ^

The only single white space characters allowed are normal space and non-break-space.


That being the case we simplify consistently by using single space and non-break-space characters inside the string (and the beginning if it starts with an ellipsis).

possible violations

Invalid whitespace-like characters

The string contains white space characters besides space and non-break-space, invisible characters, or control characters.

These will be turned into “[comment,invalid char UxNNNN]” (where NNNN is the Unicode code point) so you can find them visually.

Beginning white space

These are removed.

This accounts for strings beginning with an ellipsis which should be preceded by one space.

Beginning ellipsis space should be a normal space

If a string starts with an ellipsis it should be a normal space. A non-break-space implies formatting or concatenation of 2 partial phrases, ick!

Trailing white space

These are removed.

Multiple internal white space

These are collapsed into a single space.

possible warnings


syntax highlighting: