[Heirloom] Using the Symbola font in Heirloom troff

2020-08-04 Thread T. Kurt Bond
(The heirloom-doctools README.md says to ask Heirloom doctools questions on this list.) I'd like to use the Symbola font in Heirloom troff. I tried the following: .do xflag 3 .\" fp 5 Optima Optima-Regular ttf .fp 5 Symbola S

Re: install-font.sh -P needs to allow dots in its argument.

2020-08-04 Thread Peter Schaffter
On Sun, Aug 02, 2020, T. Kurt Bond wrote: > The linux version of homebrew installs groff's data directory in > /home/linuxbrew/.linuxbrew/share/groff by default. > > I must have cargo culted the check_optarg without checking everything out > when I added the -P option. I've attached a patch to in

Re: [Heirloom] Using the Symbola font in Heirloom troff

2020-08-04 Thread Richard Morse
According to the Heirloom Troff manual, I think that you cannot just insert Unicode characters (although maybe if your LC* environment variables are set correctly, you can?). It says: > Both nroff and troff allow references to specific Unicode characters with the > \U'X' escape sequence; > it c

Re: [Heirloom] Using the Symbola font in Heirloom troff

2020-08-04 Thread T. Kurt Bond
And if I add "and explicit unicode character reference \U'1F0A1'" to the file, that character doesn't show up either. On Tue, Aug 4, 2020 at 2:47 PM Richard Morse wrote: > According to the Heirloom Troff manual, I think that you cannot just > insert Unicode characters (although maybe if your LC*

Re: [Heirloom] Using the Symbola font in Heirloom troff

2020-08-04 Thread Richard Morse
Huh. I’m afraid I’m out of my depth then; you might check and see if your LC_* environment variables are set to something incompatible with utf-8 (or, maybe, check and make sure the file in UTF-8, not UCS-16 or something if you’re on Windows), but hopefully someone with more experience and knowl

Re: Groff vs Heirloom troff (was Re: Quick question: how to do .index in groff?)

2020-08-04 Thread Dave Kemper
On 7/31/20, Peter Schaffter wrote: > Several years ago, I fielded the idea that, instead of chasing after > the Grail of paragraph-at-once, groff's line-formatting algorithm be > improved instead. I worked on systems that used the formatting > strategy I proposed > > https://lists.gnu.org/archi

Re: Groff vs Heirloom troff (was Re: Quick question: how to do .index in groff?)

2020-08-04 Thread Dave Kemper
On 7/31/20, Steve Izma wrote: > When I adjust the kerning (or mortising, if necessary) > in values of one-hundredth or one-thousandth of a point, Everything I've found online says that mortising is another (less common) term for kerning, but you're using them here as if they're different processe

Re: [Heirloom] Using the Symbola font in Heirloom troff

2020-08-04 Thread T. Kurt Bond
In Emacs M-x describe-coding-system tells me the coding system for saving the buffer is utf-8-unix. I don't have any LC_* environment variables set, but LANG=en_US.UTF-8. I'm not very knowledgeable about the insides of Unicode fonts, unfortunately. On Tue, Aug 4, 2020 at 4:27 PM Richard Morse w

Re: [Heirloom] Using the Symbola font in Heirloom troff

2020-08-04 Thread Richard Morse
Hm. Just for my edification, I tried a few things. I’m on a Mac, and I don’t know when I compiled Heirloom troff, but it was a year or two ago, so something things may be different. I downloaded the Symbola font from fontlibrary.org. The version I got was .ttf, not .otf. The various things tha

Re: \: re-enables hyphenation--should it?

2020-08-04 Thread Dave Kemper
On 7/31/20, Peter Schaffter wrote: > Surely the most useful and accurate way to describe \& is "a > zero-width, non-printing character." Agreed. A patch that changes the wording to just that is attached. The term in groff(7), "non-printable, zero-width glyph," was already close, but I changed i

Re: [Heirloom] Using the Symbola font in Heirloom troff

2020-08-04 Thread John Gardner
> The version I got was .ttf, not .otf I opened both the original OTF and the FontLibrary.org TTF in Glyphs ; the OTF has 12,589 glyphs, whereas the TTF only has 7,956 glyphs. Try the OTF version of Sym

Re: [Heirloom] Using the Symbola font in Heirloom troff

2020-08-04 Thread T. Kurt Bond
Thanks for the tip! As it turns out, I am using the OTF. On Wed, Aug 5, 2020 at 12:24 AM John Gardner wrote: > > The version I got was .ttf, not .otf > > I opened both the original OTF and the > FontLibrary.org > TTF in Gly

Re: [Heirloom] Using the Symbola font in Heirloom troff

2020-08-04 Thread John Gardner
Going from the fact that unimap.c uses an int for storing Uni

Re: [Heirloom] Using the Symbola font in Heirloom troff

2020-08-04 Thread T. Kurt Bond
Well, 0x fits in a unsigned short, two bytes. An unsigned int is 4 bytes, and 0x fits in it. I don't think that it is the size of the int that's the problem. On Wed, Aug 5, 2020 at 12:52 AM John Gardner wrote: > Going from the fact that unimap.c >

Re: [Heirloom] Using the Symbola font in Heirloom troff

2020-08-04 Thread T. Kurt Bond
Looking at the postscript output there is a "/uni1F0A1 9429 def" and a "/uni1F10A" in a "/Encoding-@15@36 [...] def"; is that part of the font machinery? (I'm sadly ignorant of PostScript, alas.) Looking at troff/troff.d/otf.c

Re: [Heirloom] Using the Symbola font in Heirloom troff

2020-08-04 Thread John Gardner
> Looking at the postscript output there is a "/uni1F0A1 9429 def" and a > "/uni1F10A" in a "/Encoding-@15@36 [...] def"; is that part of the font > machinery? (I'm sadly ignorant of PostScript, alas.) Kind of. PostScript predates Unicode, sadly, and has limits on how many glyphs can be mapped to