groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Support regarding input of unicode chars


From: G. Branden Robinson
Subject: Re: Support regarding input of unicode chars
Date: Wed, 8 Nov 2023 11:56:20 -0600

Hi Gustavo,

At 2023-11-08T07:29:49+0000, Gustavo Calvo wrote:
> Hi! Is there a way to use character U+2112 in my document? So far I
> have tried `\[u2112]`, which does seem to work for characters like
> `\[u0394]` that are listed in the groff_char manual.

Sure.  There are a couple of approaches.

One is to use groff's special character escape sequences as you showed
above.

Like this:

$ cat ATTIC/2112a.groff
They've taken care of everything!
.rj
\[em] \[u2112]\[u2112]\[u2118]
.pl \n[nl]u
$ nroff ATTIC/2112a.groff

Another approach is to put UTF-8 in your source document, and then use
the '-k' option to nroff or groff to run preconv(1).

$ cat ATTIC/2112b.groff
They've taken care of everything!
.rj
— ℒℒ℘
.pl \n[nl]u
$ nroff -k ATTIC/2112b.groff

In either case you get the same output.

--snip---
They’ve taken care of everything!
                                                            — ℒℒ℘
--end snip---

Does this work for you?  Is there anything else we can help with?

Regards,
Branden

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]