[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] unicode characters in macro names?
From: |
Ralph Corderoy |
Subject: |
Re: [Groff] unicode characters in macro names? |
Date: |
Thu, 11 Dec 2014 09:56:24 +0000 |
Hi Dorai,
> Is this planned? Section 5.4 of the manual suggests that "almost any
> printable character" can be used, with the exception of spaces and
> such, but I found that even an ordinary-looking character like the
> pilcrow (U+00b6) creates error.
What encoding is your input? Can you give an example? This worked for
me.
$ nroff
.pl 1
.de ¶
.ce
..
.¶
foo
^D
foo
$
Now, that's actually two bytes as far as nroff is concerned, UTF-8
encoding here means it gets 0xc2 0xb6. But I can give it the single
0xb6 too and it still works.
$ printf '%s\n' '.pl 1' '.de @' .ce .. .@ foo |
> perl -pe 's/@/\xb6/g' |
> nroff
foo
$
Cheers, Ralph.