discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: Ingo Schwarze <schwarze@usta.de>
To: discuss@mdocml.bsd.lv
Subject: Re: groff-1.20.1 patches for automatic comparisons
Date: Wed, 26 Jan 2011 20:24:18 +0100	[thread overview]
Message-ID: <20110126192418.GA2183@usta.de> (raw)
In-Reply-To: <20110125142702.GI65811@acme.spoerlein.net>

Hi Ulrich,

Ulrich Spörlein wrote on Tue, Jan 25, 2011 at 03:27:02PM +0100:
> On Mon, 24.01.2011 at 16:39:26 +0100, Ingo Schwarze wrote:

>> just for your information, in case you are doing automatic comparisons
>> of groff and mandoc output, here is the current version of the OpenBSD
>> groff-1.20.1 port i am using.  Even if you are not using OpenBSD, the
>> patches might be interesting.  In particular,
>>   groff/patches/patch-src_roff_troff_env_cpp

> Exactly what kinds of adjustments is this disabling?

Traditional roff has two registers for horizontal adjustment:
One to store the current current adjustment mode (left, right,
both, center) and one to switch adjustment on and off altogether
without changing the mode.  When adjustment is off, formatting
is the same as in "left" mode.  When filling is off, adjustment
is considered temporarily off as well.  The requests are:

.ad l   \" switch mode to left
.ad r   \" switch mode to right
.ad b   \" switch mode to both
.ad c   \" switch mode to center
.na     \" switch adjustment off
.ad     \" re-enable adjustment

Mandoc only supports the left mode, .ad and .na are ignored.

The patch changes groff to treat all of these commands as .na.

>>   groff/patches/patch-tmac_doc_tmac
>>   groff/patches/patch-tmac_troffrc
>> help a lot.

> Thanks, very useful tweaks.
> 
> Also, why are you patching doc-common and not simply using
> overrides in mdoc.local?

To leave mdoc.local untouched such that it can be used for
site-specific tweaks.  Buts that's not really important,
and i'm not feeling strongly about it.

Yours,
  Ingo
--
 To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv

      reply	other threads:[~2011-01-26 19:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-24 15:39 Ingo Schwarze
2011-01-25 14:27 ` Ulrich Spörlein
2011-01-26 19:24   ` Ingo Schwarze [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110126192418.GA2183@usta.de \
    --to=schwarze@usta.de \
    --cc=discuss@mdocml.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).