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]> Wed, 29 Apr 2026 11:56:58 +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 Gentle ping!