|
Posted by Ian Stuart on December 13, 2005, 7:03 pm
Please log in for more thread options
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 = '<strong>avancée</strong>';
# convert to HTML character reference. Standard MathML::Entities
$numeric = name2numbered($html) # <strong>avancée</strong>
# convert to standard ASCII
$ascii = name2approximated($html) # <strong>avancee</strong>
-- 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
|