BSD Ports

textproc/p5-MathML-Entities 0.17_1 DragonFly

Convert XHTML+MathML Named Entities to Numeric Character References

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
Categories
math, perl5, textproc, www
Package size
14.3 KiB, 61.6 KiB installed

Description

MathML::Entities a content conversion filter for named XHTML+MathML entities. There are over two thousand named entities in the XHTML+MathML DTD. All the Entities defined in the XHTML+MathML DTD except the five "safe" ones (<, >, &, ", '), will be converted to the equivalent numeric character references or to utf-8 characters. Named entities which are not in the XHTML+MathML DTD are escaped. This makes the resulting XHTML (or XHTML+MathML) safe for consumption by non-validating XML parsers.

Unlike, HTML::Entities, the mapping between MathML named entities and codepoints is many-to-one. Therefore, there's no particular sense in having an inverse function, which takes codepoints to named entities.

Based on: HTML::Entities by Koichi Taniguchi <[email protected]>

In the other systems

SystemPortVersion
DragonFlytextproc/p5-MathML-Entities0.17_1
FreeBSDtextproc/p5-MathML-Entities0.20

Install

Binary package:

pkg install p5-MathML-Entities

From DPorts:

cd /usr/dports/textproc/p5-MathML-Entities && make install clean

Dependencies

Run dependencies 1

No port depends on this one.