Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Ian Stuart
December 14, 2005, 12:03 am
rate this thread
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 --
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.
- » Problem with body text extraction with HTML::Parser
- — Previous thread in » PERL Modules Announcements