Click here to get back home

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

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
[ANNOUNCE] MathML::Entities::Approximated (take II) Ian Stuart 12-13-2005
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&eacute;e</strong>';

# convert to HTML character reference. Standard MathML::Entities
$numeric = name2numbered($html) # <strong>avanc&#x000E9;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


Similar ThreadsPosted
How can I make entities Not expanded by XML::DOM December 12, 2006, 11:28 am
HTML::TreeBuilder eating my entities using perl 5.8.x May 18, 2005, 3:08 am
ANNOUNCE: PDL-2.4.3 August 22, 2006, 7:46 am
[ANNOUNCE] MultiProcFactory 0.01 September 20, 2004, 6:29 am
ANNOUNCE: WWW::Webrobot 0.50 September 29, 2004, 10:46 am
ANNOUNCE: WWW::Webrobot 0.51 October 1, 2004, 9:54 am
ANNOUNCE: tclperl-3.1 October 11, 2004, 4:56 am
[ANNOUNCE] Net::FTPSSL 0.03 September 5, 2005, 4:54 pm
[ANNOUNCE] POD2::IT 0.09 September 8, 2005, 11:06 am
ANNOUNCE: Teradata::SQL v0.01 November 17, 2005, 3:23 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap