From MAILER-DAEMON Mon Jan 02 15:47:55 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1cO9WN-0000Tg-I5
	for mharc-groff@gnu.org; Mon, 02 Jan 2017 15:47:55 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:39567)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <SRS0=XU4asg=YQ=schaffter.ca=peter@eigbox.net>)
	id 1cO9WL-0000SG-0v
	for groff@gnu.org; Mon, 02 Jan 2017 15:47:54 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <SRS0=XU4asg=YQ=schaffter.ca=peter@eigbox.net>)
	id 1cO9WG-0004gS-3L
	for groff@gnu.org; Mon, 02 Jan 2017 15:47:53 -0500
Received: from bosmailout01.eigbox.net ([66.96.188.1]:38713)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71)
	(envelope-from <SRS0=XU4asg=YQ=schaffter.ca=peter@eigbox.net>)
	id 1cO9WF-0004fg-V7
	for groff@gnu.org; Mon, 02 Jan 2017 15:47:48 -0500
Received: from bosmailscan11.eigbox.net ([10.20.15.11])
	by bosmailout01.eigbox.net with esmtp (Exim) id 1cO92o-0001C0-DK
	for groff@gnu.org; Mon, 02 Jan 2017 15:17:22 -0500
Received: from [10.115.3.33] (helo=bosimpout13)
	by bosmailscan11.eigbox.net with esmtp (Exim) id 1cO92o-0008AZ-9K
	for groff@gnu.org; Mon, 02 Jan 2017 15:17:22 -0500
Received: from bosauthsmtp14.yourhostingaccount.com ([10.20.18.14])
	by bosimpout13 with 
	id TYHH1u00D0JCtq201YHLXW; Mon, 02 Jan 2017 15:17:22 -0500
X-Authority-Analysis: v=2.1 cv=W4q2VHmk c=1 sm=1 tr=0
	a=AnsiuLKgxXFeB68GILQVjQ==:117 a=EbA0KxhdGGuA+2zLGBEgdg==:17
	a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=kj9zAlcOel0A:10
	a=IgFoBzBjUZAA:10 a=g_SW5-S5AAAA:8 a=GsgvgsvLz_nteZx5MxsA:9
	a=-lf08emIrU4LiW_7:21 a=IJpDSC2SwEf4gtgZ:21 a=CjuIK1q_8ugA:10
	a=zQDKbV1y6e_a9NbkwXG_:22
Received: from 206-47-112-74.dsl.ncf.ca ([206.47.112.74]:61283 helo=augustus)
	by bosauthsmtp14.eigbox.net with esmtpsa
	(TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim) id 1cO92j-0006LU-HC
	for groff@gnu.org; Mon, 02 Jan 2017 15:17:17 -0500
Received: from peter by augustus with local (Exim 4.82)
	(envelope-from <peter@schaffter.ca>) id 1cO92h-0002L1-4W
	for groff@gnu.org; Mon, 02 Jan 2017 15:17:15 -0500
Date: Mon, 2 Jan 2017 15:17:15 -0500
From: Peter Schaffter <peter@schaffter.ca>
To: groff@gnu.org
Message-ID: <20170102201714.GA8773@augustus>
Mail-Followup-To: Peter Schaffter <peter@schaffter.ca>, groff@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.21 (2010-09-15)
X-EN-UserInfo: de950a90bfbefba2fd690f5ecdd2f718:931c98230c6409dcc37fa7e93b490c27
X-EN-AuthUser: peter@schaffter.ca
Sender: Peter Schaffter <peter@schaffter.ca>
X-EN-OrigIP: 206.47.112.74
X-EN-OrigHost: 206-47-112-74.dsl.ncf.ca
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 66.96.188.1
Subject: [Groff] Flexible whitespace, columns, and the .h register
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <groff.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/groff>,
	<mailto:groff-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/groff/>
List-Post: <mailto:groff@gnu.org>
List-Help: <mailto:groff-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/groff>,
	<mailto:groff-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 02 Jan 2017 20:47:54 -0000

I've been putting off implementation of flexible vertical whitespace
in the mom macros for a long time because my intuition told me that,
for something so conceptually simple, the details were going to be a
nightmare.  Well, I got them all worked out for non-columnar docs,
then ran into a hitch.  I'm using the .h register to determine the
space between the last printed text line and the footer trap, and
it works perfectly for non-columnar docs.  However, when setting
two-column text, if the first column is longer than the second, the
.h of the first column "sticks" because .h isn't writable.

Conceptually, can anyone think of another way to get the position
that would be reported by .h without actually using .h?  The nl
register looks like the obvious choice, but nl counts empty lines,
making it unusable.  So far, my attempts to get around that have
failed.

FWIW, the strategy I'm using is to collect strings on a first pass
that contain the amount of whitespace before the footer trap divided
by the number of flexes (flexible vertical whitespaces) on the page.
The flex-space is applied during a second pass.  At the top of the
FOOTER macro, before anything else, I have

.de FOOTER
.nr flex:target-pos \\n[.p]+\\n[#VARIABLE_FOOTER_POS]-1
.nr flex:current-pos \\n[.h]-\\n[.v]
.nr flex:diff \\n[flex:target-pos]-\\n[flex:current-pos]
.if (\\n[flex:diff]%2)=1 .nr flex:diff -1
.if \\n[flex-spaces] \{\
. nr flex-space:\\n[flex]@\\n[#COL_NUM] \\n[flex:diff]/\\n[flex-spaces]
. if dPDF.EXPORT \
.   tm .ds flex-space:\\n[flex]@\\n[#COL_NUM] \\n[flex-space:\\n[flex]@\\n[#COL_NUM]]u
.\}
.\" Remainder of footer
..

#VARIABLE_FOOTER_POS is always negative (the bottom margin that
moves up the page if there are footnotes).  "-1" is because the
footer trap is always 1 unit lower than visual bottom margin.
"flex-spaces" is the number of times a flex directive has been
inserted into the text of the current page.  "dPDF.EXPORT" because
I'm piggybacking on Deri's pdfmom, which uses PDF.EXPORT
during the first pass to collect strings for forward references.

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


From MAILER-DAEMON Tue Jan 03 08:01:30 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1cOOiY-0006IQ-S2
	for mharc-groff@gnu.org; Tue, 03 Jan 2017 08:01:30 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:57786)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1cOOiT-0006HG-GN
	for groff@gnu.org; Tue, 03 Jan 2017 08:01:29 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1cOOiP-0003nt-Bx
	for groff@gnu.org; Tue, 03 Jan 2017 08:01:25 -0500
Received: from relay01.pair.com ([209.68.5.15]:60155)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <ralph@inputplus.co.uk>)
	id 1cOOiP-0003nk-7O
	for groff@gnu.org; Tue, 03 Jan 2017 08:01:21 -0500
Received: from orac.inputplus.co.uk (152.208.114.87.dyn.plus.net
	[87.114.208.152])
	by relay01.pair.com (Postfix) with ESMTP id 1464BD01089
	for <groff@gnu.org>; Tue,  3 Jan 2017 08:01:20 -0500 (EST)
Received: from orac.inputplus.co.uk (orac.inputplus.co.uk [IPv6:::1])
	by orac.inputplus.co.uk (Postfix) with ESMTP id 72D3C21123
	for <groff@gnu.org>; Tue,  3 Jan 2017 13:01:19 +0000 (GMT)
To: groff@gnu.org
From: Ralph Corderoy <ralph@inputplus.co.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
In-reply-to: <20170102201714.GA8773@augustus>
References: <20170102201714.GA8773@augustus>
Date: Tue, 03 Jan 2017 13:01:19 +0000
Message-Id: <20170103130119.72D3C21123@orac.inputplus.co.uk>
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 209.68.5.15
Subject: Re: [Groff] Flexible whitespace, columns, and the .h register
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <groff.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/groff>,
	<mailto:groff-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/groff/>
List-Post: <mailto:groff@gnu.org>
List-Help: <mailto:groff-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/groff>,
	<mailto:groff-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 03 Jan 2017 13:01:29 -0000

Hi Peter,

> Conceptually, can anyone think of another way to get the position that
> would be reported by .h without actually using .h?

I had a quick look at the source and didn't spot anything that seemed to
be maintained alongside .h.  Are you aware .h is specific to the current
diversion?

--=20
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy


From MAILER-DAEMON Tue Jan 03 14:17:21 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1cOUaH-0003Rx-Bu
	for mharc-groff@gnu.org; Tue, 03 Jan 2017 14:17:21 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:36557)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <SRS0=2tbpRa=YR=schaffter.ca=peter@eigbox.net>)
	id 1cOUaC-0003P8-JE
	for groff@gnu.org; Tue, 03 Jan 2017 14:17:17 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <SRS0=2tbpRa=YR=schaffter.ca=peter@eigbox.net>)
	id 1cOUa9-0006ld-FK
	for groff@gnu.org; Tue, 03 Jan 2017 14:17:16 -0500
Received: from bosmailout07.eigbox.net ([66.96.189.7]:46110)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71)
	(envelope-from <SRS0=2tbpRa=YR=schaffter.ca=peter@eigbox.net>)
	id 1cOUa9-0006ko-Af
	for groff@gnu.org; Tue, 03 Jan 2017 14:17:13 -0500
Received: from bosmailscan13.eigbox.net ([10.20.15.13])
	by bosmailout07.eigbox.net with esmtp (Exim) id 1cOU0a-0005uG-Bh
	for groff@gnu.org; Tue, 03 Jan 2017 13:40:28 -0500
Received: from [10.115.3.31] (helo=bosimpout11)
	by bosmailscan13.eigbox.net with esmtp (Exim) id 1cOU0Z-0002Uh-BO
	for groff@gnu.org; Tue, 03 Jan 2017 13:40:27 -0500
Received: from bosauthsmtp14.yourhostingaccount.com ([10.20.18.14])
	by bosimpout11 with 
	id TugM1u0010JCtq201ugQm2; Tue, 03 Jan 2017 13:40:27 -0500
X-Authority-Analysis: v=2.1 cv=SZN5d5hu c=1 sm=1 tr=0
	a=AnsiuLKgxXFeB68GILQVjQ==:117 a=EbA0KxhdGGuA+2zLGBEgdg==:17
	a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=kj9zAlcOel0A:10
	a=IgFoBzBjUZAA:10 a=g_SW5-S5AAAA:8 a=LNwsPRvudwKe5RjU4ZsA:9
	a=CjuIK1q_8ugA:10 a=zQDKbV1y6e_a9NbkwXG_:22
Received: from 206-47-112-74.dsl.ncf.ca ([206.47.112.74]:60388 helo=augustus)
	by bosauthsmtp14.eigbox.net with esmtpsa
	(TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim) id 1cOU0T-0001El-3i
	for groff@gnu.org; Tue, 03 Jan 2017 13:40:21 -0500
Received: from peter by augustus with local (Exim 4.82)
	(envelope-from <peter@schaffter.ca>) id 1cOU0R-0003u1-7U
	for groff@gnu.org; Tue, 03 Jan 2017 13:40:19 -0500
Date: Tue, 3 Jan 2017 13:40:19 -0500
From: Peter Schaffter <peter@schaffter.ca>
To: groff@gnu.org
Message-ID: <20170103184019.GA13692@augustus>
Mail-Followup-To: Peter Schaffter <peter@schaffter.ca>, groff@gnu.org
References: <20170102201714.GA8773@augustus>
	<20170103130119.72D3C21123@orac.inputplus.co.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20170103130119.72D3C21123@orac.inputplus.co.uk>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-EN-UserInfo: de950a90bfbefba2fd690f5ecdd2f718:931c98230c6409dcc37fa7e93b490c27
X-EN-AuthUser: peter@schaffter.ca
Sender: Peter Schaffter <peter@schaffter.ca>
X-EN-OrigIP: 206.47.112.74
X-EN-OrigHost: 206-47-112-74.dsl.ncf.ca
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 66.96.189.7
Subject: Re: [Groff] Flexible whitespace, columns, and the .h register
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <groff.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/groff>,
	<mailto:groff-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/groff/>
List-Post: <mailto:groff@gnu.org>
List-Help: <mailto:groff-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/groff>,
	<mailto:groff-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 03 Jan 2017 19:17:17 -0000

On Tue, Jan 03, 2017, Ralph Corderoy wrote:
> > Conceptually, can anyone think of another way to get the position that
> > would be reported by .h without actually using .h?
> 
> I had a quick look at the source and didn't spot anything that seemed to
> be maintained alongside .h.  Are you aware .h is specific to the current
> diversion?

I wasn't aware.  On re-reading cstr54, I see .h is defined as the
"Text baseline high-water mark on current page or diversion," which
is somewhat ambiguous, and diversions aren't mentioned in the info docs
at all, which state: "The 'high-water mark' on the current page.  It
corresponds to the text baseline of the lowest line on the page."

The issue doesn't affect my problem, but should we consider amending
the info docs entry?  "...corresponds to the text baseline of the
lowest line on the page, or, if in a diversion, of the lowest text
baseline in the diversion, measured from the start of the
diversion."  Words to that effect, anyway.

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


From MAILER-DAEMON Wed Jan 04 08:01:28 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1cOlC4-0001A9-M3
	for mharc-groff@gnu.org; Wed, 04 Jan 2017 08:01:28 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:45677)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1cOlC3-00019Y-2C
	for groff@gnu.org; Wed, 04 Jan 2017 08:01:27 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1cOlBz-0005hC-Rs
	for groff@gnu.org; Wed, 04 Jan 2017 08:01:27 -0500
