Re: [PATCH v2] [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]> Tue, 07 Apr 2026 17:58:00 +0900
Newsgroups gmane.comp.printing.groff.general
Message-ID <[email protected]>
On 2026-03-26 at 13:48+09:00, Nguyễn Gia Phong wrote:
> XML only defines four entities (< > & ") out of the box,
> others need to be declared in the document's DOCTYPE.
> For web feeds such as RSS and Atom, is is particularly cumbersome
> to define the math entities as these feeds are supposed
> to be stand-alone and thus the entity definitions have to be inlined.
>
> Therefore, character references are now used
> instead of entity references, making the MathML output
> directly embeddable into these feeds.  The entity table
> is no longer used and thus removed.
>
> * 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.
>   Add support for Unicode code sequence as an input character.
>
> References: https://www.w3.org/TR/REC-xml/#sec-references

Hi, I wonder if you've seen this patch.  Somehow <[email protected]>
is not forwarding replies to me and I have not been able to access
<https://lists.gnu.org> for a while now.
signature.asc (application/pgp-signature, 248 B)
-----BEGIN PGP SIGNATURE-----

iIQEABYKACwWIQSDiv4NVdwHTjYPlDqEtpzm8/a3ZwUCadTHGg4cY254QGxvYW5n
Lm5ldAAKCRCEtpzm8/a3Z/lJAQD8cYz/84vlpEOZAaV2xYfVXuwpBRmIMDiCeEFL
AF1JZAD+KrWODGaVzj/ZSrm/ZtxbbyLCr1PpN//HcjWPQaFgWg0=
=P08g
-----END PGP SIGNATURE-----