[bug #68499] [PATCH] [eqn] use XML character references in MathML output

"G. Branden Robinson" <[email protected]> Sat, 4 Jul 2026 07:43:03 -0400 (EDT)
Newsgroups gmane.comp.printing.groff.bugs
Message-ID <[email protected]>
URL:
  <https://savannah.gnu.org/bugs/?68499>

                 Summary: [PATCH] [eqn] use XML character references in MathML
output
                   Group: GNU roff
               Submitter: gbranden
               Submitted: Sat 04 Jul 2026 11:42:57 AM UTC
                Category: Preprocessor eqn
                Severity: 1 - Wish
              Item Group: Feature change
                  Status: None
                 Privacy: Public
             Assigned to: gbranden
             Open/Closed: Open
         Discussion Lock: Unlocked
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sat 04 Jul 2026 11:42:57 AM UTC By: G. Branden Robinson <gbranden>

> 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.

See:

https://lists.gnu.org/archive/html/groff/2026-03/msg00109.html
https://lists.gnu.org/archive/html/groff/2026-03/msg00108.html
https://lists.gnu.org/archive/html/groff/2026-03/msg00113.html (patch v2)

At the very least, we need to do something about this:

https://lists.gnu.org/archive/html/groff/2026-04/msg00011.html


$ printf '.EQ\napprox\n.EN\n' | ./eqn -TMathML
.do if !dEQ .ds EQ
.do if !dEN .ds EN
.EQ
<math><mtext>\(~=</mtext></math>
.EN


Possibly a separate issue/ticket: support for GNU troff-style Unicode special
character escape sequences in eqn when outputting MathML.

https://lists.gnu.org/archive/html/groff/2026-03/msg00116.html
https://lists.gnu.org/archive/html/groff/2026-04/msg00009.html








    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68499>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCakjxxwAKCRCqLAuaBUf3
TvgFAQC1vZ40oTnAq1nE2fSwLDse921fKkI3OYT9iJa2lpFG1QD/ahewowAmqkr8
jr9z4vBbPninp13GecRs/uQiC7SiWQw=
=m2bP
-----END PGP SIGNATURE-----