MathML::Entities::Approximate::getSet(aacute); # now returns 'z'
=head1 DESCRIPTION
MathML::Entities::Approximate is a content conversion filter for named
XHTML+MathML entities. There are over two thousand named entities in the
XHTML+MathML DTD, however only a fraction of them are variants on standard
ASCII characters.
A string is parsed and every Named Entity is converted to a reasonable ASCII (7-bit ASCII set), or removed from the string.
=head1 FUNCTIONS
There two functions, one of which is exported by default.
=over 4
=item * name2approximated
(Exported by default)
XHTML+MathML named entities in the argument of C<name2approximated()> are replaced by the corresponding 7-bit ASCII character. Any entitiy which cannot be approximated is removed.
=item * getSet
(Never Exported)
This method is provided to allow users to extend the internal C<%APPROXIMATES> lookup table: either alter an existing entry [for the life of the process] or add new entities.
Of course, for a large update to the lookup table, you have the option of:
%MathML::Entities::Approximate:APPROXIMATES = (
%MathML::Entities::Approximate:APPROXIMATES,
'foobar' => 'fb', # LOWERCASE WELL SCUNNERED
'FooBar' => 'FB', # UPPERCASE WELL SCUNNERED
'landrover' => 'landie', # LOWERCASE PROPER MOTOR
'LandRover' => 'Landie' # UPPERCASE PROPER MOTOR
);
=back
=head1 AUTHOR
Ian Stuart E<lt>Ian.Stuart@ed.ac.ukE<gt>
=head1 COPYRIGHT
Copyright (c) 2005 Ian Stuart. All rights reserved.
This library is free software; you can redistribute it and/or modify