Received: from relay01.pair.com ([209.68.5.15]:54747)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <ralph@inputplus.co.uk>)
	id 1cOlBz-0005gF-NY
	for groff@gnu.org; Wed, 04 Jan 2017 08:01:23 -0500
Received: from orac.inputplus.co.uk (89.105.113.87.dyn.plus.net
	[87.113.105.89])
	by relay01.pair.com (Postfix) with ESMTP id 23E7BD010FB
	for <groff@gnu.org>; Wed,  4 Jan 2017 08:01:21 -0500 (EST)
Received: from orac.inputplus.co.uk (orac.inputplus.co.uk [IPv6:::1])
	by orac.inputplus.co.uk (Postfix) with ESMTP id 6909C1FB29
	for <groff@gnu.org>; Wed,  4 Jan 2017 13:01:20 +0000 (GMT)
To: groff@gnu.org
From: Ralph Corderoy <ralph@inputplus.co.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
In-reply-to: <20170103184019.GA13692@augustus>
References: <20170102201714.GA8773@augustus>
	<20170103130119.72D3C21123@orac.inputplus.co.uk>
	<20170103184019.GA13692@augustus>
Date: Wed, 04 Jan 2017 13:01:20 +0000
Message-Id: <20170104130120.6909C1FB29@orac.inputplus.co.uk>
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 209.68.5.15
Subject: Re: [Groff] Flexible whitespace, columns, and the .h register
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <groff.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/groff>,
	<mailto:groff-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/groff/>
List-Post: <mailto:groff@gnu.org>
List-Help: <mailto:groff-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/groff>,
	<mailto:groff-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Jan 2017 13:01:28 -0000

Hi Peter,

> On re-reading cstr54, I see .h is defined as the "Text baseline
> high-water mark on current page or diversion," which is somewhat
> ambiguous

How so?

> and diversions aren't mentioned in the info docs at all, which state:
> "The 'high-water mark' on the current page.  It corresponds to the
> text baseline of the lowest line on the page."

But it is in the Diversions section.

    5.25 Diversions
    =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

    ...

     -- Register: \n[.h]
	 The "high-water mark" on the current page.  It corresponds to the
	 text baseline of the lowest line on the page.  This is a read-only
	 register.

	      .tm .h=3D=3D\n[.h], nl=3D=3D\n[nl]
		  =3D> .h=3D=3D0, nl=3D=3D-1
	      This is a test.
	      .br
	      .sp 2
	      .tm .h=3D=3D\n[.h], nl=3D=3D\n[nl]
		  =3D> .h=3D=3D40, nl=3D=3D120

	 As can be seen in the previous example, empty lines are not
	 considered in the return value of the '.h' register.

> The issue doesn't affect my problem, but should we consider amending
> the info docs entry?  "...corresponds to the text baseline of the
> lowest line on the page, or, if in a diversion, of the lowest text
> baseline in the diversion, measured from the start of the
> diversion."  Words to that effect, anyway.

I think the info doc should mention diversion in "...on the page".  Is
the measured bit needed?  Isn't that the origin of all diversions
measurements?

Does .h being diversion-specific make it easy for you to work around .h
being read-only?  Is there a problem with making it writable?  Are there
other things that it might be nice to be able to reset with some new
command as if we were hovering above the start of this virgin page?

--=20
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy


From MAILER-DAEMON Wed Jan 04 12:42:54 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1cOpaP-0002GU-Sq
	for mharc-groff@gnu.org; Wed, 04 Jan 2017 12:42:53 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:34419)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <SRS0=zzqZcC=YS=schaffter.ca=peter@eigbox.net>)
	id 1cOpaM-0002DH-1F
	for groff@gnu.org; Wed, 04 Jan 2017 12:42:52 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <SRS0=zzqZcC=YS=schaffter.ca=peter@eigbox.net>)
	id 1cOpaI-0005uS-TP
	for groff@gnu.org; Wed, 04 Jan 2017 12:42:50 -0500
Received: from bosmailout08.eigbox.net ([66.96.188.8]:41231)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71)
	(envelope-from <SRS0=zzqZcC=YS=schaffter.ca=peter@eigbox.net>)
	id 1cOpaI-0005tu-Of
	for groff@gnu.org; Wed, 04 Jan 2017 12:42:46 -0500
Received: from bosmailscan15.eigbox.net ([10.20.15.15])
	by bosmailout08.eigbox.net with esmtp (Exim) id 1cOp40-0005gC-PA
	for groff@gnu.org; Wed, 04 Jan 2017 12:09:24 -0500
Received: from [10.115.3.32] (helo=bosimpout12)
	by bosmailscan15.eigbox.net with esmtp (Exim) id 1cOp3y-0001M5-Vt
	for groff@gnu.org; Wed, 04 Jan 2017 12:09:22 -0500
Received: from bosauthsmtp14.yourhostingaccount.com ([10.20.18.14])
	by bosimpout12 with 
	id UH9F1u0010JCtq201H9JZo; Wed, 04 Jan 2017 12:09:22 -0500
X-Authority-Analysis: v=2.1 cv=BMw9rTgG c=1 sm=1 tr=0
	a=AnsiuLKgxXFeB68GILQVjQ==:117 a=EbA0KxhdGGuA+2zLGBEgdg==:17
	a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=kj9zAlcOel0A:10
	a=IgFoBzBjUZAA:10 a=g_SW5-S5AAAA:8 a=Jthw26zBLyCQhK38mWMA:9
	a=CjuIK1q_8ugA:10 a=zQDKbV1y6e_a9NbkwXG_:22
Received: from 206-47-112-74.dsl.ncf.ca ([206.47.112.74]:60845 helo=augustus)
	by bosauthsmtp14.eigbox.net with esmtpsa
	(TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim) id 1cOp3q-00073N-Tu
	for groff@gnu.org; Wed, 04 Jan 2017 12:09:14 -0500
Received: from peter by augustus with local (Exim 4.82)
	(envelope-from <peter@schaffter.ca>) id 1cOp3o-0005py-Oj
	for groff@gnu.org; Wed, 04 Jan 2017 12:09:12 -0500
Date: Wed, 4 Jan 2017 12:09:12 -0500
From: Peter Schaffter <peter@schaffter.ca>
To: groff@gnu.org
Message-ID: <20170104170912.GA21921@augustus>
Mail-Followup-To: Peter Schaffter <peter@schaffter.ca>, groff@gnu.org
References: <20170102201714.GA8773@augustus>
	<20170103130119.72D3C21123@orac.inputplus.co.uk>
	<20170103184019.GA13692@augustus>
	<20170104130120.6909C1FB29@orac.inputplus.co.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20170104130120.6909C1FB29@orac.inputplus.co.uk>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-EN-UserInfo: de950a90bfbefba2fd690f5ecdd2f718:931c98230c6409dcc37fa7e93b490c27
