[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Support regarding input of unicode chars
From: |
Deri |
Subject: |
Re: Support regarding input of unicode chars |
Date: |
Wed, 08 Nov 2023 18:47:30 +0000 |
On Wednesday, 8 November 2023 07:29:49 GMT 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.
Hi Gustavo,
If you are going for terminal output, Branden has dealt with that. If you want
PDF or Postscript output, I'm afraid you will have to do a bit of work. The
problem is that the "Laplace transform" (U+2112) character is not present in
groff's symbol font, so you need to install a suitable font to supply the
glyph.
On my system I found the glyph in a font:-
/usr/share/fonts/opensymbol/opens___.ttf
Since it is a truetype font I had to convert it to a type 1 font with
fontforge and then run afmtodit to create a groff font file called OS. You may
be able to use the install-font.sh script available at:-
http://www.schaffter.ca/mom/mom-06.html
Although the font should be installed as a symbol font rather than a text font
and I'm not sure if the script handles that yet.
After installation this works:-
printf ".special OS\n\s'24'ℒ"|groff -k -ms -Tpdf > Laplace.pdf
The result is attached.
If you prefer I can send you the resulting fonts, plus instructions.
Cheers
Deri
Laplace.pdf
Description: Adobe PDF document