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

Download:
Locale-Maketext-Utils-0.41.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  3
Open  4
View/Report Bugs
Source  

Normalization ^

Turn markup related characters into bracket notation.

Rationale

Allowing markup characters in the phrase is problematic for a number of reasons, including:

So we detect and modify them.

IF YOU USE THIS FILTER ALSO USE … ^

… THIS FILTER Locale::Maketext::Utils::Phrase::Norm::Ampersand.

This is not enforced anywhere since we want to assume the coder knows what they are doing.

possible violations ^

Contains markup related characters

Turns <>'" into appropriate bracket notation.

& is handled in its own driver.

possible warnings ^

consider if, instead of using straight double quotes, using “” is the right thing here (i.e. instead of bracket notation)

This is issued when " is encountered.

consider if, instead of using a straight apostrophe, using ‘’ for single quoting and ’ for an apostrophe is the right thing here (i.e. instead of bracket notation)

This is issued when ' is encountered.

syntax highlighting: