NAME

Text::Amuse::Preprocessor::TypographyFilters - Text::Amuse::Preprocessor's filters

DESCRIPTION

Used internally by Text::Amuse::Preprocessor.

FUNCTIONS

linkify($string);

Activate links in $string and returns it.

characters

Return an hashref where keys are the language codes, and the values an hashref with the definition of punctuation characters. Each of them has the following keys: ldouble, rdouble, lsingle, rsingle, apos, emdash, endash.

endash refers to a dash between digits.

specific_filters

Return an hashref where the key is the language codes and the value a subroutine to filter the line.

Here we put the routines which can't be abstracted away in a language-indipendent fashion.

specific_filter($lang)

Return the specific filter for lang, if present.

filter($lang)

Return a sub for the typographical fixes for the language $lang.

nbsp_filter($lang)

Return a sub (if the filter exists) to place non-breaking spaces in language-specific places.