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

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

Dependencies

Annotate this POD

CPAN RT

New  2
Open  4
View/Report Bugs
Source  

Normalization ^

Valid whitespace is a normal space or a non-break-space (literal (OSX: ⌥space) or via [output,nbsp]).

The only exception is that the initial space has to be a normal space (non-break-space there would imply formatting or partial phrase, ick).

Rationale

We want to be simple, consistent, and clear.

Tip: If you’re doing a single word(e.g. to indicate an action is happening) you might consider doing a non-break-space to the left of it:

    'Loading …' # i.e. Loading(OSX: ⌥-space)…

    'Loading[output,nbsp]…' # visually explicit

possible violations ^

None

possible warnings ^

multiple period/comma instead of ellipsis character

We want an ellipsis character instead of 3 periods (or 2 periods, 4 or 5 periods, or commas (yes I’ve seen translators do ‘..’, ‘,,,,’, etc and after inquiring ‘…’ was the correct syntax)).

These will be turned into an ellipsis character.

initial ellipsis should be preceded by a normal space

The string is modified with a corrected version.

initial ellipsis should be followed by a normal space or a non-break-space (in bracket notation or character form)

The string is modified with a corrected version.

final ellipsis should be preceded by a normal space or a non-break-space (in bracket notation or character form)

The string is modified with a corrected version.

final ellipsis should be followed by a valid punctuation mark or nothing

The string is modified with a corrected version.

medial ellipsis should be surrounded on each side by a parenthesis or normal space or a non-break-space (in bracket notation or character form)

The string is modified with a corrected version.

syntax highlighting: