groff
[Top][All Lists]
Advanced

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

Re: [Groff] Re: Resource forks in OSX


From: Alejandro López-Valencia
Subject: Re: [Groff] Re: Resource forks in OSX
Date: Tue, 10 Sep 2002 20:05:21 -0500

Rob Scovell wrote:
> Thank you, Alejandro.
>
> On Wednesday, September 11, 2002, at 10:53  AM, Alejandro
> López-Valencia wrote:
>
[snip]
> (Normally, the mapfile gives pairs PS-name groff-name but
> IPA is so nasty it's better to leave this issue aside at this stage)."

Ahh yes. IPA is crufty. As well, most glyphs in IPA have no Postscript
name (as per Adobe), not appear in Unicode either (at least Unicode 3.2,
the last version upon which I have laid my eyes).

> I am referring to the chars in my test file by number:
>
> [strathfillan:~/groff_fonts] rob% cat testipa.gr
> .ft IPA
> \N'123'
> \N'68'
> [strathfillan:~/groff_fonts] rob%

This won't work, like ever :). The request .ft does a font change (that
is mounts a font in old otroff jargon) and particualrly returns to the
default font if called without an argument, but nothing else. You either
want something like:

If using groff 1.17.2

\f[IPA]
\N'123'
\N'68`
\fP

or, if using 1.18.[01] (or later, that is a CVS snapshot)

\f[IPA]
\N'123'
\N'68'
\f[]

As well, you can give the glyphs more significant names:

.char ehook \N'234'

to say anything.

>> Second, as this is definitely not a text font, and therefore it
>> doesn't have the four different styles as expected (roman, bold,
>> italic, bolditalic) you should generate the metrics file as
>> *special* and add it as such in the DESC file.
>>
>
> ¿Que? I have RTFM and I can't see how to do this. I have put
> 'special' in the font file and that doesn't work:

Well, this would work if you defined names for the glyphs in the font
that then you call as \[whatever]. Not necessarily in the metrics file
as you can write a tmac file and load it from troffrc (see latin1.tmac
and the judicious use of .char and related requests). In this particular
case, you add it to the DESC file changing the fonts line from:

fonts 9 0 0 0 0 0 SS S ZD ZDR

to:

fonts 10 0 0 0 0 0 SS S ZD ZDR IPA

Then when you type \[ehook], grops searches ehook in the special fonts
and find it in IPA.


reply via email to

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