Re: [PATCH] [eqn]: Use XML character references in MathML output.

Nguyễn Gia Phong via discussion of the GNU roff typesetting system and related software <[email protected]> Wed, 25 Mar 2026 20:45:23 +0900
Newsgroups gmane.comp.printing.groff.general
Message-ID <[email protected]>
On 2026-03-25 at 20:20+09:00, Nguyễn Gia Phong wrote:
> * src/preproc/eqn/text.cpp: Remove struct map, entity_table,
>   and special_to_entity.  Include "unicode.h" header file.
>   (special_char_box::output): Instead of named entity reference,
>   print XML character reference with Unicode codepoint for MathML.
>
> References: https://www.w3.org/TR/REC-xml/#sec-references

I forgot to mention that the motivation behind this.  I'm using eqn
to generate my personal website and in Atom web feeds, only four named
entities (lt gt amp quot) are widely supported, while numerical
character references(&#...;) always work.
signature.asc (application/pgp-signature, 248 B)
-----BEGIN PGP SIGNATURE-----

iIQEABYKACwWIQSDiv4NVdwHTjYPlDqEtpzm8/a3ZwUCacPK1Q4cY254QGxvYW5n
Lm5ldAAKCRCEtpzm8/a3Z7AhAQD8mZivetGKLF4divo05K9mEAGoupFas5nI/+Vl
Vx0pBQEA7knHbZ0Be9ibYoHxL7Ox5tFv/dhuiyKeERdPNR8CNQg=
=PG6m
-----END PGP SIGNATURE-----