groff
[Top][All Lists]
Advanced

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

Re: [Groff] redefining symbols on a per-font basis


From: Peter Schaffter
Subject: Re: [Groff] redefining symbols on a per-font basis
Date: Thu, 12 Feb 2015 17:08:25 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

On 2/12/15, Werner LEMBERG <address@hidden> wrote:
> In case you want to follow Bringhurst everywhere, I guess you have to
> define a `.paren' macro anyways because `\,' and `\/' have no effect
> within a `.char' definition, IIRC.

With the mom macros, there's no need to define a macro because of
the '\,' '\/' problem.  The following works in .char definitions:

  .char ( (\*[FU1]\fP
  .char ) \fR\*[FU1])\fP

'FU' stands for Forward Units, and is used, along with 'BU' (Back
Units), for kerning on-the-fly between any pair of characters.
1 Unit=1/36m by default, but can be changed to any fraction you
like.  Thus, it's suitable for making the "italic correction" in
definitions such as the one above.

-- 
Peter Schaffter
http://www.schaffter.ca



reply via email to

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