Re: [eqn] Maps to symbol

Nguyễn Gia Phong via discussion of the GNU roff typesetting system and related software <[email protected]> Thu, 26 Mar 2026 13:55:31 +0900
Newsgroups gmane.comp.printing.groff.general
Message-ID <[email protected]>
On 2026-03-25 at 14:10:47+01:00, Morten Bo Johansen wrote:
> On 2026-03-25 Nguyễn Gia Phong wrote:
> > I want to be able to typeset the maps to symbol in arrow notation,
> > e.g. n ↦ n + 1.  The Unicode code point for the character is U+21A6.
> >
> > Please let me know what I can do to make it happen.
>
> This glyph is not included in the stock groff font files, so [...]
> you must convert and install [some font file], to a groff
> font file.  There is a script, install-font.sh [...].
> Take note of the name of the groff version of the
> font file.

Thanks, though I only use eqn for MathML,
so the font is not within my concern.

On 2026-03-25 at 14:10:47+01:00, Morten Bo Johansen wrote:
> Let's say the name is LinBiolinumRGR. Then the notation
>
> \f[LinBiolinumRGR]\[u21A6]\f[]
>
> will make the glyph appear in your document. [...]

On the other hand, \[uNNNN] does not work for MathML output.
I've revised my yesterday eqn patch to handle this case.
signature.asc (application/pgp-signature, 248 B)
-----BEGIN PGP SIGNATURE-----

iIQEABYKACwWIQSDiv4NVdwHTjYPlDqEtpzm8/a3ZwUCacS8RQ4cY254QGxvYW5n
Lm5ldAAKCRCEtpzm8/a3Z9kEAQCeeaydYm97/mlYfSaCLGIPA4B97tPZaiat+Eth
NNGw7QEAo17DmHAxa8AWreAgRCqq9lnl/ZFsqZj7ZiXe7UMsBAc=
=whw+
-----END PGP SIGNATURE-----