[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] GNU troff in OpenBSD
From: |
Ingo Schwarze |
Subject: |
Re: [Groff] GNU troff in OpenBSD |
Date: |
Sun, 16 Oct 2011 16:04:30 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hi,
Werner LEMBERG wrote on Wed, Mar 30, 2011 at 09:31:02PM +0200:
> BTW, I'm not happy about your patch in `patch-src_roff_troff_env_cpp'.
For reference, that's
http://www.openbsd.org/cgi-bin/cvsweb/ports/ \
textproc/groff/patches/patch-src_roff_troff_env_cpp
> Such code doesn't belong into the binary but rather in GNU troff's
> start-up file, `troffrc'. Otherwise I fear I get bug reports why GNU
> troff behaves differently on OpenBSD... Please fix this.
I admit that patch is very ugly indeed.
The following works for our special purposes, seems less intrusive,
and allows to drop the fiddling with env.cpp.
Do you agree that's an improvement?
(No doubt it's still somewhat ugly, but it is needed to make sure
that all manuals look similar in style, and even more to allow
automated output comparisons, to avoid that mandoc drifts away
from groff regarding details of output formatting.
And at least people can easily disable these manipulations
when they want to do serious publishing work with groff.)
Of course, this is not useful upstream or on other platforms,
i'm just trying to minimize our local tweaks right now.
Thanks,
Ingo
$OpenBSD: patch-tmac_troffrc,v 1.1 2011/03/19 16:48:53 schwarze Exp $
--- tmac/troffrc.orig Fri Dec 31 08:33:09 2010
+++ tmac/troffrc Sun Oct 16 14:28:38 2011
@@ -37,10 +37,16 @@ troffrc!X100 troffrc!X100-12 troffrc!lj4 troff!lbp tro
.\" Set the hyphenation language to `us'.
.do hla us
.
-.\" Load hyphenation patterns and exceptions.
-.do hpf hyphen.us
-.do hpfa hyphenex.us
+.\" Disable hyphenation:
+.\" Do not load hyphenation patterns and exceptions.
+.\"do hpf hyphen.us
+.\"do hpfa hyphenex.us
.
+.\" Disable adjustment by default,
+.\" such that manuals look similar with groff and mandoc(1).
+.do ad l
+.do de ad
+..
.\" Handle paper formats.
.do mso papersize.tmac
.
- Re: [Groff] GNU troff in OpenBSD,
Ingo Schwarze <=