X-EN-AuthUser: peter@schaffter.ca
Sender: Peter Schaffter <peter@schaffter.ca>
X-EN-OrigIP: 206.47.112.74
X-EN-OrigHost: 206-47-112-74.dsl.ncf.ca
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 66.96.188.8
Subject: Re: [Groff] Flexible whitespace, columns, and the .h register
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <groff.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/groff>,
	<mailto:groff-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/groff/>
List-Post: <mailto:groff@gnu.org>
List-Help: <mailto:groff-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/groff>,
	<mailto:groff-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Jan 2017 17:42:52 -0000

On Wed, Jan 04, 2017, Ralph Corderoy wrote:
> > On re-reading cstr54, I see .h is defined as the "Text baseline
> > high-water mark on current page or diversion," which is somewhat
> > ambiguous
> 
> How so?

"Somewhat" is the key word, above, not "ambiguous", IYKWIM.
Probably just my way of reading English.  Either "...high water mark
*of* the current page or diversion" or "...on the current page or in
the current diversion" are what make it clear as a bell to my eyes.

> > The issue doesn't affect my problem, but should we consider amending
> > the info docs entry?  "...corresponds to the text baseline of the
> > lowest line on the page, or, if in a diversion, of the lowest text
> > baseline in the diversion, measured from the start of the
> > diversion."  Words to that effect, anyway.
> 
> I think the info doc should mention diversion in "...on the page".  Is
> the measured bit needed?  Isn't that the origin of all diversions
> measurements?

Quite so.  I was writing off the top of my head. :)  

> Does .h being diversion-specific make it easy for you to work around .h
> being read-only?

No.  There would insurmountable problems with nested diversions
containing material that may have to be deferred to the next
column/page (floats).

> Is there a problem with making it writable?

Of that, I'm not sure.  Someone more familiar with the code might be
able to say quickly.

> Are there other things that it might be nice to be able to reset
> with some new command as if we were hovering above the start of
> this virgin page?

.trunc.  If, in a footer macro, one wants to find out whether an
.sp tripped the footer, '.if \n[.trunc]' is ineffective because it
can't be zeroed at the start of a new page/column.

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


From MAILER-DAEMON Wed Jan 11 23:23:16 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1cRWuy-0006Og-Hm
	for mharc-groff@gnu.org; Wed, 11 Jan 2017 23:23:16 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:40269)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <larry.kollar@me.com>) id 1cRWuw-0006NK-MZ
	for groff@gnu.org; Wed, 11 Jan 2017 23:23:15 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <larry.kollar@me.com>) id 1cRWur-00080P-Pp
	for groff@gnu.org; Wed, 11 Jan 2017 23:23:14 -0500
Received: from st11p09im-asmtp001.me.com ([17.164.24.103]:38837)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <larry.kollar@me.com>)
	id 1cRWur-0007qZ-JA; Wed, 11 Jan 2017 23:23:09 -0500
