groff
[Top][All Lists]
Advanced

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

Re: [Groff] Status of the portability work, and plans for the future


From: Werner LEMBERG
Subject: Re: [Groff] Status of the portability work, and plans for the future
Date: Tue, 09 Jan 2007 10:54:39 +0100 (CET)

> >   U+23A2 LEFT SQUARE BRACKET EXTENSION
> >   U+23A5 RIGHT SQUARE BRACKET EXTENSION
> 
> W00t!  I googled for that and I think I found matches for *all* of
> them nearby, here:

Yep.  I think I have all of them in groff_char.

> .if '\*[.T]'dvi' \{\
> .  ftr CB CW
> .\}
> .
> .de SY
> .nh 
> .ad l
> .HP \w'\fB\\$1\ 'u
> .B \\$1
> ..
> .de YS
> .in
> .ad \na
> .hy 1
> ..

You've forgotten to store something in register `a'.

  .de SY
  .  nh
  .  nr a \n(.j
  .  ad l
  .  nr i \n(.i
  .
  .  HP \w'\fB\\$1\fP 'u
  .  B \\$1
  ..

> .de OP
> .ie \\n(.$-1 .RI "[\fB\\$1\fP" " \\$2" "]"
> .el .RB "[" "\\$1" "]"
> ..

I prefer that the argument of a flag is tied to the flag itself.

  .de OP
  .  ie \\n(.$-1 \
  .    RI "[\fB\\$1\fP" "\ \\$2" "]"
  .  el \
  .    RB "[" "\\$1" "]"
  ..

What about faking an italic correction (this is, inserting `\|') right
before the closing bracket?


    Werner




reply via email to

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