[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] underlining
From: |
Bernd Warken |
Subject: |
Re: [Groff] underlining |
Date: |
Tue, 8 Jul 2014 22:08:43 +0200 |
> Von: "Bernd Warken" <address@hidden>
>
> 5) Macro:
> .\" .UNDERLINE before underlined after
> .de UNDERLINE
> . ie n \\$1\fI\\$2\fP\\$3
> . el \\$1\Z'\\$2'\v'.25m'\D'l \w'\\$2'u 0'\v'-.25m'\\$3
> ..
I now know, where I got the `troff' part `.el' from.
This macro definition is part of the `ms' macro package, it
is in tmac/s.tmac (ms):
.de UL
\Z'\\$1'\v'.25m'\D'l \w'\\$1'u 0'\v'-.25m'\\$2
..
It can be improved for using the information outside of `ms'.
Unfortunately `doclifter' mostly does not accept `.de'. So
using a new `.de' definition would not often be accepted by
`doclifter'.
I just want to publish documentation in `groff.7'
about using possible underline facts without using `.de',
I would pretend to use only 2-letter-strings `.ds xy'.
Something like that:
.\" before, not underlined, choose \& when empty
.ds u1 before
.\" this is underlined, choose \& when empty
.ds u2 within
.\" after, not underlined, choose \& when empty
.ds u3 after
.ie n n-\*(u1\fI\*(u2\fP\*(u3
.el t-\*(u1\Z'\*(u2'\v'.25m'\D'l \w'\*(u2'u 0'\v'-.25m'\*(u3
Because of `doclifter', no one ever should create language
additions. `doclifter' is so high that it can destroy all modern
`groff' possibilities without any problems.
`doclifter' stays fixed at the history, where computers were so
small that only 2 character abbreviations could be used with
the absolutely holy \*(xy writing.
Bernd Warken
###### Jokes, forbidden to read them from all 4 computers in the head!
####### How about using the brain instead and ignore forbiddance?
Otherwise one prays: "Hail to the Sith Lord from above!".
Remember that the Jedis taught that fear is the first step
towards the dark side of the `force'. And people fear the
lot, because they still have living parts, so that they cannot
be Borg (see 'We are the Borg 2013', etc.)! Resistance is futile!
## end of Jokes
Bernd Warken
- Re: [Groff] underlining, (continued)
- Re: [Groff] underlining, Carsten Kunze, 2014/07/08
- Re: [Groff] underlining, Mike Bianchi, 2014/07/08
- Re: [Groff] underlining, Carsten Kunze, 2014/07/08
- Re: [Groff] underlining, Carsten Kunze, 2014/07/09
- Re: [Groff] underlining, Carsten Kunze, 2014/07/09
Re: [Groff] underlining, Werner LEMBERG, 2014/07/08
Re: [Groff] underlining,
Bernd Warken <=