Received: from process-dkim-sign-daemon.st11p09im-asmtp001.me.com by
	st11p09im-asmtp001.me.com
	(Oracle Communications Messaging Server 7.0.5.38.0 64bit (built Feb 26
	2016)) id <0OJN00I00FW61700@st11p09im-asmtp001.me.com>; Thu,
	12 Jan 2017 04:23:07 +0000 (GMT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=4d515a;
	t=1484194987; bh=OcvjiU0XnY5xcFkf5GCvmDdTQwoLtqiC9Kpq+bBV+KE=;
	h=Content-type:MIME-version:Subject:From:Date:Message-id:To;
	b=U4eakJFl+RoU1BqqejavXsUkuq6n2m9S9cDifaREACATYVKBqfhz5xu5/gTNYHrCK
	b6d86bsAjqhxr4qHRiTn7iodT7EScszJGleX6WBAI65m5Sbe58XUQ/H1XICBJiUnUC
	Q6S/8tXz78kjLPnrYYfvsLtLslzO+7U+cc3Bm1vhQheX4bwSCFRaOMr0DX15TEd0C8
	2pHNm1670n+AaqawXBuA4KsSfmwYZi6FCsCBRwpW9X1lkKHR1BNPXFi9w7G+Lff3S2
	rapeer38Ep7GK0qxGnr3D9/n85dbnSuwBPGwyJABwJFwYOsOCW3A4QR1ngMekB0zy1
	JkfKZVkIZQEXg==
Received: from [192.168.254.2]
	(h184.1.30.71.dynamic.ip.windstream.net [71.30.1.184])
	by st11p09im-asmtp001.me.com
	(Oracle Communications Messaging Server 7.0.5.38.0 64bit (built Feb 26
	2016))
	with ESMTPSA id <0OJN00UK2G696130@st11p09im-asmtp001.me.com>; Thu,
	12 Jan 2017 04:23:07 +0000 (GMT)
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,,
	definitions=2017-01-12_03:,, signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0
	clxscore=1034 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0
	bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1
	engine=8.0.1-1603290000 definitions=main-1701120053
Content-type: text/plain; charset=utf-8
MIME-version: 1.0 (Mac OS X Mail 9.3 \(3124\))
From: Larry Kollar <larry.kollar@me.com>
In-reply-to: <20161230.210105.1271888242050399422.wl@gnu.org>
Date: Wed, 11 Jan 2017 23:22:55 -0500
Cc: carsten.kunze@arcor.de, groff@gnu.org
Content-transfer-encoding: quoted-printable
Message-id: <1481C881-B91C-47B2-9DE4-104715204535@me.com>
References: <20161230.190655.88495778432219061.wl@gnu.org>
	<5803F69F-E0C1-49F3-8454-83B299357D91@me.com>
	<604459538.294520.1483123773164.JavaMail.ngmail@webmail06.arcor-online.net>
	<20161230.210105.1271888242050399422.wl@gnu.org>
To: Werner LEMBERG <wl@gnu.org>
X-Mailer: Apple Mail (2.3124)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 17.164.24.103
Subject: Re: [Groff] Inappropriate info page!
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <groff.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/groff>,
	<mailto:groff-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/groff/>
List-Post: <mailto:groff@gnu.org>
List-Help: <mailto:groff-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/groff>,
	<mailto:groff-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 12 Jan 2017 04:23:15 -0000


> Werner LEMBERG <wl@gnu.org> wrote:
>=20
>=20
>>>> Whilst reading the info pages on Groff I came upon the following
>>>=20
>>> What following?  You have forgotten to add a quote.
>>=20
>> He refers to doc/groff.texi line 5060.  The wording is questionable
>> indeed.
>=20
> Oh.  I would have never expected that Larry Kollar's satirical remark
> would be taken literally.  Well, today people probably need `humour
> on/off' signs...  Note that Larry is from the US, as far as I know :-)

I am, but I honestly think it was there when I rewrote the info doc, and
I shrugged and let it stand. It=E2=80=99s not the kind of wording I=E2=80=99=
d have used in
any case. I=E2=80=99d have said =E2=80=9Coutmoded=E2=80=9D instead of =
=E2=80=9Cantiquated,=E2=80=9D and would
have probably made a comment about crappy beer instead of cheap
computers, which (thanks to the surge of microbreweries) would be
rather dated nowadays.

	Larry=


From MAILER-DAEMON Thu Jan 12 01:17:27 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1cRYhS-0001UJ-Tw
	for mharc-groff@gnu.org; Thu, 12 Jan 2017 01:17:26 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:56645)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1cRYhQ-0001Tp-2I
	for groff@gnu.org; Thu, 12 Jan 2017 01:17:24 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1cRYhM-0000sn-V1
	for groff@gnu.org; Thu, 12 Jan 2017 01:17:24 -0500
Received: from mout.gmx.net ([212.227.17.21]:50679)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <werner.lemberg@gmx.de>)
	id 1cRYhM-0000sh-KR
	for groff@gnu.org; Thu, 12 Jan 2017 01:17:20 -0500
Received: from gnu.org ([178.115.128.62]) by mail.gmx.com (mrgmx102
	[212.227.17.168]) with ESMTPSA (Nemesis) id 0MN748-1cPKiF0JeS-006c4F;
	Thu, 12 Jan 2017 07:17:11 +0100
Date: Thu, 12 Jan 2017 07:17:05 +0100 (CET)
Message-Id: <20170112.071705.673125250914969104.wl@gnu.org>
To: larry.kollar@me.com
Cc: carsten.kunze@arcor.de, groff@gnu.org
From: Werner LEMBERG <wl@gnu.org>
In-Reply-To: <1481C881-B91C-47B2-9DE4-104715204535@me.com>
References: <604459538.294520.1483123773164.JavaMail.ngmail@webmail06.arcor-online.net>
	<20161230.210105.1271888242050399422.wl@gnu.org>
	<1481C881-B91C-47B2-9DE4-104715204535@me.com>
X-Mailer: Mew version 6.7 on Emacs 26.0.50.1 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=utf-8
Content-Transfer-Encoding: base64
Sender: <werner.lemberg@gmx.de>
X-Provags-ID: V03:K0:67+aikRo9FvY0GhTa4ImpAMas6HK6gDNSM59tGPX0lJUf+ePD0d
	iakse27sfUTkAMJ/ihucKLzLLlXSOF9fOJ5j9jd58kyzhvB7kNc4/35USz3H7JC1hPQi06e
	jddwGuVoxcXLkFCrqPSR6+U4L4Ru8AdzYF5yDxf7s9/od3ympgrqWHh/EXclToFKfgygxfd
	Jr7kMdvlhq8Eo9z/pwuTw==
X-UI-Out-Filterresults: notjunk:1;V01:K0:jWLxpnGX/tA=:/dA4UWHq5sRtiQvIHtCIOs
	d8Q4/OQp13j1Q/ohLa/j5VXmXlXGO/2aTuzZR3VtMCQHU/hSz8Slyh0EMWVTjX1l0YOxwjDak
	lrNQwiWJDs652yMdWcTZT6RKo8ywvDcc5UsSgbu1arCcU7aeLZw27FCG3PaHMs2sc0WB7yWrt
	6SVM5L/49mwcXo7DhhA5NbGgnYXRmKrGvhKl8aIIfOBGLJiF/KaGlSWkSdnNtQirLgzRT4dA5
	9euMh1Og0/DuuUD5iwkSUn50YHGiK39mcD/czTO69wTHhLDy6eBVeTbXT6CL6tVja3HA3ayWD
	NN0MQ4bVNc7ZxHnQcI+ZxGc1xUlA4UYqVnDuVE58yhaYpW1Stm7+Q6GHLEoh63tvPWuKnx5WZ
	/k0V8zG6YAjpxjAL6bsUuSJ7U2UdsozL54zd0iMD2wMTL9ws8TarGVA1MdLvZ7jAe+aQsIShT
	+amt/TBwUiBjG/cVUGF6ZnrzsoX7/zkhTWJuUMqs+JY40QCqJrWY2ZpXrwYHtHT2oENtsyHMr
	qISbeis/n868P4BngSZIfbla3Pfp68zZBRE0uadSBHF2efhzbtQNLcIwDiSXxmkZLoOByGW+q
	vODk6WcTZtlxsPRL0jMavTAWx+81zP/2bdj078Xw9QqrUtUwA3NJlKGoT23yk+BYkXgtfUvHM
	KgwWDt+IguA8Q3Q2NXRijg9lhP7436TBKws2YCMF3tPoVrCItJjXWijZapH3ofckm/lntXD8C
	nKRLw5QCwAmtGp0jQuaKplxEFCdbkEW1z5czfQG9axoWG5Aa/DLqZFUtNv+x3mU0qe4kvgHlR
	WEwJCSe85gbyL6Jwv4aqDEGPreKZ7+t054tg9GQJpKiM9rXt/MPwCdTpyISNDIJYa0T9KzBvP
	/jCdJn9ccGRQbLqnTnbIEKROjbFuv5DZoTtZGHrF4+igynXzU32xLU7axaHS3jG2jR+xokX9M
	sLlAIF9cGEFwvjYCddQuewfRRWcdadI9NX4GrwtGnGrPyZRIibVdG8UjDn3oOhCGexIfg0AWp
	ziAGQrnYyp2/Tl8jAA6XwFHuZdXDLksTUgt6B4HFQJJG
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
	[fuzzy]
X-Received-From: 212.227.17.21
Subject: Re: [Groff] Inappropriate info page!
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <groff.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/groff>,
	<mailto:groff-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/groff/>
List-Post: <mailto:groff@gnu.org>
List-Help: <mailto:groff-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/groff>,
	<mailto:groff-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 12 Jan 2017 06:17:24 -0000

DQo+PiBPaC4gIEkgd291bGQgaGF2ZSBuZXZlciBleHBlY3RlZCB0aGF0IExhcnJ5IEtvbGxhcidz
IHNhdGlyaWNhbA0KPj4gcmVtYXJrIHdvdWxkIGJlIHRha2VuIGxpdGVyYWxseS4gIFdlbGwsIHRv
ZGF5IHBlb3BsZSBwcm9iYWJseSBuZWVkDQo+PiBgaHVtb3VyIG9uL29mZicgc2lnbnMuLi4gIE5v
dGUgdGhhdCBMYXJyeSBpcyBmcm9tIHRoZSBVUywgYXMgZmFyIGFzDQo+PiBJIGtub3cgOi0pDQo+
IA0KPiBJIGFtLCBidXQgSSBob25lc3RseSB0aGluayBpdCB3YXMgdGhlcmUgd2hlbiBJIHJld3Jv
dGUgdGhlIGluZm8gZG9jLA0KPiBhbmQgSSBzaHJ1Z2dlZCBhbmQgbGV0IGl0IHN0YW5kLg0KDQpP
SywgdGhlbiBpdCB3YXMgd3JpdHRlbiBieSBhbm90aGVyIG5hdGl2ZSBVUyBjaXRpemVuLCBuYW1l
bHkgVHJlbnQNCkEuIEZpc2hlciA6LSkNCg0KPiBJdOKAmXMgbm90IHRoZSBraW5kIG9mIHdvcmRp
bmcgSeKAmWQgaGF2ZSB1c2VkIGluIGFueSBjYXNlLiAgSeKAmWQgaGF2ZQ0KPiBzYWlkIOKAnG91
dG1vZGVk4oCdIGluc3RlYWQgb2Yg4oCcYW50aXF1YXRlZCzigJ0gYW5kIHdvdWxkIGhhdmUgcHJv
YmFibHkNCj4gbWFkZSBhIGNvbW1lbnQgYWJvdXQgY3JhcHB5IGJlZXIgaW5zdGVhZCBvZiBjaGVh
cCBjb21wdXRlcnMsIHdoaWNoDQo+ICh0aGFua3MgdG8gdGhlIHN1cmdlIG9mIG1pY3JvYnJld2Vy
aWVzKSB3b3VsZCBiZSByYXRoZXIgZGF0ZWQNCj4gbm93YWRheXMuDQoNCjotKQ0KDQoNCiAgICBX
ZXJuZXINCg==


From MAILER-DAEMON Mon Jan 16 09:58:37 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1cT8k1-0000KV-CG
	for mharc-groff@gnu.org; Mon, 16 Jan 2017 09:58:37 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:45090)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <charlespipin@gmail.com>) id 1cSqBV-0005n2-9C
	for groff@gnu.org; Sun, 15 Jan 2017 14:09:46 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <charlespipin@gmail.com>) id 1cSqBP-0007DR-Ub
	for groff@gnu.org; Sun, 15 Jan 2017 14:09:40 -0500
Received: from mail-vk0-x22e.google.com ([2607:f8b0:400c:c05::22e]:34336)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <charlespipin@gmail.com>)
	id 1cSqBP-0007DH-QL
	for groff@gnu.org; Sun, 15 Jan 2017 14:09:39 -0500
Received: by mail-vk0-x22e.google.com with SMTP id r136so62276274vke.1
	for <groff@gnu.org>; Sun, 15 Jan 2017 11:09:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
	h=mime-version:from:date:message-id:subject:to;
	bh=Rq0dPsL276mBC96BMVZv3YqqH4Q8eeNMmfmH5uWAHc0=;
	b=F69x7LmAa7wbzx+aVwmz6hRkMZEO4smgHfOachGr/WyqzqC8FvxKg5a9wPFztdACBu
	1x1v1kuJAzL+Fsw6xug3XSTFRRh95gF9kIGrYv/vaT8DRSc5/NEo5SeNNnrng3jlytrw
	o5J8tsAcXDSwkh6auwFLjdW+fUm325qtgU8D9xf3k5mdmXYD32aW3NtAd6/qP/92QdcO
	IE0Ak5H6ACFjICRPSjjZ/hyzFFJdbZRlZm1p64ygOmNzosZG5NpXr/g9/gnNsbqpPXV4
	ZNOgzXkLxshpxykVuZhSi91Dc56hFEdxeVUnwn7bfW4lLdlui/2iKpfiSZ19EwRvfrkm
	a75Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
	bh=Rq0dPsL276mBC96BMVZv3YqqH4Q8eeNMmfmH5uWAHc0=;
	b=UnN1yodlhFVAwMK1nGNFgcIcD7tmYg8YbbMV5I5jtjozkZs8tKqt5B1FHJuAycrgZG
	PXY/stLRN/cufaB+SqG+R7k1WgNPX/iymys+Q9KJQC6/qUYX9c96FMhWyTFb8QNSGDSi
	0F6xO9jIINOA0TpMT0+ZLC4lnJPSEssVL3oumFCJ00timlnLwfhmrS/SU3rYT/1EOII2
	UD4OSOJZ8LXf5zym6M3fE84aTv7caW/GBLPIzXtKBhBE8bv0h69G3SNA0NaqHRSaCYSd
	TQ5f0EKI0TFf2i6Uuak7bBxEsALBfWqR+sNyq9QTQFXdnlZ8rN8r19UqSeGJhH2C/3Tn
	KD/g==
X-Gm-Message-State: AIkVDXKY3UxonUhTN7ixxIVm0d0BuEGej5LktO6BdVyTvCrnaG9Qlv7+rIrpVnOekLAQRNInuYimo1u1oMyT1w==
X-Received: by 10.31.217.7 with SMTP id q7mr11629257vkg.32.1484507378793; Sun,
	15 Jan 2017 11:09:38 -0800 (PST)
MIME-Version: 1.0
From: Charles Chamberlain <charlespipin@gmail.com>
Date: Sun, 15 Jan 2017 19:09:28 +0000
Message-ID: <CAHD9rDcgz2=KSAVE140uFg6aOz2W3U9jVETkSdUV7napYA854g@mail.gmail.com>
To: groff@gnu.org
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2607:f8b0:400c:c05::22e
X-Mailman-Approved-At: Mon, 16 Jan 2017 09:58:36 -0500
Content-Type: text/plain; charset=UTF-8
X-Content-Filtered-By: Mailman/MimeDel 2.1.21
Subject: [Groff] EQN with more symbols
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <groff.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/groff>,
	<mailto:groff-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/groff/>
List-Post: <mailto:groff@gnu.org>
List-Help: <mailto:groff-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/groff>,
	<mailto:groff-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 15 Jan 2017 19:09:46 -0000

Hi,

I really like the idea behind eqn - it's much smaller and simpler than
LaTeX. I'd love to be able to use it for typesetting math, but I've found
that there are hardly any symbols that can be used with it.

Is there a way to use troff symbols or unicode characters within eqn?

The closest way I've found is by making this patch
<https://gist.github.com/Charlesetc/f10111cb7f639f8444d9b1b9f737517a> to
the compiler, which adds the ones that I need at the moment. Would anyone
else value having more symbols in eqn? I would be glad to put some time
into making this happen.

Charles

From MAILER-DAEMON Mon Jan 16 10:16:31 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1cT91K-0003Dr-Vx
	for mharc-groff@gnu.org; Mon, 16 Jan 2017 10:16:31 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:36965)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mexas@bristol.ac.uk>) id 1cT91F-0003Dd-Vw
	for groff@gnu.org; Mon, 16 Jan 2017 10:16:29 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mexas@bristol.ac.uk>) id 1cT91C-0007dB-R7
	for groff@gnu.org; Mon, 16 Jan 2017 10:16:25 -0500
Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:34945)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <mexas@bristol.ac.uk>) id 1cT91C-0007cv-KH
	for groff@gnu.org; Mon, 16 Jan 2017 10:16:22 -0500
Received: by mail-wm0-x22b.google.com with SMTP id r126so163084069wmr.0
	for <groff@gnu.org>; Mon, 16 Jan 2017 07:16:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=bris-ac-uk.20150623.gappssmtp.com; s=20150623;
	h=date:from:message-id:to:subject:reply-to:in-reply-to;
	bh=JehnmvRr+f6tTLAwtkA++vwkswL9SEqNy1/xsfZWKMw=;
	b=R7SM+r+mk2d5geqjseI0eckImweH8rnRgs/ALr7n1TnW6oRZyqE5ecigSJu/E+I/BB
	kyGzqgDucP0KAhjKIST3xH2ryV8xdnqqcaP1YYwh/gy20ZaFSgjNcNEPDnI/ZUeYqoiv
	YfW32DvgpRu01eujtDGYYGCGRcXOASDESsYjhgJRytRNi4E4fLm9RiUaLi2AhPBJw4s1
	txPUZX2UVCZNMGWXAA6AfxWqh0KUjHWv/NFCYZvDzHrGut0Jm+8U+BuEz0q6sfsMRbMZ
	lneATuROd4cjXRXIVZYOLGyzrQptEneD9ekOgvz0ni8cKj9FCHUaHEeWShLNygwZohCi
	/j0g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:date:from:message-id:to:subject:reply-to
	:in-reply-to;
	bh=JehnmvRr+f6tTLAwtkA++vwkswL9SEqNy1/xsfZWKMw=;
	b=MUgzRI6AG//PtQT8M8Rd1KJdsOaWBcZfPYtuYOF7xSpWqOXY/Ks/X8yIS9eUD3CXbt
	gRjpUk48Mct9bPDlgzDd7GHpV5mwrGlWgPbwX58a63qd/tRZ6UKmtGFcPpUeLPEYm38B
	5OmaEt0U55JHS9oDJePgXlk0db4mUM6u0etoUKbTQN6vzrFzzm5t4My7QzjqxnvWlIJa
	AoDdTD2HTSmB/HbBZUWqm4MVmYXVuooj35n46KpiC+yRBEaMSRuZ9Pqk3KrAETywgHb+
	yIrcxa1Hwc6zgplOLC7Lg9SvlTk2c9v9dZlYisBsdxDHDly0q9DASwYJDU3kc8c37rnv
	NKFw==
X-Gm-Message-State: AIkVDXJwPQhlLi+kOTYLax3Nq7PZj4sY4+OnL2KrVM2YKXOiWOzdFKmCJqrpX5OagEMdXCDQ
X-Received: by 10.223.167.3 with SMTP id c3mr27874674wrd.103.1484579779746;
	Mon, 16 Jan 2017 07:16:19 -0800 (PST)
Received: from mech-as222.men.bris.ac.uk (mech-as222.men.bris.ac.uk.
	[137.222.170.4]) by smtp.gmail.com with ESMTPSA id
	135sm29476177wmh.14.2017.01.16.07.16.19
	(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Mon, 16 Jan 2017 07:16:19 -0800 (PST)
Date: Mon, 16 Jan 2017 07:16:19 -0800 (PST)
X-Google-Original-Date: Mon, 16 Jan 2017 15:16:18 GMT
Received: from mech-as222.men.bris.ac.uk (localhost [127.0.0.1])
	by mech-as222.men.bris.ac.uk (8.15.2/8.15.2) with ESMTP id
	v0GFGIrM002965; Mon, 16 Jan 2017 15:16:18 GMT
	(envelope-from mexas@mech-as222.men.bris.ac.uk)
Received: (from mexas@localhost)
	by mech-as222.men.bris.ac.uk (8.15.2/8.15.2/Submit) id v0GFGI4m002964; 
	Mon, 16 Jan 2017 15:16:18 GMT (envelope-from mexas)
From: Anton Shterenlikht <mexas@bris.ac.uk>
Message-Id: <201701161516.v0GFGI4m002964@mech-as222.men.bris.ac.uk>
To: charlespipin@gmail.com, groff@gnu.org
Reply-To: mexas@bris.ac.uk
In-Reply-To: <CAHD9rDcgz2=KSAVE140uFg6aOz2W3U9jVETkSdUV7napYA854g@mail.gmail.com>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2a00:1450:400c:c09::22b
Subject: Re: [Groff] EQN with more symbols
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <groff.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/groff>,
	<mailto:groff-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/groff/>
List-Post: <mailto:groff@gnu.org>
List-Help: <mailto:groff-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/groff>,
	<mailto:groff-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Jan 2017 15:16:29 -0000

>From groff-bounces+mexas=bristol.ac.uk@gnu.org Mon Jan 16 15:00:02 2017
>
>Is there a way to use troff symbols or unicode characters within eqn?

Maybe I misunderstood your question?

This works fine, e.g. with ms:
.EQ
\[Po] \[:u] \['e] \[te] \[fa] \[st]
.EN

I often refer to groff_char(7) for the list of symbols:

man -t groff_char > somefile.ps

Anton


From MAILER-DAEMON Mon Jan 16 11:10:53 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1cT9rx-0004Rr-L5
	for mharc-groff@gnu.org; Mon, 16 Jan 2017 11:10:53 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:48419)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1cT9ru-0004Q8-NY
	for groff@gnu.org; Mon, 16 Jan 2017 11:10:51 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1cT9rp-00009L-P0
	for groff@gnu.org; Mon, 16 Jan 2017 11:10:50 -0500
Received: from relay01.pair.com ([209.68.5.15]:43304)
	by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.71) (envelope-from <ralph@inputplus.co.uk>)
	id 1cT9rp-00008n-KV
	for groff@gnu.org; Mon, 16 Jan 2017 11:10:45 -0500
Received: from orac.inputplus.co.uk (88.224.189.80.dyn.plus.net
	[80.189.224.88])
	by relay01.pair.com (Postfix) with ESMTP id C5946D01082;
	Mon, 16 Jan 2017 11:10:40 -0500 (EST)
Received: from orac.inputplus.co.uk (orac.inputplus.co.uk [IPv6:::1])
	by orac.inputplus.co.uk (Postfix) with ESMTP id 1AB511F927;
	Mon, 16 Jan 2017 16:10:40 +0000 (GMT)
To: Charles Chamberlain <charlespipin@gmail.com>
cc: groff@gnu.org
From: Ralph Corderoy <ralph@inputplus.co.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
In-reply-to: <CAHD9rDcgz2=KSAVE140uFg6aOz2W3U9jVETkSdUV7napYA854g@mail.gmail.com>
References: <CAHD9rDcgz2=KSAVE140uFg6aOz2W3U9jVETkSdUV7napYA854g@mail.gmail.com>
Date: Mon, 16 Jan 2017 16:10:40 +0000
Message-Id: <20170116161040.1AB511F927@orac.inputplus.co.uk>
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 209.68.5.15
Subject: Re: [Groff] EQN with more symbols
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <groff.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/groff>,
	<mailto:groff-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/groff/>
List-Post: <mailto:groff@gnu.org>
List-Help: <mailto:groff-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/groff>,
	<mailto:groff-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Jan 2017 16:10:51 -0000

Hi Charles,

> Is there a way to use troff symbols or unicode characters within eqn?

You just write them.  Or have I misunderstood?

> <https://gist.github.com/Charlesetc/f10111cb7f639f8444d9b1b9f737517a>

Like this?

    .EQ
    define notelement '\(nm'
    {x \[mo] A \(te b} over {a notelement C \(sb D} \(fa x \0\(sq
    .EN

See sections 5 and 23 of the Kernighan and Cherry's User's Guide, 2nd
Ed.  http://troff.org/papers.html#eqn

--=20
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy


From MAILER-DAEMON Mon Jan 16 11:58:28 2017
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1cTAc0-0000QF-Jb
	for mharc-groff@gnu.org; Mon, 16 Jan 2017 11:58:28 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:57656)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <charlespipin@gmail.com>) id 1cTAby-0000OQ-Mi
	for groff@gnu.org; Mon, 16 Jan 2017 11:58:27 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <charlespipin@gmail.com>) id 1cTAbx-0008FU-L0
	for groff@gnu.org; Mon, 16 Jan 2017 11:58:26 -0500
Received: from mail-ua0-x230.google.com ([2607:f8b0:400c:c08::230]:34346)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <charlespipin@gmail.com>)
	id 1cTAbx-0008FF-GT
	for groff@gnu.org; Mon, 16 Jan 2017 11:58:25 -0500
Received: by mail-ua0-x230.google.com with SMTP id 35so85336366uak.1
	for <groff@gnu.org>; Mon, 16 Jan 2017 08:58:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
	h=mime-version:references:in-reply-to:from:date:message-id:subject:to
	:cc; bh=dmfw+Ct3DHnsZ/vWy/MaDi6EJixuFy9dFeMbJCHlL2A=;
	b=mlyPRvYiwFTshSFwrANpHxJtrji7XY+gglyg23EmtbPy38ZLLwxQL+xdOsQFX2lP4o
	QBjcDeAb9Cb72VN2h8W3N4EyQ8DQEJCPnSYhnh2DRONLIp+heHBiPLV5icBRSsqMQNka
	PNub2OfA65ooWgz8SZX6DiGg5cHfIDb6CeCNuuqHS6c6NujT6+5ve8nwV0/n9DU+e9X9
	LPwytgpfAKLFuvmq5y/NT9zOKK7vJhSPCZYtH6d3HU6TmCSVQ8JvzfZ+ozHnzKpf4Ffr
	xmGj0tx/Fe0HpUyX/g25mXql/CDIskr1TDktw8/epo7/Ejo8zFOWXpXVry7oM5cNIJs1
	iSAg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:mime-version:references:in-reply-to:from:date
	:message-id:subject:to:cc;
	bh=dmfw+Ct3DHnsZ/vWy/MaDi6EJixuFy9dFeMbJCHlL2A=;
	b=dvgULYimmYxZNPWOvPy5KeYmC3T/eaLMIkQCwb6oaChtjnRt46k6LNGbA9DmZXe4IG
	8fB3wMeYZTDLMAieAlEFQyQQVaC3wzLGAD9qUrrbcvFnkrhNd/INpk0HrXSjk2cMpp3Y
	Z5FXnRL0UBhfegwPJDBUjOPJyhgXYo5YsoUYq2VNfRqg8FhyxchUGmzUcT5qSsDOLo35
	e0aZ9uSTKSZmojiuN91vAF7oRAIwF2H9HLCYzcbXHtp7sKow0xznqDcsjW9JLbuyg2/6
	PeRV6fi1HayWPlCbSu9AtJOLoFZ7P2kCSd05lEngpxgg/OsTCMOoM6HHQQfwOqJ4uuN4
	pfng==
X-Gm-Message-State: AIkVDXICncUC9v9eoN+reDL+R3HBoUNv2NTXs9+iiMAGLdnh9ezDyZF4aT4L+zA6hQEclkOcHTsX6B5vM3S/Gw==
X-Received: by 10.159.34.105 with SMTP id 96mr18530731uad.84.1484585904791;
	Mon, 16 Jan 2017 08:58:24 -0800 (PST)
MIME-Version: 1.0
References: <CAHD9rDcgz2=KSAVE140uFg6aOz2W3U9jVETkSdUV7napYA854g@mail.gmail.com>
	<20170116161040.1AB511F927@orac.inputplus.co.uk>
In-Reply-To: <20170116161040.1AB511F927@orac.inputplus.co.uk>
From: Charles Chamberlain <charlespipin@gmail.com>
Date: Mon, 16 Jan 2017 16:58:14 +0000
Message-ID: <CAHD9rDfj+r9cMoKn96RYmomkX8NRk3roFjA0M2uz4Vsb22iqmw@mail.gmail.com>
To: Ralph Corderoy <ralph@inputplus.co.uk>
Cc: groff@gnu.org
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2607:f8b0:400c:c08::230
Content-Type: text/plain; charset=UTF-8
X-Content-Filtered-By: Mailman/MimeDel 2.1.21
Subject: Re: [Groff] EQN with more symbols
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <groff.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/groff>,
	<mailto:groff-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/groff/>
List-Post: <mailto:groff@gnu.org>
List-Help: <mailto:groff-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/groff>,
	<mailto:groff-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Jan 2017 16:58:27 -0000

Ah thanks very much - I was using eqn -d'[]', which I guess messes that up.
Thanks again!

On Mon, Jan 16, 2017 at 10:10 AM Ralph Corderoy <ralph@inputplus.co.uk>
wrote:

> Hi Charles,
>
> > Is there a way to use troff symbols or unicode characters within eqn?
>
> You just write them.  Or have I misunderstood?
>
> > <https://gist.github.com/Charlesetc/f10111cb7f639f8444d9b1b9f737517a>
>
> Like this?
>
>     .EQ
>     define notelement '\(nm'
>     {x \[mo] A \(te b} over {a notelement C \(sb D} \(fa x \0\(sq
>     .EN
>
> See sections 5 and 23 of the Kernighan and Cherry's User's Guide, 2nd
> Ed.  http://troff.org/papers.html#eqn
>
> --
> Cheers, Ralph.
> https://plus.google.com/+RalphCorderoy
>

