[ANNOUNCE] MathML::Entities::Approximated (take II)

[ANNOUNCE] MathML::Entities::Approximated (take II)

am 13.12.2005 20:03:14 von Ian Stuart

Announcing the Perl Package MathML::Entities::Approximated (version
0.20) [Re-announced with complete details this time]

-- quote --
A subclass of MathML::Entities that supplies ASCII-approximate
characters for XHTML+MathML Named Entities.

XHTML+MathML named entities in the argument of name2approximated() are
replaced by the corresponding 7-bit ASCII character. Any entitiy which
cannot be approximated is removed.

$html = 'avancée';

# convert to HTML character reference. Standard MathML::Entities
$numeric = name2numbered($html) # avancée

# convert to standard ASCII
$ascii = name2approximated($html) # avancee

-- end quote --

Rational:
I created this package as I build databases that have entities in the
source data. MathML::Entities will convert that data into printable
formats, but I also wanted a simple ASCII version for the (English
Language) searched indexes.

Available from the main CPAN website now, and mirrors in due course.

--
Ian Stuart