From MAILER-DAEMON Sat Dec 01 05:42:14 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TekWU-0003Eu-2F
	for mharc-groff@gnu.org; Sat, 01 Dec 2012 05:42:14 -0500
Received: from eggs.gnu.org ([208.118.235.92]:42152)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jerome.frgacic@yahoo.fr>) id 1TekWR-0003De-3b
	for groff@gnu.org; Sat, 01 Dec 2012 05:42:12 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jerome.frgacic@yahoo.fr>) id 1TekWP-0005B8-T5
	for groff@gnu.org; Sat, 01 Dec 2012 05:42:11 -0500
Received: from nm7-vm0.bullet.mail.ird.yahoo.com ([77.238.189.222]:37871)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jerome.frgacic@yahoo.fr>) id 1TekWP-0005Aw-IC
	for groff@gnu.org; Sat, 01 Dec 2012 05:42:09 -0500
Received: from [77.238.189.54] by nm7.bullet.mail.ird.yahoo.com with NNFMP;
	01 Dec 2012 10:42:08 -0000
Received: from [212.82.108.245] by tm7.bullet.mail.ird.yahoo.com with NNFMP;
	01 Dec 2012 10:42:08 -0000
Received: from [127.0.0.1] by omp1010.mail.ird.yahoo.com with NNFMP;
	01 Dec 2012 10:42:08 -0000
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 110525.7709.bm@omp1010.mail.ird.yahoo.com
Received: (qmail 95031 invoked by uid 60001); 1 Dec 2012 10:42:08 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024;
	t=1354358528; bh=U9AbnNNpcFP6ACCGw8KsTnEvx7its8+8cMcaSAAab1E=;
	h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type;
	b=06/rkXLVGpBsQrRqQiU8ZXyJ6ubBGk0Fwlq2a1LH/erylLQqtnYTDUAeCDkTa9NRDHDOZBaNHS7rtWIjh84u/cGqnf/6C2DbN/06eKr9mCGPeeRQHRayvcsaZP8rNl1BkQttbRHVxkV2iYunen5ZTYMS1hbbXmGMpTM6DQWQHQ4=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr;
	h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type;
	b=t85INeFFwJaMHMj6hWfJn8wi5qqQ0yrgTJksMilXXwgKoXVAXGNHlWSbAL7V1HaQ8NYx07ZYy/BqwUzvnH7o8iIRyEK4vB45Q74X9xPq5gEQWibJAaO0J2sjqAXrnyP+hR9XfI8najfcoMZTDySlA0sFU+qGioqKU5fCRA3eva8=;
X-YMail-OSG: 8yk7V8sVM1n0jTk5sdTya7Z6HzWoRg1PgasVeGdyV4oNaCg
	HTD_9MHxRBYvaeoCfwuC8PLa7sBzL.0dAsfYmnZbkI9ZHEeRfi8lhVSQRad5
	PHchuEjlSIATIN8hRLA1w2FBFCXjDuA1iT0ENo2yE_pr_Olpcl5Q2fAvShaS
	wPtXhPAALevQyJYvEo.bLcP6PHazwl8XkUqTjvxqAx1.zqJ.A9VGN1lOHCeo
	zwaaKsG5u4vAt4rwYuMPxA5ETvt9015ihy0IIq6enEr.762_lt_4yq2J.DK1
	LeIeM7xON8Kb_AMso8dbh0MVDMpufXmuJdFYId6NDOn4ytny3zR29KKZSBK7
	C5za_H8NSMirByJQUrBPJGgt7BBOFYgCueLuo5PGUqiQxLMrLWRzJ9XXFHM6
	IJ.AwEIl28eRSRLEBBXjdvv3WJCezv.zF3oI-
Received: from [91.180.253.214] by web171602.mail.ir2.yahoo.com via HTTP;
	Sat, 01 Dec 2012 10:42:07 GMT
X-Rocket-MIMEInfo: 001.001,
	SGVsbG8sCgpJIHJlY2VudGx5IGRpc2NvdmVyIGdyb2ZmIGFuZCBpIHdhbnQgdG8gY3JlYXRlIHNvbWUgc2xpZGUgd2l0aCBpdCBmb3IgYSBsZXNzb24uCkluIHRoaXMgY2FzZSwgSSdtIHVzaW5nIHRoZSBtcyBtYWNybyBwYWNrYWdlIGFuZCBhIHBhcGVyc2l6ZSBvZiA3MjBweDU0MHAgKGluIGxhbmRzY2FwZSBmb3JtYXQpLgpBbHNvLCBJIHVzZSBhIGJhY2tncm91bmQgaW1hZ2UgYW5kIHRoaXMgc2VxdWVuY2Ugb2YgbWFjcm9zIGFuZCByZXF1ZXN0cyB0byBpbmNsdWRlIGl0IGFuZCB0aGVuIHdyaXRlIG92ZXIBMAEBAQE-
X-Mailer: YahooMailWebService/0.8.128.478
Message-ID: <1354358527.72600.YahooMailNeo@web171602.mail.ir2.yahoo.com>
Date: Sat, 1 Dec 2012 10:42:07 +0000 (GMT)
From: =?iso-8859-1?Q?J=E9r=F4me_Frgacic?= <jerome.frgacic@yahoo.fr>
To: "groff@gnu.org" <groff@gnu.org>
MIME-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x
X-Received-From: 77.238.189.222
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Content-Filtered-By: Mailman/MimeDel 2.1.14
Subject: [Groff]  Backgound image slightly higher on page one
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: =?iso-8859-1?Q?J=E9r=F4me_Frgacic?= <jerome.frgacic@yahoo.fr>
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: Sat, 01 Dec 2012 10:42:12 -0000

Hello,=0A=0AI recently discover groff and i want to create some slide with =
it for a lesson.=0AIn this case, I'm using the ms macro package and a paper=
size of 720px540p (in landscape format).=0AAlso, I use a background image a=
nd this sequence of macros and requests to include it and then write over i=
t :=0A=0A.mk=0A.PSPIC mypic.eps=0A.rt=0A.\" rest of the text=0A=0AThis imag=
e is used on each slide, but it is a slightly higher on page one than the o=
ther pages.=0AI think this come from the header, but I'm not sure.=0AI've t=
ried to suppress the macros PT and HD but this didn't change anything.=0AAs=
 well, I've attempted to use the macro P1 to include the header on page 1 t=
oo.=0ABut, again, this didn't have settled the problem.=0A=0ADoes anyone ha=
ve a solution ?=0A

From MAILER-DAEMON Sat Dec 01 10:01:42 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TeoZa-0003rR-NT
	for mharc-groff@gnu.org; Sat, 01 Dec 2012 10:01:42 -0500
Received: from eggs.gnu.org ([208.118.235.92]:48143)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mbianchi@foveal4.foveal.com>) id 1TeoZY-0003qw-Tz
	for groff@gnu.org; Sat, 01 Dec 2012 10:01:41 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mbianchi@foveal4.foveal.com>) id 1TeoZX-0002SN-NN
	for groff@gnu.org; Sat, 01 Dec 2012 10:01:40 -0500
Received: from relay00.pair.com ([209.68.5.9]:1153)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <mbianchi@foveal4.foveal.com>) id 1TeoZX-0002SC-Ia
	for groff@gnu.org; Sat, 01 Dec 2012 10:01:39 -0500
Received: (qmail 93757 invoked from network); 1 Dec 2012 15:01:37 -0000
Received: from 74.102.6.186 (HELO foveal4.foveal.com) (74.102.6.186)
	by relay00.pair.com with SMTP; 1 Dec 2012 15:01:37 -0000
X-pair-Authenticated: 74.102.6.186
Received: by foveal4.foveal.com (Postfix, from userid 617)
	id 23DF217D140; Sat,  1 Dec 2012 10:01:38 -0500 (EST)
Date: Sat, 1 Dec 2012 10:01:38 -0500
From: Mike Bianchi <MBianchi@Foveal.com>
To: =?iso-8859-1?B?Suly9G1l?= Frgacic <jerome.frgacic@yahoo.fr>
Message-ID: <20121201150138.GA12793@foveal4.foveal.com>
References: <1354358527.72600.YahooMailNeo@web171602.mail.ir2.yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <1354358527.72600.YahooMailNeo@web171602.mail.ir2.yahoo.com>
User-Agent: Mutt/1.5.17+20080114 (2008-01-14)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.68.5.9
Cc: "groff@gnu.org" <groff@gnu.org>
Subject: Re: [Groff] <OK>   Backgound image slightly higher on page one
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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: Sat, 01 Dec 2012 15:01:42 -0000

On Sat, Dec 01, 2012 at 10:42:07AM +0000, Jérôme Frgacic wrote:
> Hello,
> 
> I recently discover groff and i want to create some slide with it for a lesson.
> In this case, I'm using the ms macro package and a papersize of 720px540p (in landscape format).
> Also, I use a background image and this sequence of macros and requests to include it and then write over it :
> 
> .mk
> .PSPIC mypic.eps
> .rt
> .\" rest of the text
> 
> This image is used on each slide, but it is a slightly higher on page one than the other pages.
> I think this come from the header, but I'm not sure.
> I've tried to suppress the macros PT and HD but this didn't change anything.
> As well, I've attempted to use the macro P1 to include the header on page 1 too.
> But, again, this didn't have settled the problem.
> 
> Does anyone have a solution ?

Try placing
	.rs
above  .mk .

from groff(7)
	.rs       Restore spacing; turn no-space mode off.

If that does not work, try placing
	\&
(the zero-width filler character) above  .mk .


Groff starts off in  no-space mode  until either the  .rs  command or some text
is output.  no-space mode  means any request for vertical spacing is ignored.

I cannot find where this is explained in the documentation.
	Computing Science Technical Report No. 54
	       Troff User's Manual
hints at it, but ...


-- 
 Mike Bianchi
 Foveal Systems

 973 822-2085

 MBianchi@Foveal.com
 http://www.AutoAuditorium.com
 http://www.FovealMounts.com


From MAILER-DAEMON Sat Dec 01 14:20:51 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TescN-0002b3-Qz
	for mharc-groff@gnu.org; Sat, 01 Dec 2012 14:20:51 -0500
Received: from eggs.gnu.org ([208.118.235.92]:60154)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1TescL-0002aq-SR
	for groff@gnu.org; Sat, 01 Dec 2012 14:20:50 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1TescK-0000JB-5N
	for groff@gnu.org; Sat, 01 Dec 2012 14:20:49 -0500
Received: from [2001:4ca0:4101:204:21a:4bff:fec5:6ac1] (port=47221
	helo=helix.usm.uni-muenchen.de)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1TescJ-0000Ip-Tj
	for groff@gnu.org; Sat, 01 Dec 2012 14:20:48 -0500
Received: by helix.usm.uni-muenchen.de (Postfix, from userid 2097)
	id 58A6E16171A8; Sat,  1 Dec 2012 20:20:42 +0100 (CET)
Date: Sat, 1 Dec 2012 20:20:42 +0100
From: Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
To: groff@gnu.org
Message-ID: <20121201192042.GA8531@usm.uni-muenchen.de>
References: <20121118210627.GA20028@foveal4.foveal.com>
	<20121118212207.GB7069@usm.uni-muenchen.de>
	<20121118215422.GC7069@usm.uni-muenchen.de>
	<20121118222301.GA23129@foveal4.foveal.com>
	<20121118224212.GD7069@usm.uni-muenchen.de>
	<20121119222945.GA21398@foveal4.foveal.com>
	<20121120214727.GA26298@usm.uni-muenchen.de>
	<20121126152459.GA17742@foveal4.foveal.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="ReaqsoxgOBHFXBhH"
Content-Disposition: inline
In-Reply-To: <20121126152459.GA17742@foveal4.foveal.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4ca0:4101:204:21a:4bff:fec5:6ac1
Subject: Re: [Groff] producing a booklet with groff ?
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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: Sat, 01 Dec 2012 19:20:50 -0000


--ReaqsoxgOBHFXBhH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline


>> What program are you using to send the document to the printer?
> lpr 

Can you try printing the attached Postscript file?
If your lpr is that of CUPS, only use option "-l"
("the print file is already formatted for the
destination and should be sent without filtering").



--ReaqsoxgOBHFXBhH
Content-Type: application/postscript
Content-Disposition: attachment; filename="duplex.ps"
Content-Transfer-Encoding: quoted-printable

%!=0A=0A  << /Duplex true >> setpagedevice=0A  /Helvetica findfont 100 scal=
efont setfont=0A  100 600 moveto (Page 1) show showpage=0A  100 600 moveto =
(Page 2) show showpage=0A=0A
--ReaqsoxgOBHFXBhH--


From MAILER-DAEMON Sat Dec 01 14:52:07 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tet6d-0008HT-BN
	for mharc-groff@gnu.org; Sat, 01 Dec 2012 14:52:07 -0500
Received: from eggs.gnu.org ([208.118.235.92]:50345)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1Tet6a-0008Fl-JW
	for groff@gnu.org; Sat, 01 Dec 2012 14:52:05 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1Tet6Z-00086Z-Om
	for groff@gnu.org; Sat, 01 Dec 2012 14:52:04 -0500
Received: from [2001:4ca0:4101:204:21a:4bff:fec5:6ac1] (port=32847
	helo=helix.usm.uni-muenchen.de)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1Tet6Z-00086V-I1
	for groff@gnu.org; Sat, 01 Dec 2012 14:52:03 -0500
Received: by helix.usm.uni-muenchen.de (Postfix, from userid 2097)
	id 5FBBC16171A8; Sat,  1 Dec 2012 20:52:01 +0100 (CET)
Date: Sat, 1 Dec 2012 20:52:01 +0100
From: Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
To: groff@gnu.org
Message-ID: <20121201195201.GB8531@usm.uni-muenchen.de>
References: <1354358527.72600.YahooMailNeo@web171602.mail.ir2.yahoo.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="H+4ONPRPur6+Ovig"
Content-Disposition: inline
In-Reply-To: <1354358527.72600.YahooMailNeo@web171602.mail.ir2.yahoo.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4ca0:4101:204:21a:4bff:fec5:6ac1
Subject: Re: [Groff] Backgound image slightly higher on page one
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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: Sat, 01 Dec 2012 19:52:05 -0000


--H+4ONPRPur6+Ovig
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline


> This image is used on each slide, but it is a slightly higher
> on page one than the other pages.

Did you change the font size (or rather, the vertical spacing)
somewhere on the first page?
How does the attached file behave in comparison?



--H+4ONPRPur6+Ovig
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="slides.ro"

.\" ms land
.\" ------------------------------------------------------------------------
.nr PO 2c
.nr LL 29.7c-4c
.ll \n[LL]u
.pl 21c
.\" ------------------------------------------------------------------------
.de BP
.ie \\n% .bp
.el .br
.mk
.rs
.vs 0
.sp |0
.PSPIC mypic.eps
.vs
.rt
..
.\" ------------------------------------------------------------------------
.P1
.BP
Hello
.ps 14
.vs 16
.BP
Hello
.\" ------------------------------------------------------------------------

--H+4ONPRPur6+Ovig--


From MAILER-DAEMON Sat Dec 01 15:37:24 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TetoS-0006LW-5P
	for mharc-groff@gnu.org; Sat, 01 Dec 2012 15:37:24 -0500
Received: from eggs.gnu.org ([208.118.235.92]:33236)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jerome.frgacic@yahoo.fr>) id 1TetoQ-0006LI-M6
	for groff@gnu.org; Sat, 01 Dec 2012 15:37:23 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jerome.frgacic@yahoo.fr>) id 1TetoP-0002pd-Ll
	for groff@gnu.org; Sat, 01 Dec 2012 15:37:22 -0500
Received: from nm4.bullet.mail.ird.yahoo.com ([77.238.189.61]:36762)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jerome.frgacic@yahoo.fr>) id 1TetoP-0002pT-9K
	for groff@gnu.org; Sat, 01 Dec 2012 15:37:21 -0500
Received: from [77.238.189.233] by nm4.bullet.mail.ird.yahoo.com with NNFMP;
	01 Dec 2012 20:37:20 -0000
Received: from [212.82.108.245] by tm14.bullet.mail.ird.yahoo.com with NNFMP;
	01 Dec 2012 20:37:20 -0000
Received: from [127.0.0.1] by omp1010.mail.ird.yahoo.com with NNFMP;
	01 Dec 2012 20:37:20 -0000
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 366420.65564.bm@omp1010.mail.ird.yahoo.com
Received: (qmail 73336 invoked by uid 60001); 1 Dec 2012 20:37:20 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024;
	t=1354394240; bh=0lxzEYv7OtHRX4Nnm5UDPqOdyfbrvEepkoufzn8e14A=;
	h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type;
	b=HtfMBPYgNp2FmF9Lpv3+iCYYl63pcm2jmGsA71c+8Zu8G8TkAPzgEf1TIzUvE3lPD9EXmzm365dJqMvCnCqTwTNbQdhYaxi0dRHmG38TJ/c4QmPy4yaeX15/DMHm4YkQvNO6rsdSVKkI5rcEv0SAKEJVL12WmXFw/qAMAljObck=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr;
	h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type;
	b=lZSMpqNkEN0fIO0Pn+Wtn1d0g0I8eu5c1Lf+2zwfZk0gIM31OAf7UCDHQyI+EX2gRiLr6y00apb5fauVB2IWHSA7jZQO/mX0fya3SSHo4cXAjXzOq0r/41xJLXV44KduDDh4M3RMIaYs0mwgTTw+slnZZRF2ajbQYgQCdABUlg8=;
X-YMail-OSG: gU81irEVM1k9s5cTgK0KNiVjFvLk6sKSmZ6HcIwXqNPDJJb
	eQL1Sf9pcWsg8d2xh5RzNDIyDEbdYSzwReUUliICxk9eJIsMqAa5Jum1CzdO
	mVJSNuQI86bQVdX5Cof9p8XVgjaYO5o1kOwy1lRQFDEPNDZVj4p_vr3jRJfb
	WrkORJBT3yAXMaJ5XqVhW7mbsmncH9muQ9SqXY06vN76pq7FOzSVw5kTYes5
	tRMHyIW6ysKYp3DVLvamIj9mzkEm3mxwHLqijDN5zhPZhfkTjdb916OD441Q
	ZkHvrM8Gj9IUMvPgXz2HwkFZ5HgwWv7U5_AMKnEmHoL_3uuuvysyVXWm9lLS
	ug1amXwO_L0SHPIRTk5Jkmy9cGtGKdrVYWB1tzY8HARSj5z_5Tb9I_MKZ.dZ
	0b.vFcXuiAUwFL4DpV3HU1cl2_h_Tjw8dxDo-
Received: from [91.180.253.214] by web171602.mail.ir2.yahoo.com via HTTP;
	Sat, 01 Dec 2012 20:37:20 GMT
X-Rocket-MIMEInfo: 001.001,
	VGhhbmtzIGZvciB5b3VyIHJlcGxpZXMuCgpPbiBTYXQsIDEgRGVjIDIwMTIgMTA6MDE6MzggLTA1MDAsIE1pa2UgQmlhbmNoaSB3cm90ZToKCj4gVHJ5IHBsYWNpbmcKPsKgIMKgIC5ycwo.IGFib3ZlwqAgLm1rIC4KPgo.IGZyb20gZ3JvZmYoNykKPsKgIMKgwqAgLnJzwqAgwqAgwqAgIFJlc3RvcmUgc3BhY2luZzsgdHVybiBuby1zcGFjZSBtb2RlIG9mZi4KPgo.IElmIHRoYXQgZG9lcyBub3Qgd29yaywgdHJ5IHBsYWNpbmcKPsKgIMKgwqAgXCYKPiAodGhlIHplcm8td2lkdGggZmlsbGVyIGNoYXJhY3RlcikBMAEBAQE-
X-Mailer: YahooMailWebService/0.8.128.478
References: <1354358527.72600.YahooMailNeo@web171602.mail.ir2.yahoo.com>
	<20121201195201.GB8531@usm.uni-muenchen.de>
Message-ID: <1354394240.68129.YahooMailNeo@web171602.mail.ir2.yahoo.com>
Date: Sat, 1 Dec 2012 20:37:20 +0000 (GMT)
From: =?iso-8859-1?Q?J=E9r=F4me_Frgacic?= <jerome.frgacic@yahoo.fr>
To: "groff@gnu.org" <groff@gnu.org>
In-Reply-To: <20121201195201.GB8531@usm.uni-muenchen.de>
MIME-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x
X-Received-From: 77.238.189.61
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Content-Filtered-By: Mailman/MimeDel 2.1.14
Subject: Re: [Groff] Backgound image slightly higher on page one
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: =?iso-8859-1?Q?J=E9r=F4me_Frgacic?= <jerome.frgacic@yahoo.fr>
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: Sat, 01 Dec 2012 20:37:23 -0000

Thanks for your replies.=0A=0AOn Sat, 1 Dec 2012 10:01:38 -0500, Mike Bianc=
hi wrote:=0A=0A> Try placing=0A>=A0 =A0 .rs=0A> above=A0 .mk .=0A>=0A> from=
 groff(7)=0A>=A0 =A0=A0 .rs=A0 =A0 =A0  Restore spacing; turn no-space mode=
 off.=0A>=0A> If that does not work, try placing=0A>=A0 =A0=A0 \&=0A> (the =
zero-width filler character) above=A0 .mk .=0A=0AUnfortunately, none of you=
r two solutions seems to fix the problem.=0A=0AOn Sat, 1 Dec 2012 20:52:01 =
+0100, Tadziu Hoffmann wrote:=0A> Did you change the font size (or rather, =
the vertical spacing)=0A> somewhere on the first page?=0A=0AYes, I modify t=
he vertical spacing through the register VS before writing anything.=0AAnd =
it seems that the matter come effectively from this, but I don't understand=
 why...=0ALogically, the vertical spacing is applied for all the pages, so =
why does it cause some problem ?=0A=0AOn Sat, 1 Dec 2012 20:52:01 +0100, Ta=
dziu Hoffmann wrote:=0A> How does the attached file behave in comparison?=
=0A=0AWith your file, the two images are identically aligned.

From MAILER-DAEMON Sat Dec 01 16:43:49 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Teuqj-0001RI-E5
	for mharc-groff@gnu.org; Sat, 01 Dec 2012 16:43:49 -0500
Received: from eggs.gnu.org ([208.118.235.92]:52193)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1Teuqh-0001RC-8s
	for groff@gnu.org; Sat, 01 Dec 2012 16:43:48 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1Teuqg-0001My-Dc
	for groff@gnu.org; Sat, 01 Dec 2012 16:43:47 -0500
Received: from [2001:4ca0:4101:204:21a:4bff:fec5:6ac1] (port=35866
	helo=helix.usm.uni-muenchen.de)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1Teuqg-0001Lw-6d
	for groff@gnu.org; Sat, 01 Dec 2012 16:43:46 -0500
Received: by helix.usm.uni-muenchen.de (Postfix, from userid 2097)
	id 11BD716171A8; Sat,  1 Dec 2012 22:43:44 +0100 (CET)
Date: Sat, 1 Dec 2012 22:43:43 +0100
From: Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
To: groff@gnu.org
Message-ID: <20121201214343.GC8531@usm.uni-muenchen.de>
References: <1354358527.72600.YahooMailNeo@web171602.mail.ir2.yahoo.com>
	<20121201195201.GB8531@usm.uni-muenchen.de>
	<1354394240.68129.YahooMailNeo@web171602.mail.ir2.yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1354394240.68129.YahooMailNeo@web171602.mail.ir2.yahoo.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4ca0:4101:204:21a:4bff:fec5:6ac1
Subject: Re: [Groff] Backgound image slightly higher on page one
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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: Sat, 01 Dec 2012 21:43:48 -0000


> > Did you change the font size (or rather, the vertical spacing)
> > somewhere on the first page?

> Yes, I modify the vertical spacing through the register VS
> before writing anything.
> And it seems that the matter come effectively from this, but I
> don't understand why...  Logically, the vertical spacing is
> applied for all the pages, so why does it cause some problem ?

Hmmm, it seems the vertical spacing is only set from register VS
in a high-level macro like PP or so, and therefore your setting
will not yet have had an effect if the first thing you call on
the first page is PSPIC.

In my example the images have the same alignment because the
"begin page" macro BP temporarily sets the vertical spacing
to zero before outputting the picture.




From MAILER-DAEMON Sat Dec 01 18:30:44 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TewWC-0000rK-0W
	for mharc-groff@gnu.org; Sat, 01 Dec 2012 18:30:44 -0500
Received: from eggs.gnu.org ([208.118.235.92]:51325)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1TewW9-0000qw-FU
	for groff@gnu.org; Sat, 01 Dec 2012 18:30:42 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1TewW8-0001mz-AG
	for groff@gnu.org; Sat, 01 Dec 2012 18:30:41 -0500
Received: from smarthost04.mail.zen.net.uk ([212.23.1.4]:49142)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1TewW7-0001mg-T7
	for groff@gnu.org; Sat, 01 Dec 2012 18:30:40 -0500
Received: from [88.96.44.206] (helo=deb)
	by smarthost04.mail.zen.net.uk with esmtp (Exim 4.72)
	(envelope-from <Ted.Harding@wlandres.net>)
	id 1TewW5-0000QM-CL; Sat, 01 Dec 2012 23:30:37 +0000
Content-Length: 2498
Message-ID: <XFMail.20121201233027.Ted.Harding@wlandres.net>
X-Mailer: XFMail 1.5.5 on Linux
X-Priority: 3 (Normal)
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0
In-Reply-To: <20121201214343.GC8531@usm.uni-muenchen.de>
Date: Sat, 01 Dec 2012 23:30:27 -0000 (GMT)
Sender: ted@deb
From: (Ted Harding) <Ted.Harding@wlandres.net>
To: groff@gnu.org
Bcc: 
X-Originating-Smarthost04-IP: [88.96.44.206]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 212.23.1.4
Subject: Re: [Groff] Backgound image slightly higher on page one
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: Ted.Harding@wlandres.net
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: Sat, 01 Dec 2012 23:30:42 -0000

On 01-Dec-2012 21:43:43 Tadziu Hoffmann wrote:
> 
>> > Did you change the font size (or rather, the vertical spacing)
>> > somewhere on the first page?
> 
>> Yes, I modify the vertical spacing through the register VS
>> before writing anything.
>> And it seems that the matter come effectively from this, but I
>> don't understand why...  Logically, the vertical spacing is
>> applied for all the pages, so why does it cause some problem ?
> 
> Hmmm, it seems the vertical spacing is only set from register VS
> in a high-level macro like PP or so, and therefore your setting
> will not yet have had an effect if the first thing you call on
> the first page is PSPIC.
> 
> In my example the images have the same alignment because the
> "begin page" macro BP temporarily sets the vertical spacing
> to zero before outputting the picture.

[Coming late to this thread today ... ]

I have experimented with a file that seems to follow Jérôme Frgacic's
original framework:

  .mk
  .PSPIC mypic.eps
  .rt
  .\" rest of the text

namely (using an EPS file "volc2.10.eps" that happens to be there):

File test.tr:
=============
.mk
.PSPIC volc2.10.eps
.rt
.LP
This is some text
.br
And some more text
.LP
This is some text
.br
And some more text
.\"And so on for several repetitions
.br
And some more text
.LP
.bp  \"## Begin New Page Here
.mk
.PSPIC volc2.10.eps
.rt
.LP
This is some text
.\"[repetition of remaining input for first page except for ".bp"]


Then

  groff -tpe -ms test.tr > test.ps

produces a file in which both text and image are identically aligned
on both pages.

On the other hand, if I omit the first ".LP" on page 1, so that
it initially reads:

.mk
.PSPIC volc2.10.eps
.rt
.\".LP
This is some text
.br
And some more text
.LP
This is some text

but *keep* the .LP in the same position on page 2, THEN, while
the two images remain idenitcally aligned on the two pages, the
text on page 2 is slightly lower than the text on page 1 (by,
presumably, 1 VS), so that (relative to the text) the picture on
page 2 appears slightly raised (by one VS).

So I'm pretty sure that Tadziu's explanation is the correct one.
And the solution to the problem is to do something like ".LP"
to get things going text-wise within the standard paqe positions.

Hoping this helps,
Ted.

-------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding@wlandres.net>
Date: 01-Dec-2012  Time: 23:30:24
This message was sent by XFMail
-------------------------------------------------


From MAILER-DAEMON Sun Dec 02 05:50:02 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tf77a-0007Cs-JW
	for mharc-groff@gnu.org; Sun, 02 Dec 2012 05:50:02 -0500
Received: from eggs.gnu.org ([208.118.235.92]:43759)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jerome.frgacic@yahoo.fr>) id 1Tf77Y-0007CD-Vd
	for groff@gnu.org; Sun, 02 Dec 2012 05:50:01 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jerome.frgacic@yahoo.fr>) id 1Tf77Y-0004hq-3L
	for groff@gnu.org; Sun, 02 Dec 2012 05:50:00 -0500
Received: from nm4.bullet.mail.ird.yahoo.com ([77.238.189.61]:23634)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jerome.frgacic@yahoo.fr>) id 1Tf77X-0004hm-Py
	for groff@gnu.org; Sun, 02 Dec 2012 05:50:00 -0500
Received: from [77.238.189.56] by nm4.bullet.mail.ird.yahoo.com with NNFMP;
	02 Dec 2012 10:49:58 -0000
Received: from [212.82.108.118] by tm9.bullet.mail.ird.yahoo.com with NNFMP;
	02 Dec 2012 10:49:58 -0000
Received: from [127.0.0.1] by omp1027.mail.ird.yahoo.com with NNFMP;
	02 Dec 2012 10:49:58 -0000
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 174680.5052.bm@omp1027.mail.ird.yahoo.com
Received: (qmail 91880 invoked by uid 60001); 2 Dec 2012 10:49:58 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024;
	t=1354445397; bh=lhMdOkNWh0+KJ2fx1Bzj0ELJUThSQseKc04EJhEBy5g=;
	h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type;
	b=qA5+Wh6leLUVEpfcguYSZ2wnGybeSr8mnmVMKfrN8xa5FhVUsrvKJTGRL9NCGH+NAFUfWdoiwVqC0UZTO2hFEfP5RvP/oUixP2Wu1YHETWdWdFc0px77TwhAubVCmsvnZtVNh78A11FAhAlNFZ4b2TRHlP8l5Bw8WSRrbieha/E=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr;
	h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type;
	b=TKG/Heya/8RaUMT1UHQa8AtwmTvNKcSY5nUDxYO2gYC+LVNE/eRm5XimFHkeJRUlSFw9OCSuOs2ExoE3FgYnolahBi3Li9Uf2xA1HEEJIhKqjGrB4Vfuq0CpAc6m/FpBFQPa3rG1mKVlxSVqcVprwSsgLPMsxj6ZEQDvWk7GoNI=;
X-YMail-OSG: tC.WP.oVM1mtsDcretWCb3JBv3fUkBt1Hbb2yIuh6IRT1dt
	1mQObYDEn3Qj1tcWVXyZVOJWWuO.WOYImVgMdeaXbd0nwiMP5EztKWaJhExV
	bpAeo.9AkpJoCReTbY6aagxpjjr8XoYXaGdOXXBkxtkSfYqBNKaJdS7LV1Fb
	RHzCfSgzAJ3dpMVCuJWawPCSB.C.oFZnV.RQWFNWD5xzctLi_QRgc9To_Z6z
	1Sg9urxfnECglAH3dV_2wA35qrbKFOlCSIAKefGveUUEm0W.E4Z7f0Oz1SWX
	a1qTVCBCCQlKXqCLV3eOfTm.xIspDqpM3nPvX5XZZas.FlPtPeFmwbYRGQqB
	emWCB.pjWfXbYVZ4qPIRgwgScVH0DfdChvgiSmLqQ0rP37XhAOmOQBPLI6TZ
	cleel2EQu4NtxTjnkkGpZkyz1TBXjpTSORvc-
Received: from [91.180.253.214] by web171603.mail.ir2.yahoo.com via HTTP;
	Sun, 02 Dec 2012 10:49:57 GMT
X-Rocket-MIMEInfo: 001.001,
	VGhhbmtzIGZvciB5b3VyIHR3byBzb2x1dGlvbnMsIHRoZXkgYm90aCBmaXggbXkgcHJvYmxlbS4KCkkgdGhpbmsgSSBwcmVmZXIgdGVtcG9yYXJpbHkgbW9kaWZ5IHRoZSB2ZXJ0aWNhbCBzcGFjaW5nIGJlZm9yZSBpbnNlcnQgdGhlIGJhY2tncm91bmQgaW1hZ2UsIGJ1dAphZGQgYW4gZW1wdHkgcGFyYWdyYXBoIG9uIHRoZSBmaXJzdCBwYWdlIGFsc28gZG8gdGhlIGpvYiAoYnV0LCBpbiB0aGlzIGNhc2UsIGFsbCB0aGUgaW1hZ2VzIGhhdmUgb25lIHZlcnRpY2FsIHNwYWNpbmcgYWJvdmUgdGhlbSkuCgpBZ2EBMAEBAQE-
X-Mailer: YahooMailWebService/0.8.128.478
References: <1354358527.72600.YahooMailNeo@web171602.mail.ir2.yahoo.com>
	<20121201195201.GB8531@usm.uni-muenchen.de>
	<1354394240.68129.YahooMailNeo@web171602.mail.ir2.yahoo.com>
	<20121201214343.GC8531@usm.uni-muenchen.de>
Message-ID: <1354445397.42096.YahooMailNeo@web171603.mail.ir2.yahoo.com>
Date: Sun, 2 Dec 2012 10:49:57 +0000 (GMT)
From: =?iso-8859-1?Q?J=E9r=F4me_Frgacic?= <jerome.frgacic@yahoo.fr>
To: "groff@gnu.org" <groff@gnu.org>
In-Reply-To: <20121201214343.GC8531@usm.uni-muenchen.de>
MIME-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x
X-Received-From: 77.238.189.61
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Content-Filtered-By: Mailman/MimeDel 2.1.14
Subject: Re: [Groff] Backgound image slightly higher on page one
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: =?iso-8859-1?Q?J=E9r=F4me_Frgacic?= <jerome.frgacic@yahoo.fr>
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, 02 Dec 2012 10:50:01 -0000

Thanks for your two solutions, they both fix my problem.=0A=0AI think I pre=
fer temporarily modify the vertical spacing before insert the background im=
age, but=0Aadd an empty paragraph on the first page also do the job (but, i=
n this case, all the images have one vertical spacing above them).=0A=0AAga=
in, thanks for your help. :)

From MAILER-DAEMON Sun Dec 02 08:35:25 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tf9hd-0005bK-Fr
	for mharc-groff@gnu.org; Sun, 02 Dec 2012 08:35:25 -0500
Received: from eggs.gnu.org ([208.118.235.92]:39025)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1Tf9hZ-0005VZ-Hv
	for groff@gnu.org; Sun, 02 Dec 2012 08:35:22 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1Tf9hY-00016L-Jl
	for groff@gnu.org; Sun, 02 Dec 2012 08:35:21 -0500
Received: from [2001:4ca0:4101:204:21a:4bff:fec5:6ac1] (port=39298
	helo=helix.usm.uni-muenchen.de)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1Tf9hY-000165-Db
	for groff@gnu.org; Sun, 02 Dec 2012 08:35:20 -0500
Received: by helix.usm.uni-muenchen.de (Postfix, from userid 2097)
	id 2E91B161384C; Sun,  2 Dec 2012 14:35:18 +0100 (CET)
Date: Sun, 2 Dec 2012 14:35:18 +0100
From: Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
To: groff@gnu.org
Message-ID: <20121202133518.GB25115@usm.uni-muenchen.de>
References: <20121118210627.GA20028@foveal4.foveal.com>
	<20121118212207.GB7069@usm.uni-muenchen.de>
	<20121118215422.GC7069@usm.uni-muenchen.de>
	<20121118222301.GA23129@foveal4.foveal.com>
	<20121118224212.GD7069@usm.uni-muenchen.de>
	<20121119222945.GA21398@foveal4.foveal.com>
	<20121120214727.GA26298@usm.uni-muenchen.de>
	<20121126152459.GA17742@foveal4.foveal.com>
	<20121201192042.GA8531@usm.uni-muenchen.de>
	<20121201202540.GA17951@foveal4.foveal.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20121201202540.GA17951@foveal4.foveal.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4ca0:4101:204:21a:4bff:fec5:6ac1
Subject: Re: [Groff] producing a booklet with groff ?
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 02 Dec 2012 13:35:22 -0000


> All this just convinces me that this postscript stuff is
> sometimes very fragile.

I wouldn't call it "fragile", I'd say "powerful".

Postscript, like troff, allows redefining the builtin operators.
A very common practice in programs (such as groff, or pstops)
that create Postscript output and allow including other
Postscript files is to redefine showpage for the scope of the
included file, making it a no-op.  This allows the included file
to contain showpage and thus be printed as a standalone file, but
prevents premature ejection of the page when it is printed as part
of the larger document.  The same goes for setpagedevice which
reinitializes the printer with new settings, and which therefore
should only be called at the very beginning of a print job,
before commencing construction of the first page.


> You mentioned that ps2ps mangles fonts..
> I don't notice any difference when I process my files through
>         ...  |  ps2ps  /dev/stdin  ${destfilename}
> and when I do not.  I do notice some slight mangling by pstops.

I had noticed that your PDF file contained bitmap fonts,
and so I assumed this was because of ps2ps (at least, ps2ps
does that on my machine).  Does the file contain bitmap fonts
already before ps2ps?  Normally, you would want groff (grops)
to embed scalable (Type 1) fonts in the document.

pstops should not do anything with the fonts at all, since
it only wraps the Postscript code of each page with a few
instructions to scale, translate, and rotate the coordinate
system.  ps2ps, on the other hand, interprets the Postscript
code and writes a completely new Postscript file which,
code-wise, bears little resemblance to the original.




From MAILER-DAEMON Sun Dec 02 08:45:20 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tf9rE-00083D-E6
	for mharc-groff@gnu.org; Sun, 02 Dec 2012 08:45:20 -0500
Received: from eggs.gnu.org ([208.118.235.92]:45523)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1Tf9rB-00080q-BQ
	for groff@gnu.org; Sun, 02 Dec 2012 08:45:18 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1Tf9r9-0003KM-Tb
	for groff@gnu.org; Sun, 02 Dec 2012 08:45:17 -0500
Received: from relay00.pair.com ([209.68.5.9]:3670)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1Tf9r9-0003K9-NL
	for groff@gnu.org; Sun, 02 Dec 2012 08:45:15 -0500
Received: (qmail 1041 invoked from network); 2 Dec 2012 13:45:13 -0000
Received: from 46.208.70.174 (HELO orac.inputplus.co.uk) (46.208.70.174)
	by relay00.pair.com with SMTP; 2 Dec 2012 13:45:13 -0000
X-pair-Authenticated: 46.208.70.174
Received: by orac.inputplus.co.uk (Postfix, from userid 1000)
	id C552A2E338; Sun,  2 Dec 2012 13:45:13 +0000 (GMT)
Received: from orac.inputplus.co.uk (localhost [127.0.0.1])
	by orac.inputplus.co.uk (Postfix) with ESMTP id A33B02E1E0
	for <groff@gnu.org>; Sun,  2 Dec 2012 13:45:13 +0000 (GMT)
To: groff@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
In-reply-to: <20121202133518.GB25115@usm.uni-muenchen.de>
References: <20121118210627.GA20028@foveal4.foveal.com>
	<20121118212207.GB7069@usm.uni-muenchen.de>
	<20121118215422.GC7069@usm.uni-muenchen.de>
	<20121118222301.GA23129@foveal4.foveal.com>
	<20121118224212.GD7069@usm.uni-muenchen.de>
	<20121119222945.GA21398@foveal4.foveal.com>
	<20121120214727.GA26298@usm.uni-muenchen.de>
	<20121126152459.GA17742@foveal4.foveal.com>
	<20121201192042.GA8531@usm.uni-muenchen.de>
	<20121201202540.GA17951@foveal4.foveal.com>
	<20121202133518.GB25115@usm.uni-muenchen.de>
Comments: In-reply-to Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de> message
	dated "Sun, 02 Dec 2012 14:35:18 +0100."
Date: Sun, 02 Dec 2012 13:45:13 +0000
From: Ralph Corderoy <ralph@inputplus.co.uk>
Message-Id: <20121202134513.C552A2E338@orac.inputplus.co.uk>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.68.5.9
Subject: Re: [Groff] producing a booklet with groff ?
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 02 Dec 2012 13:45:18 -0000

Hi Tadziu,

> ps2ps, on the other hand, interprets the Postscript code and writes a
> completely new Postscript file which, code-wise, bears little
> resemblance to the original.

I often do `ps2pdf downloaded.pdf test.pdf', yes, input is PDF, not
PostScript, to see if test.pdf comes out smaller than downloaded.pdf if
I'm intending to keep it.  Sometimes the savings are large.  (With older
Ghostscripts it was wise to visually check test.pdf a little as it could
have obvious errors but that's not been a problem of late.)  I wonder if
I'm rastering the fonts when doing this.

Cheers, Ralph.


From MAILER-DAEMON Sun Dec 02 12:51:28 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TfDhQ-0002gO-Kj
	for mharc-groff@gnu.org; Sun, 02 Dec 2012 12:51:28 -0500
Received: from eggs.gnu.org ([208.118.235.92]:34366)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1TfDhN-0002f7-S4
	for groff@gnu.org; Sun, 02 Dec 2012 12:51:26 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1TfDhN-0000rW-0r
	for groff@gnu.org; Sun, 02 Dec 2012 12:51:25 -0500
Received: from relay01.pair.com ([209.68.5.15]:3461)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1TfDhM-0000rP-Qf
	for groff@gnu.org; Sun, 02 Dec 2012 12:51:24 -0500
Received: (qmail 73723 invoked from network); 2 Dec 2012 17:51:23 -0000
Received: from 46.208.70.174 (HELO orac.inputplus.co.uk) (46.208.70.174)
	by relay01.pair.com with SMTP; 2 Dec 2012 17:51:23 -0000
X-pair-Authenticated: 46.208.70.174
Received: by orac.inputplus.co.uk (Postfix, from userid 1000)
	id 175091FBB1; Sun,  2 Dec 2012 17:51:22 +0000 (GMT)
Received: from orac.inputplus.co.uk (localhost [127.0.0.1])
	by orac.inputplus.co.uk (Postfix) with ESMTP id E312F1FB6C;
	Sun,  2 Dec 2012 17:51:22 +0000 (GMT)
To: Mike Bianchi <MBianchi@Foveal.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
In-reply-to: <20121201150138.GA12793@foveal4.foveal.com>
References: <1354358527.72600.YahooMailNeo@web171602.mail.ir2.yahoo.com>
	<20121201150138.GA12793@foveal4.foveal.com>
Comments: In-reply-to Mike Bianchi <MBianchi@Foveal.com> message dated "Sat,
	01 Dec 2012 10:01:38 -0500."
Date: Sun, 02 Dec 2012 17:51:22 +0000
From: Ralph Corderoy <ralph@inputplus.co.uk>
Message-Id: <20121202175123.175091FBB1@orac.inputplus.co.uk>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.68.5.15
Cc: =?iso-8859-1?B?Suly9G1l?= Frgacic <jerome.frgacic@yahoo.fr>, groff@gnu.org
Subject: Re: [Groff] <OK> Backgound image slightly higher on page one
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 02 Dec 2012 17:51:26 -0000

Hi Mike,

> Groff starts off in  no-space mode until either the  .rs command or
> some text is output.  no-space mode means any request for vertical
> spacing is ignored.
> 
> I cannot find where this is explained in the documentation.
> 	Computing Science Technical Report No. 54
> 	       Troff User's Manual
> hints at it, but ...

The table split across its pages 14/15 describing .ns and .rs both have
`space' as the second field, Initial value, stating space mode is the
default.  Empirically, it seems correct.

    $ nroff <<<foo | uniq -c
          1 foo
         65 
    $ printf '.sp 3.14i\nfoo\n' | nroff | uniq -c
         19 
          1 foo
         46 
    $

Cheers, Ralph.


From MAILER-DAEMON Sun Dec 02 13:22:53 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TfEBp-00020m-Lv
	for mharc-groff@gnu.org; Sun, 02 Dec 2012 13:22:53 -0500
Received: from eggs.gnu.org ([208.118.235.92]:33520)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <saint.snit@gmail.com>) id 1TfEBm-0001zC-Lj
	for groff@gnu.org; Sun, 02 Dec 2012 13:22:51 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <saint.snit@gmail.com>) id 1TfEBl-0000pK-HE
	for groff@gnu.org; Sun, 02 Dec 2012 13:22:50 -0500
Received: from mail-pa0-f41.google.com ([209.85.220.41]:64036)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <saint.snit@gmail.com>) id 1TfEBl-0000pE-Av
	for groff@gnu.org; Sun, 02 Dec 2012 13:22:49 -0500
Received: by mail-pa0-f41.google.com with SMTP id bj3so1341416pad.0
	for <groff@gnu.org>; Sun, 02 Dec 2012 10:22:48 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type; bh=sdUe1dx2TlS/Zdc5UXeDW4/PaeB3VaBt3hrTsL8tsko=;
	b=csCMZwdJAGNvx4MHoz/9CV77C0xQBJvXgA1R15fz6gmxOmqnTC/5EvymnZ1expOl8v
	gR8uRgE0P7md6k9dYmCtv6tXrEz6ZDdzvzeDhyaKkb/ohG0rJI+a1dsCJvy/vNTnaNMM
	fsKLn2WTx3KmPnyaNSRByfzFy7amXo6wmfLuyqAZA2TTr1nHxrB4fXjRPlYgC7MYjjNx
	XUfOfpBzN1VEpvWbnokDacwDgsyw6ilcl9Karh4KSeX/OQel+hll4Mu6Sg0+OhKRgDXd
	sCLLZMz4ofzyYHjLcvzy1kyMgbWnBqt9/THYCvNMMCjiJFRrpb5CDMhRdic5wLDOmVgs
	CYIg==
MIME-Version: 1.0
Received: by 10.69.1.71 with SMTP id be7mr21478457pbd.45.1354472567947; Sun,
	02 Dec 2012 10:22:47 -0800 (PST)
Received: by 10.68.64.136 with HTTP; Sun, 2 Dec 2012 10:22:47 -0800 (PST)
In-Reply-To: <20121202175123.175091FBB1@orac.inputplus.co.uk>
References: <1354358527.72600.YahooMailNeo@web171602.mail.ir2.yahoo.com>
	<20121201150138.GA12793@foveal4.foveal.com>
	<20121202175123.175091FBB1@orac.inputplus.co.uk>
Date: Sun, 2 Dec 2012 12:22:47 -0600
Message-ID: <CACRhBXPw6q5iWR8k2URQAP8S4rn=pGER2gttRk+OT2N5GjLp1Q@mail.gmail.com>
From: Dave Kemper <saint.snit@gmail.com>
To: groff@gnu.org
Content-Type: text/plain; charset=ISO-8859-1
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 209.85.220.41
Subject: Re: [Groff] <OK> Backgound image slightly higher on page one
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 02 Dec 2012 18:22:51 -0000

On Sun, Dec 2, 2012 at 11:51 AM, Ralph Corderoy <ralph@inputplus.co.uk> wrote:
> The table split across its pages 14/15 describing .ns and .rs both have
> `space' as the second field, Initial value, stating space mode is the
> default.  Empirically, it seems correct.
>
>     $ nroff <<<foo | uniq -c
>           1 foo
>          65
>     $ printf '.sp 3.14i\nfoo\n' | nroff | uniq -c
>          19
>           1 foo
>          46
>     $

More generally, while plain groff starts in space mode, some macro
packages start in no-space mode.

$ nroff -me <<<foo | uniq -c
      7
      1 foo
     58
$ printf '.sp 20\nfoo\n' | nroff -me | uniq -c
      7
      1 foo
     58
$ nroff -ms <<<foo | uniq -c
      6
      1 foo
     59
$ printf '.sp 20\nfoo\n' | nroff -ms | uniq -c
      6
      1 foo
     59
$ nroff -mom <<<foo | uniq -c
      1
      1 foo
     64
$ printf '.sp 20\nfoo\n' | nroff -mom | uniq -c
     21
      1 foo
     44
$


From MAILER-DAEMON Sun Dec 02 13:40:07 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TfESU-0004nj-Vy
	for mharc-groff@gnu.org; Sun, 02 Dec 2012 13:40:06 -0500
Received: from eggs.gnu.org ([208.118.235.92]:59657)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <clarke@verinet.net>) id 1TfESS-0004mR-Bn
	for groff@gnu.org; Sun, 02 Dec 2012 13:40:05 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <clarke@verinet.net>) id 1TfESQ-0006c8-0x
	for groff@gnu.org; Sun, 02 Dec 2012 13:40:04 -0500
Received: from smtp01.frii.com ([216.17.135.167]:37969)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <clarke@verinet.net>) id 1TfESP-0006aI-Re
	for groff@gnu.org; Sun, 02 Dec 2012 13:40:01 -0500
Received: from [192.168.0.100] (dsl-205-103.dynamic-dsl.frii.net
	[216.17.205.103])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp01.frii.com (FRII) with ESMTP id 55255E80B2
	for <groff@gnu.org>; Sun,  2 Dec 2012 11:40:00 -0700 (MST)
Message-ID: <50BBA08B.2010607@verinet.net>
Date: Sun, 02 Dec 2012 11:40:11 -0700
From: Clarke Echols <clarke@verinet.net>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:16.0) Gecko/20121011 Thunderbird/16.0.1
MIME-Version: 1.0
To: Groff <groff@gnu.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 216.17.135.167
Subject: [Groff] What does  'groff <<<foo' do?
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 02 Dec 2012 18:40:06 -0000

In a recent email the syntax:

     groff <<<foo ...

was used.

I've used Unix/Linux for over 25 years, and I've never seen
that "triple redirect" before.  What does it do?  I get nowhere
with a Google search because it ignores the '<<<'.

Thanks,

Clarke

-- 
Clarke Echols
Marketing Communications Specialist
Senior Copywriter
Loveland, CO
(970) 667-6736
http://www.ClarkeEchols.com


From MAILER-DAEMON Sun Dec 02 14:02:38 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TfEoI-0000rI-UE
	for mharc-groff@gnu.org; Sun, 02 Dec 2012 14:02:38 -0500
Received: from eggs.gnu.org ([208.118.235.92]:41594)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1TfEoF-0000pd-Uw
	for groff@gnu.org; Sun, 02 Dec 2012 14:02:36 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1TfEoE-0004gJ-PC
	for groff@gnu.org; Sun, 02 Dec 2012 14:02:35 -0500
Received: from smarthost02.mail.zen.net.uk ([212.23.1.2]:47587)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1TfEoE-0004g7-Ju
	for groff@gnu.org; Sun, 02 Dec 2012 14:02:34 -0500
Received: from [88.96.44.206] (helo=deb)
	by smarthost02.mail.zen.net.uk with esmtp (Exim 4.72)
	(envelope-from <Ted.Harding@wlandres.net>)
	id 1TfEoC-00087D-Ql; Sun, 02 Dec 2012 19:02:32 +0000
Content-Length: 1147
Message-ID: <XFMail.20121202190221.Ted.Harding@wlandres.net>
X-Mailer: XFMail 1.5.5 on Linux
X-Priority: 3 (Normal)
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0
In-Reply-To: <50BBA08B.2010607@verinet.net>
Date: Sun, 02 Dec 2012 19:02:21 -0000 (GMT)
Sender: ted@deb
From: (Ted Harding) <Ted.Harding@wlandres.net>
To: Groff <groff@gnu.org>
Bcc: 
X-Originating-Smarthost02-IP: [88.96.44.206]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 212.23.1.2
Subject: Re: [Groff] What does  'groff <<<foo' do?
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: Ted.Harding@wlandres.net
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, 02 Dec 2012 19:02:36 -0000

On 02-Dec-2012 18:40:11 Clarke Echols wrote:
> In a recent email the syntax:
> 
>      groff <<<foo ...
> 
> was used.
> 
> I've used Unix/Linux for over 25 years, and I've never seen
> that "triple redirect" before.  What does it do?  I get nowhere
> with a Google search because it ignores the '<<<'.
> 
> Thanks,
> Clarke

It surprised me too! Never seen it before. However, rather than
mess about feeding mysteries to groff, I tried some simple
experiments with 'cat':

$ cat <<<foo
foo

$ cat <<< foo
foo

$ cat <<foo
> This is input
> foo
This is input

$ cat << <foo
bash: syntax error near unexpected token `<'

$ cat < <<foo
bash: syntax error near unexpected token `<<'

While everything else does what one naturally expects,
'cat <<<foo' or 'cat <<< foo' seems to be a way of passing
what follows the "<<<" directly to the command, as if equivalent
to "echo foo | cat".

That's my take on it, anyway!
Best wishes,
Ted.

-------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding@wlandres.net>
Date: 02-Dec-2012  Time: 19:02:15
This message was sent by XFMail
-------------------------------------------------


From MAILER-DAEMON Sun Dec 02 14:19:23 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TfF4V-0003uO-7c
	for mharc-groff@gnu.org; Sun, 02 Dec 2012 14:19:23 -0500
Received: from eggs.gnu.org ([208.118.235.92]:59708)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <saint.snit@gmail.com>) id 1TfF4T-0003u6-FR
	for groff@gnu.org; Sun, 02 Dec 2012 14:19:22 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <saint.snit@gmail.com>) id 1TfF4S-0001FX-Lq
	for groff@gnu.org; Sun, 02 Dec 2012 14:19:21 -0500
Received: from mail-pa0-f41.google.com ([209.85.220.41]:57204)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <saint.snit@gmail.com>) id 1TfF4S-0001Ey-Cs
	for groff@gnu.org; Sun, 02 Dec 2012 14:19:20 -0500
Received: by mail-pa0-f41.google.com with SMTP id bj3so1354540pad.0
	for <groff@gnu.org>; Sun, 02 Dec 2012 11:19:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type; bh=ySd2mwrW2NIQquDw0kGGlcjuj+9ksnCj0CIQGOIC9Ps=;
	b=x3NRlFJ+7fTVITLUpmESLUdMskKpDpgS/WCp575SEOnOm2XujJo8AGkF5TYrZs4VDf
	gK7E0nC8YFN72YLrzjKH03WUJ4xb81oB0ahJzfVpN2gs1LImvmD6BjZ9o8aGzVGhv+YT
	AtRafN0PftKG7KsJECmwPSfcuz+O1uNt7v538P6ksAYpWrtArfEo24x/cOV0tFUA748g
	FmAMg6/VvXr6CSCCcQwXgRAk5UBZkjYhSL+nhvYGpc4eMzs5dDBSHiOVzq8Gh4lianX3
	sRxTZ4bqfLg4iFafvSDqZylisaSqBJwuTbbLIGaesaMYYrVB+2Dbrii1CkX3EkgGgdxw
	U/lw==
MIME-Version: 1.0
Received: by 10.68.230.66 with SMTP id sw2mr23153712pbc.119.1354475959433;
	Sun, 02 Dec 2012 11:19:19 -0800 (PST)
Received: by 10.68.64.136 with HTTP; Sun, 2 Dec 2012 11:19:19 -0800 (PST)
In-Reply-To: <XFMail.20121202190221.Ted.Harding@wlandres.net>
References: <50BBA08B.2010607@verinet.net>
	<XFMail.20121202190221.Ted.Harding@wlandres.net>
Date: Sun, 2 Dec 2012 13:19:19 -0600
Message-ID: <CACRhBXNg73Wh_We1wL49s+ZAsahZGW876u3QOzxWAno9XeJ_mQ@mail.gmail.com>
From: Dave Kemper <saint.snit@gmail.com>
To: Groff <groff@gnu.org>
Content-Type: text/plain; charset=ISO-8859-1
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 209.85.220.41
Subject: Re: [Groff] What does 'groff <<<foo' do?
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 02 Dec 2012 19:19:22 -0000

> 'cat <<<foo' or 'cat <<< foo' seems to be a way of passing
> what follows the "<<<" directly to the command, as if equivalent
> to "echo foo | cat".

Yes.  It's documented in the bash man page under "Here Strings".  I just
learned about it from Ralph's email myself.  It's a great shortcut.


From MAILER-DAEMON Sun Dec 02 14:24:19 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TfF9H-0004eC-3H
	for mharc-groff@gnu.org; Sun, 02 Dec 2012 14:24:19 -0500
Received: from eggs.gnu.org ([208.118.235.92]:33800)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <sizma@golden.net>) id 1TfF9E-0004e6-77
	for groff@gnu.org; Sun, 02 Dec 2012 14:24:17 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <sizma@golden.net>) id 1TfF9C-0002P7-Sj
	for groff@gnu.org; Sun, 02 Dec 2012 14:24:16 -0500
Received: from smtp1.execulink.net ([69.63.44.82]:37742)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <sizma@golden.net>) id 1TfF9C-0002NX-No
	for groff@gnu.org; Sun, 02 Dec 2012 14:24:14 -0500
Received: from 209-183-129-227.pppoe.execulink.com ([209.183.129.227]
	helo=locust.locust-net) by smtp1.execulink.net with esmtp (Exim 4.77)
	(envelope-from <sizma@golden.net>) id 1TfF9A-0006tX-IQ
	for groff@gnu.org; Sun, 02 Dec 2012 14:24:12 -0500
Received: from steve by locust.locust-net with local (Exim 4.72)
	(envelope-from <sizma@golden.net>) id 1TfF99-0001Bd-QW
	for groff@gnu.org; Sun, 02 Dec 2012 14:24:11 -0500
Date: Sun, 2 Dec 2012 14:24:11 -0500
From: Steve Izma <sizma@golden.net>
To: groff@gnu.org
Message-ID: <20121202192411.GA2963@locust.locust-net>
References: <50BBA08B.2010607@verinet.net>
	<XFMail.20121202190221.Ted.Harding@wlandres.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <XFMail.20121202190221.Ted.Harding@wlandres.net>
User-Agent: Mutt/1.5.20 (2009-06-14)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 69.63.44.82
Subject: Re: [Groff] What does  'groff <<<foo' do?
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: sizma@golden.net
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, 02 Dec 2012 19:24:17 -0000

On Sun, Dec 02, 2012 at 07:02:21PM -0000, Ted Harding wrote:
> To: Groff <groff@gnu.org>
> Subject: Re: [Groff] What does  'groff <<<foo' do?
> 
> On 02-Dec-2012 18:40:11 Clarke Echols wrote:
> > In a recent email the syntax:
> > 
> >      groff <<<foo ...
> > 
> > was used.
> > 
> > I've used Unix/Linux for over 25 years, and I've never seen
> > that "triple redirect" before.  What does it do?  I get nowhere
> > with a Google search because it ignores the '<<<'.
> 
> It surprised me too! Never seen it before....
> 
> While everything else does what one naturally expects,
> 'cat <<<foo' or 'cat <<< foo' seems to be a way of passing
> what follows the "<<<" directly to the command, as if equivalent
> to "echo foo | cat".

I was confused too, but that's because I've always used the Korn
Shell (pdksh under linux). But "<<< word" is called a "Here
string" in the bash man page. It's also included in the Mir BSD
Korn Shell, which looks like it's going to be the universal
replacement for pdksh. The above "echo foo | ..." looks more
logical and consistent to me.

	-- Steve

-- 
Steve Izma
-
Home: 35 Locust St., Kitchener N2H 1W6    p:519-745-1313
Work: Wilfrid Laurier University Press    p:519-884-0710 ext. 6125
E-mail: sizma@golden.net or steve@press.wlu.ca

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
<http://en.wikipedia.org/wiki/Posting_style>


From MAILER-DAEMON Sun Dec 02 14:44:35 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TfFSt-0008My-Uc
	for mharc-groff@gnu.org; Sun, 02 Dec 2012 14:44:35 -0500
Received: from eggs.gnu.org ([208.118.235.92]:32982)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mbianchi@foveal4.foveal.com>) id 1TfFSr-0008LM-Nd
	for groff@gnu.org; Sun, 02 Dec 2012 14:44:34 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mbianchi@foveal4.foveal.com>) id 1TfFSq-00088x-AN
	for groff@gnu.org; Sun, 02 Dec 2012 14:44:33 -0500
Received: from relay02.pair.com ([209.68.5.16]:1255)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <mbianchi@foveal4.foveal.com>) id 1TfFSq-00087x-3y
	for groff@gnu.org; Sun, 02 Dec 2012 14:44:32 -0500
Received: (qmail 34129 invoked from network); 2 Dec 2012 19:44:30 -0000
Received: from 74.102.6.186 (HELO foveal4.foveal.com) (74.102.6.186)
	by relay02.pair.com with SMTP; 2 Dec 2012 19:44:30 -0000
X-pair-Authenticated: 74.102.6.186
Received: by foveal4.foveal.com (Postfix, from userid 617)
	id B66C917D151; Sun,  2 Dec 2012 14:44:30 -0500 (EST)
Date: Sun, 2 Dec 2012 14:44:30 -0500
From: Mike Bianchi <MBianchi@Foveal.com>
To: Dave Kemper <saint.snit@gmail.com>
Message-ID: <20121202194430.GA19108@foveal4.foveal.com>
References: <1354358527.72600.YahooMailNeo@web171602.mail.ir2.yahoo.com>
	<20121201150138.GA12793@foveal4.foveal.com>
	<20121202175123.175091FBB1@orac.inputplus.co.uk>
	<CACRhBXPw6q5iWR8k2URQAP8S4rn=pGER2gttRk+OT2N5GjLp1Q@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CACRhBXPw6q5iWR8k2URQAP8S4rn=pGER2gttRk+OT2N5GjLp1Q@mail.gmail.com>
User-Agent: Mutt/1.5.17+20080114 (2008-01-14)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.68.5.16
Cc: groff@gnu.org
Subject: Re: [Groff] <OK> Backgound image slightly higher on page one
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 02 Dec 2012 19:44:34 -0000

On Sun, Dec 02, 2012 at 12:22:47PM -0600, Dave Kemper wrote:
> On Sun, Dec 2, 2012 at 11:51 AM, Ralph Corderoy <ralph@inputplus.co.uk> wrote:
> > The table split across its pages 14/15 describing .ns and .rs both have
> > `space' as the second field, Initial value, stating space mode is the
> > default.  Empirically, it seems correct.
> > 	:
> 
> More generally, while plain groff starts in space mode, some macro
> packages start in no-space mode.
>	:

I got it wrong, because I almost always use mm macros in my documents.
Sorry.

-- 
 Mike Bianchi
 Foveal Systems

 973 822-2085

 MBianchi@Foveal.com
 http://www.AutoAuditorium.com
 http://www.FovealMounts.com


From MAILER-DAEMON Sun Dec 02 15:11:34 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TfFt0-0005cn-9m
	for mharc-groff@gnu.org; Sun, 02 Dec 2012 15:11:34 -0500
Received: from eggs.gnu.org ([208.118.235.92]:55176)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <johann.hoechtl@gmail.com>) id 1TfFsy-0005be-BR
	for groff@gnu.org; Sun, 02 Dec 2012 15:11:33 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <johann.hoechtl@gmail.com>) id 1TfFsx-0007GF-Ci
	for groff@gnu.org; Sun, 02 Dec 2012 15:11:32 -0500
Received: from mail-ee0-f41.google.com ([74.125.83.41]:62827)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <johann.hoechtl@gmail.com>) id 1TfFsx-0007Fz-6M
	for groff@gnu.org; Sun, 02 Dec 2012 15:11:31 -0500
Received: by mail-ee0-f41.google.com with SMTP id d41so1405649eek.0
	for <groff@gnu.org>; Sun, 02 Dec 2012 12:11:30 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=message-id:date:from:user-agent:mime-version:to:cc:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	bh=TWDDZx2TOFW1zj8x6EHr2UA1ic/46NRIXfHeI68W0/I=;
	b=GoD+8vl1OzXmEpvFtwMJU0oZwxgF4mkUw+/FtZVO2TkVyeh0YKoj6wWxKu6Q58NrXr
	eZgHQLObBkkWXx9cdHUVCheD9hlI/+UVJ6Cb+BH5kxDndnSk9osHIO1thOPt3fbVL4pI
	p9C/lcO8C8HzLVTmIBDNNSr9m1Krz7FSyusW86WtIU0ocbnJLp2CHfam19U3FIa1IBZK
	opzm48eoE0qbfPi5kfIxgMpSNTH3iL7zbmd9w/5kYpD5ilh7Eam5ZRItEoSd+P4NZBAt
	Akuy0fsCa7Cp7WgWJfZ4jDWElaoHP6c/iyW2576TA6IXwlZYskiWnDpHPMQ2/UN9m2kS
	AzGQ==
Received: by 10.14.214.132 with SMTP id c4mr28381504eep.18.1354479090094;
	Sun, 02 Dec 2012 12:11:30 -0800 (PST)
Received: from [192.168.2.94] (d86-33-210-43.cust.tele2.at. [86.33.210.43])
	by mx.google.com with ESMTPS id k2sm26704991eep.15.2012.12.02.12.11.27
	(version=SSLv3 cipher=OTHER); Sun, 02 Dec 2012 12:11:28 -0800 (PST)
Message-ID: <50BBB5EE.5030208@gmail.com>
Date: Sun, 02 Dec 2012 21:11:26 +0100
From: =?ISO-8859-1?Q?Johann_H=F6chtl?= <johann.hoechtl@gmail.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:17.0) Gecko/17.0 Thunderbird/17.0
MIME-Version: 1.0
To: Clarke Echols <clarke@verinet.net>
References: <50BBA08B.2010607@verinet.net>
In-Reply-To: <50BBA08B.2010607@verinet.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 74.125.83.41
Cc: Groff <groff@gnu.org>
Subject: Re: [Groff] What does  'groff <<<foo' do?
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 02 Dec 2012 20:11:33 -0000

On 12/02/2012 07:40 PM, Clarke Echols wrote:
> In a recent email the syntax:
>
>      groff <<<foo ...
>
> was used.
>
It's called "Here string" or "here document" and used extensively in 
Bash / Perl / Python / Ruby programming. With 'here doc' You can 
disguise entire websites in a single perl file .... or a troff document

http://en.wikipedia.org/wiki/Here_document

> I've used Unix/Linux for over 25 years, and I've never seen
> that "triple redirect" before.  What does it do?  I get nowhere
> with a Google search because it ignores the '<<<'.
>
> Thanks,
>
> Clarke
>




From MAILER-DAEMON Sun Dec 02 18:16:22 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TfIlq-0004yQ-J9
	for mharc-groff@gnu.org; Sun, 02 Dec 2012 18:16:22 -0500
Received: from eggs.gnu.org ([208.118.235.92]:39120)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1TfIlo-0004xg-HQ
	for groff@gnu.org; Sun, 02 Dec 2012 18:16:21 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1TfIln-0003We-JB
	for groff@gnu.org; Sun, 02 Dec 2012 18:16:20 -0500
Received: from [2001:4ca0:4101:204:21a:4bff:fec5:6ac1] (port=51785
	helo=helix.usm.uni-muenchen.de)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1TfIln-0003WJ-Ci
	for groff@gnu.org; Sun, 02 Dec 2012 18:16:19 -0500
Received: by helix.usm.uni-muenchen.de (Postfix, from userid 2097)
	id E9C911613857; Mon,  3 Dec 2012 00:16:15 +0100 (CET)
Date: Mon, 3 Dec 2012 00:16:15 +0100
From: Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
To: groff@gnu.org
Message-ID: <20121202231615.GC25115@usm.uni-muenchen.de>
References: <20121118215422.GC7069@usm.uni-muenchen.de>
	<20121118222301.GA23129@foveal4.foveal.com>
	<20121118224212.GD7069@usm.uni-muenchen.de>
	<20121119222945.GA21398@foveal4.foveal.com>
	<20121120214727.GA26298@usm.uni-muenchen.de>
	<20121126152459.GA17742@foveal4.foveal.com>
	<20121201192042.GA8531@usm.uni-muenchen.de>
	<20121201202540.GA17951@foveal4.foveal.com>
	<20121202133518.GB25115@usm.uni-muenchen.de>
	<20121202134513.C552A2E338@orac.inputplus.co.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20121202134513.C552A2E338@orac.inputplus.co.uk>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4ca0:4101:204:21a:4bff:fec5:6ac1
Subject: Re: [Groff] producing a booklet with groff ?
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 02 Dec 2012 23:16:21 -0000


> I often do `ps2pdf downloaded.pdf test.pdf', yes, input is
> PDF, not PostScript,

ps2pdf is essentially "gs -sDEVICE=pdfwrite", and since
ghostscript understands both Postscript and PDF it is
indeed possible to feed PDF to ps2pdf, despite the name.

> to see if test.pdf comes out smaller than downloaded.pdf if
> I'm intending to keep it.  Sometimes the savings are large.

If you're using the default settings then my guess is that
ps2pdf achieves these savings by recompressing images to
JPEG in lower quality, or even downsampling images to lower
resolution.  So you're paying for the smaller file size with
a loss in quality.

> I wonder if I'm rastering the fonts when doing this.

Probably not, and that's the funny thing.  Analogously to
ps2pdf, pstops is "gs -sDEVICE=pswrite", but while the pdfwrite
device seems to handle fonts correctly, pswrite converts text
to bitmap images (or curves, if the font size is large).


However... (doing some googling)...

It turns out there's a new ghostscript device "ps2write" (and
a corresponding "ps2ps2" script) that *does* preserve fonts.
My guess is that this device is handled internally the same
as pdfwrite, since the output syntax is very PDF-like.
Nevertheless, for hacking the Postscript file (e.g., to extract
figures, if you don't have the source) the output from this
device is still much more cumbersome than the output produced
directly by grops (or any other program which generates clean,
editable Postscript).




From MAILER-DAEMON Sun Dec 02 20:34:14 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TfKvG-00029X-4m
	for mharc-groff@gnu.org; Sun, 02 Dec 2012 20:34:14 -0500
Received: from eggs.gnu.org ([208.118.235.92]:36710)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <clarke@verinet.net>) id 1TfKvD-00027w-EJ
	for groff@gnu.org; Sun, 02 Dec 2012 20:34:12 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <clarke@verinet.net>) id 1TfKvC-0005kT-8j
	for groff@gnu.org; Sun, 02 Dec 2012 20:34:11 -0500
Received: from smtp01.frii.com ([216.17.135.167]:45477)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <clarke@verinet.net>) id 1TfKvC-0005kD-3m
	for groff@gnu.org; Sun, 02 Dec 2012 20:34:10 -0500
Received: from [192.168.0.100] (dsl-205-103.dynamic-dsl.frii.net
	[216.17.205.103])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp01.frii.com (FRII) with ESMTP id 979BEE80C2
	for <groff@gnu.org>; Sun,  2 Dec 2012 18:34:08 -0700 (MST)
Message-ID: <50BC019C.8000706@verinet.net>
Date: Sun, 02 Dec 2012 18:34:20 -0700
From: Clarke Echols <clarke@verinet.net>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:16.0) Gecko/20121011 Thunderbird/16.0.1
MIME-Version: 1.0
To: groff@gnu.org
References: <50BBA08B.2010607@verinet.net>
	<XFMail.20121202190221.Ted.Harding@wlandres.net>
	<CACRhBXNg73Wh_We1wL49s+ZAsahZGW876u3QOzxWAno9XeJ_mQ@mail.gmail.com>
In-Reply-To: <CACRhBXNg73Wh_We1wL49s+ZAsahZGW876u3QOzxWAno9XeJ_mQ@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 216.17.135.167
Subject: Re: [Groff] What does 'groff <<<foo' do?
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 03 Dec 2012 01:34:12 -0000

On 12/02/2012 12:19 PM, Dave Kemper wrote:
>> 'cat <<<foo' or 'cat <<< foo' seems to be a way of passing
>> what follows the "<<<" directly to the command, as if equivalent
>> to "echo foo | cat".
>
> Yes.  It's documented in the bash man page under "Here Strings".  I just
> learned about it from Ralph's email myself.  It's a great shortcut.
>
>

Aha!  I now recall "Here Documents" from my HP days, but they were
handled with something like <<@EOF@, as I recall.  The Korn Shell
manual from AT&T by Korn and his Bell Labs cohort uses a different
character.

I don't remember for sure, but it seems the usage was something
on the order of:

...
cat <<@EOF@ >file
Text line 1
Text line 2
EOF
...

or something similar.  Unfortunately, I don't have any of that old
stuff (from the 1980s) still around for reference.

I've never heard of "here strings" before, but it makes sense --
though a better explanation in the man page would be helpful.

Maybe there's a tuturial manual somewhere...

Indeed there are several:
http://tldp.org/LDP/abs/html/here-docs.html

A Google search on "bash shell script here document" produces plenty
of others.

Thanks for the enlightenment.

Clarke


From MAILER-DAEMON Mon Dec 03 04:48:35 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TfSdf-0004Kt-RU
	for mharc-groff@gnu.org; Mon, 03 Dec 2012 04:48:35 -0500
Received: from eggs.gnu.org ([208.118.235.92]:40977)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <botha.kobus@gmail.com>) id 1TfSdd-0004JC-UE
	for groff@gnu.org; Mon, 03 Dec 2012 04:48:34 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <botha.kobus@gmail.com>) id 1TfSdZ-0001qL-PM
	for groff@gnu.org; Mon, 03 Dec 2012 04:48:33 -0500
Received: from mail-la0-f41.google.com ([209.85.215.41]:49729)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <botha.kobus@gmail.com>) id 1TfSdZ-0001qD-G3
	for groff@gnu.org; Mon, 03 Dec 2012 04:48:29 -0500
Received: by mail-la0-f41.google.com with SMTP id m15so2172793lah.0
	for <groff@gnu.org>; Mon, 03 Dec 2012 01:48:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=message-id:date:from:user-agent:mime-version:to:subject
	:content-type:content-transfer-encoding;
	bh=fONLB1jNwtA6npasVFRiQvnPTXv0Y2u4oEkiTTIp6ec=;
	b=ZTZz52vNFf0GIbZcq8DTUNHrJkP0XazBtaCe+QGe5Bvam9/S/wroyKf47ZP0BNdhfn
	KmqHOesv4a5gWNPRbm8gqcn+bnPHA6wGjeEbPWSu6jtHNiIe86zx6EE++Q8ciUH2X9g0
	wsFIHSxFEqk/pOgKtfd8TS4rxZ9LU3GtsRbtBQLhUZ8q8EUpAOmkilkYdkV45O6tYwiV
	BBlm181J0uW1VnC1nL0BRCMTvy/gb5GDiKVFL8KG0HG/VGLbZq9E7lB44FArLerCjGsd
	ahgrwsK4YYEutY6J1Tox+/YCHlbF/RUAeXesgybLahwqmLLEHkoMVPHdyHvKZoejy+SU
	pfXQ==
Received: by 10.152.124.111 with SMTP id mh15mr8822857lab.20.1354528107766;
	Mon, 03 Dec 2012 01:48:27 -0800 (PST)
Received: from [192.168.2.151] ([41.193.65.66])
	by mx.google.com with ESMTPS id sq2sm4945198lab.14.2012.12.03.01.48.24
	(version=SSLv3 cipher=OTHER); Mon, 03 Dec 2012 01:48:26 -0800 (PST)
Message-ID: <50BC755F.6070907@gmail.com>
Date: Mon, 03 Dec 2012 11:48:15 +0200
From: Kobus Botha <botha.kobus@gmail.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:16.0) Gecko/20121011 Thunderbird/16.0.1
MIME-Version: 1.0
To: groff@gnu.org
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 209.85.215.41
Subject: [Groff] EPS vs PDF support in MOM
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 03 Dec 2012 09:48:35 -0000

Hi

I've been using groff for generating reports which can contain 
screenshots with the MOM macros. I used the groff currently in the 
Ubuntu repos which does not include pdfmom. The eps images worked well 
except for the time taken to build the pdf due to the size of the eps 
files which are in the order of 70MB after conversion from a png of 
70KB. I then discovered the -compress option in convert, only to 
discover that eps2 is not currently supported. I then thought that 
getting pdfmom will solve my problems and e-mailed Peter Shaffter and he 
helped me to get pdfmom working.

The problem I have now is that PDF_IMAGE does not act as a replacement 
for PSPIC and I want to know if the current development snapshots of 
groff supports eps2?

The problem I have with PDF_IMAGE is that it treats images like floats...
"Mom treats images inserted into a document with PDF_IMAGE like floats, 
which is to say that if the image doesn’t fit on the output page, she 
will defer it to the top of the next page while continuing to process 
running text. ADJUST is ignored whenever an image is deferred, and a 
message is printed to stderr advising you where the deferment has taken 
place. "

For my use the position of the image is critical and I can't see a way 
of preventing this behavior. So, maybe sticking to eps is the best idea, 
if there is a way to bring down the size of the eps images. Is there any 
way to do this?


From MAILER-DAEMON Mon Dec 03 07:46:27 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TfVPn-0008Rk-8m
	for mharc-groff@gnu.org; Mon, 03 Dec 2012 07:46:27 -0500
Received: from eggs.gnu.org ([208.118.235.92]:38986)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1TfVPk-0008Ps-M8
	for groff@gnu.org; Mon, 03 Dec 2012 07:46:25 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1TfVPe-0006MV-Lm
	for groff@gnu.org; Mon, 03 Dec 2012 07:46:24 -0500
Received: from relay01.pair.com ([209.68.5.15]:4946)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1TfVPe-0006MF-Fo
	for groff@gnu.org; Mon, 03 Dec 2012 07:46:18 -0500
Received: (qmail 86752 invoked from network); 3 Dec 2012 12:46:17 -0000
Received: from 46.208.70.174 (HELO orac.inputplus.co.uk) (46.208.70.174)
	by relay01.pair.com with SMTP; 3 Dec 2012 12:46:17 -0000
X-pair-Authenticated: 46.208.70.174
Received: by orac.inputplus.co.uk (Postfix, from userid 1000)
	id A406E1FCD7; Mon,  3 Dec 2012 12:46:16 +0000 (GMT)
Received: from orac.inputplus.co.uk (localhost [127.0.0.1])
	by orac.inputplus.co.uk (Postfix) with ESMTP id 7F8C71FCD3
	for <groff@gnu.org>; Mon,  3 Dec 2012 12:46:16 +0000 (GMT)
To: groff@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
In-reply-to: <50BBB5EE.5030208@gmail.com>
References: <50BBA08B.2010607@verinet.net> <50BBB5EE.5030208@gmail.com>
Comments: In-reply-to =?ISO-8859-1?Q?Johann_H=F6chtl?=
	<johann.hoechtl@gmail.com> message dated "Sun,
	02 Dec 2012 21:11:26 +0100."
Date: Mon, 03 Dec 2012 12:46:16 +0000
From: Ralph Corderoy <ralph@inputplus.co.uk>
Message-Id: <20121203124616.A406E1FCD7@orac.inputplus.co.uk>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.68.5.15
Subject: Re: [Groff] What does 'groff <<<foo' do?
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 03 Dec 2012 12:46:26 -0000

Hi,

Johann wrote:
> On 12/02/2012 07:40 PM, Clarke Echols wrote:
> > In a recent email the syntax:
> >
> >      groff <<<foo ...
> >
> > was used.
>
> It's called "Here string" or "here document" and used extensively in
> Bash / Perl / Python / Ruby programming.

That's mixing two different things together.  The double << is a `here
document', the triple <<< is a `here string'.

Here documents have been around for yonks and are in the Bourne shell,
bash, etc.  Perl and Ruby have their versions as a syntax but for
strings not for I/O redirection.  Python doesn't have them, using
multi-line strings instead.

Lines following the << operator are arranged to be the standard input of
the command up to and not including <<'s operand.  If any part of the
operand is quoted in some way then no variable interpolation is done,
even if the quotes are "" as opposed to '' which would normally expand
variables.

Expansion versus no expansion;  the "" and '' have no effect.

    $ cat <<E
    > $HOME "$HOME" '$HOME' `pwd`
    > E
    /home/ralph "/home/ralph" '/home/ralph' /home/ralph
    $
    $ cat <<\E
    > $HOME "$HOME" '$HOME' `pwd`
    > E
    $HOME "$HOME" '$HOME' `pwd`
    $

Any part quoted affects expansion.

    $ cat <<E"O"F
    > $HOME "$HOME" '$HOME' `pwd`
    > EOF
    $HOME "$HOME" '$HOME' `pwd`
    $

If <<- is used instead of << then runs of leading tabs are removed, but
not general white-space.  It's intended for indenting the document;  I
never use it.

    $ cat <<-E
    >               $HOME "$HOME" '$HOME' `pwd`
    > E
    /home/ralph "/home/ralph" '/home/ralph' /home/ralph
    $
    $ cat <<-E
    >     $HOME "$HOME" '$HOME' `pwd`
    > E
        /home/ralph "/home/ralph" '/home/ralph' /home/ralph
    $

A here string is a bashism where the `word' that is <<<'s operand is fed
to the command on stdin.  This means it follows the normal expansion
rules.

    $ xargs ls -d <<<$HOME
    /home/ralph
    $ xargs ls -d <<<"$HOME"
    /home/ralph
    $ xargs ls -d <<<'$HOME'
    ls: cannot access $HOME: No such file or directory
    $ xargs ls -d <<<"/././.`pwd`"
    /./././home/ralph
    $

bash here currently implements it as a temporary file that's deleted
before the command's run.

    $ ls -l /dev/fd/0 <<<foo
    lr-x------ 1 ralph ralph 64 2012-12-03 12:17 /dev/fd/0 -> /tmp/sh-thd-1354535065 (deleted)
    $

I take the point on it not having left to right order but neither has
    bar <foo
compared to
    cat foo | bar
but we rightly shun the latter.  Having used <<< for some years, I'm
just as happy reading `command, its options, then how its I/O is set'
whether it's <, <<, or <<<.

BTW, if you didn't know of <<< then you may be missing out on <() and
friends.  See `Process Substitution' in bash(1).

    join <(sha1sum * | sort) <(cd ../old && sha1sum * | sort)

-- 
Cheers, Ralph.
https://plus.google.com/115649437518703495227


From MAILER-DAEMON Mon Dec 03 10:02:50 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TfXXm-00060e-7m
	for mharc-groff@gnu.org; Mon, 03 Dec 2012 10:02:50 -0500
Received: from eggs.gnu.org ([208.118.235.92]:54928)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mbianchi@foveal4.foveal.com>) id 1TfXXa-0005xD-SN
	for groff@gnu.org; Mon, 03 Dec 2012 10:02:48 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mbianchi@foveal4.foveal.com>) id 1TfXXU-0005zK-Tm
	for groff@gnu.org; Mon, 03 Dec 2012 10:02:38 -0500
Received: from relay00.pair.com ([209.68.5.9]:2726)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <mbianchi@foveal4.foveal.com>) id 1TfXXU-0005z9-NW
	for groff@gnu.org; Mon, 03 Dec 2012 10:02:32 -0500
Received: (qmail 44280 invoked from network); 3 Dec 2012 15:02:31 -0000
Received: from 74.102.6.186 (HELO foveal4.foveal.com) (74.102.6.186)
	by relay00.pair.com with SMTP; 3 Dec 2012 15:02:31 -0000
X-pair-Authenticated: 74.102.6.186
Received: by foveal4.foveal.com (Postfix, from userid 617)
	id 9CA9A17D139; Mon,  3 Dec 2012 10:02:31 -0500 (EST)
Date: Mon, 3 Dec 2012 10:02:31 -0500
From: Mike Bianchi <MBianchi@Foveal.com>
To: Ralph Corderoy <ralph@inputplus.co.uk>
Message-ID: <20121203150231.GC8404@foveal4.foveal.com>
References: <50BBA08B.2010607@verinet.net> <50BBB5EE.5030208@gmail.com>
	<20121203124616.A406E1FCD7@orac.inputplus.co.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20121203124616.A406E1FCD7@orac.inputplus.co.uk>
User-Agent: Mutt/1.5.17+20080114 (2008-01-14)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.68.5.9
Cc: groff@gnu.org
Subject: Re: [Groff] What does 'groff <<<foo' do?
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 03 Dec 2012 15:02:48 -0000

On Mon, Dec 03, 2012 at 12:46:16PM +0000, Ralph Corderoy wrote:
> 	:
> I take the point on it not having left to right order but neither has
>     bar <foo
> compared to
>     cat foo | bar
> but we rightly shun the latter.  Having used <<< for some years, I'm
> just as happy reading `command, its options, then how its I/O is set'
> whether it's <, <<, or <<<.

Actually all shells that I know of don't specify that redirection take place at
the end of the command line.  Witness:

    $ <<<$HOME  cat
    /home/mbianchi

    $ <<<$HOME >/tmp/i  cat
    $ cat /tmp/i
    /home/mbianchi

-- 
 Mike Bianchi
 Foveal Systems

 973 822-2085

 MBianchi@Foveal.com
 http://www.AutoAuditorium.com
 http://www.FovealMounts.com


From MAILER-DAEMON Mon Dec 03 10:12:37 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TfXhF-0008Ti-Uv
	for mharc-groff@gnu.org; Mon, 03 Dec 2012 10:12:37 -0500
Received: from eggs.gnu.org ([208.118.235.92]:51624)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1TfXh9-0008T9-UZ
	for groff@gnu.org; Mon, 03 Dec 2012 10:12:36 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1TfXh6-0000oj-3k
	for groff@gnu.org; Mon, 03 Dec 2012 10:12:31 -0500
Received: from [2001:4ca0:4101:204:21a:4bff:fec5:6ac1] (port=43247
	helo=helix.usm.uni-muenchen.de)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1TfXh5-0000mN-TN
	for groff@gnu.org; Mon, 03 Dec 2012 10:12:28 -0500
Received: by helix.usm.uni-muenchen.de (Postfix, from userid 2097)
	id 78EFE161364A; Mon,  3 Dec 2012 16:12:25 +0100 (CET)
Date: Mon, 3 Dec 2012 16:12:25 +0100
From: Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
To: groff@gnu.org
Message-ID: <20121203151225.GB10111@usm.uni-muenchen.de>
References: <50BBA08B.2010607@verinet.net> <50BBB5EE.5030208@gmail.com>
	<20121203124616.A406E1FCD7@orac.inputplus.co.uk>
	<20121203150231.GC8404@foveal4.foveal.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20121203150231.GC8404@foveal4.foveal.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4ca0:4101:204:21a:4bff:fec5:6ac1
Subject: Re: [Groff] What does 'groff <<<foo' do?
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 03 Dec 2012 15:12:36 -0000


> Actually all shells that I know of don't specify that
> redirection take place at the end of the command line.
> Witness:
> 
>     $ <<<$HOME  cat
>     /home/mbianchi
> 
>     $ <<<$HOME >/tmp/i  cat
>     $ cat /tmp/i
>     /home/mbianchi

Hey, that's cool!  I'd never even thought about it.
So with regard to "proper" left-to-right order we can say

  <input command >output




From MAILER-DAEMON Mon Dec 03 10:47:07 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TfYEd-0006ER-6x
	for mharc-groff@gnu.org; Mon, 03 Dec 2012 10:47:07 -0500
Received: from eggs.gnu.org ([208.118.235.92]:50433)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mbianchi@foveal4.foveal.com>) id 1TfYER-000694-Ku
	for groff@gnu.org; Mon, 03 Dec 2012 10:47:05 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mbianchi@foveal4.foveal.com>) id 1TfYEK-0002wZ-D2
	for groff@gnu.org; Mon, 03 Dec 2012 10:46:55 -0500
Received: from relay03.pair.com ([209.68.5.17]:3131)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <mbianchi@foveal4.foveal.com>) id 1TfYEK-0002wU-82
	for groff@gnu.org; Mon, 03 Dec 2012 10:46:48 -0500
Received: (qmail 75821 invoked from network); 3 Dec 2012 15:46:46 -0000
Received: from 74.102.6.186 (HELO foveal4.foveal.com) (74.102.6.186)
	by relay03.pair.com with SMTP; 3 Dec 2012 15:46:46 -0000
X-pair-Authenticated: 74.102.6.186
Received: by foveal4.foveal.com (Postfix, from userid 617)
	id 5E12117D158; Mon,  3 Dec 2012 10:46:47 -0500 (EST)
Date: Mon, 3 Dec 2012 10:46:47 -0500
From: Mike Bianchi <MBianchi@Foveal.com>
To: Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
Message-ID: <20121203154647.GA11196@foveal4.foveal.com>
References: <50BBA08B.2010607@verinet.net> <50BBB5EE.5030208@gmail.com>
	<20121203124616.A406E1FCD7@orac.inputplus.co.uk>
	<20121203150231.GC8404@foveal4.foveal.com>
	<20121203151225.GB10111@usm.uni-muenchen.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20121203151225.GB10111@usm.uni-muenchen.de>
User-Agent: Mutt/1.5.17+20080114 (2008-01-14)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.68.5.17
Cc: groff@gnu.org
Subject: Re: [Groff] What does 'groff <<<foo' do?
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 03 Dec 2012 15:47:05 -0000

On Mon, Dec 03, 2012 at 04:12:25PM +0100, Tadziu Hoffmann wrote:
> 
> > Actually all shells that I know of don't specify that
> > redirection take place at the end of the command line.
> > Witness:
> > 
> >     $ <<<$HOME  cat
> >     /home/mbianchi
> > 
> >     $ <<<$HOME >/tmp/i  cat
> >     $ cat /tmp/i
> >     /home/mbianchi
> 
> Hey, that's cool!  I'd never even thought about it.
> So with regard to "proper" left-to-right order we can say
> 
>   <input command >output


Exactly.  For instance

        <infile >outfile  while  read a
                          do
                                process ${a}
                          done

Sidebar:
I always use  ${a}  instead of  $a  so they standout more in the scripts,
for readability.
Also usages like  ${a:-defaultvalue}  are then not as big of a surprise to
novice readers of my shell code.  It's a shell variable with with "benefits".
I wonder sometimes if anyone really understands _all_ of  bash(1) .
I know I don't.  Heck, I never understood all of  ksh .
I'll claim that understood all of  sh  back in 1985 or so.
You know, the original  sh  had a way to do 1 "here document" at the end of a
shell script?

		:
	cat >outfile
	content
	more content
		:

in a shell script file would  cat  the content, down to the end of the file,
into  outfile  just as if you were typing it at a terminal!
I think the  <<EOF ... EOF  syntax was introduced by Steve Bourne and/or John
Mashey back in the before times.

--
 Mike Bianchi
 Foveal Systems

 973 822-2085

 MBianchi@Foveal.com
 http://www.AutoAuditorium.com
 http://www.FovealMounts.com


From MAILER-DAEMON Mon Dec 03 13:56:12 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TfbBc-000301-2w
	for mharc-groff@gnu.org; Mon, 03 Dec 2012 13:56:12 -0500
Received: from eggs.gnu.org ([208.118.235.92]:38674)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <SRS0=j3mAnZ=J5=schaffter.ca=peter@eigbox.net>)
	id 1TfbBV-0002zr-9z
	for groff@gnu.org; Mon, 03 Dec 2012 13:56:10 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <SRS0=j3mAnZ=J5=schaffter.ca=peter@eigbox.net>)
	id 1TfbBU-0006ra-10
	for groff@gnu.org; Mon, 03 Dec 2012 13:56:05 -0500
Received: from bosmailout04.eigbox.net ([66.96.186.4]:59096)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <SRS0=j3mAnZ=J5=schaffter.ca=peter@eigbox.net>)
	id 1TfbBT-0006rU-TW
	for groff@gnu.org; Mon, 03 Dec 2012 13:56:03 -0500
Received: from bosmailscan13.eigbox.net ([10.20.15.13])
	by bosmailout04.eigbox.net with esmtp (Exim) id 1TfbBS-0002C1-Hn
	for groff@gnu.org; Mon, 03 Dec 2012 13:56:02 -0500
Received: from bosimpout01.eigbox.net ([10.20.55.1])
	by bosmailscan13.eigbox.net with esmtp (Exim) id 1TfbBS-0001Nr-5K
	for groff@gnu.org; Mon, 03 Dec 2012 13:56:02 -0500
Received: from bosauthsmtp09.eigbox.net ([10.20.18.9])
	by bosimpout01.eigbox.net with NO UCE
	id X6w11k01A0BkY8i016w1kt; Mon, 03 Dec 2012 13:56:01 -0500
X-Authority-Analysis: v=2.0 cv=INa1/HTG c=1 sm=1
	a=LnZuBynLPPPUeHtPhTi3bw==:17 a=Q9mMSRBxWxkA:10 a=wom5GMh1gUkA:10
	a=69gzHVmRSxYA:10 a=d-Ega9QjyLEA:10 a=IkcTkHD0fZMA:10 a=q6r311Ce_j8A:10
	a=g_SW5-S5AAAA:8 a=0-646vN73QdpJDPgb9MA:9 a=QEXdDO2ut3YA:10
	a=+tcVrJynzLVJ9yqDAOBWjQ==:117
X-EN-OrigOutIP: 10.20.18.9
X-EN-IMPSID: X6w11k01A0BkY8i016w1kt
Received: from [69.158.173.16] (helo=augustus)
	by bosauthsmtp09.eigbox.net with esmtpsa (TLSv1:AES256-SHA:256)
	(Exim) id 1TfbBR-0006ka-Ja
	for groff@gnu.org; Mon, 03 Dec 2012 13:56:01 -0500
Received: from peter by augustus with local (Exim 4.76)
	(envelope-from <peter@schaffter.ca>) id 1TfbBP-00016W-P5
	for groff@gnu.org; Mon, 03 Dec 2012 13:55:59 -0500
Date: Mon, 3 Dec 2012 13:55:59 -0500
From: Peter Schaffter <peter@schaffter.ca>
To: groff@gnu.org
Message-ID: <20121203185559.GB3155@augustus>
Mail-Followup-To: Peter Schaffter <peter@schaffter.ca>, groff@gnu.org
References: <50BC755F.6070907@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <50BC755F.6070907@gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-EN-UserInfo: de950a90bfbefba2fd690f5ecdd2f718:712911bb6d01017077352c3c8e2e335d
X-EN-AuthUser: peter@schaffter.ca
Sender: Peter Schaffter <peter@schaffter.ca>
X-EN-OrigIP: 69.158.173.16
X-EN-OrigHost: unknown
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 66.96.186.4
Subject: Re: [Groff] EPS vs PDF support in MOM
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 03 Dec 2012 18:56:11 -0000

Kobus --

On Mon, Dec 03, 2012, Kobus Botha wrote:
> The problem I have now is that PDF_IMAGE does not act as
> a replacement for PSPIC and I want to know if the current
> development snapshots of groff supports eps2?

I just did a quick test, converting a 23K .ps image to .eps2 with
'convert'.  The resulting 12K file processed fine with PSPIC under
an up-to-date groff and the command line

  pdfmom -Tps ...
 
> The problem I have with PDF_IMAGE is that it treats images like
> floats...  "Mom treats images inserted into a document with
> PDF_IMAGE like floats, which is to say that if the image doesnâ€™t
> fit on the output page, she will defer it to the top of the next
> page while continuing to process running text.  ADJUST is ignored
> whenever an image is deferred, and a message is printed to stderr
> advising you where the deferment has taken place.  "
> 
> For my use the position of the image is critical and I can't see a
> way of preventing this behavior.

I'm not sure which part of the behaviour is problematic, given
your concerns.  If there isn't sufficient room for an image, groff
either has to ignore it completely, or output it when space becomes
available (ie top of the next page).  If neither is acceptable, the
only solution, under groff/mom, is to tweak the page on which the
image is to appear until there's enough space to hold it.

If the problem is that ADJUST is ignored when an image is defered to
the top of the next page, you cannot raise the image above the top
margin, but you can lower it to any acceptable position on the page
by wrapping PDF_IMAGE inside a float and using the .SP macro or the
.sp request inside the float.

If the overall problem is the shimming that takes place underneath
the image (which adds enough space to ensure the next line of output
falls on a valid baseline), that behaviour can be disabled by
inserting .NO_SHIM prior to the image.

If it's something else, let me know.

-- 
Peter Schaffter

Author of The Binbrook Caucus
http://www.schaffter.ca


From MAILER-DAEMON Mon Dec 03 14:19:57 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TfbYb-0001oe-Jy
	for mharc-groff@gnu.org; Mon, 03 Dec 2012 14:19:57 -0500
Received: from eggs.gnu.org ([208.118.235.92]:55279)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1TfbYZ-0001np-4I
	for groff@gnu.org; Mon, 03 Dec 2012 14:19:56 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1TfbYX-0005zP-EX
	for groff@gnu.org; Mon, 03 Dec 2012 14:19:55 -0500
Received: from relay03.pair.com ([209.68.5.17]:2200)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1TfbYX-0005yy-8H
	for groff@gnu.org; Mon, 03 Dec 2012 14:19:53 -0500
Received: (qmail 73905 invoked from network); 3 Dec 2012 19:19:51 -0000
Received: from 46.208.70.174 (HELO orac.inputplus.co.uk) (46.208.70.174)
	by relay03.pair.com with SMTP; 3 Dec 2012 19:19:51 -0000
X-pair-Authenticated: 46.208.70.174
Received: by orac.inputplus.co.uk (Postfix, from userid 1000)
	id D6993202AB; Mon,  3 Dec 2012 19:19:48 +0000 (GMT)
Received: from orac.inputplus.co.uk (localhost [127.0.0.1])
	by orac.inputplus.co.uk (Postfix) with ESMTP id ECA4B201B6
	for <groff@gnu.org>; Mon,  3 Dec 2012 19:19:48 +0000 (GMT)
To: groff@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
In-reply-to: <20121203150231.GC8404@foveal4.foveal.com>
References: <50BBA08B.2010607@verinet.net> <50BBB5EE.5030208@gmail.com>
	<20121203124616.A406E1FCD7@orac.inputplus.co.uk>
	<20121203150231.GC8404@foveal4.foveal.com>
Comments: In-reply-to Mike Bianchi <MBianchi@Foveal.com> message dated "Mon,
	03 Dec 2012 10:02:31 -0500."
Date: Mon, 03 Dec 2012 19:19:48 +0000
From: Ralph Corderoy <ralph@inputplus.co.uk>
Message-Id: <20121203191950.D6993202AB@orac.inputplus.co.uk>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.68.5.17
Subject: Re: [Groff] What does 'groff <<<foo' do?
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 03 Dec 2012 19:19:56 -0000

Hi Mike,

> Actually all shells that I know of don't specify that redirection take
> place at the end of the command line.  Witness:
> 
>     $ <<<$HOME  cat
>     /home/mbianchi
> 
>     $ <<<$HOME >/tmp/i  cat
>     $ cat /tmp/i
>     /home/mbianchi

Well, with caveats;  you've got a `simple' command there.

The Bourne-shell types all specify that the effect of the redirections
is as if their action takes place in sequence.  That's why these differ.

    $ ls -d . missing >foo 2>&1
    $ cat foo
    ls: cannot access missing: No such file or directory
    .
    $ ls -d . missing 2>&1 >foo 
    ls: cannot access missing: No such file or directory
    $ cat foo
    .
    $

I point out

    <foo sort | ...

is possible to those that protest

    cat foo | sort

is better in production scripts because it's "more clear".  But then I
also point out that convention is good and deviating from it slows the
careful reader who wonders why it's been done and what might really have
been intended, e.g. did the author know that order can be significant.

> For instance
> 
>         <infile >outfile  while  read a
>                           do
>                                 process ${a}
>                           done

That should't work AIUI, and it doesn't here.  Re-direction forms part
of the `list' that forms the `meat' of the various control structures,
e.g. `if list; then...'.  IOW, it can occur anywhere inside a `simple
command' or at the end of a `command'.  The `while' is a reserved word
and is part of the grammar outside of the list, so it must come first
otherwise it's taken to be the name of a command and hunted through PATH
like normal.

    $ <foo while :
    while: command not found
    $
    $ <foo if :
    if: command not found
    $

And

    while <infile >outfile read a; do
        process $a
    done

probably isn't doing what's intended either.  The redirection occurs for
each run of the loop's condition;  IOW, read always reads the first line
of infile and, if there's at least one line, always succeeds.
Similarly, outfile gets truncated at every turn.  The redirections only
apply to the condition;  the body operates without them in place.

That leaves us with putting them at the end of `command' when it's not a
`simple command'.

    while read a; do
        process $a
    done <infile >outfile

Just as convention has it.  ;-)

Aside, read's -r option can be useful most of the time unless you want
backslashes to be potentially significant.

    $ read a b c
    1\ 2 3 4 5
    $ echo $b
    3
    $ 

> Sidebar:  I always use  ${a}  instead of  $a  so they standout more in
> the scripts, for readability.

And I always strip them out, disliking the noisy syntax that's slower to
read carefully and suggesting that something else may have been
intended.  To each their own.  :-)

> I wonder sometimes if anyone really understands _all_ of  bash(1) .

Repeated readings of bash(1) work over time.  Especially if all readline
material is ignored.  Just as learning Perl from perl(1) was possible
when it was a single man page.

> You know, the original  sh  had a way to do 1 "here document" at the
> end of a shell script?
> 
> 		â‹®
> 	cat >outfile
> 	content
> 	more content
> 		â‹®
> 
> in a shell script file would  cat  the content, down to the end of the
> file, into  outfile  just as if you were typing it at a terminal!

:-)  This was back when the script's stdin was the script.  I liked how
goto worked by altering the position in the file ready for the next
line, which is how we ended up with `:', familiar to users of sed(1).

> I think the  <<EOF ... EOF  syntax was introduced by Steve Bourne
> and/or John Mashey back in the before times.

My understanding is Bourne introduced here files then PWB shell,
Mashey's descendant, copied.

Cheers, Ralph.


From MAILER-DAEMON Mon Dec 03 14:56:59 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tfc8R-0003tS-A7
	for mharc-groff@gnu.org; Mon, 03 Dec 2012 14:56:59 -0500
Received: from eggs.gnu.org ([208.118.235.92]:44239)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mbianchi@foveal4.foveal.com>) id 1Tfc8L-0003hx-ET
	for groff@gnu.org; Mon, 03 Dec 2012 14:56:57 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mbianchi@foveal4.foveal.com>) id 1Tfc8K-0000qZ-5P
	for groff@gnu.org; Mon, 03 Dec 2012 14:56:53 -0500
Received: from relay03.pair.com ([209.68.5.17]:1602)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <mbianchi@foveal4.foveal.com>) id 1Tfc8J-0000qP-Ut
	for groff@gnu.org; Mon, 03 Dec 2012 14:56:52 -0500
Received: (qmail 89657 invoked from network); 3 Dec 2012 19:56:49 -0000
Received: from 74.102.6.186 (HELO foveal4.foveal.com) (74.102.6.186)
	by relay03.pair.com with SMTP; 3 Dec 2012 19:56:49 -0000
X-pair-Authenticated: 74.102.6.186
Received: by foveal4.foveal.com (Postfix, from userid 617)
	id 772AF17D15A; Mon,  3 Dec 2012 14:56:50 -0500 (EST)
Date: Mon, 3 Dec 2012 14:56:50 -0500
From: Mike Bianchi <MBianchi@Foveal.com>
To: Ralph Corderoy <ralph@inputplus.co.uk>
Message-ID: <20121203195650.GA20553@foveal4.foveal.com>
References: <50BBA08B.2010607@verinet.net> <50BBB5EE.5030208@gmail.com>
	<20121203124616.A406E1FCD7@orac.inputplus.co.uk>
	<20121203150231.GC8404@foveal4.foveal.com>
	<20121203191950.D6993202AB@orac.inputplus.co.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20121203191950.D6993202AB@orac.inputplus.co.uk>
User-Agent: Mutt/1.5.17+20080114 (2008-01-14)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.68.5.17
Cc: groff@gnu.org
Subject: Re: [Groff] What does 'groff <<<foo' do?
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 03 Dec 2012 19:56:57 -0000

On Mon, Dec 03, 2012 at 07:19:48PM +0000, Ralph Corderoy wrote:
>	: 
> > For instance
> > 
> >         <infile >outfile  while  read a
> >                           do
> >                                 process ${a}
> >                           done
> 
> That should't work AIUI, and it doesn't here.

OUCH.
I have GOT to stop shooting from the hip!


-- 
 Mike Bianchi
 Foveal Systems

 973 822-2085

 MBianchi@Foveal.com
 http://www.AutoAuditorium.com
 http://www.FovealMounts.com


From MAILER-DAEMON Mon Dec 03 16:54:52 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TfdyW-0007Nd-BR
	for mharc-groff@gnu.org; Mon, 03 Dec 2012 16:54:52 -0500
Received: from eggs.gnu.org ([208.118.235.92]:50902)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1TfdyT-0007Jo-OG
	for groff@gnu.org; Mon, 03 Dec 2012 16:54:50 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1TfdyS-0004my-Ll
	for groff@gnu.org; Mon, 03 Dec 2012 16:54:49 -0500
Received: from [2001:4ca0:4101:204:21a:4bff:fec5:6ac1] (port=53717
	helo=helix.usm.uni-muenchen.de)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1TfdyS-0004mG-Ea
	for groff@gnu.org; Mon, 03 Dec 2012 16:54:48 -0500
Received: by helix.usm.uni-muenchen.de (Postfix, from userid 2097)
	id 8BAB2161364A; Mon,  3 Dec 2012 22:54:46 +0100 (CET)
Date: Mon, 3 Dec 2012 22:54:46 +0100
From: Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
To: groff@gnu.org
Message-ID: <20121203215446.GD10111@usm.uni-muenchen.de>
References: <50BBA08B.2010607@verinet.net> <50BBB5EE.5030208@gmail.com>
	<20121203124616.A406E1FCD7@orac.inputplus.co.uk>
	<20121203150231.GC8404@foveal4.foveal.com>
	<20121203191950.D6993202AB@orac.inputplus.co.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20121203191950.D6993202AB@orac.inputplus.co.uk>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4ca0:4101:204:21a:4bff:fec5:6ac1
Subject: Re: [Groff] What does 'groff <<<foo' do?
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 03 Dec 2012 21:54:50 -0000


[...]
> > in a shell script file would  cat  the content, down to the
> > end of the file, into  outfile  just as if you were typing
> > it at a terminal!

> :-)  This was back when the script's stdin was the script.

This is similar to how you can read the input stream in
Postscript.  Normally the interpreter reads tokens from the
input stream and executes them, but you can also read stuff
yourself, using something like

  /card 80 string def
  currentfile card readstring

or

  currentfile token

This is especially useful in a loop, for example to read data
into an array.


> I liked how goto worked by altering the position in the file
> ready for the next line, which is how we ended up with `:',
> familiar to users of sed(1).

Or to batch file programmers using command.com :-D




From MAILER-DAEMON Mon Dec 03 17:02:13 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tfe5d-0000qc-Kd
	for mharc-groff@gnu.org; Mon, 03 Dec 2012 17:02:13 -0500
Received: from eggs.gnu.org ([208.118.235.92]:40978)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1Tfe5E-0000mM-2n
	for groff@gnu.org; Mon, 03 Dec 2012 17:02:12 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1Tfe4m-0006j0-32
	for groff@gnu.org; Mon, 03 Dec 2012 17:01:48 -0500
Received: from [2001:4ca0:4101:204:21a:4bff:fec5:6ac1] (port=60201
	helo=helix.usm.uni-muenchen.de)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1Tfe4l-0006ij-Sp
	for groff@gnu.org; Mon, 03 Dec 2012 17:01:20 -0500
Received: by helix.usm.uni-muenchen.de (Postfix, from userid 2097)
	id 12410161364A; Mon,  3 Dec 2012 23:01:18 +0100 (CET)
Date: Mon, 3 Dec 2012 23:01:18 +0100
From: Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
To: groff@gnu.org
Message-ID: <20121203220117.GE10111@usm.uni-muenchen.de>
References: <20121118215422.GC7069@usm.uni-muenchen.de>
	<20121118222301.GA23129@foveal4.foveal.com>
	<20121118224212.GD7069@usm.uni-muenchen.de>
	<20121119222945.GA21398@foveal4.foveal.com>
	<20121120214727.GA26298@usm.uni-muenchen.de>
	<20121126152459.GA17742@foveal4.foveal.com>
	<20121201192042.GA8531@usm.uni-muenchen.de>
	<20121201202540.GA17951@foveal4.foveal.com>
	<20121202133518.GB25115@usm.uni-muenchen.de>
	<20121202144733.GA9657@foveal4.foveal.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20121202144733.GA9657@foveal4.foveal.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4ca0:4101:204:21a:4bff:fec5:6ac1
Subject: Re: [Groff] producing a booklet with groff ?
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 03 Dec 2012 22:02:13 -0000


[Sending this to the list, because it may be of general interest.]


> How do I tell which fonts I am getting? 

You could try opening the file with gs, i.e., simply doing

  gs filename

on the command line.  My ghostscript gives me messages like

  Loading Helvetica font from [...]/fonts/Type1/Helvetica.pfa...

if the font is *not* embedded in the document (and remains
silent if the font is read as part of the file).  If the font
is embedded, you could just look at the Postscript code and
search for "FontName".  Or you could convert to PDF using
ps2pdf and then use pdffonts to list the fonts, or check the
"Fonts" tab of the "Properties" dialog in acroread.

grops only embeds fonts listed in <groff_font_dir>/devps/download.


> I think I'm just taking the defaults.
> I generally limit myself to:
> 	R
> 	I
> 	B
> 	HR
> 	HI
> 	HB
> 	HBI

These belong to the "base 13" set of fonts (Times, Helvetica,
Courier (each in 4 variants) and Symbol) which every Postscript
printer is expected to have built in.  They (or equivalent fonts)
are also expected to be provided by every PDF reader, but Adobe
now recommends embedding (subsetting) every font, even these.

If you convert to PDF using ps2pdf or Distiller, it probably
depends on the setting of EmbedAllFonts, NeverEmbed, etc. in
these programs whether a font is embedded or not, so you might
end up with one of three possibilities:

  1. Font is embedded by grops and transferred to the .pdf.
  2. Font is not embedded by grops but embedded in the .pdf
     by gs/Distiller.
  3. Font is embedded neither by grops nor gs/Distiller,
     and the PDF reader uses its own.

So if you want to make sure a particular font is used, get
a Type 1 copy of it and list it in grops's download file.

Adobe's base 13 fonts used to be available with some X11
distributions (particularly those which also provided Display
PostScript), and with earlier versions of Acrobat Reader.
(For some obscure reason, Adobe Reader later provided Arial
instead of Helvetica.)
Alternatively, use the URW fonts provided with ghostscript.




From MAILER-DAEMON Tue Dec 04 11:57:19 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tfvo6-0001p3-Vi
	for mharc-groff@gnu.org; Tue, 04 Dec 2012 11:57:18 -0500
Received: from eggs.gnu.org ([208.118.235.92]:52077)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1Tfvo0-0001lg-Eh
	for groff@gnu.org; Tue, 04 Dec 2012 11:57:16 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1Tfvnt-0007zF-5P
	for groff@gnu.org; Tue, 04 Dec 2012 11:57:12 -0500
Received: from mail-la0-f41.google.com ([209.85.215.41]:56331)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1Tfvns-0007ys-Rb
	for groff@gnu.org; Tue, 04 Dec 2012 11:57:05 -0500
Received: by mail-la0-f41.google.com with SMTP id m15so3724552lah.0
	for <groff@gnu.org>; Tue, 04 Dec 2012 08:57:03 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer
	:mime-version:content-type;
	bh=43nWGou8LJ81Buun93QGFZuUhqPwyGgz8M3dkpg8dGk=;
	b=b7DuZKtCBzerOTY3dBX2MwhVr8OjAWKQ78qrcsNdjFmV7cYxiunbymaKYg2MCzJ2Sc
	ri7zDX57xdPQyHQN7RTWT05DX2tJwDIzMO6Au8Mkl4S9GMlsoz2mggIkdGOPjaFmMZF9
	PNE6amsnDod9fSZQuUsvZCEWA8iehi+889ytaIodZgkzma63ygnm+fmnykaGIsyRXfrh
	703sh4d7ZaE4uyBbuCi7HyN6BudmTsR6WyoFt+t7A2+zR5KNzL/mIa3XVBvptm0UlyxH
	X+Iy5ky7pKpxaNRFStxZ2TPMnDAlieg14Zt9o/0RIDliGaXWpcC6xaB5pOf5eyOMUw42
	TvQA==
Received: by 10.152.103.100 with SMTP id fv4mr13502716lab.39.1354640222024;
	Tue, 04 Dec 2012 08:57:02 -0800 (PST)
Received: from erp07.git.ru ([94.79.3.82])
	by mx.google.com with ESMTPS id er8sm1044714lbb.9.2012.12.04.08.56.59
	(version=SSLv3 cipher=OTHER); Tue, 04 Dec 2012 08:57:00 -0800 (PST)
Date: Tue, 4 Dec 2012 20:56:42 +0400
From: Anton Shepelev <anton.txt@gmail.com>
To: Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
Message-Id: <20121204205642.8e4d60c05e66ab5f436396ed@gmail.com>
In-Reply-To: <20120720161109.GE11674@usm.uni-muenchen.de>
References: <20120720183314.da4138cb4090a70856e13884@gmail.com>
	<20120720161109.GE11674@usm.uni-muenchen.de>
X-Mailer: Sylpheed 3.2.0 (GTK+ 2.10.14; i686-pc-mingw32)
Mime-Version: 1.0
Content-Type: multipart/mixed;
	boundary="Multipart=_Tue__4_Dec_2012_20_56_42_+0400_k=5N2IWLYT0O05Jd"
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 209.85.215.41
Cc: groff@gnu.org
Subject: Re: [Groff] Included files are not preprocessed
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 04 Dec 2012 16:57:17 -0000

This is a multi-part message in MIME format.

--Multipart=_Tue__4_Dec_2012_20_56_42_+0400_k=5N2IWLYT0O05Jd
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Tadziu Hoffmann:

> > Files  included  via .mso, .so, or -m, are never
> > run through preprocessors.
>
> That's why soelim was invented
>
>   http://lists.gnu.org/archive/html/groff/2003-01/msg00069.html

I have finally decided to try this way  because  the
included  file  is  subject  to frequent changes and
storing its pre-encoded version, as per Werner's ad-
vice,  would  be  inconvenient.   Now  I  found that
groff's -s option behaves differently  from  calling
soelim manually on the pipeline:

  mmst1:                   tr -d \015 < [infile]| groff -s -Kcp1251 -t -Tutf8>[outfile].txt
  mmst2: soelim [infile] | tr -d \015           | groff    -Kcp1251 -t -Tutf8>[outfile].txt

With the included test file (test.mm) the first call
seems to ignore iconv processing  (res1.txt),  while
the  second  one works as expected, producing a cor-
rectly encoded UTF-8 file (res2.txt).

Am I missing something or is it a bug?

-- 
()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments

--Multipart=_Tue__4_Dec_2012_20_56_42_+0400_k=5N2IWLYT0O05Jd
Content-Type: application/zip;
 name="soelimex.zip"
Content-Disposition: attachment;
 filename="soelimex.zip"
Content-Transfer-Encoding: base64

UEsDBBQAAAAIAGKjhEEyVQ24VAAAAFcAAAALAAAAaGVhZGVyLnRtYWPTCw5RMDXi5QpJTMpJteLl
0gsJ5uUqSUzSUNZUSMqvsOblylHI0ePlSlROAkm6AoniAgWjMqCO1IoShcw8heQCQyNTQysFhQNv
P717C5RPKuLlAgBQSwMEFAAAAAgAk6OEQXoC3dxlAAAA/AAAAAgAAAByZXMxLnR4dAtJTMpJteLl
ejSl59GUBgw0ASTTlKigoJCkAGSAeFOwqZvBy8XLFZJaUaKQmaeQXGBoZGpopaBwuOHw2sObDq87
vJaXyyk/pdJKITgxN1WhBKjOSuHChAt7LzZd2HdhL0jvQEAAUEsDBBQAAAAIAMajhEFogXfBWQAA
APwAAAAIAAAAcmVzMi50eHQLSUzKSbXi5Xo0pefRlAYMNAEk05SooKCQpABkgHhTsKmbwcvFyxWS
WlGikJmnkFxgaGRqaKWgcGHChb0Xmy7su7CXl8spP6XSSiE4MTdVoQSozgpFcmAgAFBLAwQKAAAA
AABxo4RBSm7ZlCcAAAAnAAAABwAAAHRlc3QubW0uc28gaGVhZGVyLnRtYWMNCkJvZHk6IFNhbWUg
dGV4dDogwO3y7u1QSwECKAAUAAAACABio4RBMlUNuFQAAABXAAAACwAkAAAAAAABACAAAAAAAAAA
aGVhZGVyLnRtYWMKACAAAAAAAAEAGAD0kVExPNLNAfSRUTE80s0B6HCpHTnSzQFQSwECKAAUAAAA
CACTo4RBegLd3GUAAAD8AAAACAAkAAAAAAABACAAAAB9AAAAcmVzMS50eHQKACAAAAAAAAEAGAAM
tbZoPNLNAQy1tmg80s0BNNYZMznSzQFQSwECKAAUAAAACADGo4RBaIF3wVkAAAD8AAAACAAkAAAA
AAABACAAAAAIAQAAcmVzMi50eHQKACAAAAAAAAEAGADm8FihPNLNASzhraI80s0B2MlRoTzSzQFQ
SwECKAAKAAAAAABxo4RBSm7ZlCcAAAAnAAAABwAkAAAAAAABACAAAACHAQAAdGVzdC5tbQoAIAAA
AAAAAQAYABb7GEM80s0BfmdPoTzSzQFAbGYwOdLNAVBLBQYAAAAABAAEAGoBAADTAQAAAAA=

--Multipart=_Tue__4_Dec_2012_20_56_42_+0400_k=5N2IWLYT0O05Jd--


From MAILER-DAEMON Tue Dec 04 16:00:47 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tfzbj-0002PD-Dw
	for mharc-groff@gnu.org; Tue, 04 Dec 2012 16:00:47 -0500
Received: from eggs.gnu.org ([208.118.235.92]:58369)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <deri@chuzzlewit.myzen.co.uk>) id 1TfzbY-0002P3-RH
	for groff@gnu.org; Tue, 04 Dec 2012 16:00:46 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <deri@chuzzlewit.myzen.co.uk>) id 1TfzbX-0004Re-BY
	for groff@gnu.org; Tue, 04 Dec 2012 16:00:36 -0500
Received: from queue02.mail.zen.net.uk ([212.23.3.27]:44849)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <deri@chuzzlewit.myzen.co.uk>) id 1TfsCW-0006Il-93
	for groff@gnu.org; Tue, 04 Dec 2012 08:06:18 -0500
Received: from [212.23.1.1] (helo=smarthost01.mail.zen.net.uk)
	by queue02.mail.zen.net.uk with esmtp (Exim 4.72)
	(envelope-from <deri@chuzzlewit.myzen.co.uk>) id 1TfsCT-0006o8-QW
	for groff@gnu.org; Tue, 04 Dec 2012 13:06:13 +0000
Received: from [82.71.22.80] (helo=pip.localdomain)
	by smarthost01.mail.zen.net.uk with esmtp (Exim 4.72)
	(envelope-from <deri@chuzzlewit.myzen.co.uk>)
	id 1TfsCO-00017r-WA; Tue, 04 Dec 2012 13:06:09 +0000
Received: by pip.localdomain (Postfix, from userid 500)
	id DA175DF61E; Tue,  4 Dec 2012 13:06:08 +0000 (GMT)
From: Deri James <deri@chuzzlewit.myzen.co.uk>
To: groff@gnu.org
Date: Tue, 04 Dec 2012 13:06:08 +0000
Message-ID: <2376717.IdOdQKOZCQ@pip>
User-Agent: KMail/4.8.5 (Linux/3.3.8-desktop-2.mga2; KDE/4.8.5; x86_64; ; )
In-Reply-To: <50BC755F.6070907@gmail.com>
References: <50BC755F.6070907@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
X-Originating-Smarthost01-IP: [82.71.22.80]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 212.23.3.27
Cc: Kobus Botha <botha.kobus@gmail.com>
Subject: Re: [Groff] EPS vs PDF support in MOM
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 04 Dec 2012 21:00:46 -0000

On Monday 03 Dec 2012 11:48:15 Kobus Botha wrote:
> The problem I have now is that PDF_IMAGE does not act as a replacement 
> for PSPIC

The reason the pdf driver for groff cannot behave like pspic is because groff 
has no way of knowing the media size of the pdf graphic which you are 
importing. For postscript it has a request .psbb which returns the bounding 
box of the postscript file, there is no equivalent for pdf files, and would be 
extremely difficult to implement for pdf files. In addition the BoundingBox of 
a postscript file is not the same as the MediaBox of a pdf file, the former 
describes the extent of the drawn strokes, while the latter describes the size 
of the media upon which the pdf graphic is stroked. Imagine a logo centred 
with a transparent centimetre border around it, the bounding box and media box 
would be different.

Due to the above it is not even possible to use ghostscripts bbox device on 
the pdf graphic since this will give the extent of the strokes, not the actual 
size of the media. A tool such as "pdfinfo" will tell you the page size of the 
pdf file, and once you have this data you are in business.

To use pdf included graphics you must tell groff the actual height of the 
graphic you want to embed in the document (so that it can continue flowing 
text after the graphic), the width will be set in proportion to the height you 
specify. I use this little macro as a helper. The flag parameter can be -L 
(left) -C (centred) or -R (right) control allignment within the current line 
length. (Caution: the right and centre flags have a bug in current versions of 
gropdf, it may not do quite what you want!!).

\# params fname flag height
.de PDFPIC_HEIGHT
.sp -.6v
.ne 0\\$3+1v
\\X'pdf: pdfpic \\$1 \\$2 0 \\$3 \\n[.l]z'
.sp 0\\$3-.3v
.ne 1v
..

You can use it with a call such as:-

.PDFPIC_HEIGHT ChuzLogoPlain.pdf -L 5c

Which would include the pdf scaled so that it was a height of 5cm (and its 
width proportionally scaled), left alligned. If there is insufficient room on 
the current page it will throw to a new page and place the graphic at the top. 
I have not tested this in conjunction with the MOM macros.

Using the information from "pdfinfo", and a bit of arithmetic, you can use 
this macro to control the width of the graphic as well by calculating what 
height would provide the desired width using the page proportions provided by 
"pdfinfo".

Cheers 

Deri




From MAILER-DAEMON Tue Dec 04 18:06:17 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tg1ZB-0006wy-Fn
	for mharc-groff@gnu.org; Tue, 04 Dec 2012 18:06:17 -0500
Received: from eggs.gnu.org ([208.118.235.92]:34059)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1Tg1Z8-0006wg-Se
	for groff@gnu.org; Tue, 04 Dec 2012 18:06:16 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1Tg1Z7-0001ce-7J
	for groff@gnu.org; Tue, 04 Dec 2012 18:06:14 -0500
Received: from smarthost02.mail.zen.net.uk ([212.23.1.2]:38279)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1Tg1Z7-0001bn-0T
	for groff@gnu.org; Tue, 04 Dec 2012 18:06:13 -0500
Received: from [88.96.44.206] (helo=deb)
	by smarthost02.mail.zen.net.uk with esmtp (Exim 4.72)
	(envelope-from <Ted.Harding@wlandres.net>)
	id 1Tg1Z4-00058S-Q4; Tue, 04 Dec 2012 23:06:10 +0000
Content-Length: 2090
Message-ID: <XFMail.20121204230552.Ted.Harding@wlandres.net>
X-Mailer: XFMail 1.5.5 on Linux
X-Priority: 3 (Normal)
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0
Date: Tue, 04 Dec 2012 23:05:52 -0000 (GMT)
Sender: ted@deb
From: (Ted Harding) <Ted.Harding@wlandres.net>
To: groff@gnu.org
Bcc: 
X-Originating-Smarthost02-IP: [88.96.44.206]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 212.23.1.2
Subject: [Groff] Fractional point-sizes in groff with PS
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: Ted.Harding@wlandres.net
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, 04 Dec 2012 23:06:16 -0000

Greetings All!
I'm posting this because it does not seem to be explicitly
documented in groffinfo (though it may be deducible from what
is in there).

Namely, it is possible to explcitly set fractional point
sizes in groff, which will be so realised in PS output.

Simple example (filename junk0.tr):

\s[11]This is in 11-point.\s0
.br
\s[9.767]This is in 9.767-point.\s0

Output (groffout) of cat junk0.tr | troff -Tps | less :

x T ps
x res 72000 1 1
x init C
p1
x font 5 TR
f5
s11000
V12000
H72000
md
DFd
tThis
wh2750
tis
wh2750
tin
wh2750
t11-point.
n12000 0
s9767
V24000
H72000
tThis
wh2442
tis
wh2442
tin
wh2442
t9.767-point.
n12000 0
x trailer
V792000
x stop

You can see that "s11000" sets the point size to 11000u,
i.e. 11 points; while "s9767" sets it to 9767u (9.767 points).

This duly carries through to the PS output. The relevant lines
from the resulting PS file are:

%%EndPageSetup
/F0 11/Times-Roman@0 SF
<5468697320697320696e2031312d706f696e742e>72 84 Q
/F1 9.767/Times-Roman@0 SF
<5468697320697320696e20392e3736372d706f696e742e>72 96 Q 0 Cg EP
%%Trailer
end
%%EOF

where "/F0 11/Times-Roman@0 SF" sets the point-size to 11 points, and
"/F1 9.767/Times-Roman@0 SF" sets it to 9.767 points.

That's fine for explicitly chosen fractional point-sizes.
Groff (like the original troff) unfortunately does not do floating-point
arithmetic, so point-size conversions like (0.707=sqrt(2) to 3dp):

  \s[\n[.s]*0.707]

won't work! (When I need to, I use 'pic' for floating-point,
making use of its "command" command to feed numerical results
to troff -- but this involves re-writing the ".PS" macro so
that it does not have a direct effect on the layout of the
final document, i.e. acts "invisibly").

This may be of interest to some, and I would also welcome comments
from anyone who has more insight into how to do this sort of thing!

Best wishes to all,
Ted.

-------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding@wlandres.net>
Date: 04-Dec-2012  Time: 23:05:48
This message was sent by XFMail
-------------------------------------------------


From MAILER-DAEMON Tue Dec 04 18:26:35 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tg1sp-0003Xq-AS
	for mharc-groff@gnu.org; Tue, 04 Dec 2012 18:26:35 -0500
Received: from eggs.gnu.org ([208.118.235.92]:38793)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1Tg1sn-0003Xk-Ix
	for groff@gnu.org; Tue, 04 Dec 2012 18:26:34 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1Tg1sm-0006Rf-R7
	for groff@gnu.org; Tue, 04 Dec 2012 18:26:33 -0500
Received: from [2001:4ca0:4101:204:21a:4bff:fec5:6ac1] (port=33439
	helo=helix.usm.uni-muenchen.de)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1Tg1sm-0006RV-LK
	for groff@gnu.org; Tue, 04 Dec 2012 18:26:32 -0500
Received: by helix.usm.uni-muenchen.de (Postfix, from userid 2097)
	id 8F1241613840; Wed,  5 Dec 2012 00:26:29 +0100 (CET)
Date: Wed, 5 Dec 2012 00:26:29 +0100
From: Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
To: groff@gnu.org
Message-ID: <20121204232629.GB30963@usm.uni-muenchen.de>
References: <XFMail.20121204230552.Ted.Harding@wlandres.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <XFMail.20121204230552.Ted.Harding@wlandres.net>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4ca0:4101:204:21a:4bff:fec5:6ac1
Subject: Re: [Groff] Fractional point-sizes in groff with PS
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 04 Dec 2012 23:26:34 -0000


>   \s[\n[.s]*0.707]
> 
> won't work!

  \s[\n[.ps]u*707u/1000u]

works.




From MAILER-DAEMON Tue Dec 04 21:06:25 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tg4NV-0008TS-SL
	for mharc-groff@gnu.org; Tue, 04 Dec 2012 21:06:25 -0500
Received: from eggs.gnu.org ([208.118.235.92]:47183)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1Tg4NT-0008Qb-F6
	for groff@gnu.org; Tue, 04 Dec 2012 21:06:24 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1Tg4NS-0001s3-IH
	for groff@gnu.org; Tue, 04 Dec 2012 21:06:23 -0500
Received: from relay03.pair.com ([209.68.5.17]:4473)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1TfwRA-0001tW-1r
	for groff@gnu.org; Tue, 04 Dec 2012 12:37:40 -0500
Received: (qmail 79014 invoked from network); 4 Dec 2012 17:37:38 -0000
Received: from 46.208.70.174 (HELO orac.inputplus.co.uk) (46.208.70.174)
	by relay03.pair.com with SMTP; 4 Dec 2012 17:37:38 -0000
X-pair-Authenticated: 46.208.70.174
Received: by orac.inputplus.co.uk (Postfix, from userid 1000)
	id B2D3120500; Tue,  4 Dec 2012 17:37:38 +0000 (GMT)
Received: from orac.inputplus.co.uk (localhost [127.0.0.1])
	by orac.inputplus.co.uk (Postfix) with ESMTP id 903FC20427;
	Tue,  4 Dec 2012 17:37:38 +0000 (GMT)
To: Anton Shepelev <anton.txt@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
In-reply-to: <20121204205642.8e4d60c05e66ab5f436396ed@gmail.com>
References: <20120720183314.da4138cb4090a70856e13884@gmail.com>
	<20120720161109.GE11674@usm.uni-muenchen.de>
	<20121204205642.8e4d60c05e66ab5f436396ed@gmail.com>
Comments: In-reply-to Anton Shepelev <anton.txt@gmail.com> message dated "Tue,
	04 Dec 2012 20:56:42 +0400."
Date: Tue, 04 Dec 2012 17:37:38 +0000
From: Ralph Corderoy <ralph@inputplus.co.uk>
Message-Id: <20121204173738.B2D3120500@orac.inputplus.co.uk>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.68.5.17
Cc: groff@gnu.org
Subject: Re: [Groff] Included files are not preprocessed
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 05 Dec 2012 02:06:24 -0000

Hi Anton,

>   mmst1:                   tr -d \015 < [infile]| groff -s -Kcp1251 -t -Tutf8>[outfile].txt
>   mmst2: soelim [infile] | tr -d \015           | groff    -Kcp1251 -t -Tutf8>[outfile].txt

Does groff's -V option help?  It shows the constructed pipeline.

    $ groff -V -Kcp1251 -t -Tutf8
    preconv -ecp1251 | tbl | troff -Tutf8 | grotty
    $ groff -V -s -Kcp1251 -t -Tutf8
    preconv -ecp1251 | soelim | tbl | troff -Tutf8 | grotty
    $

The preconv has happened before soelim if -s is used whereas when you
run it manually, it's after.

Cheers, Ralph.


From MAILER-DAEMON Wed Dec 05 03:11:08 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TgA4S-0003fx-AO
	for mharc-groff@gnu.org; Wed, 05 Dec 2012 03:11:08 -0500
Received: from eggs.gnu.org ([208.118.235.92]:44806)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1TgA4Q-0003fh-1I
	for groff@gnu.org; Wed, 05 Dec 2012 03:11:06 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1TgA4J-00047o-Ut
	for groff@gnu.org; Wed, 05 Dec 2012 03:11:05 -0500
Received: from mail-la0-f41.google.com ([209.85.215.41]:62359)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1TgA4J-00047f-MG
	for groff@gnu.org; Wed, 05 Dec 2012 03:10:59 -0500
Received: by mail-la0-f41.google.com with SMTP id m15so4310514lah.0
	for <groff@gnu.org>; Wed, 05 Dec 2012 00:10:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer
	:mime-version:content-type:content-transfer-encoding;
	bh=D/jh7G6qF3j8AH2YvGVdldSzTgY9Q0cUxkUlGtejhOI=;
	b=e9eIi14OzV950H1SL9w5oPb2pTZVpesvU96+H76v9/teXWBsjR7lyiS24dDXj6B4PF
	SMU6bd3TgGRioinMM7nAme1fAtg7FYtUO4BBrKv0ghgYiu9ANK9nA0qpNGBuXYYgeBrn
	2HUEg6YrGb2S8u6E7BEDrFpDzGjecgJeg++TNWyqX9pbvWM0pzKg47z72tPeNWhHyOoS
	WGnMeYoVw8BiEp+MWhxLyTmAa5mkgomVx//PweWXgnLyL4Vr/obFSpVHGPAbvYjWFzCu
	D5nn29cVvr9P4Wdsm5epWspON/ONVHNsaEne4q8uPFFPmESgWa3E0z77jIuGOMehBk5c
	QH4g==
Received: by 10.152.108.42 with SMTP id hh10mr15690598lab.4.1354695058653;
	Wed, 05 Dec 2012 00:10:58 -0800 (PST)
Received: from erp07.git.ru ([94.79.3.82])
	by mx.google.com with ESMTPS id jc2sm1613157lab.16.2012.12.05.00.10.57
	(version=SSLv3 cipher=OTHER); Wed, 05 Dec 2012 00:10:57 -0800 (PST)
Date: Wed, 5 Dec 2012 12:10:18 +0400
From: Anton Shepelev <anton.txt@gmail.com>
To: Ralph Corderoy <ralph@inputplus.co.uk>
Message-Id: <20121205121018.b7bbe7725bdf36f6efb80470@gmail.com>
In-Reply-To: <20121204173738.B2D3120500@orac.inputplus.co.uk>
References: <20120720183314.da4138cb4090a70856e13884@gmail.com>
	<20120720161109.GE11674@usm.uni-muenchen.de>
	<20121204205642.8e4d60c05e66ab5f436396ed@gmail.com>
	<20121204173738.B2D3120500@orac.inputplus.co.uk>
X-Mailer: Sylpheed 3.2.0 (GTK+ 2.10.14; i686-pc-mingw32)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 209.85.215.41
Cc: groff@gnu.org
Subject: Re: [Groff] Included files are not preprocessed
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 05 Dec 2012 08:11:07 -0000

Ralph Corderoy:

> >     mmst1:                   tr -d  15 < [infile]| groff -s -Kcp1251 -t -Tutf8>[outfile].txt
> >     mmst2: soelim [infile] | tr -d  15           | groff    -Kcp1251 -t -Tutf8>[outfile].txt
> >
> > With  the included test file (test.mm) the first
> > call   seems   to   ignore   iconv    processing
> > (res1.txt),  while  the  second one works as ex-
> > pected, producing a correctly encoded UTF-8 file
> > (res2.txt).
>
> Does  groff's  -V  option help?  It shows the con-
> structed pipeline.
>
>     $ groff -V -Kcp1251 -t -Tutf8
>     preconv -ecp1251 | tbl | troff -Tutf8 | grotty
>     $ groff -V -s -Kcp1251 -t -Tutf8
>     preconv -ecp1251 | soelim | tbl | troff -Tutf8 | grotty
>
> The preconv has happened before soelim  if  -s  is
> used whereas when you run it manually, it's after.

Thank  you,  Ralph.   I  forgot about the -V option.
Now the question is whether this sequence is correct
or  should  be changed so that soelim will be called
before all other preprocessors.  After all, soelim's
very purpose is to preprocess included files...

-- 
()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments


From MAILER-DAEMON Thu Dec 06 08:20:40 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TgbNY-0008RI-M5
	for mharc-groff@gnu.org; Thu, 06 Dec 2012 08:20:40 -0500
Received: from eggs.gnu.org ([208.118.235.92]:41160)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1TgbNS-0008Pi-Jx
	for groff@gnu.org; Thu, 06 Dec 2012 08:20:38 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1TgbNH-0008Pn-OZ
	for groff@gnu.org; Thu, 06 Dec 2012 08:20:34 -0500
Received: from mailout-de.gmx.net ([213.165.64.22]:57080)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1TgbNH-0008Pg-F0
	for groff@gnu.org; Thu, 06 Dec 2012 08:20:23 -0500
Received: (qmail invoked by alias); 06 Dec 2012 13:20:22 -0000
Received: from 77.117.246.158.wireless.dyn.drei.com (EHLO localhost)
	[77.117.246.158]
	by mail.gmx.net (mp030) with SMTP; 06 Dec 2012 14:20:22 +0100
X-Authenticated: #54312696
X-Provags-ID: V01U2FsdGVkX1+ygeVW7VCyKQwukekH129P1Gz+/A90V/WCm43yZ5
	AWjMz0lGsOLUE/
Date: Thu, 06 Dec 2012 14:20:13 +0100 (CET)
Message-Id: <20121206.142013.250470143.wl@gnu.org>
To: anton.txt@gmail.com
From: Werner LEMBERG <wl@gnu.org>
In-Reply-To: <20121205121018.b7bbe7725bdf36f6efb80470@gmail.com>
References: <20121204205642.8e4d60c05e66ab5f436396ed@gmail.com>
	<20121204173738.B2D3120500@orac.inputplus.co.uk>
	<20121205121018.b7bbe7725bdf36f6efb80470@gmail.com>
X-Mailer: Mew version 6.4rc1 on Emacs 24.2.50.1 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 213.165.64.22
Cc: groff@gnu.org
Subject: Re: [Groff] Included files are not preprocessed
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 06 Dec 2012 13:20:38 -0000


>> Does groff's -V option help?  It shows the constructed pipeline.
>>
>>     $ groff -V -Kcp1251 -t -Tutf8
>>     preconv -ecp1251 | tbl | troff -Tutf8 | grotty
>>     $ groff -V -s -Kcp1251 -t -Tutf8
>>     preconv -ecp1251 | soelim | tbl | troff -Tutf8 | grotty
>>
>> The preconv has happened before soelim if -s is used whereas when
>> you run it manually, it's after.
>
> Thank you, Ralph.  I forgot about the -V option.  Now the question
> is whether this sequence is correct or should be changed so that
> soelim will be called before all other preprocessors.  After all,
> soelim's very purpose is to preprocess included files...

This has been discussed a few months ago on the list, IIRC, and then I
stated that I no longer remembered why soelim comes after preconv.
Unfortunately, this comment is still true: I can't remember the
exact cause.

It's easy to change that behaviour, and you might experiment with the
patch below.  I don't object if you want to apply it (together with
improved groff documentation and a proper ChangeLog entry :-).

  $ groff -V -s -Kcp1251 -t -Tutf8
  soelim | preconv -ecp1251 | tbl | troff -Tutf8 | grotty


    Werner


======================================================================


--- groff.cpp.orig	2011-01-22 16:00:20.000000000 +0100
+++ groff.cpp	2012-12-06 14:00:58.000000000 +0100
@@ -53,9 +53,9 @@

 // grap and chem must come before pic;
 // tbl must come before eqn
-const int PRECONV_INDEX = 0;
-const int SOELIM_INDEX = PRECONV_INDEX + 1;
-const int REFER_INDEX = SOELIM_INDEX + 1;
+const int SOELIM_INDEX = 0;
+const int PRECONV_INDEX = SOELIM_INDEX + 1;
+const int REFER_INDEX = PRECONV_INDEX + 1;
 const int GRAP_INDEX = REFER_INDEX + 1;
 const int CHEM_INDEX = GRAP_INDEX + 1;
 const int PIC_INDEX = CHEM_INDEX + 1;


From MAILER-DAEMON Thu Dec 06 18:44:20 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tgl76-0004R1-DG
	for mharc-groff@gnu.org; Thu, 06 Dec 2012 18:44:20 -0500
Received: from eggs.gnu.org ([208.118.235.92]:46536)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <sandals@crustytoothpaste.net>) id 1Tgl74-0004Qv-7V
	for groff@gnu.org; Thu, 06 Dec 2012 18:44:19 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <sandals@crustytoothpaste.net>) id 1Tgl72-0001dz-TR
	for groff@gnu.org; Thu, 06 Dec 2012 18:44:18 -0500
Received: from qmta08.emeryville.ca.mail.comcast.net ([76.96.30.80]:48337)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <sandals@crustytoothpaste.net>) id 1Tgl72-0001aB-IN
	for groff@gnu.org; Thu, 06 Dec 2012 18:44:16 -0500
Received: from omta14.emeryville.ca.mail.comcast.net ([76.96.30.60])
	by qmta08.emeryville.ca.mail.comcast.net with comcast
	id YPij1k0011HpZEsA8PkAG0; Thu, 06 Dec 2012 23:44:10 +0000
Received: from castro.crustytoothpaste.net ([98.201.104.241])
	by omta14.emeryville.ca.mail.comcast.net with comcast
	id YPk91k00G5CWozE8aPk9eS; Thu, 06 Dec 2012 23:44:10 +0000
Received: from vauxhall.crustytoothpaste.net (unknown
	[IPv6:2001:470:1f05:79:6680:99ff:fe4f:73a0])
	by castro.crustytoothpaste.net (Postfix) with ESMTPSA id 74E8F2805F
	for <groff@gnu.org>; Thu,  6 Dec 2012 23:44:07 +0000 (UTC)
Date: Thu, 6 Dec 2012 23:44:03 +0000
From: "brian m. carlson" <sandals@crustytoothpaste.net>
To: groff@gnu.org
Message-ID: <20121206234403.GF159591@vauxhall.crustytoothpaste.net>
Mail-Followup-To: groff@gnu.org
References: <20121204205642.8e4d60c05e66ab5f436396ed@gmail.com>
	<20121204173738.B2D3120500@orac.inputplus.co.uk>
	<20121205121018.b7bbe7725bdf36f6efb80470@gmail.com>
	<20121206.142013.250470143.wl@gnu.org>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
	protocol="application/pgp-signature"; boundary="wTWi5aaYRw9ix9vO"
Content-Disposition: inline
In-Reply-To: <20121206.142013.250470143.wl@gnu.org>
X-Machine: Running on vauxhall using GNU/Linux on x86_64 (Linux kernel
	3.6-trunk-amd64)
User-Agent: Mutt/1.5.21 (2010-09-15)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;
	s=q20121106; t=1354837450;
	bh=eKrQtMDmyTtH4OHBLpMOmw7qeAy9Psr+lHggh+fZp6o=;
	h=Received:Received:Received:Date:From:To:Subject:Message-ID:
	MIME-Version:Content-Type;
	b=BH+LFy8t8kTuAuPD4Sj1NWSKoxtCXjc6EPnJ02xkN1bPVPIA46LDTxOX5B1zsi5UJ
	mw/1zDEx+yX1yZZAUZFUnYdnhSaHGT7gTi4z/GKXhHfpbiC4edqlqLz4j6Y20ZhPIn
	L/2EmEs1bY1ES0CkXoRCHI9Mgw6PPNpnFCL7JSG9MvrZKc/+AYCN+JKspvnFTEckFg
	zYAJXse9n9Qu5R83v45ccXvfea6MbtHkcRij9nNviau4OZmfmIv+8OiDdebINJfBMa
	VFT71TEy3c1pL5tqSOzRO8KDsoV5oxj05T9skmJI4IK33CQreVqsK7G9N/vXZky8su
	CL7UCK4b0SKHQ==
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 76.96.30.80
Subject: Re: [Groff] Included files are not preprocessed
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 06 Dec 2012 23:44:19 -0000


--wTWi5aaYRw9ix9vO
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Dec 06, 2012 at 02:20:13PM +0100, Werner LEMBERG wrote:
> This has been discussed a few months ago on the list, IIRC, and then I
> stated that I no longer remembered why soelim comes after preconv.
> Unfortunately, this comment is still true: I can't remember the
> exact cause.
>=20
>   $ groff -V -s -Kcp1251 -t -Tutf8
>   soelim | preconv -ecp1251 | tbl | troff -Tutf8 | grotty

Not that you should ever do this, but if you were using, say, UTF-16,
soelim would not be very effective unless preconv ran first.

--=20
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187

--wTWi5aaYRw9ix9vO
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCgAGBQJQwS3DAAoJEL9TXYEfUvaLEp4QAMIfbt2lPoH4rY1N6MhGpTSH
/xsYW8atIb+/8qqlfrNhbmRpV/WmSQeosUqBBLh+TcOHJgKR3kWxbyshEryZQ+dh
xWa0EwF2IlCIY/XLheLBy4MlGboRM+ghv6zkWK/3Kx6asGW4bUhCr4vCH96NBbK4
lrzYTbc7wLcADWwTeuZ4/O67+Dfxqv+U53LCDa8pdz9Ozlfm6zOfYwloiwogwRbE
V2ok+lnSauh30oQf+FAvHWES01gvlHRv4gTqGXCnyBRQK1euNkzWYcRhsMq5SR6B
Q58wBkCS+/egwFYEDebRe6rmT6qKHCNJF9q5PmcL6zKwH+IrDjMA3PCXkHr7mvjX
j89/9xuy+nNjaPGc/8IVsKOwjnnY5OaiN8n0epF/m3Bm92XNDIb6CSQZOpIdjwJs
63sG6JeGuBLGCF26DfuZuzZ1kb3YWC0WPEYP0LdZiKQTILkgg8tq0qmtbb1IcVHM
jmqIxZetnGLD9VxcSUblFr2ovjuNTqM5+/jfQUUtpnsBqZ8knsV0k1ofszXyvASs
UIxfiGl4cYKfmOtwJ1B1KpCQnQvzFc9w8CEKihSldCItHmBQHoSq0Xi6sieazQcR
vSQo61fEEMSQlBxasMdlc5DPUlJ5cdydJnayBFWsc0kmZPvxNZLLxNQIBHl1yHr3
KaP8+ROxJK7HpeH+5YtF
=M1yo
-----END PGP SIGNATURE-----

--wTWi5aaYRw9ix9vO--


From MAILER-DAEMON Fri Dec 07 01:36:27 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TgrXv-00066K-9i
	for mharc-groff@gnu.org; Fri, 07 Dec 2012 01:36:27 -0500
Received: from eggs.gnu.org ([208.118.235.92]:45958)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1TgrXr-000646-Ru
	for groff@gnu.org; Fri, 07 Dec 2012 01:36:26 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1TgrXp-0000nP-4C
	for groff@gnu.org; Fri, 07 Dec 2012 01:36:23 -0500
Received: from mailout-de.gmx.net ([213.165.64.23]:59795)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1TgrXo-0000nG-Ph
	for groff@gnu.org; Fri, 07 Dec 2012 01:36:21 -0500
Received: (qmail invoked by alias); 07 Dec 2012 06:36:19 -0000
Received: from 77.117.246.50.wireless.dyn.drei.com (EHLO localhost)
	[77.117.246.50]
	by mail.gmx.net (mp031) with SMTP; 07 Dec 2012 07:36:19 +0100
X-Authenticated: #54312696
X-Provags-ID: V01U2FsdGVkX1/FNt513ofF6idZzPtmurvlrfH2HWVjVGsRJkMmKJ
	cCS9WuNHvJdmTm
Date: Fri, 07 Dec 2012 07:36:09 +0100 (CET)
Message-Id: <20121207.073609.172327041.wl@gnu.org>
To: sandals@crustytoothpaste.net
From: Werner LEMBERG <wl@gnu.org>
In-Reply-To: <20121206234403.GF159591@vauxhall.crustytoothpaste.net>
References: <20121205121018.b7bbe7725bdf36f6efb80470@gmail.com>
	<20121206.142013.250470143.wl@gnu.org>
	<20121206234403.GF159591@vauxhall.crustytoothpaste.net>
X-Mailer: Mew version 6.4rc1 on Emacs 24.2.50.1 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 213.165.64.23
Cc: groff@gnu.org
Subject: Re: [Groff] Included files are not preprocessed
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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: Fri, 07 Dec 2012 06:36:26 -0000


>>   $ groff -V -s -Kcp1251 -t -Tutf8
>>   soelim | preconv -ecp1251 | tbl | troff -Tutf8 | grotty
>
> Not that you should ever do this, but if you were using, say,
> UTF-16, soelim would not be very effective unless preconv ran first.

Indeed.  However, it's just a matter of taste to handle funny preconv
and soelim cases with either

  soelim | groff -K ...

(current groff) or with

  preconv -e... | groff -s ...

(patched groff).[1] Such pipes even work on Windows (which can handle
text files only in pipes, AFAIK).

So I would follow what people actually prefer.  Theoretically, I could
even add a command line switch to groff which decides the position of
preconv and groff in the command pipe, but this is perhaps too
extreme.


    Werner


[1] It would be a good idea to document this, BTW :-)


From MAILER-DAEMON Fri Dec 07 10:12:29 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TgzbJ-0004k5-Im
	for mharc-groff@gnu.org; Fri, 07 Dec 2012 10:12:29 -0500
Received: from eggs.gnu.org ([208.118.235.92]:42953)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mbianchi@foveal4.foveal.com>) id 1TgzbE-0004gP-7N
	for groff@gnu.org; Fri, 07 Dec 2012 10:12:27 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mbianchi@foveal4.foveal.com>) id 1Tgzb8-0008O9-7R
	for groff@gnu.org; Fri, 07 Dec 2012 10:12:24 -0500
Received: from relay03.pair.com ([209.68.5.17]:4136)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <mbianchi@foveal4.foveal.com>) id 1Tgzb8-0008O1-1g
	for groff@gnu.org; Fri, 07 Dec 2012 10:12:18 -0500
Received: (qmail 89145 invoked from network); 7 Dec 2012 15:12:16 -0000
Received: from 74.102.6.186 (HELO foveal4.foveal.com) (74.102.6.186)
	by relay03.pair.com with SMTP; 7 Dec 2012 15:12:16 -0000
X-pair-Authenticated: 74.102.6.186
Received: by foveal4.foveal.com (Postfix, from userid 617)
	id BAF1B17CFE6; Fri,  7 Dec 2012 10:12:16 -0500 (EST)
Date: Fri, 7 Dec 2012 10:12:16 -0500
From: Mike Bianchi <MBianchi@Foveal.com>
To: Werner LEMBERG <wl@gnu.org>
Message-ID: <20121207151216.GA13635@foveal4.foveal.com>
References: <20121205121018.b7bbe7725bdf36f6efb80470@gmail.com>
	<20121206.142013.250470143.wl@gnu.org>
	<20121206234403.GF159591@vauxhall.crustytoothpaste.net>
	<20121207.073609.172327041.wl@gnu.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20121207.073609.172327041.wl@gnu.org>
User-Agent: Mutt/1.5.17+20080114 (2008-01-14)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.68.5.17
Cc: sandals@crustytoothpaste.net, groff@gnu.org
Subject: Re: [Groff] Included files are not preprocessed
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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: Fri, 07 Dec 2012 15:12:27 -0000

On Fri, Dec 07, 2012 at 07:36:09AM +0100, Werner LEMBERG wrote:
> 
> >>   $ groff -V -s -Kcp1251 -t -Tutf8
> >>   soelim | preconv -ecp1251 | tbl | troff -Tutf8 | grotty
> >
> > Not that you should ever do this, but if you were using, say,
> > UTF-16, soelim would not be very effective unless preconv ran first.

Could  soelim  be rewritten to use  fgetwc()  and wide characters?
Standard ASCII would just pass through.

-- 
 Mike Bianchi
 Foveal Systems

 973 822-2085

 MBianchi@Foveal.com
 http://www.AutoAuditorium.com
 http://www.FovealMounts.com


From MAILER-DAEMON Fri Dec 07 10:21:28 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tgzk0-0007hM-AO
	for mharc-groff@gnu.org; Fri, 07 Dec 2012 10:21:28 -0500
Received: from eggs.gnu.org ([208.118.235.92]:45367)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1Tgzjq-0007Jo-Vr
	for groff@gnu.org; Fri, 07 Dec 2012 10:21:25 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1Tgzjl-0002OG-Cr
	for groff@gnu.org; Fri, 07 Dec 2012 10:21:18 -0500
Received: from mailout-de.gmx.net ([213.165.64.22]:41456)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1Tgzjl-0002NY-26
	for groff@gnu.org; Fri, 07 Dec 2012 10:21:13 -0500
Received: (qmail invoked by alias); 07 Dec 2012 15:21:11 -0000
Received: from 178.115.251.12.wireless.dyn.drei.com (EHLO localhost)
	[178.115.251.12]
	by mail.gmx.net (mp038) with SMTP; 07 Dec 2012 16:21:11 +0100
X-Authenticated: #54312696
X-Provags-ID: V01U2FsdGVkX19nHllisnFnVvL7CNWUFjkibpCPNrfxwvPM9kHeh/
	zm3psJKudfRgBO
Date: Fri, 07 Dec 2012 16:21:05 +0100 (CET)
Message-Id: <20121207.162105.308608347.wl@gnu.org>
To: MBianchi@Foveal.com
From: Werner LEMBERG <wl@gnu.org>
In-Reply-To: <20121207151216.GA13635@foveal4.foveal.com>
References: <20121206234403.GF159591@vauxhall.crustytoothpaste.net>
	<20121207.073609.172327041.wl@gnu.org>
	<20121207151216.GA13635@foveal4.foveal.com>
X-Mailer: Mew version 6.4rc1 on Emacs 24.2.50.1 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 213.165.64.22
Cc: sandals@crustytoothpaste.net, groff@gnu.org
Subject: Re: [Groff] Included files are not preprocessed
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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: Fri, 07 Dec 2012 15:21:25 -0000

>> >>   $ groff -V -s -Kcp1251 -t -Tutf8
>> >>   soelim | preconv -ecp1251 | tbl | troff -Tutf8 | grotty
>> >
>> > Not that you should ever do this, but if you were using, say,
>> > UTF-16, soelim would not be very effective unless preconv ran
>> > first.
> 
> Could soelim be rewritten to use fgetwc() and wide characters?
> Standard ASCII would just pass through.

This doesn't help.  `soelim' must recognize the string ".so", but in
UTF-16, this is represented as

  "\0.\0s\0o"

and without knowing the encoding you can't find that in a document
easily.  You are entering very muddy waters if you start to guess
encodings...


     Werner


From MAILER-DAEMON Sun Dec 09 06:32:15 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Thf7H-0001vZ-PZ
	for mharc-groff@gnu.org; Sun, 09 Dec 2012 06:32:15 -0500
Received: from eggs.gnu.org ([208.118.235.92]:32903)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jerome.frgacic@yahoo.fr>) id 1Theyx-0001Ah-Dc
	for groff@gnu.org; Sun, 09 Dec 2012 06:23:42 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jerome.frgacic@yahoo.fr>) id 1Theyu-0006b5-VA
	for groff@gnu.org; Sun, 09 Dec 2012 06:23:39 -0500
Received: from nm24-vm0.bullet.mail.ird.yahoo.com ([212.82.109.239]:44623)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jerome.frgacic@yahoo.fr>) id 1Theyu-0006ay-Ju
	for groff@gnu.org; Sun, 09 Dec 2012 06:23:36 -0500
Received: from [77.238.189.231] by nm24.bullet.mail.ird.yahoo.com with NNFMP;
	09 Dec 2012 11:23:34 -0000
Received: from [212.82.108.245] by tm12.bullet.mail.ird.yahoo.com with NNFMP;
	09 Dec 2012 11:23:34 -0000
Received: from [127.0.0.1] by omp1010.mail.ird.yahoo.com with NNFMP;
	09 Dec 2012 11:23:34 -0000
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 931202.48244.bm@omp1010.mail.ird.yahoo.com
Received: (qmail 8901 invoked by uid 60001); 9 Dec 2012 11:23:34 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024;
	t=1355052214; bh=YNDZPfOQh+x4wTVI9vWpTFU3j6kjowx6L5tj+adzeNg=;
	h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type;
	b=ngWF2R1xEdfc4HBV899dwEZIzigbVcJE2hOBh8cokrM8TJTdEEzQBGfS7AvwD3F+hBdZ7+4wrYkJ+kIWI/A8b0EhtoB94fPPE5pAqGyxAWAnQSftYL5F7jTioW2sDBHW/BEROGSLsR0+OQxqXF4FKc+O/zO/0lXuUlrODT+8pg8=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr;
	h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type;
	b=K8iIPnCs+0Ig5XJy9ddeMbGfuUInNGh1HwAia+kkS14fMfpCwP6ax7Ni84K/RnhjmJ7dLwz6j5R/Lyg/M3wqcRn+wlhgUnXtrMBiWUVdW25CBZ77dvdKQ1LzxfAhUZvezYSvz1dtMRglYNAzVTSflhgCowPvy1DDnyG0saH55IQ=;
X-YMail-OSG: NszaEu8VM1l5MOXf1WyAjmhFeg5shiz7ogcz6682LuEmpx1
	4vNINLOlNppP6Nm_fRqmn
Received: from [91.180.198.2] by web171605.mail.ir2.yahoo.com via HTTP;
	Sun, 09 Dec 2012 11:23:34 GMT
X-Rocket-MIMEInfo: 001.001,
	SGVsbG8sCgpNeSBxdWVzdGlvbiBpcyBub3QgZGlyZWN0bHkgbGlua2VkIHRvIEdyb2ZmLCBidXQgSSBkb24ndCBrbm93IHdoZXJlIHRvIGFzayBpdAphbmQgSSB0aGluayBJIGhhdmUgYmV0dGVyIGNoYW5jZSB0byBnZXQgYW5zd2VycyBvbiB0aGlzIG1haWxpbmcgbGlzdC4KCklzIHRoZXJlIGEgc29sdXRpb24gdG8gZ2V0IHRoZSBtYXJnaW5zIG9mIGEgUG9zdHNjcmlwdCBkb2N1bWVudCwgbGlrZSB0aGUgcGFnZQpvZmZzZXQgdmFsdWUgb24gR3JvZmYgPwoBMAEBAQE-
X-Mailer: YahooMailWebService/0.8.128.478
Message-ID: <1355052214.3481.YahooMailNeo@web171605.mail.ir2.yahoo.com>
Date: Sun, 9 Dec 2012 11:23:34 +0000 (GMT)
From: =?iso-8859-1?Q?J=E9r=F4me_Frgacic?= <jerome.frgacic@yahoo.fr>
To: "groff@gnu.org" <groff@gnu.org>
MIME-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x
X-Received-From: 212.82.109.239
X-Mailman-Approved-At: Sun, 09 Dec 2012 06:32:14 -0500
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Content-Filtered-By: Mailman/MimeDel 2.1.14
Subject: [Groff]  Get margin of a Postscript file
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: =?iso-8859-1?Q?J=E9r=F4me_Frgacic?= <jerome.frgacic@yahoo.fr>
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, 09 Dec 2012 11:23:42 -0000

Hello,=0A=0AMy question is not directly linked to Groff, but I don't know w=
here to ask it=0Aand I think I have better chance to get answers on this ma=
iling list.=0A=0AIs there a solution to get the margins of a Postscript doc=
ument, like the page=0Aoffset value on Groff ?=0A

From MAILER-DAEMON Sun Dec 09 06:49:35 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ThfO3-0004Re-1z
	for mharc-groff@gnu.org; Sun, 09 Dec 2012 06:49:35 -0500
Received: from eggs.gnu.org ([208.118.235.92]:36533)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1ThfO0-0004Qh-Sl
	for groff@gnu.org; Sun, 09 Dec 2012 06:49:33 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1ThfNz-0004Ie-VF
	for groff@gnu.org; Sun, 09 Dec 2012 06:49:32 -0500
Received: from relay01.pair.com ([209.68.5.15]:3604)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1ThfNz-0004IW-Pc
	for groff@gnu.org; Sun, 09 Dec 2012 06:49:31 -0500
Received: (qmail 98201 invoked from network); 9 Dec 2012 11:49:30 -0000
Received: from 87.112.111.243 (HELO orac.inputplus.co.uk) (87.112.111.243)
	by relay01.pair.com with SMTP; 9 Dec 2012 11:49:30 -0000
X-pair-Authenticated: 87.112.111.243
Received: by orac.inputplus.co.uk (Postfix, from userid 1000)
	id D76772059C; Sun,  9 Dec 2012 11:49:29 +0000 (GMT)
Received: from orac.inputplus.co.uk (localhost [127.0.0.1])
	by orac.inputplus.co.uk (Postfix) with ESMTP id BE7B120509;
	Sun,  9 Dec 2012 11:49:29 +0000 (GMT)
To: =?iso-8859-1?Q?J=E9r=F4me_Frgacic?= <jerome.frgacic@yahoo.fr>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
In-reply-to: <1355052214.3481.YahooMailNeo@web171605.mail.ir2.yahoo.com>
References: <1355052214.3481.YahooMailNeo@web171605.mail.ir2.yahoo.com>
Comments: In-reply-to =?iso-8859-1?Q?J=E9r=F4me_Frgacic?=
	<jerome.frgacic@yahoo.fr> message dated "Sun,
	09 Dec 2012 11:23:34 +0000."
Date: Sun, 09 Dec 2012 11:49:29 +0000
From: Ralph Corderoy <ralph@inputplus.co.uk>
Message-Id: <20121209114929.D76772059C@orac.inputplus.co.uk>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.68.5.15
Cc: groff@gnu.org
Subject: Re: [Groff] Get margin of a Postscript file
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 09 Dec 2012 11:49:33 -0000

Hi JÃ©rÃ´me,

> Is there a solution to get the margins of a Postscript document, like
> the page offset value on Groff ?

Tell us why you want to know and it may help those with suggestions.
:-)

Cheers, Ralph.


From MAILER-DAEMON Sun Dec 09 07:30:29 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Thg1d-0000hf-9R
	for mharc-groff@gnu.org; Sun, 09 Dec 2012 07:30:29 -0500
Received: from eggs.gnu.org ([208.118.235.92]:40510)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1Thg1Z-0000gv-VR
	for groff@gnu.org; Sun, 09 Dec 2012 07:30:27 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1Thg1X-0004ef-EX
	for groff@gnu.org; Sun, 09 Dec 2012 07:30:25 -0500
Received: from relay00.pair.com ([209.68.5.9]:1802)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1Thg1X-0004dx-82
	for groff@gnu.org; Sun, 09 Dec 2012 07:30:23 -0500
Received: (qmail 31150 invoked from network); 9 Dec 2012 12:30:21 -0000
Received: from 87.112.111.243 (HELO orac.inputplus.co.uk) (87.112.111.243)
	by relay00.pair.com with SMTP; 9 Dec 2012 12:30:21 -0000
X-pair-Authenticated: 87.112.111.243
Received: by orac.inputplus.co.uk (Postfix, from userid 1000)
	id 31E6B21BFD; Sun,  9 Dec 2012 12:30:21 +0000 (GMT)
Received: from orac.inputplus.co.uk (localhost [127.0.0.1])
	by orac.inputplus.co.uk (Postfix) with ESMTP id 12E1C222DD
	for <groff@gnu.org>; Sun,  9 Dec 2012 12:30:21 +0000 (GMT)
X-Original-To: ralph@inputplus.co.uk
Delivered-To: ralph@inputplus.co.uk
Received: from orac (localhost.localdomain [127.0.0.1])
	by orac.inputplus.co.uk (Postfix) with ESMTP id 029D821BDB
	for <ralph@inputplus.co.uk>; Sun,  9 Dec 2012 12:20:13 +0000 (GMT)
Delivered-To: inputplu-inputplus:co:uk-ralph@inputplus.co.uk
X-Envelope-To: ralph@inputplus.co.uk
Received: from ruis.pair.com [209.68.1.63] by orac with IMAP (fetchmail-6.3.17)
	for <ralph@inputplus.co.uk> (single-drop);
	Sun, 09 Dec 2012 12:20:14 +0000 (GMT)
Received: (qmail 78279 invoked from network); 9 Dec 2012 12:19:14 -0000
Received: from mailwash26.pair.com (66.39.2.26)
	by ruis.pair.com with SMTP; 9 Dec 2012 12:19:14 -0000
Received: from localhost (localhost [127.0.0.1])
	by mailwash26.pair.com (Postfix) with SMTP id 203F51B31E
	for <ralph@inputplus.co.uk>; Sun,  9 Dec 2012 07:19:14 -0500 (EST)
Received: from nm12-vm0.bullet.mail.ird.yahoo.com
	(nm12-vm0.bullet.mail.ird.yahoo.com [77.238.189.196])
	by mailwash26.pair.com (Postfix) with ESMTP id 7A0CF1B30F
	for <ralph@inputplus.co.uk>; Sun,  9 Dec 2012 07:19:13 -0500 (EST)
Received: from [77.238.189.232] by nm12.bullet.mail.ird.yahoo.com with NNFMP;
	09 Dec 2012 12:19:12 -0000
Received: from [212.82.108.124] by tm13.bullet.mail.ird.yahoo.com with NNFMP;
	09 Dec 2012 12:19:12 -0000
Received: from [127.0.0.1] by omp1033.mail.ird.yahoo.com with NNFMP;
	09 Dec 2012 12:19:12 -0000
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 475383.72985.bm@omp1033.mail.ird.yahoo.com
Received: (qmail 90750 invoked by uid 60001); 9 Dec 2012 12:19:12 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024;
	t=1355055552; bh=69SEmPvUxWgKXxuww22jlU5XoJxKciJzt0gbFXghjeE=;
	h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type;
	b=09Bz6ck8luNLqUsp8CuL+Lw+/7c0rBkRV9vkILeJgwSBEZ0DC97orVRBfNJ0W2ljXLqttlHc/nFPsF4fRZJp7aMRFj5dr6QPiK29MNfKpMeJmCa7D6F0RgTSrc/UQHhVetK3BZW8/VP9E1UG6g406u3qqVWkAYk6tqKY55YCIxQ=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr;
	h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type;
	b=uoRfvLXxLLIYZwx0HDsGcI95Y0hOtCFNI1iybpjqRgBT065smpc7ccKIxcnuRimYU6DEaPwBLPmnhemhEfLeqstS8KMgXxLD2M5a7MR9gApV0L7iYT+2qpfX5NP1fm/jIvG/HntkskhvdFhBMIh5VVRknS309ujWT2TAOYTAMGE=;
X-YMail-OSG: UHaQNvQVM1n0IGMU4onXnAZloAQfEaetRjzprFMtQtXbOz_
	AFB30NAKZncV5k6TOCwan4fz4gDaeuGuC1umqrryFbemTLk5kez6bW7ryn4R
	XGEMQLcLlC.r9Isb_AG1SPgFoi_r_xRIdbpXpuePYq2cMTv05SG2SKBcs9rB
	OGEuyzlhweVAevHGXy7H.SozS5GL9p5u0CjjnyoH8KbMSGLpuxAa18RbGnCh
	fqmVfwbsJ91HOOWM95mOJybZmWgNzzn4SgI8WDEnCP5CTOm2UiMEcLnUZ8bD
	U.SkGa_aa1Z6eegsioLOO9gHVdKc2w8_QHsIbVLezfEJ5okZxTu5B.d728dt
	bRr0KnkouF8UxzO3NA7R.DBAb2ufI_YwOU9gFw1KZ.dpGJMuq0w_9s1OCdDk
	Kp41ViDgSfUDkRRmTA7WywsSuEUZMIZbmMPasW4GrQq4kzjew3QI2Gcch7ye
	p.7cqONK2
Received: from [91.180.198.2] by web171601.mail.ir2.yahoo.com via HTTP;
	Sun, 09 Dec 2012 12:19:12 GMT
X-Rocket-MIMEInfo: 001.001,
	CgpUaGFuayBmb3IgeW91ciByZXBseS4gOikKCkhlcmUgaXMgdGhlIGNvbnRleHQgOiBJJ20gc3R1ZGVudCBpbiBMYXcgYW5kIG5leHQgeWVhcgpJIHdpbGwgaGF2ZSB0byB3cml0ZSBhIG1lbW9yYW5kdW0uwqAgTmV2ZXJ0aGVsZXNzLCB0aGlzIG1lbW9yYW5kdW0gbXVzdCBiZSBpbiBNUwpXb3JkIGZvcm1hdCB3aGljaCBkaXNwbGVhc2UgbWUgZ3JlYXRseS7CoCBUaGlzIGZvcm1hdCBpcyBpbXBvc2VkIHRvIHZlcmlmeSBpZiB3ZQpyZXNwZWN0IHRoZSBpbnN0cnVjdGlvbnMsIGFuZCBlc3BlY2lhbGx5IHRoZSABMAEBAQE-
X-Mailer: YahooMailWebService/0.8.128.478
References: <1355052214.3481.YahooMailNeo@web171605.mail.ir2.yahoo.com>
	<20121209114929.D76772059C@orac.inputplus.co.uk>
Message-ID: <1355055552.71482.YahooMailNeo@web171601.mail.ir2.yahoo.com>
Date: Sun, 9 Dec 2012 12:19:12 +0000 (GMT)
From: =?iso-8859-1?Q?J=E9r=F4me_Frgacic?= <jerome.frgacic@yahoo.fr>
To: Ralph Corderoy <ralph@inputplus.co.uk>
In-Reply-To: <20121209114929.D76772059C@orac.inputplus.co.uk>
MIME-Version: 1.0
Resent-To: groff@gnu.org
Resent-Date: Sun, 09 Dec 2012 12:30:21 +0000
Resent-From: Ralph Corderoy <ralph@inputplus.co.uk>
Resent-Message-Id: <20121209123021.31E6B21BFD@orac.inputplus.co.uk>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.68.5.9
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Content-Filtered-By: Mailman/MimeDel 2.1.14
Subject: Re: [Groff] Get margin of a Postscript file
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: =?iso-8859-1?Q?J=E9r=F4me_Frgacic?= <jerome.frgacic@yahoo.fr>
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, 09 Dec 2012 12:30:27 -0000

=0A=0AThank for your reply. :)=0A=0AHere is the context : I'm student in La=
w and next year=0AI will have to write a memorandum.=A0 Nevertheless, this =
memorandum must be in MS=0AWord format which displease me greatly.=A0 This =
format is imposed to verify if we=0Arespect the instructions, and especiall=
y the margins.=0A=0AIn this situation, I wonder if there is a solution to o=
btain this information=0Afrom another format, like Postscript, so I can pro=
pose an alternative to=0Athe use of MS Word format.=0A

From MAILER-DAEMON Sun Dec 09 07:31:46 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Thg2s-00014X-GD
	for mharc-groff@gnu.org; Sun, 09 Dec 2012 07:31:46 -0500
Received: from eggs.gnu.org ([208.118.235.92]:40673)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1Thg2p-000143-RX
	for groff@gnu.org; Sun, 09 Dec 2012 07:31:44 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1Thg2o-0004mC-NN
	for groff@gnu.org; Sun, 09 Dec 2012 07:31:43 -0500
Received: from smarthost02.mail.zen.net.uk ([212.23.1.2]:53682)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1Thg2o-0004m3-HD
	for groff@gnu.org; Sun, 09 Dec 2012 07:31:42 -0500
Received: from [88.96.44.206] (helo=deb)
	by smarthost02.mail.zen.net.uk with esmtp (Exim 4.72)
	(envelope-from <Ted.Harding@wlandres.net>)
	id 1Thg2m-0007p5-HX; Sun, 09 Dec 2012 12:31:40 +0000
Content-Length: 1048
Message-ID: <XFMail.20121209123127.Ted.Harding@wlandres.net>
X-Mailer: XFMail 1.5.5 on Linux
X-Priority: 3 (Normal)
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0
In-Reply-To: <20121209114929.D76772059C@orac.inputplus.co.uk>
Date: Sun, 09 Dec 2012 12:31:27 -0000 (GMT)
Sender: ted@deb
From: (Ted Harding) <Ted.Harding@wlandres.net>
To: groff@gnu.org
Bcc: 
X-Originating-Smarthost02-IP: [88.96.44.206]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 212.23.1.2
Cc: =?iso-8859-1?Q?J=E9r=F4me_Frgacic?= <jerome.frgacic@yahoo.fr>
Subject: Re: [Groff] Get margin of a Postscript file
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: Ted.Harding@wlandres.net
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, 09 Dec 2012 12:31:44 -0000

On 09-Dec-2012 11:49:29 Ralph Corderoy wrote:
> Hi Jérôme,
> 
>> Is there a solution to get the margins of a Postscript document,
>> like the page offset value on Groff ?
> 
> Tell us why you want to know and it may help those with suggestions.
>:-)
> 
> Cheers, Ralph.

And to Ralph's question I would add: Tell us exactly *what* you
want to know!

For example: You may have a PostScript file, and want to know (from
information within the file) how far from the left-hand edge of the
paper, and from the right-hand edge, the printing would normally extend.

The reason for asking you these questions is that there are various
possible sorts of relevant information, which may or may not be
present in a given PostScript file (depending on what software made
it, and on options which the user may have chosen).

Best wishes,
Ted.

-------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding@wlandres.net>
Date: 09-Dec-2012  Time: 12:31:24
This message was sent by XFMail
-------------------------------------------------


From MAILER-DAEMON Sun Dec 09 07:35:15 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Thg6F-0001OT-SP
	for mharc-groff@gnu.org; Sun, 09 Dec 2012 07:35:15 -0500
Received: from eggs.gnu.org ([208.118.235.92]:40937)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1Thg6D-0001Mu-26
	for groff@gnu.org; Sun, 09 Dec 2012 07:35:14 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1Thg6B-0005h9-NN
	for groff@gnu.org; Sun, 09 Dec 2012 07:35:12 -0500
Received: from relay03.pair.com ([209.68.5.17]:4217)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1Thg6B-0005h5-IW
	for groff@gnu.org; Sun, 09 Dec 2012 07:35:11 -0500
Received: (qmail 1109 invoked from network); 9 Dec 2012 12:35:10 -0000
Received: from 87.112.111.243 (HELO orac.inputplus.co.uk) (87.112.111.243)
	by relay03.pair.com with SMTP; 9 Dec 2012 12:35:10 -0000
X-pair-Authenticated: 87.112.111.243
Received: by orac.inputplus.co.uk (Postfix, from userid 1000)
	id 346DA222DD; Sun,  9 Dec 2012 12:35:10 +0000 (GMT)
Received: from orac.inputplus.co.uk (localhost [127.0.0.1])
	by orac.inputplus.co.uk (Postfix) with ESMTP id 139AC222A8;
	Sun,  9 Dec 2012 12:35:10 +0000 (GMT)
To: =?iso-8859-1?Q?J=E9r=F4me_Frgacic?= <jerome.frgacic@yahoo.fr>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
In-reply-to: <1355055552.71482.YahooMailNeo@web171601.mail.ir2.yahoo.com>
References: <1355052214.3481.YahooMailNeo@web171605.mail.ir2.yahoo.com>
	<20121209114929.D76772059C@orac.inputplus.co.uk>
	<1355055552.71482.YahooMailNeo@web171601.mail.ir2.yahoo.com>
Comments: In-reply-to =?iso-8859-1?Q?J=E9r=F4me_Frgacic?=
	<jerome.frgacic@yahoo.fr> message dated "Sun,
	09 Dec 2012 12:19:12 +0000."
Date: Sun, 09 Dec 2012 12:35:10 +0000
From: Ralph Corderoy <ralph@inputplus.co.uk>
Message-Id: <20121209123510.346DA222DD@orac.inputplus.co.uk>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.68.5.17
Cc: groff@gnu.org
Subject: Re: [Groff] Get margin of a Postscript file
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: groff@gnu.org
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, 09 Dec 2012 12:35:14 -0000

Hi JÃ©rÃ´me,

Please reply to the list, not just me.  :-)

> Here is the context : I'm student in Law and next year I will have to
> write a memorandum.Â  Nevertheless, this memorandum must be in MS Word
> format which displease me greatly.Â  This format is imposed to verify
> if we respect the instructions, and especially the margins.
> 
> In this situation, I wonder if there is a solution to obtain this
> information from another format, like Postscript, so I can propose an
> alternative to the use of MS Word format.

Ghostscript can report the bounding-box for the ink laid on each page.
http://ghostscript.com/doc/7.07/Use.htm#Bounding_box_output

    $ for n in 5 271 3141; do
    >     echo $n
    >     seq $n | groff | gs -q -dNOPAUSE -dBATCH -sDEVICE=bbox -
    > done
    5
    %%BoundingBox: 73 829 107 837
    %%HiResBoundingBox: 73.025998 829.745975 106.379997 836.765974
    271
    %%BoundingBox: 72 719 540 837
    %%HiResBoundingBox: 72.017998 719.045978 539.747984 836.765974
    3141
    %%BoundingBox: 72 47 540 837
    %%HiResBoundingBox: 72.017998 47.051999 539.747984 836.765974
    %%BoundingBox: 72 47 540 837
    %%HiResBoundingBox: 72.305998 47.051999 539.675984 836.765974
    %%BoundingBox: 72 683 540 837
    %%HiResBoundingBox: 72.305998 683.045979 539.675984 836.765974
    $ 

Note how the left margin varies slightly, 72 or 73, depending I suspect
on the curvuture of the glyphs at the start of the line.  The first
document has the smallest height, just one line of text, from 829 to
837;  origin is bottom-left.  The two full pages of the 3141 document
have the same low-res box.

Perhaps this helps.

Cheers, Ralph.


From MAILER-DAEMON Sun Dec 09 14:14:22 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ThmKU-0003zG-0C
	for mharc-groff@gnu.org; Sun, 09 Dec 2012 14:14:22 -0500
Received: from eggs.gnu.org ([208.118.235.92]:39485)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jerome.frgacic@yahoo.fr>) id 1Thfrp-00088U-6o
	for groff@gnu.org; Sun, 09 Dec 2012 07:20:24 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jerome.frgacic@yahoo.fr>) id 1Thfrm-0002a9-BH
	for groff@gnu.org; Sun, 09 Dec 2012 07:20:21 -0500
Received: from nm15.bullet.mail.ird.yahoo.com ([77.238.189.68]:47216)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jerome.frgacic@yahoo.fr>) id 1Thfrm-0002Zx-1k
	for groff@gnu.org; Sun, 09 Dec 2012 07:20:18 -0500
Received: from [212.82.105.244] by nm15.bullet.mail.ird.yahoo.com with NNFMP;
	09 Dec 2012 12:20:17 -0000
Received: from [212.82.108.254] by tm16.bullet.mail.ird.yahoo.com with NNFMP;
	09 Dec 2012 12:20:17 -0000
Received: from [127.0.0.1] by omp1019.mail.ird.yahoo.com with NNFMP;
	09 Dec 2012 12:20:17 -0000
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 36371.27428.bm@omp1019.mail.ird.yahoo.com
Received: (qmail 91846 invoked by uid 60001); 9 Dec 2012 12:20:17 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024;
	t=1355055616; bh=zZ1u+u1x3EXJN0i5Bc2LN0abJcQ2kFYwRlDNM2AfiHQ=;
	h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type;
	b=ifCzeExGqImBj++eRGjhK5ZRsjpKCLhU8jJLJFkrzTyatWZ5rxFkJm7gGvO6EczXFdF15q6XKC1KBSBLGmSlZ3f7E3b7aKg+ZC5axzWSXNVnHPwOW8G2LsZHRVp3nycwrS+/ggpsctT9Y30Kv55kmwoRUzsVSbl9hz+rD8J8cs4=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr;
	h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type;
	b=PL37TcohK0UoRUnJWgqaLpWl47FaJMqOZ7FAS1tR97qSgCL879c4BDpg8nZzDMptp1IPbT+gIhEVcxckYUwGJwXqDyJXQoWjWZVL5S7UFh4v1l3jkY4TNNpTnXqIcMNaqFRb7McBLaXhnwAk3zwBriOoNqN/zf1boHtI1ivQS4c=;
X-YMail-OSG: svnybLsVM1m4f8EUqytKhYYqYE1v5G5hSzdvSHWKaWh15VV
	nWKZOq3IOjfMSVzorNGVvKqzWPv5YS.CHBvekzvVGepkpvX_g5gEIlW2_NNT
	De_AWSXXDs1kps0iLwomD5sahEYsbV7mBDF522x1Tu4XthHhM3te5sGMSxJ1
	oMmh17snk.pVBmGoA03z1MNgjcugff15IPZIpC0zxwPUkh.hensmwGsJ_kVH
	kZrZyg44cf.3GBiAlusfCRp1GzTYUJ9_Pnp_zRQTEhHsxO8sWUbCtIPcHpvg
	fIqswNmBUXt4_peFJgBq7ppPoPWvSLeQNIQ5mf8nAURmncVhkkytI9cYLmFn
	D.7peUVzv22gAslvBXt_7iEg_OOlFl6Ppn7TxTxgm.rm9caDmLdnC8hFIv5N
	pxbykGE9A8itDmI_JNj0LbicfYkbaTgRp
Received: from [91.180.198.2] by web171601.mail.ir2.yahoo.com via HTTP;
	Sun, 09 Dec 2012 12:20:16 GMT
X-Rocket-MIMEInfo: 001.001,
	VGhhbmsgZm9yIHlvdXIgcmVwbHkuIDopCgoKSGVyZSBpcyB0aGUgY29udGV4dCA6IEknbSBzdHVkZW50IGluIExhdyBhbmQgbmV4dCB5ZWFyCkkgd2lsbCBoYXZlIHRvIHdyaXRlIGEgbWVtb3JhbmR1bS7CoCBOZXZlcnRoZWxlc3MsIHRoaXMgbWVtb3JhbmR1bSBtdXN0IGJlIGluIE1TCldvcmQgZm9ybWF0IHdoaWNoIGRpc3BsZWFzZSBtZSBncmVhdGx5LsKgIFRoaXMgZm9ybWF0IGlzIGltcG9zZWQgdG8gdmVyaWZ5IGlmIHdlCnJlc3BlY3QgdGhlIGluc3RydWN0aW9ucywgYW5kIGVzcGVjaWFsbHkgdGhlIG0BMAEBAQE-
X-Mailer: YahooMailWebService/0.8.128.478
References: <1355052214.3481.YahooMailNeo@web171605.mail.ir2.yahoo.com>
	<20121209114929.D76772059C@orac.inputplus.co.uk>
	<1355055552.71482.YahooMailNeo@web171601.mail.ir2.yahoo.com>
Message-ID: <1355055616.91620.YahooMailNeo@web171601.mail.ir2.yahoo.com>
Date: Sun, 9 Dec 2012 12:20:16 +0000 (GMT)
From: =?iso-8859-1?Q?J=E9r=F4me_Frgacic?= <jerome.frgacic@yahoo.fr>
To: "groff@gnu.org" <groff@gnu.org>
In-Reply-To: <1355055552.71482.YahooMailNeo@web171601.mail.ir2.yahoo.com>
MIME-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x
X-Received-From: 77.238.189.68
X-Mailman-Approved-At: Sun, 09 Dec 2012 14:14:20 -0500
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Content-Filtered-By: Mailman/MimeDel 2.1.14
Subject: [Groff]  Get margin of a Postscript file
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: =?iso-8859-1?Q?J=E9r=F4me_Frgacic?= <jerome.frgacic@yahoo.fr>
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, 09 Dec 2012 12:20:24 -0000

Thank for your reply. :)=0A=0A=0AHere is the context : I'm student in Law a=
nd next year=0AI will have to write a memorandum.=A0 Nevertheless, this mem=
orandum must be in MS=0AWord format which displease me greatly.=A0 This for=
mat is imposed to verify if we=0Arespect the instructions, and especially t=
he margins.=0A=0AIn this situation, I wonder if there is a solution to obta=
in this information=0Afrom another format, like Postscript, so I can propos=
e an alternative to=0Athe use of MS Word format.

From MAILER-DAEMON Sun Dec 09 14:14:25 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ThmKX-0004Ap-NZ
	for mharc-groff@gnu.org; Sun, 09 Dec 2012 14:14:25 -0500
Received: from eggs.gnu.org ([208.118.235.92]:46498)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jerome.frgacic@yahoo.fr>) id 1Thk3P-0001Ar-EV
	for groff@gnu.org; Sun, 09 Dec 2012 11:48:38 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jerome.frgacic@yahoo.fr>) id 1Thk3M-0005Cs-Oh
	for groff@gnu.org; Sun, 09 Dec 2012 11:48:35 -0500
Received: from nm4-vm0.bullet.mail.ird.yahoo.com ([77.238.189.211]:24964)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jerome.frgacic@yahoo.fr>) id 1Thk3M-0005Cl-EV
	for groff@gnu.org; Sun, 09 Dec 2012 11:48:32 -0500
Received: from [77.238.189.49] by nm4.bullet.mail.ird.yahoo.com with NNFMP;
	09 Dec 2012 16:48:31 -0000
Received: from [212.82.108.240] by tm2.bullet.mail.ird.yahoo.com with NNFMP;
	09 Dec 2012 16:48:31 -0000
Received: from [127.0.0.1] by omp1005.mail.ird.yahoo.com with NNFMP;
	09 Dec 2012 16:48:31 -0000
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 705816.86449.bm@omp1005.mail.ird.yahoo.com
Received: (qmail 54920 invoked by uid 60001); 9 Dec 2012 16:48:31 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024;
	t=1355071711; bh=HrJ2M6mIy4wj+gp2XcR/8K+wOS2aIyS5NJsmQm02viI=;
	h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type;
	b=z3azLV9/Vnu+lqo3JFF0+BxZk/yrPSU0fOaKufTS82ti15OCDLObWgdRqqPQVP02N1osXJws9p7I1CYCLx1ooGKCY6K/M77eOl0dPg/z0K/9pr36h/VgnTVANxw07lm7T9T2Uf2IDjObKbFuqBe3aNsYChEcwWbLVzv8n4Qy8N4=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr;
	h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type;
	b=2CiyIidOxkpCd/VxPjhueDmwfbO9qgW26XNyvwUMn+nStuG2sBQoWBkCsRYnsyl4eqhDQGmn2NQI9qMzCo5Vx6sx7xuFvh9G7j1cffch+3zl9Mm5SKljvg5tWVTZe0QoDx+XwhYrPX5AegEvqef7PlAS7OFaI2BvxFfhpG0jYVA=;
X-YMail-OSG: 6lb8uHYVM1kg1kDbMRJaDBAk.I0hEM8PKfKk2q.4gaJZQh0
	Yu2p8Szlgdlqm.iQ6JvRKdeiKLvPE88SlOaXaFGJ91diVn5xavhRSFLqKcd5
	TbDL1j3DezQeUx.YCz1pz0XF3UWhxJo10pE.idILQM998b4wSwG2HpKOcv1F
	2rpT1ORocje3aSX9yx01HPeYvXJYu_j8.GwPcanz9sZR_OmPE661bdJuMLMy
	..Wtbvu5c6.2tPfNc..rXSkXm0HKGU_FjZhyF0cyHT5n9P3B4MWcFmHpVdiJ
	cYj7WySSA_OSW1Rn2d.qsyfesTmVa_IpQtzIBe1H2LCCQ4WyJF2wF5kdt4PV
	SEYeY47rLEcie3GWoSyX5yqf0yngGvyHFI6HMv0OCwOpGWmYQzjvvc_IrckF
	3yHBnlwrKwOGiomTG_lpRpxeKwUJoNy58
Received: from [91.180.198.2] by web171602.mail.ir2.yahoo.com via HTTP;
	Sun, 09 Dec 2012 16:48:31 GMT
X-Rocket-MIMEInfo: 001.001,
	T24gU3VuLCAwOSBEZWMgMjAxMiAxMjozNToxMCArMDAwMCwgUmFscGggQ29yZGVyb3kgd3JvdGUgOgo.IEdob3N0c2NyaXB0IGNhbiByZXBvcnQgdGhlIGJvdW5kaW5nLWJveCBmb3IgdGhlIGluayBsYWlkIG9uIGVhY2ggcGFnZS4KClRoYW5rcyBmb3IgdGhpcyB0cmljaywgaXQgd29ya3Mgd2VsbCBmb3IgZ2V0dGluZyBsZWZ0IGFuZCByaWdodCBtYXJnaW4uIDopCk5ldmVydGhlbGVzcywgSSByZWFsaXplZCB0aGF0IHRoZXJlIGlzIGFuIGFubm95aW5nIHByb2JsZW0gZm9yIHRoZSB0b3AgYW5kCmJvdHRvbSABMAEBAQE-
X-Mailer: YahooMailWebService/0.8.128.478
Message-ID: <1355071711.46882.YahooMailNeo@web171602.mail.ir2.yahoo.com>
Date: Sun, 9 Dec 2012 16:48:31 +0000 (GMT)
From: =?iso-8859-1?Q?J=E9r=F4me_Frgacic?= <jerome.frgacic@yahoo.fr>
To: "groff@gnu.org" <groff@gnu.org>
MIME-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x
X-Received-From: 77.238.189.211
X-Mailman-Approved-At: Sun, 09 Dec 2012 14:14:23 -0500
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Content-Filtered-By: Mailman/MimeDel 2.1.14
Subject: Re: [Groff] Get margin of a Postscript file
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: =?iso-8859-1?Q?J=E9r=F4me_Frgacic?= <jerome.frgacic@yahoo.fr>
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, 09 Dec 2012 16:48:38 -0000

On Sun, 09 Dec 2012 12:35:10 +0000, Ralph Corderoy wrote :=0A> Ghostscript =
can report the bounding-box for the ink laid on each page.=0A=0AThanks for =
this trick, it works well for getting left and right margin. :)=0ANeverthel=
ess, I realized that there is an annoying problem for the top and=0Abottom =
margin.  In fact, in MS Word, these margins do not apply to the=0Aheader an=
d the footer but only to the text (which, IMHO, is quite strange).=0ASo, I =
cannot get the top and bottom margin size from a PDF produce by MS=0AWord..=
.=0A=0AOn Sun, 09 Dec 2012 12:31:27 -0000, Ted Harding wrote :=0A> And to R=
alph's question I would add: Tell us exactly *what* you=0A> want to know!=
=0A=0ASo, as you say, I want to know how far from the left-hand edge of the=
 paper,=0Aand from the right-hand edge, the printing would normally extend =
and, for the=0Atop and the bottom, the same information but without taking =
into account the=0Afooter and the header (which, I think, is not possible).=
=0A

From MAILER-DAEMON Sun Dec 09 15:01:46 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Thn4M-0008Qm-0O
	for mharc-groff@gnu.org; Sun, 09 Dec 2012 15:01:46 -0500
Received: from eggs.gnu.org ([208.118.235.92]:52778)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1Thn4J-0008QS-OQ
	for groff@gnu.org; Sun, 09 Dec 2012 15:01:44 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1Thn4I-0008M1-IQ
	for groff@gnu.org; Sun, 09 Dec 2012 15:01:43 -0500
Received: from smarthost04.mail.zen.net.uk ([212.23.1.4]:48930)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1Thn4I-0008Lw-CE
	for groff@gnu.org; Sun, 09 Dec 2012 15:01:42 -0500
Received: from [88.96.44.206] (helo=deb)
	by smarthost04.mail.zen.net.uk with esmtp (Exim 4.72)
	(envelope-from <Ted.Harding@wlandres.net>)
	id 1Thn4G-0003eB-SQ; Sun, 09 Dec 2012 20:01:41 +0000
Content-Length: 2409
Message-ID: <XFMail.20121209200127.Ted.Harding@wlandres.net>
X-Mailer: XFMail 1.5.5 on Linux
X-Priority: 3 (Normal)
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0
In-Reply-To: <1355071711.46882.YahooMailNeo@web171602.mail.ir2.yahoo.com>
Date: Sun, 09 Dec 2012 20:01:27 -0000 (GMT)
Sender: ted@deb
From: (Ted Harding) <Ted.Harding@wlandres.net>
To: "groff@gnu.org" <groff@gnu.org>
Bcc: 
X-Originating-Smarthost04-IP: [88.96.44.206]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 212.23.1.4
Cc: =?iso-8859-1?Q?J=E9r=F4me?= Frgacic <jerome.frgacic@yahoo.fr>
Subject: Re: [Groff] Get margin of a Postscript file
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: Ted.Harding@wlandres.net
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, 09 Dec 2012 20:01:45 -0000

On 09-Dec-2012 16:48:31 Jérôme Frgacic wrote:
> On Sun, 09 Dec 2012 12:35:10 +0000, Ralph Corderoy wrote :
>> Ghostscript can report the bounding-box for the ink laid on each page.
> 
> Thanks for this trick, it works well for getting left and right margin. :)
> Nevertheless, I realized that there is an annoying problem for the top and
> bottom margin.  In fact, in MS Word, these margins do not apply to the
> header and the footer but only to the text (which, IMHO, is quite strange).
> So, I cannot get the top and bottom margin size from a PDF produce by MS
> Word...
> 
> On Sun, 09 Dec 2012 12:31:27 -0000, Ted Harding wrote :
>> And to Ralph's question I would add: Tell us exactly *what* you
>> want to know!
> 
> So, as you say, I want to know how far from the left-hand edge of the paper,
> and from the right-hand edge, the printing would normally extend and, for the
> top and the bottom, the same information but without taking into account the
> footer and the header (which, I think, is not possible).

If you convert the PDF into PS, then it is possible to parse the PS
(in principle it is in plain text) so as to locate the vertical position
of the first line of text on a page (which will be its "baseline"),
and that of the next line of text. The difference between these will be
the line spacing. All measurements are in points (possibly fractional).

Then you can locate the baseline of the bottom line of text.

The vertical position of the top line of text from the top of the page,
minus the line spacing, should be the top margin according to your
description.

For the bottom, you will however need to also take into account the
length of "descenders" (i.e. the dangly bits of letters like "g",
"p", "q" and "y"). The "baseline" is where the bottoms lof letters
like "z", "m2 etc. lie. I don't know how to obtain this from a file
produced by MS Word!

Nevertheless, this may help to get started. However, the parsing may
turn out to be complicated (especially with a file from MS Word ... ),
since there will be a lot of preliminary definitions of procedures,
and you would need to find the one which generates a move to a vertical
position to start a line.

Ted.

-------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding@wlandres.net>
Date: 09-Dec-2012  Time: 20:01:24
This message was sent by XFMail
-------------------------------------------------


From MAILER-DAEMON Mon Dec 10 06:52:55 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Ti1up-000427-Ms
	for mharc-groff@gnu.org; Mon, 10 Dec 2012 06:52:55 -0500
Received: from eggs.gnu.org ([208.118.235.92]:35670)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1Ti1uh-0003vQ-PD
	for groff@gnu.org; Mon, 10 Dec 2012 06:52:51 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1Ti1ug-0008BE-2O
	for groff@gnu.org; Mon, 10 Dec 2012 06:52:47 -0500
Received: from mail-la0-f41.google.com ([209.85.215.41]:38532)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>)
	id 1Ti1ue-00089y-Ez; Mon, 10 Dec 2012 06:52:44 -0500
Received: by mail-la0-f41.google.com with SMTP id m15so2168746lah.0
	for <multiple recipients>; Mon, 10 Dec 2012 03:52:42 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer
	:mime-version:content-type:content-transfer-encoding;
	bh=xXMFPkcgWuSfiLuUK661C/vvMVPlB793n5Buy2YaxS8=;
	b=x6KlktcF+CQgPy1Ym6pSGNIo42EftlQWLfafdEGE9bR9d+NqKYr682yzpv6Az3IfD6
	G1YhuheE4siK6xrquI26fzUivNyAlFr/CrmCx5DutfwxGnu3t11OZfIEm+IwQ61wajFk
	043ha1kDvR4yLUobdEOSuD6d+uo2GOY7vfue3Wq/AFSuXRv/1xJMlJI4Fs6qB1x1UUUh
	asj/hORVzXTyCiCIdy0dMG4M5O6ipwJSiQqjxELGDwU0Wu9H/HoDRa2JBG1rUQfHuuOX
	Y3vD+K+A3reTIIDdoz01z33OCewDVlWwDEtge4ZFqWRyhgGBUa2c4JCu8ntKdpp8zGqO
	SiaA==
Received: by 10.112.8.67 with SMTP id p3mr5949648lba.103.1355140362738;
	Mon, 10 Dec 2012 03:52:42 -0800 (PST)
Received: from erp07.git.ru ([94.79.3.82])
	by mx.google.com with ESMTPS id pp13sm2347978lab.16.2012.12.10.03.52.40
	(version=SSLv3 cipher=OTHER); Mon, 10 Dec 2012 03:52:41 -0800 (PST)
Date: Mon, 10 Dec 2012 15:52:21 +0400
From: Anton Shepelev <anton.txt@gmail.com>
To: Werner LEMBERG <wl@gnu.org>
Message-Id: <20121210155221.26280eaea53cd813c04629c9@gmail.com>
In-Reply-To: <20121207.073609.172327041.wl@gnu.org>
References: <20121205121018.b7bbe7725bdf36f6efb80470@gmail.com>
	<20121206.142013.250470143.wl@gnu.org>
	<20121206234403.GF159591@vauxhall.crustytoothpaste.net>
	<20121207.073609.172327041.wl@gnu.org>
X-Mailer: Sylpheed 3.2.0 (GTK+ 2.10.14; i686-pc-mingw32)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 209.85.215.41
Cc: groff@gnu.org
Subject: Re: [Groff] Included files are not preprocessed
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 10 Dec 2012 11:52:52 -0000

Werner LEMBERG:

> Indeed.   However,  it's just a matter of taste to
> handle funny preconv and soelim cases with either
>
>    soelim | groff -K ...
>
> (current groff) or with
>
>    preconv -e... | groff -s ...
>
> (patched groff)

It didn't occur to me.  There's no need to patch  it
then...

-- 
()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments


From MAILER-DAEMON Mon Dec 10 07:00:30 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Ti22A-0005rN-6N
	for mharc-groff@gnu.org; Mon, 10 Dec 2012 07:00:30 -0500
Received: from eggs.gnu.org ([208.118.235.92]:37071)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1Ti223-0005rB-2S
	for groff@gnu.org; Mon, 10 Dec 2012 07:00:28 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1Ti21x-00024W-1a
	for groff@gnu.org; Mon, 10 Dec 2012 07:00:22 -0500
Received: from mail-lb0-f169.google.com ([209.85.217.169]:57425)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1Ti21w-00024L-Qv
	for groff@gnu.org; Mon, 10 Dec 2012 07:00:16 -0500
Received: by mail-lb0-f169.google.com with SMTP id gk1so2250446lbb.0
	for <groff@gnu.org>; Mon, 10 Dec 2012 04:00:15 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer
	:mime-version:content-type:content-transfer-encoding;
	bh=kMtroeRbzVa/U6bH0eD+8swc04bcXJ8TxZzHF+YO0xU=;
	b=AqCXjruDHx0RcHTNkoCw0h7cJ5pdARGbr3R4CnKoCbge5h/lGcEOaHiZ13/rImPMZh
	U27sSy63YQIr1LaMWL8I7HZWMcjYDgSXBEmmGOIPHr71vzk+9FO0nffGrCIOsL2eWXnB
	fRZMO3Jz/pE0rwdTwG6NvICmXtiuNL5if3CBRtnfxCYEH7EXP7jpHErBUgNAL9JYggfI
	xH8oo2Tlpf5/Ir/HolHiudupMYRS0IPP+RM/jA955qtNQEaZx2o7FePB54jp8SfP3KcT
	Yr7lq8W2ikR/h2+3DITM0mpa4grZy09F7gx12mo7LQoVFAGR3cZlGIGVTdg6GTig8pHQ
	GYpg==
Received: by 10.112.29.104 with SMTP id j8mr6110689lbh.0.1355140815617;
	Mon, 10 Dec 2012 04:00:15 -0800 (PST)
Received: from erp07.git.ru ([94.79.3.82])
	by mx.google.com with ESMTPS id sj3sm7713596lab.2.2012.12.10.04.00.14
	(version=SSLv3 cipher=OTHER); Mon, 10 Dec 2012 04:00:14 -0800 (PST)
Date: Mon, 10 Dec 2012 15:59:55 +0400
From: Anton Shepelev <anton.txt@gmail.com>
To: =?UTF-8?Q?J=C3=A9r=C3=B4me?= Frgacic <jerome.frgacic@yahoo.fr>
Message-Id: <20121210155955.00a5e2548e5f9a7cec13ce72@gmail.com>
In-Reply-To: <1355055616.91620.YahooMailNeo@web171601.mail.ir2.yahoo.com>
References: <1355052214.3481.YahooMailNeo@web171605.mail.ir2.yahoo.com>
	<20121209114929.D76772059C@orac.inputplus.co.uk>
	<1355055552.71482.YahooMailNeo@web171601.mail.ir2.yahoo.com>
	<1355055616.91620.YahooMailNeo@web171601.mail.ir2.yahoo.com>
X-Mailer: Sylpheed 3.2.0 (GTK+ 2.10.14; i686-pc-mingw32)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 209.85.217.169
Cc: groff@gnu.org
Subject: Re: [Groff] Get margin of a Postscript file
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 10 Dec 2012 12:00:28 -0000

Jerome Frgacic:

> Here  is the context : I'm student in Law and next
> year I will have to write a memorandum.  Neverthe-
> less,  this  memorandum  must be in MS Word format
> which displease me greatly.  This  format  is  im-
> posed  to  verify  if we respect the instructions,
> and especially the margins.
>
> In this situation, I wonder if there is a solution
> to  obtain  this  information from another format,
> like Postscript, so I can propose  an  alternative
> to the use of MS Word format.

Did  they  publish a document explicitly stating the
required margins, or do they just tell you to use  a
style  from a provided .doc or .docx?  In the latter
case, why can't  you  just  open  that  document  in
MS Word  and  look  in Page Setup, where the margins
are specified?

Another (although dirty) way would be to  measure  a
printed document with a ruler :-)

-- 
()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments


From MAILER-DAEMON Mon Dec 10 07:18:18 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Ti2JO-0003oS-GQ
	for mharc-groff@gnu.org; Mon, 10 Dec 2012 07:18:18 -0500
Received: from eggs.gnu.org ([208.118.235.92]:40053)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mexas@bristol.ac.uk>) id 1Ti2JH-0003nR-BG
	for groff@gnu.org; Mon, 10 Dec 2012 07:18:16 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mexas@bristol.ac.uk>) id 1Ti2JB-0006eO-8g
	for groff@gnu.org; Mon, 10 Dec 2012 07:18:11 -0500
Received: from dirg.bris.ac.uk ([137.222.10.102]:42781)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mexas@bristol.ac.uk>) id 1Ti2JB-0006e0-3E
	for groff@gnu.org; Mon, 10 Dec 2012 07:18:05 -0500
Received: from irix.bris.ac.uk ([137.222.10.39] helo=ncs.bris.ac.uk)
	by dirg.bris.ac.uk with esmtp (Exim 4.72)
	(envelope-from <mexas@bristol.ac.uk>) id 1Ti2Hs-0007b6-TM
	for groff@gnu.org; Mon, 10 Dec 2012 12:16:55 +0000
Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241])
	by ncs.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72)
	(envelope-from <mexas@bris.ac.uk>) id 1Ti2Hr-0000iE-Sx
	for groff@gnu.org; Mon, 10 Dec 2012 12:16:43 +0000
Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1])
	by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5) with ESMTP id
	qBACGhfu009382 for <groff@gnu.org>; Mon, 10 Dec 2012 12:16:43 GMT
	(envelope-from mexas@mech-cluster241.men.bris.ac.uk)
Received: (from mexas@localhost)
	by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5/Submit) id
	qBACGhla009379 for groff@gnu.org; Mon, 10 Dec 2012 12:16:43 GMT
	(envelope-from mexas)
Date: Mon, 10 Dec 2012 12:16:43 GMT
From: Anton Shterenlikht <mexas@bristol.ac.uk>
Message-Id: <201212101216.qBACGhla009379@mech-cluster241.men.bris.ac.uk>
To: groff@gnu.org
X-detected-operating-system: by eggs.gnu.org: Solaris 10
X-Received-From: 137.222.10.102
Subject: [Groff] multiple postscript images in one figure?
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: mexas@bristol.ac.uk
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, 10 Dec 2012 12:18:17 -0000

What is the best way to include several ps files
in one groff figure, e.g. two or more images side by side,
or an array of images, e.g. 4x4:


      image1        image2
        (a)           (b)

Caption: a common caption for both (a) and (b)

**************************************************

      image1   image2    image3
       (a)       (b)       (c)

Caption: a common caption for all (a), (b) and (c)

**************************************************
 
      image1        image2
        (a)           (b)

      image3        image4
        (c)           (d)

Caption: a common caption for all (a)-(d).


I know how to do it with latex, but not with groff.

Thanks

Anton


From MAILER-DAEMON Mon Dec 10 07:57:09 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Ti2uz-0005cZ-Ev
	for mharc-groff@gnu.org; Mon, 10 Dec 2012 07:57:09 -0500
Received: from eggs.gnu.org ([208.118.235.92]:47249)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1Ti2uo-0005Lj-4D
	for groff@gnu.org; Mon, 10 Dec 2012 07:57:07 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1Ti2un-0000oA-Ap
	for groff@gnu.org; Mon, 10 Dec 2012 07:56:58 -0500
Received: from [2001:4ca0:4101:204:21a:4bff:fec5:6ac1] (port=52444
	helo=helix.usm.uni-muenchen.de)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1Ti2un-0000nd-4r
	for groff@gnu.org; Mon, 10 Dec 2012 07:56:57 -0500
Received: by helix.usm.uni-muenchen.de (Postfix, from userid 2097)
	id 6D1D716171A7; Mon, 10 Dec 2012 13:56:54 +0100 (CET)
Date: Mon, 10 Dec 2012 13:56:54 +0100
From: Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
To: groff@gnu.org
Message-ID: <20121210125654.GB30005@usm.uni-muenchen.de>
References: <201212101216.qBACGhla009379@mech-cluster241.men.bris.ac.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <201212101216.qBACGhla009379@mech-cluster241.men.bris.ac.uk>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4ca0:4101:204:21a:4bff:fec5:6ac1
Subject: Re: [Groff] multiple postscript images in one figure?
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 10 Dec 2012 12:57:07 -0000


>       image1   image2    image3
>        (a)       (b)       (c)
> 
> Caption: a common caption for all (a), (b) and (c)

Use mark and return.
Here's how I would do it if the pictures all have the same size:

  .begin_float
  .mk
  .PSPIC -L pic_A width
  .rt
  .PSPIC -C pic_B width
  .rt
  .PSPIC -R pic_C width
  .caption
  caption text
  .end_float

where begin_float, end_float, and caption are whatever macros
your package provides for these purposes, and width is computed
to allow three pictures side-by-side.
If the images don't have the same size, use the indent option
of PSPIC to place them so they don't overlap.

The other configurations can be achieved with variations of the
same basic idea.




From MAILER-DAEMON Mon Dec 10 08:57:20 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Ti3rE-0001zV-Uq
	for mharc-groff@gnu.org; Mon, 10 Dec 2012 08:57:20 -0500
Received: from eggs.gnu.org ([208.118.235.92]:60305)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dmw@oxytropis.plus.com>) id 1Ti3rB-0001wW-4g
	for groff@gnu.org; Mon, 10 Dec 2012 08:57:18 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <dmw@oxytropis.plus.com>) id 1Ti3r1-0000fT-AV
	for groff@gnu.org; Mon, 10 Dec 2012 08:57:17 -0500
Received: from avasout08.plus.net ([212.159.14.20]:44051)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dmw@oxytropis.plus.com>) id 1Ti3r1-0000f3-0c
	for groff@gnu.org; Mon, 10 Dec 2012 08:57:07 -0500
Received: from dell-desktop.example.com ([84.92.111.67]) by avasout08 with smtp
	id Zpx01k0021THptQ01px1fU; Mon, 10 Dec 2012 13:57:01 +0000
X-CM-Score: 0.00
X-CNFS-Analysis: v=2.0 cv=OoHNOlDt c=1 sm=1 a=zahYBDPRSX6fECX55ANGMA==:17
	a=GXgVV2Hl_AIA:10 a=ihvODaAuJD4A:10 a=kj9zAlcOel0A:10 a=EBOSESyhAAAA:8
	a=A1X0JdhQAAAA:8 a=ej0XeP_9CCIA:10 a=MrESbKllAAAA:8
	a=edY1acTE28kSil1eR7EA:9
	a=CjuIK1q_8ugA:10 a=UlkX2XvXwgwE1GSb:21 a=pNvd5ve0Ek-dOBVV:21
	a=zahYBDPRSX6fECX55ANGMA==:117
Date: Mon, 10 Dec 2012 13:58:10 +0000
From: "Denis M. Wilson" <dmw@oxytropis.plus.com>
To: groff@gnu.org
Message-ID: <20121210135810.431c0120@dell-desktop.example.com>
In-Reply-To: <20121210125654.GB30005@usm.uni-muenchen.de>
References: <201212101216.qBACGhla009379@mech-cluster241.men.bris.ac.uk>
	<20121210125654.GB30005@usm.uni-muenchen.de>
X-Mailer: Claws Mail 3.7.4 (GTK+ 2.20.1; i486-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no
	timestamps) [generic]
X-Received-From: 212.159.14.20
Subject: Re: [Groff] multiple postscript images in one figure?
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 10 Dec 2012 13:57:18 -0000

Hello all,

You might want to 

On Mon, 10 Dec 2012 13:56:54 +0100
Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de> wrote:

> 
> >       image1   image2    image3
> >        (a)       (b)       (c)
> > 
> > Caption: a common caption for all (a), (b) and (c)
> 
> Use mark and return.
> Here's how I would do it if the pictures all have the same size:
> 
>   .begin_float
>   .mk
>   .PSPIC -L pic_A width
>   .rt
>   .PSPIC -C pic_B width
>   .rt
>   .PSPIC -R pic_C width
>   .caption
>   caption text
>   .end_float
> 
> where begin_float, end_float, and caption are whatever macros
> your package provides for these purposes, and width is computed
> to allow three pictures side-by-side.
> If the images don't have the same size, use the indent option
> of PSPIC to place them so they don't overlap.
> 
> The other configurations can be achieved with variations of the
> same basic idea.
> 
> 
> 


-- 
()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments


From MAILER-DAEMON Mon Dec 10 08:59:43 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Ti3tX-0004J7-6u
	for mharc-groff@gnu.org; Mon, 10 Dec 2012 08:59:43 -0500
Received: from eggs.gnu.org ([208.118.235.92]:60804)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dmw@oxytropis.plus.com>) id 1Ti3tT-0004GJ-Fw
	for groff@gnu.org; Mon, 10 Dec 2012 08:59:41 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <dmw@oxytropis.plus.com>) id 1Ti3tN-00013e-Ib
	for groff@gnu.org; Mon, 10 Dec 2012 08:59:39 -0500
Received: from avasout08.plus.net ([212.159.14.20]:45219)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dmw@oxytropis.plus.com>) id 1Ti3tN-00013Y-Cx
	for groff@gnu.org; Mon, 10 Dec 2012 08:59:33 -0500
Received: from dell-desktop.example.com ([84.92.111.67]) by avasout08 with smtp
	id ZpzX1k0051THptQ01pzYqh; Mon, 10 Dec 2012 13:59:32 +0000
X-CM-Score: 0.00
X-CNFS-Analysis: v=2.0 cv=OoHNOlDt c=1 sm=1 a=zahYBDPRSX6fECX55ANGMA==:17
	a=GXgVV2Hl_AIA:10 a=ihvODaAuJD4A:10 a=kj9zAlcOel0A:10 a=EBOSESyhAAAA:8
	a=A1X0JdhQAAAA:8 a=ej0XeP_9CCIA:10 a=sx2kQayToUddzqxblpMA:9
	a=CjuIK1q_8ugA:10 a=zahYBDPRSX6fECX55ANGMA==:117
Date: Mon, 10 Dec 2012 14:00:41 +0000
From: "Denis M. Wilson" <dmw@oxytropis.plus.com>
To: groff@gnu.org
Message-ID: <20121210140041.148064af@dell-desktop.example.com>
In-Reply-To: <20121210135810.431c0120@dell-desktop.example.com>
References: <201212101216.qBACGhla009379@mech-cluster241.men.bris.ac.uk>
	<20121210125654.GB30005@usm.uni-muenchen.de>
	<20121210135810.431c0120@dell-desktop.example.com>
X-Mailer: Claws Mail 3.7.4 (GTK+ 2.20.1; i486-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no
	timestamps) [generic]
X-Received-From: 212.159.14.20
Subject: Re: [Groff] multiple postscript images in one figure?
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 10 Dec 2012 13:59:41 -0000

Please ignore my last message, sent in error.
Denis


From MAILER-DAEMON Mon Dec 10 15:30:54 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TiA05-0000jU-W1
	for mharc-groff@gnu.org; Mon, 10 Dec 2012 15:30:53 -0500
Received: from eggs.gnu.org ([208.118.235.92]:56829)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jerome.frgacic@yahoo.fr>) id 1Ti9zx-0000hz-H2
	for groff@gnu.org; Mon, 10 Dec 2012 15:30:51 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jerome.frgacic@yahoo.fr>) id 1Ti9zt-0006Hi-Vb
	for groff@gnu.org; Mon, 10 Dec 2012 15:30:45 -0500
Received: from nm21-vm5.bullet.mail.ird.yahoo.com ([212.82.109.245]:29560)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jerome.frgacic@yahoo.fr>) id 1Ti9zt-0006Gy-IS
	for groff@gnu.org; Mon, 10 Dec 2012 15:30:41 -0500
Received: from [77.238.189.53] by nm21.bullet.mail.ird.yahoo.com with NNFMP;
	10 Dec 2012 20:30:39 -0000
Received: from [212.82.108.247] by tm6.bullet.mail.ird.yahoo.com with NNFMP;
	10 Dec 2012 20:30:39 -0000
Received: from [127.0.0.1] by omp1012.mail.ird.yahoo.com with NNFMP;
	10 Dec 2012 20:30:39 -0000
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 588967.86748.bm@omp1012.mail.ird.yahoo.com
Received: (qmail 97186 invoked by uid 60001); 10 Dec 2012 20:30:39 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024;
	t=1355171439; bh=bkOtn3ugX9W53M8nbLroxe7DaiV+elaBPT4Xnot6/sU=;
	h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type;
	b=11ZOmBt0GG0aDAINHg3LJm0JLvdjG6b8Ch9Rw3upyBDTdPupaWMNz6S5hyC2TXAfxwjhtobIqEdH2NYirnxUBBLEAK4/4I9Vw3dOqxPnTXQKLPPjM93v0pmgjpuMHz+RKoGiUe3FcQ7Sp0s8jeGadWlZIzBhDxAaUhmVbf5xYUc=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr;
	h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type;
	b=gBq2R6sKV96FsYudjBOur3R90dmMWI+10jWMEDvtihO9DoPdw5jxi5+A8ZH6Twrx6B23aU+JeVfDz7tfU0QVOZ/kfiFuYtNRN4JFue8e2XpmOIeyuSHOLG7FcDP0DZv1c1yX5mzkhk4OfMiLc29ymuyQfcKHKW1eB6jVLB0ZXNg=;
X-YMail-OSG: 1D2VBCsVM1lsW6GR_x5Z8RPRGitXc4ATIaNlQaWWOL5aTHn
	eLOgRADebjCT_H4kR6wJGrwW.P_NAR9._xzDwDHii5400elC5mqqyCc2NOay
	3tVuhuV7Le9GCF1FLGcYPiEtfXNKIY0iBAv9Juw8xASaPkp2tFzHqFghINCT
	nAr7VNub4oyTSvSGrZzel8eyVkt5Gq9ZXrrRURaND_BfvfZLrDeh42RI81GW
	GXqDf9r3nh6MJ8i130yueLYpTivEf0t4bxu0kFpWHWMT_SSdpprLm85WRhCc
	2N2lgSw0j93ZdonaGQ0UgSRO5owhYO2ty9aTJOg6MLgXTuTYUy8.2VV78m_9
	JRPiNxw.aHqz7G1zI0EwGHWB3NOxncsNzzU2XjtmFtPOuugUsNlT2V6pn5_8
	wIfA9o7BOaE9XyZVaCasmSh_i_f5PqnmZUE8-
Received: from [81.246.176.254] by web171602.mail.ir2.yahoo.com via HTTP;
	Mon, 10 Dec 2012 20:30:38 GMT
X-Rocket-MIMEInfo: 001.001,
	T24gTW9uIDEwIERlYyAyMDEyIDE1OjU5OjU1ICswNDAwIEFudG9uIFNoZXBlbGV2IHdyb3RlIDoKPiBEaWTCoCB0aGV5wqAgcHVibGlzaCBhIGRvY3VtZW50IGV4cGxpY2l0bHkgc3RhdGluZyB0aGUgcmVxdWlyZWQgbWFyZ2lucywgb3IKPiBkbyB0aGV5IGp1c3QgdGVsbCB5b3UgdG8gdXNlwqAgYSBzdHlsZcKgIGZyb20gYSBwcm92aWRlZCAuZG9jIG9yIC5kb2N4P8KgIEluCj4gdGhlIGxhdHRlciBjYXNlLCB3aHkgY2FuJ3TCoCB5b3XCoCBqdXN0wqAgb3BlbsKgIHRoYXTCoCBkb2N1bWVudCBpbiBNUyBXb3IBMAEBAQE-
X-Mailer: YahooMailWebService/0.8.128.478
Message-ID: <1355171438.95454.YahooMailNeo@web171602.mail.ir2.yahoo.com>
Date: Mon, 10 Dec 2012 20:30:38 +0000 (GMT)
From: =?iso-8859-1?Q?J=E9r=F4me_Frgacic?= <jerome.frgacic@yahoo.fr>
To: "anton.txt@gmail.com" <anton.txt@gmail.com>
MIME-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x
X-Received-From: 212.82.109.245
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Content-Filtered-By: Mailman/MimeDel 2.1.14
Cc: "groff@gnu.org" <groff@gnu.org>
Subject: Re: [Groff] Get margin of a Postscript file
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: =?iso-8859-1?Q?J=E9r=F4me_Frgacic?= <jerome.frgacic@yahoo.fr>
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, 10 Dec 2012 20:30:51 -0000

On Mon 10 Dec 2012 15:59:55 +0400 Anton Shepelev wrote :=0A> Did=A0 they=A0=
 publish a document explicitly stating the required margins, or=0A> do they=
 just tell you to use=A0 a style=A0 from a provided .doc or .docx?=A0 In=0A=
> the latter case, why can't=A0 you=A0 just=A0 open=A0 that=A0 document in =
MS Word=0A> and look in Page Setup, where the margins are specified?=0A>=0A=
> Another (although dirty) way would be to=A0 measure=A0 a printed document=
=0A> with a ruler :-)=0A=0AHmm... Maybe my explanations were not clear, sor=
ry. So, I reformulate. :)=0A=0AOur university ask us to give them our memor=
andum in MS Word format. This=0Aformat is imposed, inter alia, to ensure re=
spect of their instructions,=0Aincluding precise margins.=A0 My wish is to =
propose to them to use portable=0Aformat only, especially pdf or postscript=
.=A0 Nevertheless, I think this will=0Anot be possible if they cannot verif=
y their order as easily as with MS=0AWord.=A0 So, my question is : is it po=
ssible to get the margins of a PDF or=0APostscript file simply (obviously, =
the answer is no) ?=0A=0AOf course, they can print all documents and then u=
se a ruler, but I think=0Athey will not be convinced by this proposition. :=
p=0A=0AOn Sun 09 Dec 2012 20:01:27 -0000 Ted Harding wrote :=0A> If you con=
vert the PDF into PS, then it is possible to parse the PS (in=0A> principle=
 it is in plain text) so as to locate the vertical position of=0A> the firs=
t line of text on a page (which will be its "baseline"), and that=0A> of th=
e next line of text. The difference between these will be the line=0A> spac=
ing. All measurements are in points (possibly fractional).=0A> =0A> Then yo=
u can locate the baseline of the bottom line of text.=0A> =0A> The vertical=
 position of the top line of text from the top of the page,=0A> minus the l=
ine spacing, should be the top margin according to your=0A> description.=0A=
> =0A> For the bottom, you will however need to also take into account the=
=0A> length of "descenders" (i.e. the dangly bits of letters like "g", "p",=
=0A> "q" and "y").=A0 The "baseline" is where the bottoms lof letters like =
"z",=0A> "m2 etc. lie. I don't know how to obtain this from a file produced=
 by MS=0A> Word!=0A> =0A> Nevertheless, this may help to get started. Howev=
er, the parsing may turn=0A> out to be complicated (especially with a file =
from MS Word ... ), since=0A> there will be a lot of preliminary definition=
s of procedures, and you=0A> would need to find the one which generates a m=
ove to a vertical position=0A> to start a line.=0A=0AAs I feared, this will=
 be complicated. So, I have to look more deeply into=0Athe postscript forma=
t and/or found a library that help me to do the job.=0A=0AThanks for your h=
elp. ;)

From MAILER-DAEMON Mon Dec 10 17:59:38 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TiCK2-0007eJ-Uj
	for mharc-groff@gnu.org; Mon, 10 Dec 2012 17:59:38 -0500
Received: from eggs.gnu.org ([208.118.235.92]:57272)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mexas@bristol.ac.uk>) id 1TiCK0-0007d1-0S
	for groff@gnu.org; Mon, 10 Dec 2012 17:59:38 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mexas@bristol.ac.uk>) id 1TiCJy-0000R3-Cu
	for groff@gnu.org; Mon, 10 Dec 2012 17:59:35 -0500
Received: from dirj.bris.ac.uk ([137.222.10.78]:43205)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mexas@bristol.ac.uk>) id 1TiCJy-0000Qi-7X
	for groff@gnu.org; Mon, 10 Dec 2012 17:59:34 -0500
Received: from ncsc.bris.ac.uk ([137.222.10.41])
	by dirj.bris.ac.uk with esmtp (Exim 4.72)
	(envelope-from <mexas@bristol.ac.uk>)
	id 1TiCJw-0007mM-I7; Mon, 10 Dec 2012 22:59:32 +0000
Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241])
	by ncsc.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72)
	(envelope-from <mexas@bris.ac.uk>)
	id 1TiCJw-0004Lv-5n; Mon, 10 Dec 2012 22:59:32 +0000
Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1])
	by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5) with ESMTP id
	qBAMxV9c010807; Mon, 10 Dec 2012 22:59:31 GMT
	(envelope-from mexas@mech-cluster241.men.bris.ac.uk)
Received: (from mexas@localhost)
	by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5/Submit) id
	qBAMxVbm010806; Mon, 10 Dec 2012 22:59:31 GMT (envelope-from mexas)
Date: Mon, 10 Dec 2012 22:59:31 GMT
From: Anton Shterenlikht <mexas@bristol.ac.uk>
Message-Id: <201212102259.qBAMxVbm010806@mech-cluster241.men.bris.ac.uk>
To: groff@gnu.org, hoffmann@usm.uni-muenchen.de
In-Reply-To: <20121210125654.GB30005@usm.uni-muenchen.de>
X-detected-operating-system: by eggs.gnu.org: Solaris 10
X-Received-From: 137.222.10.78
Subject: Re: [Groff] multiple postscript images in one figure?
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: mexas@bristol.ac.uk
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, 10 Dec 2012 22:59:38 -0000

	Date: Mon, 10 Dec 2012 13:56:54 +0100
	From: Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>

	>       image1   image2    image3
	>        (a)       (b)       (c)
	> 
	> Caption: a common caption for all (a), (b) and (c)

	Use mark and return.
	Here's how I would do it if the pictures all have the same size:

	  .begin_float
	  .mk
	  .PSPIC -L pic_A width
	  .rt
	  .PSPIC -C pic_B width
	  .rt
	  .PSPIC -R pic_C width
	  .caption
	  caption text
	  .end_float

	where begin_float, end_float, and caption are whatever macros
	your package provides for these purposes, and width is computed
	to allow three pictures side-by-side.
	If the images don't have the same size, use the indent option
	of PSPIC to place them so they don't overlap.

Cool, that's exactly what I was looking for.
Many thanks. I'll now refer to my "Unix Text
Processing" (1987) by Tim O'Reilly, D. Dougherty
for more details of these two commands.

Thanks again

Anton



From MAILER-DAEMON Mon Dec 10 18:57:06 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TiDDe-0005hy-2O
	for mharc-groff@gnu.org; Mon, 10 Dec 2012 18:57:06 -0500
Received: from eggs.gnu.org ([208.118.235.92]:38318)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jklowden@schemamania.org>) id 1TiDDb-0005gF-L4
	for groff@gnu.org; Mon, 10 Dec 2012 18:57:04 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jklowden@schemamania.org>) id 1TiDDZ-0007RX-Un
	for groff@gnu.org; Mon, 10 Dec 2012 18:57:03 -0500
Received: from asbnvacz-mailrelay01.megapath.net ([207.145.128.243]:45685)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jklowden@schemamania.org>) id 1TiDDZ-0007OM-Qi
	for groff@gnu.org; Mon, 10 Dec 2012 18:57:01 -0500
Received: from mail6.sea5.speakeasy.net (mail6.sea5.speakeasy.net
	[69.17.117.50])
	by asbnvacz-mailrelay01.megapath.net (Postfix) with ESMTP id
	023A1A71A67
	for <groff@gnu.org>; Mon, 10 Dec 2012 18:23:27 -0500 (EST)
Received: (qmail 24149 invoked from network); 10 Dec 2012 23:23:27 -0000
Received: by simscan 1.4.0 ppid: 1184, pid: 30397, t: 0.3532s
	scanners: clamav: 0.88.2/m:52/d:10739
Received: from unknown (HELO oak.schemamania.org) ([216.254.83.208])
	(envelope-sender <jklowden@schemamania.org>)
	by mail6.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP
	for <groff@gnu.org>; 10 Dec 2012 23:23:27 -0000
Received: from oak.schemamania.org (localhost [IPv6:::1])
	by oak.schemamania.org (Postfix) with SMTP id 804F130E2079;
	Mon, 10 Dec 2012 18:23:26 -0500 (EST)
Date: Mon, 10 Dec 2012 18:23:26 -0500
From: "James K. Lowden" <jklowden@schemamania.org>
To: groff@gnu.org
Message-Id: <20121210182326.b90154f5.jklowden@schemamania.org>
In-Reply-To: <1355171438.95454.YahooMailNeo@web171602.mail.ir2.yahoo.com>
References: <1355171438.95454.YahooMailNeo@web171602.mail.ir2.yahoo.com>
X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; x86_64--netbsd)
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 207.145.128.243
Cc: =?ISO-8859-1?Q?J=E9r=F4me?= Frgacic <jerome.frgacic@yahoo.fr>
Subject: Re: [Groff] Get margin of a Postscript file
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: groff@gnu.org
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, 10 Dec 2012 23:57:04 -0000

On Mon, 10 Dec 2012 20:30:38 +0000 (GMT)
J=E9r=F4me Frgacic <jerome.frgacic@yahoo.fr> wrote:

> Our university ask us to give them our memorandum in MS Word format.
> This format is imposed, inter alia, to ensure respect of their
> instructions, including precise margins.=A0=20

I would guess they're using software -- or something cheaper, perhaps
grad students -- to automatically verify the settings were chosen per
specification.  Of course, that does nothing to prevent you from, say,
adding a space to the left edge of every line, or using any number of
other settings to achieve a similar result.  But there's no need on
this mailing list to belabor the difference between input and output. =20

> My wish is to propose to them to use portable format only, especially
> pdf or postscript.=A0=20

The question is, can a PDF file be checked programmatically to make
sure the instructions are obeyed?   Unfortunately, though, the answer
may well be No. =20

The notion of a "margin" is afaik meaningless to Postscript.  Grabbing
one PDF at random from my machine:

$ identify -verbose ../matar-paneer.pdf | grep x[0-9]
  Geometry: 612x792+0+0
  Resolution: 72x72
  Print size: 8.5x11
  Page geometry: 612x792+0+0
    pdf:HiResBoundingBox: 612x792+0+0

612 =3D 72 * 8.5.  From Postscript's point of view (at least according to
ImageMagick) the data fill the page edge to edge.  That
means you can't verify a margin; you have to infer one heuristically.

I would think with a little work you could use ImageMagick to extract
the margin regions from each page, and check each one for the presence
of pixels.  Or check inside the margin, to make sure the text
reaches the edges.  You see, it's not clear what to check for.  I'm
afraid you'll discover that "to ensure respect of their
instructions" will be impossible, because there will be no consistent
understanding of what those instructions mean outside the context of MS
Word. =20

Hopefully, though, I'm wrong and reasonable heads will prevail.  In
which case, what you want to do looks technically feasible from a
distance. =20

--jkl


From MAILER-DAEMON Mon Dec 10 19:11:28 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TiDRX-0003O1-VY
	for mharc-groff@gnu.org; Mon, 10 Dec 2012 19:11:27 -0500
Received: from eggs.gnu.org ([208.118.235.92]:40360)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1TiDRV-0003L3-CK
	for groff@gnu.org; Mon, 10 Dec 2012 19:11:26 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1TiDRU-0002rg-7p
	for groff@gnu.org; Mon, 10 Dec 2012 19:11:25 -0500
Received: from relay02.pair.com ([209.68.5.16]:4417)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1TiDRU-0002ra-1J
	for groff@gnu.org; Mon, 10 Dec 2012 19:11:24 -0500
Received: (qmail 93393 invoked from network); 11 Dec 2012 00:11:22 -0000
Received: from 87.112.111.243 (HELO orac.inputplus.co.uk) (87.112.111.243)
	by relay02.pair.com with SMTP; 11 Dec 2012 00:11:22 -0000
X-pair-Authenticated: 87.112.111.243
Received: by orac.inputplus.co.uk (Postfix, from userid 1000)
	id 04FCB23736; Tue, 11 Dec 2012 00:11:21 +0000 (GMT)
Received: from orac.inputplus.co.uk (localhost [127.0.0.1])
	by orac.inputplus.co.uk (Postfix) with ESMTP id D25452372F;
	Tue, 11 Dec 2012 00:11:21 +0000 (GMT)
To: groff@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
In-reply-to: <20121210182326.b90154f5.jklowden@schemamania.org>
References: <1355171438.95454.YahooMailNeo@web171602.mail.ir2.yahoo.com>
	<20121210182326.b90154f5.jklowden@schemamania.org>
Comments: In-reply-to "James K. Lowden" <jklowden@schemamania.org> message
	dated "Mon, 10 Dec 2012 18:23:26 -0500."
Date: Tue, 11 Dec 2012 00:11:21 +0000
From: Ralph Corderoy <ralph@inputplus.co.uk>
Message-Id: <20121211001122.04FCB23736@orac.inputplus.co.uk>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.68.5.16
Cc: =?ISO-8859-1?Q?J=E9r=F4me?= Frgacic <jerome.frgacic@yahoo.fr>
Subject: Re: [Groff] Get margin of a Postscript file
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: groff@gnu.org
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, 11 Dec 2012 00:11:26 -0000

Hi jkl,

> I would think with a little work you could use ImageMagick to extract
> the margin regions from each page, and check each one for the presence
> of pixels.

One could over-print all the pages onto one page.

    man -t bash | pstops 100:0$(printf '+%d' {1..99}) >one.ps

to get a feel of where things can appear.

For me, that shows a `c' appearing above the main block of text due to
the entry after `menu-complete' in `Completing' thanks to a mark-up
error.

    $ zcat /usr/share/man/man1/bash.1.gz |
    > g -w 'menu.*complete.*backward'
    .B menu\-complete-\backward
    $

Cheers, Ralph.


From MAILER-DAEMON Mon Dec 10 19:42:56 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TiDw0-0005Gi-9V
	for mharc-groff@gnu.org; Mon, 10 Dec 2012 19:42:56 -0500
Received: from eggs.gnu.org ([208.118.235.92]:44185)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <robert@thorsby.com.au>) id 1TiDvx-00059h-Uk
	for groff@gnu.org; Mon, 10 Dec 2012 19:42:54 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <robert@thorsby.com.au>) id 1TiDvw-0002HW-CV
	for groff@gnu.org; Mon, 10 Dec 2012 19:42:53 -0500
Received: from cfs-cpanel-02.wip.net.au ([115.69.166.10]:49427)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <robert@thorsby.com.au>) id 1TiDvv-0002Fv-FB
	for groff@gnu.org; Mon, 10 Dec 2012 19:42:52 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
	d=thorsby.com.au; s=default; 
	h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:In-Reply-To:Cc:To:Subject:Reply-To:From:Date;
	bh=TdhH7UZNS52MDIFwJ57fdBVFl7BNJ7jiP4xkk+CLiK0=; 
	b=bX5AubaSWaLhqT2r5XBiO5EyZVdXD11vYMUrPbBgyWw3gdi2VIlaGpLuniSN2humFzJoLGaaoVLc5dwXoDo0lQxXWFnHIgI2Es0YNVGP9N+hJsAU9bB6oFLkDx1bUtP8;
Received: from [210.79.25.237] (port=47414 helo=mullet)
	by cfs-cpanel-02.wip.net.au with esmtps (TLSv1:DHE-RSA-AES256-SHA:256)
	(Exim 4.80) (envelope-from <robert@thorsby.com.au>)
	id 1TiDvf-00008J-VD; Tue, 11 Dec 2012 10:42:36 +1000
Date: Tue, 11 Dec 2012 11:42:36 +1100
From: Robert Thorsby <robert@thorsby.com.au>
To: groff@gnu.org
In-Reply-To: <20121211001122.04FCB23736@orac.inputplus.co.uk> (from
	ralph@inputplus.co.uk on Tue Dec 11 11:11:21 2012)
X-Mailer: Balsa 2.4.11
Message-Id: <1355186556.4870.1@mullet>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; DelSp=Yes; Format=Flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
X-AntiAbuse: This header was added to track abuse,
	please include it with any abuse report
X-AntiAbuse: Primary Hostname - cfs-cpanel-02.wip.net.au
X-AntiAbuse: Original Domain - gnu.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - thorsby.com.au
X-Get-Message-Sender-Via: cfs-cpanel-02.wip.net.au: acl_c_relayhosts_text_entry:
	thorsby@hot.net.au|hot.net.au
X-Source: 
X-Source-Args: 
X-Source-Dir: 
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 115.69.166.10
Cc: =?iso-8859-1?b?Suly9G1l?= Frgacic <jerome.frgacic@yahoo.fr>
Subject: Re: [Groff] Get margin of a Postscript file
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: robert@thorsby.com.au
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, 11 Dec 2012 00:42:55 -0000

On 11/12/12 11:11:21, Ralph Corderoy wrote:
> > I would think with a little work you could use ImageMagick to =20
> extract
> > the margin regions from each page, and check each one for the =20
> presence
> > of pixels.
>=20
> One could over-print all the pages onto one page.

Is it possible that everyone is spending so much time looking at the =20
trees that they are not seeing the wood?

Academic institutions love to receive "standard" manuscripts; it has =20
always been so. Usually they specify "A4, single-sided, 12pt =20
double-space, 50mm margins all round" or something similar.

Now, apply this to a modern anal-retentive academic institution, and it =20
will nowadays probably provide an MS Word template and demand that =20
everything be submitted in MS doc format using Word and the =20
institution-supplied template.

The earlier suggestion that you simply check the settings in the =20
university's template, to my mind, make sense. You can then create =20
appropriate setting for a set of groff macros. Or better yet, use the =20
mom macros.

Other typesetting engines (LyX, for example) have many templates for =20
academic institutions and publishers.

I can't see an academic institution wasting time or effort in =20
micro-measuring.

Robert=


From MAILER-DAEMON Tue Dec 11 02:44:34 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TiKW2-0004mK-08
	for mharc-groff@gnu.org; Tue, 11 Dec 2012 02:44:34 -0500
Received: from eggs.gnu.org ([208.118.235.92]:46192)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1TiKVw-0004lr-5x
	for groff@gnu.org; Tue, 11 Dec 2012 02:44:33 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1TiKVq-0002jZ-6z
	for groff@gnu.org; Tue, 11 Dec 2012 02:44:28 -0500
Received: from smarthost02.mail.zen.net.uk ([212.23.1.2]:46948)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1TiKVq-0002j4-1k
	for groff@gnu.org; Tue, 11 Dec 2012 02:44:22 -0500
Received: from [88.96.44.206] (helo=deb)
	by smarthost02.mail.zen.net.uk with esmtp (Exim 4.72)
	(envelope-from <Ted.Harding@wlandres.net>)
	id 1TiKVn-0003af-8v; Tue, 11 Dec 2012 07:44:19 +0000
Content-Length: 1960
Message-ID: <XFMail.20121211074401.Ted.Harding@wlandres.net>
X-Mailer: XFMail 1.5.5 on Linux
X-Priority: 3 (Normal)
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0
In-Reply-To: <1355186556.4870.1@mullet>
Date: Tue, 11 Dec 2012 07:44:01 -0000 (GMT)
Sender: ted@deb
From: (Ted Harding) <Ted.Harding@wlandres.net>
To: groff@gnu.org
Bcc: 
X-Originating-Smarthost02-IP: [88.96.44.206]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 212.23.1.2
Cc: =?iso-8859-1?b?Suly9G1l?= Frgacic <jerome.frgacic@yahoo.fr>
Subject: Re: [Groff] Get margin of a Postscript file
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: Ted.Harding@wlandres.net
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, 11 Dec 2012 07:44:33 -0000

On 11-Dec-2012 00:42:36 Robert Thorsby wrote:
> On 11/12/12 11:11:21, Ralph Corderoy wrote:
>> > I would think with a little work you could use ImageMagick to  
>> extract
>> > the margin regions from each page, and check each one for the  
>> presence
>> > of pixels.
>> 
>> One could over-print all the pages onto one page.
> 
> Is it possible that everyone is spending so much time looking at
> the trees that they are not seeing the wood?
> 
> Academic institutions love to receive "standard" manuscripts;
> it has always been so. Usually they specify "A4, single-sided,
> 12pt double-space, 50mm margins all round" or something similar.
> 
> Now, apply this to a modern anal-retentive academic institution,
> and it will nowadays probably provide an MS Word template and
> demand that everything be submitted in MS doc format using Word
> and the institution-supplied template.
> 
> The earlier suggestion that you simply check the settings in the  
> university's template, to my mind, make sense. You can then create  
> appropriate setting for a set of groff macros. Or better yet, use
> the mom macros.
> 
> Other typesetting engines (LyX, for example) have many templates
> for academic institutions and publishers.
> 
> I can't see an academic institution wasting time or effort in  
> micro-measuring.
> 
> Robert

After all this discussion, it occurs to me that possibly Jérôme's
institution (a) want it in Word doc format; (b) when they get it
in that format can look into the document settings and verify that
their canonical template is present. Never mind what comes out on
the paper.

With (b), there is no way that a PS file can pretend to meet the
criteria! However, maybe I'm getting cynical ...

Best wishes to all,
Ted.

-------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding@wlandres.net>
Date: 11-Dec-2012  Time: 07:43:58
This message was sent by XFMail
-------------------------------------------------


From MAILER-DAEMON Tue Dec 11 03:02:26 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TiKnK-0001Xu-7a
	for mharc-groff@gnu.org; Tue, 11 Dec 2012 03:02:26 -0500
Received: from eggs.gnu.org ([208.118.235.92]:51023)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <robert@thorsby.com.au>) id 1TiKnF-0001XS-3X
	for groff@gnu.org; Tue, 11 Dec 2012 03:02:25 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <robert@thorsby.com.au>) id 1TiKnA-0008Bk-VB
	for groff@gnu.org; Tue, 11 Dec 2012 03:02:21 -0500
Received: from cfs-cpanel-02.wip.net.au ([115.69.166.10]:32811)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <robert@thorsby.com.au>) id 1TiKnA-0008BK-0E
	for groff@gnu.org; Tue, 11 Dec 2012 03:02:16 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
	d=thorsby.com.au; s=default; 
	h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:In-Reply-To:Cc:To:Subject:Reply-To:From:Date;
	bh=xyi1Q7I2IoUru2F4tJeLIe/xIzigvGXrmKxQdKENYao=; 
	b=UeXvfNDUCb383YD66eXDWDkLmfqSinUYo2OyCR3Ve2Vew+JVptjX7tag3QPgg/QUBXo7Z7Bm8tfsEYeZaxQZU6MPwBcY/wKEROZvuE7Qc9e6D4BsC2EQ0bKjFfsdRV8l;
Received: from [210.79.25.237] (port=51115 helo=mullet)
	by cfs-cpanel-02.wip.net.au with esmtps (TLSv1:DHE-RSA-AES256-SHA:256)
	(Exim 4.80) (envelope-from <robert@thorsby.com.au>)
	id 1TiKn3-0006T7-8w; Tue, 11 Dec 2012 18:02:09 +1000
Date: Tue, 11 Dec 2012 19:02:09 +1100
From: Robert Thorsby <robert@thorsby.com.au>
To: Ted.Harding@wlandres.net
In-Reply-To: <XFMail.20121211074401.Ted.Harding@wlandres.net> (from
	Ted.Harding@wlandres.net on Tue Dec 11 18:44:01 2012)
X-Mailer: Balsa 2.4.11
Message-Id: <1355212929.4870.6@mullet>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; DelSp=Yes; Format=Flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
X-AntiAbuse: This header was added to track abuse,
	please include it with any abuse report
X-AntiAbuse: Primary Hostname - cfs-cpanel-02.wip.net.au
X-AntiAbuse: Original Domain - gnu.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - thorsby.com.au
X-Get-Message-Sender-Via: cfs-cpanel-02.wip.net.au: acl_c_relayhosts_text_entry:
	thorsby@hot.net.au|hot.net.au
X-Source: 
X-Source-Args: 
X-Source-Dir: 
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 115.69.166.10
Cc: =?iso-8859-1?b?Suly9G1l?= Frgacic <jerome.frgacic@yahoo.fr>, groff@gnu.org
Subject: Re: [Groff] Get margin of a Postscript file
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: robert@thorsby.com.au
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, 11 Dec 2012 08:02:25 -0000

On 11/12/12 18:44:01, Ted.Harding@wlandres.net wrote:
> After all this discussion, it occurs to me that possibly J=E9r=F4me's =20
> institution (a) want it in Word doc format; (b) when they get it in =20
> that format can look into the document settings and verify that their =20
> canonical template is present. Never mind what comes out on the paper.
>=20
> With (b), there is no way that a PS file can pretend to meet the =20
> criteria! However, maybe I'm getting cynical ...

I don't think the institution has any intention of checking -- if it =20
looks right it is right.

I think that you will find greater resistance in trying to convince =20
your academic that a meticulously crafted template used by the most =20
powerful desktop publishing machine in the known universe can be =20
equalled (let alone bested) by Notepad using reveal codes. :-)

Robert
Where a computer like the ENIAC is equipped with 18,000 vacuum tubes =20
and weighs 30 tons, computers in the future may have only 1,000 vacuum =20
tubes and weigh only 1 1/2 tons.
		-- Popular Mechanics, March 1949=


From MAILER-DAEMON Tue Dec 11 07:33:06 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TiP1G-0001TH-42
	for mharc-groff@gnu.org; Tue, 11 Dec 2012 07:33:06 -0500
Received: from eggs.gnu.org ([208.118.235.92]:48684)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1TiP17-0001ST-FJ
	for groff@gnu.org; Tue, 11 Dec 2012 07:33:04 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1TiP11-000895-Lx
	for groff@gnu.org; Tue, 11 Dec 2012 07:32:57 -0500
Received: from relay00.pair.com ([209.68.5.9]:1095)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1TiOKE-0004vY-9i
	for groff@gnu.org; Tue, 11 Dec 2012 06:48:38 -0500
Received: (qmail 18497 invoked from network); 11 Dec 2012 11:48:35 -0000
Received: from 87.112.111.243 (HELO orac.inputplus.co.uk) (87.112.111.243)
	by relay00.pair.com with SMTP; 11 Dec 2012 11:48:35 -0000
X-pair-Authenticated: 87.112.111.243
Received: by orac.inputplus.co.uk (Postfix, from userid 1000)
	id 72E3E20B77; Tue, 11 Dec 2012 11:48:32 +0000 (GMT)
Received: from orac.inputplus.co.uk (localhost [127.0.0.1])
	by orac.inputplus.co.uk (Postfix) with ESMTP id B0949209CD;
	Tue, 11 Dec 2012 11:48:32 +0000 (GMT)
to: groff@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Date: Tue, 11 Dec 2012 11:48:32 +0000
From: Ralph Corderoy <ralph@inputplus.co.uk>
Message-Id: <20121211114835.72E3E20B77@orac.inputplus.co.uk>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.68.5.9
Subject: [Groff] _Unix Text Processing_ on Hacker News.
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 11 Dec 2012 12:33:04 -0000

Hi,

The O'Reilly book members of this list re-created, _Unix Text
Processing_, is getting some discussion on Hacker News at the moment.
Thought it may be of interest to the list.
http://news.ycombinator.com/item?id=4902595

Cheers, Ralph.


From MAILER-DAEMON Tue Dec 11 13:59:36 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TiV3I-0006uC-IG
	for mharc-groff@gnu.org; Tue, 11 Dec 2012 13:59:36 -0500
Received: from eggs.gnu.org ([208.118.235.92]:36707)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <SRS0=QGlL6U=KF=schaffter.ca=peter@eigbox.net>)
	id 1TiV3D-0006u3-EI
	for groff@gnu.org; Tue, 11 Dec 2012 13:59:35 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <SRS0=QGlL6U=KF=schaffter.ca=peter@eigbox.net>)
	id 1TiV3B-0005hT-UE
	for groff@gnu.org; Tue, 11 Dec 2012 13:59:31 -0500
Received: from bosmailout06.eigbox.net ([66.96.186.6]:56945)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <SRS0=QGlL6U=KF=schaffter.ca=peter@eigbox.net>)
	id 1TiV3B-0005hL-Ri
	for groff@gnu.org; Tue, 11 Dec 2012 13:59:29 -0500
Received: from bosmailscan15.eigbox.net ([10.20.15.15])
	by bosmailout06.eigbox.net with esmtp (Exim) id 1TiV3B-00029r-6t
	for groff@gnu.org; Tue, 11 Dec 2012 13:59:29 -0500
Received: from bosimpout01.eigbox.net ([10.20.55.1])
	by bosmailscan15.eigbox.net with esmtp (Exim) id 1TiV3A-0001DT-QL
	for groff@gnu.org; Tue, 11 Dec 2012 13:59:28 -0500
Received: from bosauthsmtp19.eigbox.net ([10.20.18.19])
	by bosimpout01.eigbox.net with NO UCE
	id aJzU1k00U0QhFXN01JzUVY; Tue, 11 Dec 2012 13:59:28 -0500
X-Authority-Analysis: v=2.0 cv=INa1/HTG c=1 sm=1
	a=LnZuBynLPPPUeHtPhTi3bw==:17 a=Q9mMSRBxWxkA:10 a=wom5GMh1gUkA:10
	a=DLIUPZpr5AEA:10 a=d-Ega9QjyLEA:10 a=kj9zAlcOel0A:10 a=HoCuc1zpZ2sA:10
	a=g_SW5-S5AAAA:8 a=Giwf5iQWQKRTE_RjafoA:9 a=CjuIK1q_8ugA:10
	a=9UqFsMnAB6EOkiq4MrOclQ==:117
X-EN-OrigOutIP: 10.20.18.19
X-EN-IMPSID: aJzU1k00U0QhFXN01JzUVY
Received: from [69.158.173.16] (helo=augustus)
	by bosauthsmtp19.eigbox.net with esmtpsa (TLSv1:AES256-SHA:256)
	(Exim) id 1TiV3A-0002lb-O0
	for groff@gnu.org; Tue, 11 Dec 2012 13:59:28 -0500
Received: from peter by augustus with local (Exim 4.76)
	(envelope-from <peter@schaffter.ca>) id 1TiV39-0000pF-09
	for groff@gnu.org; Tue, 11 Dec 2012 13:59:27 -0500
Date: Tue, 11 Dec 2012 13:59:26 -0500
From: Peter Schaffter <peter@schaffter.ca>
To: groff@gnu.org
Message-ID: <20121211185926.GD2832@augustus>
Mail-Followup-To: Peter Schaffter <peter@schaffter.ca>, groff@gnu.org
References: <20121211001122.04FCB23736@orac.inputplus.co.uk>
	<1355186556.4870.1@mullet>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1355186556.4870.1@mullet>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-EN-UserInfo: de950a90bfbefba2fd690f5ecdd2f718:712911bb6d01017077352c3c8e2e335d
X-EN-AuthUser: peter@schaffter.ca
Sender: Peter Schaffter <peter@schaffter.ca>
X-EN-OrigIP: 69.158.173.16
X-EN-OrigHost: unknown
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 66.96.186.6
Subject: Re: [Groff] Get margin of a Postscript file
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 11 Dec 2012 18:59:35 -0000

Weighing in on this one...

On Tue, Dec 11, 2012, Robert Thorsby wrote:
> Is it possible that everyone is spending so much time looking at
> the trees that they are not seeing the wood?
> 
> Academic institutions love to receive "standard" manuscripts; it has
> always been so. Usually they specify "A4, single-sided, 12pt
> double-space, 50mm margins all round" or something similar.

And, as has been stated by someone else, if it looks right, they're
not likely to micro-measure.
 
> Now, apply this to a modern anal-retentive academic institution, and
> it will nowadays probably provide an MS Word template and demand
> that everything be submitted in MS doc format using Word and the
> institution-supplied template.

Myself, I find it an awful burden having to create things in .doc
using a word processor when I can do the same thing more efficiently
and with better typographic results using groff.  I've even turned
down work at times because I refused to use Word.  I expect academic
institutions to promote free/open-source/portable solutions to the
exchange of ideas (such as a legal memorandum), and I'm appalled when
they don't.

> The earlier suggestion that you simply check the settings in the
> university's template, to my mind, make sense. You can then create
> appropriate setting for a set of groff macros.

This makes all kinds of sense.  If the university actually checks
each paper for compliance to standards, surely a flat text file
with a .so'd stylesheet, which can be verified with simple glance,
is enough (if they're anal enough to demand seeing it).  The mom
macros would be ideal for this because its registers and strings are
manipulated in macro space, with easily identified macro names that
can be read and understood even by someone unfamiliar with groff.
For example,

.PAPER    A4
.FAMILY   <monospace family of choice>
.PT_SIZE  12
.LS       24
.T_MARGIN 5c
.B_MARGIN 5c
.L_MARGIN 5c
.R_MARGIN 5c

is readable by any educated person.  And since every logical part
of a mom document has "control macros" for family, font, size,
leading, spacing, indent, quad, colour, etc (as appropriate), it is
possible to create very complete templates--probably more complete
and certainly more typographically refined than can be accomplished
with Word.

-- 
Peter Schaffter

Author of The Binbrook Caucus
http://www.schaffter.ca


From MAILER-DAEMON Tue Dec 11 14:22:06 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TiVP3-0002yt-V1
	for mharc-groff@gnu.org; Tue, 11 Dec 2012 14:22:05 -0500
Received: from eggs.gnu.org ([208.118.235.92]:40041)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1TiVOy-0002yN-95
	for groff@gnu.org; Tue, 11 Dec 2012 14:22:05 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1TiVOt-0004LN-Sp
	for groff@gnu.org; Tue, 11 Dec 2012 14:22:00 -0500
Received: from relay01.pair.com ([209.68.5.15]:2309)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1TiVOt-0004LF-N3
	for groff@gnu.org; Tue, 11 Dec 2012 14:21:55 -0500
Received: (qmail 19388 invoked from network); 11 Dec 2012 19:21:54 -0000
Received: from 87.112.111.243 (HELO orac.inputplus.co.uk) (87.112.111.243)
	by relay01.pair.com with SMTP; 11 Dec 2012 19:21:54 -0000
X-pair-Authenticated: 87.112.111.243
Received: by orac.inputplus.co.uk (Postfix, from userid 1000)
	id EC4972372F; Tue, 11 Dec 2012 19:21:53 +0000 (GMT)
Received: from orac.inputplus.co.uk (localhost [127.0.0.1])
	by orac.inputplus.co.uk (Postfix) with ESMTP id CAB69202B5
	for <groff@gnu.org>; Tue, 11 Dec 2012 19:21:53 +0000 (GMT)
To: groff@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
In-reply-to: <20121211114835.72E3E20B77@orac.inputplus.co.uk>
References: <20121211114835.72E3E20B77@orac.inputplus.co.uk>
Comments: In-reply-to Ralph Corderoy <ralph@inputplus.co.uk> message dated
	"Tue, 11 Dec 2012 11:48:32 +0000."
Date: Tue, 11 Dec 2012 19:21:53 +0000
From: Ralph Corderoy <ralph@inputplus.co.uk>
Message-Id: <20121211192153.EC4972372F@orac.inputplus.co.uk>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.68.5.15
Subject: Re: [Groff] _Unix Text Processing_ on Hacker News.
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 11 Dec 2012 19:22:05 -0000

Hi again,

> The O'Reilly book members of this list re-created, _Unix Text
> Processing_, is getting some discussion on Hacker News at the moment.
> Thought it may be of interest to the list.
> http://news.ycombinator.com/item?id=3D4902595

One comment that came up there...

    Is it also possible to generate the PDF hyperlinks/outline so it is
    easier to navigate the document?

Now time's passed, should we re-issue UTP links in the PDF?  I think
work by others here means that's more do-able than back then.

Cheers, Ralph.


From MAILER-DAEMON Wed Dec 12 12:29:59 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tiq86-0005JY-VG
	for mharc-groff@gnu.org; Wed, 12 Dec 2012 12:29:58 -0500
Received: from eggs.gnu.org ([208.118.235.92]:43529)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jerome.frgacic@yahoo.fr>) id 1Tiq7w-0005GR-Vj
	for groff@gnu.org; Wed, 12 Dec 2012 12:29:57 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jerome.frgacic@yahoo.fr>) id 1Tiq7p-0006S0-0a
	for groff@gnu.org; Wed, 12 Dec 2012 12:29:48 -0500
Received: from nm21-vm6.bullet.mail.ird.yahoo.com ([212.82.109.246]:29479)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jerome.frgacic@yahoo.fr>) id 1Tiq7o-0006Rh-Da
	for groff@gnu.org; Wed, 12 Dec 2012 12:29:40 -0500
Received: from [77.238.189.53] by nm21.bullet.mail.ird.yahoo.com with NNFMP;
	12 Dec 2012 17:29:38 -0000
Received: from [212.82.108.125] by tm6.bullet.mail.ird.yahoo.com with NNFMP;
	12 Dec 2012 17:29:38 -0000
Received: from [127.0.0.1] by omp1034.mail.ird.yahoo.com with NNFMP;
	12 Dec 2012 17:29:38 -0000
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 684156.18885.bm@omp1034.mail.ird.yahoo.com
Received: (qmail 72555 invoked by uid 60001); 12 Dec 2012 17:29:36 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024;
	t=1355333376; bh=XimEbcE5xU3w47ndnM4jKJGwlxNYd1mHDKrjB0kAoM0=;
	h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type;
	b=191n/vqhC4wGYGSU1+thtzzlFLSt3iWIRwp7gbk3vWz+3ZPwJHJIcTVKeGOOnetyqrgreQOt3Z24UvyK+V5MdifoDthzhCk2CG90eop4cA8opPbHYsnD2xLfoERJHX2OGd5cRf/ZDhkjYkM4swnMy6zhpqXpMaZ47dy064ofM58=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr;
	h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type;
	b=IH0GxJDgkFTKuYuAlDXmgPeolbkFE0ZerGKn4jF4tB5++hWcoBwXDeLyy1LswVH+gJ8zDE+9eVkDsQDLjnRaHcynL5ZmxwYm7OTMoE1go0CQ5TUTjbNh1SRcShg0fVOq0l8pXfQC4u229klLXSQ4A/SaY/E+3c8LcC2VT/KPRXM=;
X-YMail-OSG: BWzMiMsVM1mQpycIsZVmuTHLx8pW3FKWW.sVr1KpppFKPg6
	f2a1iQTPe7qQ9sgOxveLorOHs65owu8oOmFYhtpuKbkh1bLMLA1w_NhvMfVT
	dElwdOdeUSQeLpIUCdkH.mmr5CFZLt4in9Nf94tC6QC4sh4qyS7naaiN6ASe
	3aoRC9Ns1q6jvMbZ.zGlr1Bk.FFBsVk0w_LJX2w25YiPtYVxObDICn9f0i.y
	VeUntR3JV7lOpEg893WsiA3GqSUN8SWzsgfsEkhJLnq3xV4Vk7E.xxbsO9N2
	NCSN09o5UGUCVNsB8QXngePcX6BewLUGTV4QXH6F6c.wmQpsU5HhB.N.IUKx
	WvTSsXawExZTzGv7gVidCp0Mgl3YkFNWW7fxZrho9jNMmyrVsPKhBNbyPK4f
	d1xfbSfAiR3xIc0x9xPpKm_geSRp9yYFpSoyzEiXC3yfYreR4hPB2JaxGopA
	iUgXLLfA.4hY-
Received: from [81.246.176.254] by web171603.mail.ir2.yahoo.com via HTTP;
	Wed, 12 Dec 2012 17:29:36 GMT
X-Rocket-MIMEInfo: 001.001,
	QWZ0ZXIgc29tZSByZXNlYXJjaCwgSSB0aGluayBJIGhhdmUgZm91bmQgYSBwb3NzaWJsZSBzb2x1dGlvbiAhIDopCkkgZGlzY292ZXJlZCB0aGUgcG9wcGxlciBsaWJyYXJ5IChpbiBteSBjYXNlLCB0aGUgR2xpYiBmcm9udCBlbmQpLCB3aGljaApwZXJtaXQsIGludGVyIGFsaWEsIHRvIG9idGFpbiB0aGUgcG9zaXRpb24gb2YgZWFjaCBsZXR0ZXIgaW4gYSBwYWdlLgpXaXRoIHRoaXMgaW5mb3JtYXRpb24gYW5kIHNvbWUgb3RoZXIgZ2l2ZW4gYnkgdGhpcyBsaWJyYXJ5LCBJIHRoaW5rIEkKY2FuIHJlYWxpemUBMAEBAQE-
X-Mailer: YahooMailWebService/0.8.128.478
References: <20121211001122.04FCB23736@orac.inputplus.co.uk>
	<1355186556.4870.1@mullet> <20121211185926.GD2832@augustus>
Message-ID: <1355333376.54790.YahooMailNeo@web171603.mail.ir2.yahoo.com>
Date: Wed, 12 Dec 2012 17:29:36 +0000 (GMT)
From: =?iso-8859-1?Q?J=E9r=F4me_Frgacic?= <jerome.frgacic@yahoo.fr>
To: "groff@gnu.org" <groff@gnu.org>
In-Reply-To: <20121211185926.GD2832@augustus>
MIME-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x
X-Received-From: 212.82.109.246
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Content-Filtered-By: Mailman/MimeDel 2.1.14
Subject: Re: [Groff] Get margin of a Postscript file
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: =?iso-8859-1?Q?J=E9r=F4me_Frgacic?= <jerome.frgacic@yahoo.fr>
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, 12 Dec 2012 17:29:57 -0000

After some research, I think I have found a possible solution ! :)=0AI disc=
overed the poppler library (in my case, the Glib front end), which=0Apermit=
, inter alia, to obtain the position of each letter in a page.=0AWith this =
information and some other given by this library, I think I=0Acan realize a=
 little software that tell if yes or no a document=0Arespect the instructio=
ns given to us.=0A=0AIn all cases, thank you very much for your help and th=
e time you have spen=0Atrying to resolve my problem. ;)=0A=0AOn Tue 11 Dec =
2012 11:42:36 +1100 Robert Thorsby wrote :=0A> The earlier suggestion that =
you simply check the settings in the=0A> university's template, to my mind,=
 make sense. You can then create=0A> appropriate setting for a set of groff=
 macros. Or better yet, use the=0A> mom macros. =0A=0AIt is not necessary t=
o open the template to get the instructions, we=0Aalready have it on paper.=
 ;)=0ANevertheless, even if I produce a PDF that respect their order, this =
is=0Anot good, because they want an MS-Word document.=0A

From MAILER-DAEMON Fri Dec 14 16:25:29 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tjcl7-0004mP-0o
	for mharc-groff@gnu.org; Fri, 14 Dec 2012 16:25:29 -0500
Received: from eggs.gnu.org ([208.118.235.92]:52242)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bertrand.garrigues@laposte.net>) id 1Tjcl4-0004lK-7V
	for groff@gnu.org; Fri, 14 Dec 2012 16:25:27 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bertrand.garrigues@laposte.net>) id 1Tjcl3-0004zw-2z
	for groff@gnu.org; Fri, 14 Dec 2012 16:25:26 -0500
Received: from mail-2d.bbox.fr ([194.158.122.57]:36451)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bertrand.garrigues@laposte.net>) id 1Tjcl2-0004zq-T5
	for groff@gnu.org; Fri, 14 Dec 2012 16:25:25 -0500
Received: from [192.168.1.6] (bob75-h01-89-95-237-97.dsl.sta.abo.bbox.fr
	[89.95.237.97]) by mail-2d.bbox.fr (Postfix) with ESMTP id E831262
	for <groff@gnu.org>; Fri, 14 Dec 2012 22:25:21 +0100 (CET)
Message-ID: <50CB9941.5030409@laposte.net>
Date: Fri, 14 Dec 2012 22:25:21 +0100
From: Bertrand Garrigues <bertrand.garrigues@laposte.net>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:17.0) Gecko/17.0 Thunderbird/17.0
MIME-Version: 1.0
To: groff@gnu.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Solaris 10
X-Received-From: 194.158.122.57
Subject: [Groff] Mom and tbl
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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: Fri, 14 Dec 2012 21:25:27 -0000

Hi,

I am trying to use mom (until now I was using ms) and I encountered some 
problems with tbl. The only we way I found to make tbl work was to use 
it with the .FLOAT macro, which is sometimes annoying if I want to put 
my table at a precise location. If I don't put my table in a float the 
table and the rest of the document won't be displayed.

Should I always use FLOAT with tbl ? Are there any alternative to make 
tables with mom ?

Regards,

Bertrand Garrigues



From MAILER-DAEMON Fri Dec 14 22:55:41 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tjiqj-0006PU-A4
	for mharc-groff@gnu.org; Fri, 14 Dec 2012 22:55:41 -0500
Received: from eggs.gnu.org ([208.118.235.92]:49743)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <SRS0=YWyKhL=KJ=schaffter.ca=peter@eigbox.net>)
	id 1Tjiqg-0006P3-Rp
	for groff@gnu.org; Fri, 14 Dec 2012 22:55:39 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <SRS0=YWyKhL=KJ=schaffter.ca=peter@eigbox.net>)
	id 1Tjiqf-0003d7-G3
	for groff@gnu.org; Fri, 14 Dec 2012 22:55:38 -0500
Received: from bosmailout14.eigbox.net ([66.96.185.14]:50200)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <SRS0=YWyKhL=KJ=schaffter.ca=peter@eigbox.net>)
	id 1Tjiqf-0003d3-CP
	for groff@gnu.org; Fri, 14 Dec 2012 22:55:37 -0500
Received: from bosmailscan17.eigbox.net ([10.20.15.17])
	by bosmailout14.eigbox.net with esmtp (Exim) id 1Tjiqe-0000JM-KI
	for groff@gnu.org; Fri, 14 Dec 2012 22:55:36 -0500
Received: from bosimpout01.eigbox.net ([10.20.55.1])
	by bosmailscan17.eigbox.net with esmtp (Exim) id 1Tjiqe-0002Mv-Dq
	for groff@gnu.org; Fri, 14 Dec 2012 22:55:36 -0500
Received: from bosauthsmtp11.eigbox.net ([10.20.18.11])
	by bosimpout01.eigbox.net with NO UCE
	id bfvc1k0050EKspE01fvcG3; Fri, 14 Dec 2012 22:55:36 -0500
X-Authority-Analysis: v=2.0 cv=INa1/HTG c=1 sm=1
	a=LnZuBynLPPPUeHtPhTi3bw==:17 a=Q9mMSRBxWxkA:10 a=wom5GMh1gUkA:10
	a=d-Ega9QjyLEA:10 a=kj9zAlcOel0A:10 a=oufMY6q-DccA:10 a=g_SW5-S5AAAA:8
	a=We1rDh40r26tdysmDUcA:9 a=CjuIK1q_8ugA:10
	a=anyYG9rjTBM1sAjEBQ8Cew==:117
X-EN-OrigOutIP: 10.20.18.11
X-EN-IMPSID: bfvc1k0050EKspE01fvcG3
Received: from [69.158.173.16] (helo=augustus)
	by bosauthsmtp11.eigbox.net with esmtpsa (TLSv1:AES256-SHA:256)
	(Exim) id 1Tjiqe-00089m-8w
	for groff@gnu.org; Fri, 14 Dec 2012 22:55:36 -0500
Received: from peter by augustus with local (Exim 4.76)
	(envelope-from <peter@schaffter.ca>) id 1Tjiqc-00016u-9h
	for groff@gnu.org; Fri, 14 Dec 2012 22:55:34 -0500
Date: Fri, 14 Dec 2012 22:55:34 -0500
From: Peter Schaffter <peter@schaffter.ca>
To: groff@gnu.org
Message-ID: <20121215035533.GA3658@augustus>
Mail-Followup-To: Peter Schaffter <peter@schaffter.ca>, groff@gnu.org
References: <50CB9941.5030409@laposte.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <50CB9941.5030409@laposte.net>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-EN-UserInfo: de950a90bfbefba2fd690f5ecdd2f718:712911bb6d01017077352c3c8e2e335d
X-EN-AuthUser: peter@schaffter.ca
Sender: Peter Schaffter <peter@schaffter.ca>
X-EN-OrigIP: 69.158.173.16
X-EN-OrigHost: unknown
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 66.96.185.14
Subject: Re: [Groff] Mom and tbl
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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: Sat, 15 Dec 2012 03:55:39 -0000

Betrand --

On Fri, Dec 14, 2012, Bertrand Garrigues wrote:
> Hi,
> 
> I am trying to use mom (until now I was using ms) and I encountered
> some problems with tbl. The only we way I found to make tbl work was
> to use it with the .FLOAT macro, which is sometimes annoying if I
> want to put my table at a precise location. If I don't put my table
> in a float the table and the rest of the document won't be
> displayed.
> 
> Should I always use FLOAT with tbl ? Are there any alternative to
> make tables with mom ?

This is a bug, caused by an unbalanced brace.  Took me a while to
spot it.  Open 'om.tmac' and replace

  .MAC TS END
  .    if '\\n[.z]'FLOAT*DIV' \{\
  .    if '\\$1'BOXED' \{\
  .       if !\\n[.d] .nr boxed-table 1
  .    \}
  .END

with

  .MAC TS END
  .    if '\\n[.z]'FLOAT*DIV' \{\
  .       if '\\$1'BOXED' \{\
  .          if !\\n[.d] .nr boxed-table 1
  .       \}
  .    \}
  .END

TS/TE should behave now.

I'll fix this in the repo when I commit the next set of changes
to mom.

Cheers.

-- 
Peter Schaffter

Author of The Binbrook Caucus
http://www.schaffter.ca


From MAILER-DAEMON Sat Dec 15 03:18:06 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tjmwg-00043P-22
	for mharc-groff@gnu.org; Sat, 15 Dec 2012 03:18:06 -0500
Received: from eggs.gnu.org ([208.118.235.92]:44435)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fusion@storytotell.org>) id 1Tjmwa-00042W-8c
	for groff@gnu.org; Sat, 15 Dec 2012 03:18:04 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fusion@storytotell.org>) id 1TjmwV-0006mB-Vq
	for groff@gnu.org; Sat, 15 Dec 2012 03:18:00 -0500
Received: from mail.clanspum.net ([69.164.206.246]:53751)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fusion@storytotell.org>) id 1TjmwV-0006m6-Re
	for groff@gnu.org; Sat, 15 Dec 2012 03:17:55 -0500
Received: from [192.168.0.7] (75-173-9-251.albq.qwest.net [75.173.9.251])
	(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mail.clanspum.net (Postfix) with ESMTPSA id 26D74159A71
	for <groff@gnu.org>; Sat, 15 Dec 2012 02:17:53 -0600 (CST)
From: Daniel Lyons <fusion@storytotell.org>
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
Message-Id: <9F5685EA-060B-42EA-979E-6E113319A9D9@storytotell.org>
Date: Sat, 15 Dec 2012 01:17:46 -0700
To: groff@gnu.org
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
X-Mailer: Apple Mail (2.1499)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 69.164.206.246
Subject: [Groff] newbie help with header and -ms
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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: Sat, 15 Dec 2012 08:18:04 -0000

So, I have a big pile of emails in a particular format and I want to =
import each one into a document and do a page break. I have a macro to =
do this which looks like:

.de email
.so \\$1
.bp
..

Ideally, I would then have evenside headers like:

  <page number>  Title  [blank]

and oddside headers like:

  [blank]  filename  <page number>

I'm having trouble seeing how to get from here to there. I'm using -ms. =
My first thought was something like this:

.EH `%`\fITitle\fR``
.OH ``Document`%`

But I don't see how to get the document name into the .OH. If I use =
e.g.:

.de email
.ds DC \\$1
.so \\$1
.bp
..

I don't seem to be able to cause that string to get evaluated by doing =
either of these:

.OH ``\*(DC`%`
.OH ``\\*(DC`%`

It also occurred to me I might try \n(.F, but this seems to produce =
either the file where the macro is defined or the file which calls =
.email but not the filename, depending on whether I use this:

.de PT
.tl `Hi`\n(.F`Hi`
..

Or this:

.de PT
.tl `Hi`\\n(.F`Hi`
..

So I'm kind of lost as to what to do here to get the behavior I want.

Thanks for your help!

=97=20
Daniel Lyons





From MAILER-DAEMON Sat Dec 15 06:29:32 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tjpvw-00078i-5t
	for mharc-groff@gnu.org; Sat, 15 Dec 2012 06:29:32 -0500
Received: from eggs.gnu.org ([208.118.235.92]:38656)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bertrand.garrigues@laposte.net>) id 1Tjpvu-00078J-9x
	for groff@gnu.org; Sat, 15 Dec 2012 06:29:31 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bertrand.garrigues@laposte.net>) id 1Tjpvt-0007hE-Fj
	for groff@gnu.org; Sat, 15 Dec 2012 06:29:30 -0500
Received: from mail-4d.bbox.fr ([194.158.122.134]:58828)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bertrand.garrigues@laposte.net>) id 1Tjpvt-0007h8-9c
	for groff@gnu.org; Sat, 15 Dec 2012 06:29:29 -0500
Received: from [192.168.1.6] (jau72-2-89-95-237-97.dsl.sta.abo.bbox.fr
	[89.95.237.97]) by mail-4d.bbox.fr (Postfix) with ESMTP id E8014AA
	for <groff@gnu.org>; Sat, 15 Dec 2012 12:29:27 +0100 (CET)
Message-ID: <50CC5F17.6040307@laposte.net>
Date: Sat, 15 Dec 2012 12:29:27 +0100
From: Bertrand Garrigues <bertrand.garrigues@laposte.net>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:17.0) Gecko/17.0 Thunderbird/17.0
MIME-Version: 1.0
To: groff@gnu.org
References: <50CB9941.5030409@laposte.net> <20121215035533.GA3658@augustus>
In-Reply-To: <20121215035533.GA3658@augustus>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Solaris 10
X-Received-From: 194.158.122.134
Subject: Re: [Groff] Mom and tbl
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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: Sat, 15 Dec 2012 11:29:31 -0000

Hi Peter,

On 12/15/2012 04:55 AM, Peter Schaffter wrote:
> This is a bug, caused by an unbalanced brace.  Took me a while to
> spot it.  Open 'om.tmac' and replace
>
>    .MAC TS END
>    .    if '\\n[.z]'FLOAT*DIV' \{\
>    .    if '\\$1'BOXED' \{\
>    .       if !\\n[.d] .nr boxed-table 1
>    .    \}
>    .END
>
> with
>
>    .MAC TS END
>    .    if '\\n[.z]'FLOAT*DIV' \{\
>    .       if '\\$1'BOXED' \{\
>    .          if !\\n[.d] .nr boxed-table 1
>    .       \}
>    .    \}
>    .END
>
> TS/TE should behave now.
>
> I'll fix this in the repo when I commit the next set of changes
> to mom.
>
> Cheers.
>

I've just tested, this works fine, thanks!

Regards,

Bertrand Garrigues



From MAILER-DAEMON Sat Dec 15 10:25:50 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tjtcc-0006GY-L8
	for mharc-groff@gnu.org; Sat, 15 Dec 2012 10:25:50 -0500
Received: from eggs.gnu.org ([208.118.235.92]:41682)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fusion@storytotell.org>) id 1Tjtca-0006GR-Fx
	for groff@gnu.org; Sat, 15 Dec 2012 10:25:49 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <fusion@storytotell.org>) id 1TjtcZ-0004pd-13
	for groff@gnu.org; Sat, 15 Dec 2012 10:25:48 -0500
Received: from mail.clanspum.net ([69.164.206.246]:55089)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <fusion@storytotell.org>) id 1TjtcY-0004pV-JE
	for groff@gnu.org; Sat, 15 Dec 2012 10:25:46 -0500
Received: from [192.168.0.7] (75-173-9-251.albq.qwest.net [75.173.9.251])
	(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mail.clanspum.net (Postfix) with ESMTPSA id 5A80E159A71
	for <groff@gnu.org>; Sat, 15 Dec 2012 09:25:45 -0600 (CST)
From: Daniel Lyons <fusion@storytotell.org>
Message-Id: <E882FB9C-6A22-4D20-9405-A34D9E62C464@storytotell.org>
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
Date: Sat, 15 Dec 2012 08:25:42 -0700
References: <9F5685EA-060B-42EA-979E-6E113319A9D9@storytotell.org>
To: groff@gnu.org
In-Reply-To: <9F5685EA-060B-42EA-979E-6E113319A9D9@storytotell.org>
X-Mailer: Apple Mail (2.1499)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 69.164.206.246
Content-Type: text/plain;
	charset=windows-1252
Content-Transfer-Encoding: quoted-printable
X-Content-Filtered-By: Mailman/MimeDel 2.1.14
Subject: Re: [Groff] newbie help with header and -ms
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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: Sat, 15 Dec 2012 15:25:49 -0000


On Dec 15, 2012, at 1:17 AM, Daniel Lyons <fusion@storytotell.org> =
wrote:

> But I don't see how to get the document name into the .OH. If I use =
e.g.:
>=20
> .de email
> .ds DC \\$1
> .so \\$1
> .bp
> ..

I figured it out:

.de email
.OH ``\\$1`%`
.so \\$1
.bp
..

Seems obvious in retrospect... :)

Thanks,

=97=20
Daniel Lyons




From MAILER-DAEMON Tue Dec 18 06:00:17 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TkuuH-0003je-D9
	for mharc-groff@gnu.org; Tue, 18 Dec 2012 06:00:17 -0500
Received: from eggs.gnu.org ([208.118.235.92]:46178)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <petesmtl@googlemail.com>) id 1TkulB-0008NJ-M0
	for groff@gnu.org; Tue, 18 Dec 2012 05:50:55 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <petesmtl@googlemail.com>) id 1TkulA-000207-IU
	for groff@gnu.org; Tue, 18 Dec 2012 05:50:53 -0500
Received: from mail-vc0-f171.google.com ([209.85.220.171]:56128)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <petesmtl@googlemail.com>) id 1TkulA-0001zv-De
	for groff@gnu.org; Tue, 18 Dec 2012 05:50:52 -0500
Received: by mail-vc0-f171.google.com with SMTP id n11so622763vch.30
	for <groff@gnu.org>; Tue, 18 Dec 2012 02:50:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:reply-to:sender:from:date:x-google-sender-auth
	:message-id:subject:to:content-type;
	bh=PgYVq1f7ppRejnKOvUp6XvJ6Jg4jkFULZYIpnCXidKw=;
	b=FCrQ9elZqkEspnUBuoBtXzaOD1pBj4kBiM14L0745uzEODXwXQjrT2lDszFPBSt3f/
	MQWjPdWEsWDpcX9vlvfo4f7vKocT2Jc5Qg7vG4/ku9eYU96Gh3sHucRj/O6y1FU47lb2
	dfTY/r6ocA9JWCkVkd3wN1rSx5XSUOBbBzqWOn+gdJhbOgXOMNUlaSByDLvCddxPq1Fh
	kCV+pN9TP8D80O0JMrXfffIhNDVb1JssLSHtfYK8j4BYH6HN93ZfGt4rwOSP0cbzamR8
	eUV0UdDzEPrd+ICnIbhQ0VVDUzvL31+VkeuvzaaLod+9U6rY5wOZWWu8Rc/rT2wD+xgM
	mLnQ==
Received: by 10.52.66.144 with SMTP id f16mr1882874vdt.60.1355827851664; Tue,
	18 Dec 2012 02:50:51 -0800 (PST)
MIME-Version: 1.0
Sender: petesmtl@googlemail.com
Received: by 10.58.245.164 with HTTP; Tue, 18 Dec 2012 02:50:30 -0800 (PST)
From: Pete Phillips <pete@smtl.co.uk>
Date: Tue, 18 Dec 2012 10:50:30 +0000
X-Google-Sender-Auth: mGJ2U89VZy5hkv3X4dniTFsZhEk
Message-ID: <CALWfAa5ZitWaTdEjNZ+ZMM8SLphwVv861auUKCR-O=8J6abUfQ@mail.gmail.com>
To: groff@gnu.org
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 209.85.220.171
X-Mailman-Approved-At: Tue, 18 Dec 2012 06:00:15 -0500
Content-Type: text/plain; charset=ISO-8859-1
X-Content-Filtered-By: Mailman/MimeDel 2.1.14
Subject: [Groff] cover sheet macros for mm
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: pete@smtl.co.uk
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, 18 Dec 2012 10:50:55 -0000

Morning all.

We have been using a set of mm macros from the 1980's (from SoftQuad I
think) as the cover sheet macros suited our test report format.

We need to change our cover sheets, and I thought I might as well bite the
bullet and use the new   .COVER/.COVEND stuff with the mm macros which come
with groff (previously mgm macros).

I had hoped to find an appropriate starting point  for a definition file
in /usr/share/groff/1.20.1/tmac/mm but the cover sheets are very basic.

Has anyone re-created something like the original AT&T cover sheets that I
could use as a starting point ?

Any help appreciated.
Pete
-- 
Pete Phillips
Director
Surgical Materials Testing Laboratory
Princess of Wales Hospital
Bridgend  CF31 1RQ
T: +44-1656-752820

From MAILER-DAEMON Tue Dec 18 11:31:00 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tl04K-0000KC-Pd
	for mharc-groff@gnu.org; Tue, 18 Dec 2012 11:31:00 -0500
Received: from eggs.gnu.org ([208.118.235.92]:42753)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mbianchi@foveal4.foveal.com>) id 1Tl04E-0000Jr-1X
	for groff@gnu.org; Tue, 18 Dec 2012 11:30:58 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mbianchi@foveal4.foveal.com>) id 1Tl046-00079O-W7
	for groff@gnu.org; Tue, 18 Dec 2012 11:30:53 -0500
Received: from relay03.pair.com ([209.68.5.17]:3176)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <mbianchi@foveal4.foveal.com>) id 1Tl046-000792-PJ
	for groff@gnu.org; Tue, 18 Dec 2012 11:30:46 -0500
Received: (qmail 22125 invoked from network); 18 Dec 2012 16:30:45 -0000
Received: from 74.102.6.186 (HELO foveal4.foveal.com) (74.102.6.186)
	by relay03.pair.com with SMTP; 18 Dec 2012 16:30:45 -0000
X-pair-Authenticated: 74.102.6.186
Received: by foveal4.foveal.com (Postfix, from userid 617)
	id 4795217D19F; Tue, 18 Dec 2012 11:30:45 -0500 (EST)
Date: Tue, 18 Dec 2012 11:30:45 -0500
From: Mike Bianchi <MBianchi@Foveal.com>
To: Pete Phillips <pete@smtl.co.uk>
Message-ID: <20121218163045.GA8591@foveal4.foveal.com>
References: <CALWfAa5ZitWaTdEjNZ+ZMM8SLphwVv861auUKCR-O=8J6abUfQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CALWfAa5ZitWaTdEjNZ+ZMM8SLphwVv861auUKCR-O=8J6abUfQ@mail.gmail.com>
User-Agent: Mutt/1.5.17+20080114 (2008-01-14)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.68.5.17
Cc: groff@gnu.org
Subject: Re: [Groff] <OK>  cover sheet macros for mm
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 18 Dec 2012 16:30:58 -0000

On Tue, Dec 18, 2012 at 10:50:30AM +0000, Pete Phillips wrote:
> 	:
> Has anyone re-created something like the original AT&T cover sheets that I
> could use as a starting point ?

I've placed my files at  http://www.autoaud.com/groff_macros.d/ .

	05cover		How I create covers for my AutoAuditorium documents
	Notes.sh	generates  Notes_Fm  from  tmac.Fm
	Notes_Fm
	aasig2.eps	used by 05cover
	tmac.Fm		My extensions beyond mm.

run and view ...
	groff -U  -tpesR  -mm  tmac.Fm  05cover  >xxx
	gv xxx


Notes_Fm is a lazy attempt to document what I've done.
I make no claims as to appropriateness for the outside world.

I am currently running  GNU groff version 1.18.1


Let me know if it was of any use, Pete.

-- 
 Mike Bianchi


From MAILER-DAEMON Tue Dec 18 11:46:27 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tl0JH-0007DW-Sh
	for mharc-groff@gnu.org; Tue, 18 Dec 2012 11:46:27 -0500
Received: from eggs.gnu.org ([208.118.235.92]:46868)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <mbianchi@foveal4.foveal.com>) id 1Tl0JD-0007DQ-Mc
	for groff@gnu.org; Tue, 18 Dec 2012 11:46:26 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <mbianchi@foveal4.foveal.com>) id 1Tl0J7-0003eW-9D
	for groff@gnu.org; Tue, 18 Dec 2012 11:46:23 -0500
Received: from relay01.pair.com ([209.68.5.15]:2111)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <mbianchi@foveal4.foveal.com>) id 1Tl0J7-0003eO-3H
	for groff@gnu.org; Tue, 18 Dec 2012 11:46:17 -0500
Received: (qmail 37667 invoked from network); 18 Dec 2012 16:46:15 -0000
Received: from 74.102.6.186 (HELO foveal4.foveal.com) (74.102.6.186)
	by relay01.pair.com with SMTP; 18 Dec 2012 16:46:15 -0000
X-pair-Authenticated: 74.102.6.186
Received: by foveal4.foveal.com (Postfix, from userid 617)
	id 075AD17D19F; Tue, 18 Dec 2012 11:46:16 -0500 (EST)
Date: Tue, 18 Dec 2012 11:46:15 -0500
From: Mike Bianchi <MBianchi@Foveal.com>
To: Pete Phillips <pete@smtl.co.uk>
Message-ID: <20121218164615.GA11461@foveal4.foveal.com>
References: <CALWfAa5ZitWaTdEjNZ+ZMM8SLphwVv861auUKCR-O=8J6abUfQ@mail.gmail.com>
	<20121218163045.GA8591@foveal4.foveal.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20121218163045.GA8591@foveal4.foveal.com>
User-Agent: Mutt/1.5.17+20080114 (2008-01-14)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.68.5.15
Cc: groff@gnu.org
Subject: Re: [Groff] <OK>  cover sheet macros for mm
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 18 Dec 2012 16:46:26 -0000

On Tue, Dec 18, 2012 at 11:30:45AM -0500, Mike Bianchi wrote:
> On Tue, Dec 18, 2012 at 10:50:30AM +0000, Pete Phillips wrote:
> > 	:
> > Has anyone re-created something like the original AT&T cover sheets that I
> > could use as a starting point ?
> 
> I've placed my files at  http://www.autoaud.com/groff_macros.d/ .
> 
> 	05cover		How I create covers for my AutoAuditorium documents
> 	Notes.sh	generates  Notes_Fm  from  tmac.Fm
> 	Notes_Fm
> 	aasig2.eps	used by 05cover
> 	tmac.Fm		My extensions beyond mm.
> 
> run and view ...
> 	groff -U  -tpesR  -mm  tmac.Fm  05cover  >xxx
> 	gv xxx
>	: 

There is also a shell command  most_recent_RCS  that should be in your $PATH
when you run the  groff  command.

-- 
 Mike Bianchi
 Foveal Systems

 973 822-2085

 MBianchi@Foveal.com
 http://www.AutoAuditorium.com
 http://www.FovealMounts.com


From MAILER-DAEMON Tue Dec 18 18:22:18 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tl6UM-00026v-Jx
	for mharc-groff@gnu.org; Tue, 18 Dec 2012 18:22:18 -0500
Received: from eggs.gnu.org ([208.118.235.92]:46680)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bertrand.garrigues@laposte.net>) id 1Tl6UJ-00024n-Id
	for groff@gnu.org; Tue, 18 Dec 2012 18:22:16 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bertrand.garrigues@laposte.net>) id 1Tl6UI-0004Ui-K0
	for groff@gnu.org; Tue, 18 Dec 2012 18:22:15 -0500
Received: from mail-4d.bbox.fr ([194.158.122.134]:37775)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bertrand.garrigues@laposte.net>) id 1Tl6UI-0004UW-E0
	for groff@gnu.org; Tue, 18 Dec 2012 18:22:14 -0500
Received: from [192.168.1.6] (jau72-2-89-95-237-97.dsl.sta.abo.bbox.fr
	[89.95.237.97]) by mail-4d.bbox.fr (Postfix) with ESMTP id 0CAA63B
	for <groff@gnu.org>; Wed, 19 Dec 2012 00:22:11 +0100 (CET)
Message-ID: <50D0FAA3.1010209@laposte.net>
Date: Wed, 19 Dec 2012 00:22:11 +0100
From: Bertrand Garrigues <bertrand.garrigues@laposte.net>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:17.0) Gecko/17.0 Thunderbird/17.0
MIME-Version: 1.0
To: groff@gnu.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Solaris 10
X-Received-From: 194.158.122.134
Subject: [Groff] [mom] switching to 2 colums mode
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 18 Dec 2012 23:22:16 -0000

Hi,

I would like to switch to 2 colums mode at the end of a document. More 
precisely, I'm trying to write a simple style file for makeindex to 
generate an index. Previously with ms package I used .2C.

But with mom it seems that using the COLUMS macro is only possible if 
you want to apply it to the whole document, as it must be defined before 
.START.

How can I switch in 2 colums mode after the .START macro ?

Regards,

Bertrand Garrigues


From MAILER-DAEMON Tue Dec 18 18:52:13 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tl6xI-00028X-W3
	for mharc-groff@gnu.org; Tue, 18 Dec 2012 18:52:12 -0500
Received: from eggs.gnu.org ([208.118.235.92]:51663)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <petesmtl@googlemail.com>) id 1Tl6mo-0006z8-Si
	for groff@gnu.org; Tue, 18 Dec 2012 18:41:24 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <petesmtl@googlemail.com>) id 1Tl6mn-00024Z-5n
	for groff@gnu.org; Tue, 18 Dec 2012 18:41:22 -0500
Received: from mail-vb0-f45.google.com ([209.85.212.45]:57837)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <petesmtl@googlemail.com>) id 1Tl6mn-00024N-0h
	for groff@gnu.org; Tue, 18 Dec 2012 18:41:21 -0500
Received: by mail-vb0-f45.google.com with SMTP id p1so1629865vbi.18
	for <groff@gnu.org>; Tue, 18 Dec 2012 15:41:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:reply-to:sender:in-reply-to:references:from:date
	:x-google-sender-auth:message-id:subject:to:cc:content-type;
	bh=+yUgNmtDunk1F4FB8haG2PzCtf7IxyX4fKwYbF38pdY=;
	b=WGCG567ugG/HxaDS1pR2mImxDANxDra0CzUOWkpl+2+Tjv6+/WCR+jqU11wD3x1dd7
	SGrnhdENSjMnIq/KfnTx8qENKkAgwRjx0Cpqb27W5hnB6Mm/KIzPnoYK/3yFe9PHU824
	SBoeTVMRBXwj0T+o4N/Za0VxQ0jAzRQPrv7tREtY/gz3Dp0bNOrWqcMaRZRCWpkMMQ7q
	jy+YGBZd/DFcDrGh136gtK6HmBN5h4//PK+wID7nPkAoQGdn6KpDQW17PgJr9AGsVTtM
	tGjCYj4stQoo1bU3K5b0kJqQumcTFZ5UXF8NclHrDlX+9IT2+W+WnzX4kLK9eOWW26zs
	T/pw==
Received: by 10.59.11.67 with SMTP id eg3mr6176850ved.31.1355874080131; Tue,
	18 Dec 2012 15:41:20 -0800 (PST)
MIME-Version: 1.0
Sender: petesmtl@googlemail.com
Received: by 10.58.245.164 with HTTP; Tue, 18 Dec 2012 15:41:00 -0800 (PST)
In-Reply-To: <20121218163045.GA8591@foveal4.foveal.com>
References: <CALWfAa5ZitWaTdEjNZ+ZMM8SLphwVv861auUKCR-O=8J6abUfQ@mail.gmail.com>
	<20121218163045.GA8591@foveal4.foveal.com>
From: Pete Phillips <pete@smtl.co.uk>
Date: Tue, 18 Dec 2012 23:41:00 +0000
X-Google-Sender-Auth: bRCbTt9tts9UaDL6JiTNQn5oJJo
Message-ID: <CALWfAa4FWauObHmcooyEWKKk-ky=6PZL6dOhTU0dU7VjNo-kkA@mail.gmail.com>
To: Mike Bianchi <MBianchi@foveal.com>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 209.85.212.45
X-Mailman-Approved-At: Tue, 18 Dec 2012 18:52:11 -0500
Content-Type: text/plain; charset=ISO-8859-1
X-Content-Filtered-By: Mailman/MimeDel 2.1.14
Cc: groff@gnu.org
Subject: Re: [Groff] <OK>  cover sheet macros for mm
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: pete@smtl.co.uk
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, 18 Dec 2012 23:41:24 -0000

Thanks for that  Mike.  Impressive stuff.  I've not come across the macro
allowing external commands before!

What I'm looking for is the cover sheet from AT&T as per this test report
of ours:

http://medidex.com/images/test-reports/non-luer-2012/SMTL-micro-integrity-tests-non-luer-12-3783-2-V-1.11.pdf


It looks like I could use your macros to make a cover sheet similar to some
of the external paper or ms macro cover sheets, but I'm hoping someone has
tried to mimic the original AT&T ones with table counts etc.  Otherwise it
means a lot of troff macro programming -  or a move to latex.


Pete




On 18 December 2012 16:30, Mike Bianchi <MBianchi@foveal.com> wrote:

> On Tue, Dec 18, 2012 at 10:50:30AM +0000, Pete Phillips wrote:
> >       :
> > Has anyone re-created something like the original AT&T cover sheets that
> I
> > could use as a starting point ?
>
> I've placed my files at  http://www.autoaud.com/groff_macros.d/ .
>
>         05cover         How I create covers for my AutoAuditorium documents
>         Notes.sh        generates  Notes_Fm  from  tmac.Fm
>         Notes_Fm
>         aasig2.eps      used by 05cover
>         tmac.Fm         My extensions beyond mm.
>
> run and view ...
>         groff -U  -tpesR  -mm  tmac.Fm  05cover  >xxx
>         gv xxx
>
>
> Notes_Fm is a lazy attempt to document what I've done.
> I make no claims as to appropriateness for the outside world.
>
> I am currently running  GNU groff version 1.18.1
>
>
> Let me know if it was of any use, Pete.
>
> --
>  Mike Bianchi
>
>


-- 
Pete Phillips
Director
Surgical Materials Testing Laboratory
Princess of Wales Hospital
Bridgend  CF31 1RQ
T: +44-1656-752820

From MAILER-DAEMON Tue Dec 18 19:30:31 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Tl7YN-0003tv-Ag
	for mharc-groff@gnu.org; Tue, 18 Dec 2012 19:30:31 -0500
Received: from eggs.gnu.org ([208.118.235.92]:36105)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <SRS0=4okp9Y=KN=schaffter.ca=peter@eigbox.net>)
	id 1Tl7YL-0003tk-7D
	for groff@gnu.org; Tue, 18 Dec 2012 19:30:30 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <SRS0=4okp9Y=KN=schaffter.ca=peter@eigbox.net>)
	id 1Tl7YI-0007Ov-UG
	for groff@gnu.org; Tue, 18 Dec 2012 19:30:29 -0500
Received: from bosmailout15.eigbox.net ([66.96.190.15]:43318)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <SRS0=4okp9Y=KN=schaffter.ca=peter@eigbox.net>)
	id 1Tl7YI-0007OP-Qg
	for groff@gnu.org; Tue, 18 Dec 2012 19:30:26 -0500
Received: from bosmailscan20.eigbox.net ([10.20.15.20])
	by bosmailout15.eigbox.net with esmtp (Exim) id 1Tl7YH-0007g3-3y
	for groff@gnu.org; Tue, 18 Dec 2012 19:30:25 -0500
Received: from bosimpout02.eigbox.net ([10.20.55.2])
	by bosmailscan20.eigbox.net with esmtp (Exim) id 1Tl7YG-0001pE-Do
	for groff@gnu.org; Tue, 18 Dec 2012 19:30:24 -0500
Received: from bosauthsmtp02.eigbox.net ([10.20.18.2])
	by bosimpout02.eigbox.net with NO UCE
	id dCWQ1k00902gpmq01CWQS3; Tue, 18 Dec 2012 19:30:24 -0500
X-Authority-Analysis: v=2.0 cv=SqwnHoy0 c=1 sm=1
	a=LnZuBynLPPPUeHtPhTi3bw==:17 a=Q9mMSRBxWxkA:10 a=wom5GMh1gUkA:10
	a=7uCYuMXDKYcA:10 a=d-Ega9QjyLEA:10 a=kj9zAlcOel0A:10 a=IkapOMYihlMA:10
	a=g_SW5-S5AAAA:8 a=Roi8y6US6Gdd5vaieHsA:9 a=CjuIK1q_8ugA:10
	a=9MP9vxlQrmnoeofDS6o88g==:117
X-EN-OrigOutIP: 10.20.18.2
X-EN-IMPSID: dCWQ1k00902gpmq01CWQS3
Received: from [69.158.173.16] (helo=augustus)
	by bosauthsmtp02.eigbox.net with esmtpsa (TLSv1:AES256-SHA:256)
	(Exim) id 1Tl7YG-0005A2-L7
	for groff@gnu.org; Tue, 18 Dec 2012 19:30:24 -0500
Received: from peter by augustus with local (Exim 4.76)
	(envelope-from <peter@schaffter.ca>) id 1Tl7YE-0003Zt-Lc
	for groff@gnu.org; Tue, 18 Dec 2012 19:30:22 -0500
Date: Tue, 18 Dec 2012 19:30:22 -0500
From: Peter Schaffter <peter@schaffter.ca>
To: groff@gnu.org
Message-ID: <20121219003022.GA13583@augustus>
Mail-Followup-To: Peter Schaffter <peter@schaffter.ca>, groff@gnu.org
References: <50D0FAA3.1010209@laposte.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <50D0FAA3.1010209@laposte.net>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-EN-UserInfo: de950a90bfbefba2fd690f5ecdd2f718:712911bb6d01017077352c3c8e2e335d
X-EN-AuthUser: peter@schaffter.ca
Sender: Peter Schaffter <peter@schaffter.ca>
X-EN-OrigIP: 69.158.173.16
X-EN-OrigHost: unknown
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 66.96.190.15
Subject: Re: [Groff] [mom] switching to 2 colums mode
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 19 Dec 2012 00:30:30 -0000

Bertrand --

On Wed, Dec 19, 2012, Bertrand Garrigues wrote:
> I would like to switch to 2 colums mode at the end of a document.
> More precisely, I'm trying to write a simple style file for
> makeindex to generate an index. Previously with ms package I used
> .2C.
> 
> But with mom it seems that using the COLUMS macro is only possible
> if you want to apply it to the whole document, as it must be defined
> before .START.
> 
> How can I switch in 2 colums mode after the .START macro ?

.\" end of doc
.EL
.COLLATE
.COLUMNS <column specs>
.START
.\" start of index

COLLATE glues major sections of a document together, eg chapters.
Its use is hidden when you create common divisions such as TOCs
or endnotes, but any time you need to tack something onto a doc that
requires significant changes in formatting (eg an index in two
columns), you have to invoke COLLATE explicitly, which itself must
be followed by START.  Between the two, you can put any of the
pre-START macros, including COLUMNS.  It's also the place to take
care of things like the new section's title (ie "Index"), headers,
page numbering style, and so on.

The EL before COLLATE is cautionary.  It prevents the accidental
output of a blank page between collated sections of a document, a
situation that sometimes arises when the last line of output text
coincides with the bottom margin.

-- 
Peter Schaffter

Author of The Binbrook Caucus
http://www.schaffter.ca


From MAILER-DAEMON Wed Dec 19 09:12:16 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TlKNc-00083X-2n
	for mharc-groff@gnu.org; Wed, 19 Dec 2012 09:12:16 -0500
Received: from eggs.gnu.org ([208.118.235.92]:39881)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1TlKN9-0007wn-Um
	for groff@gnu.org; Wed, 19 Dec 2012 09:12:14 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1TlKMm-0005Bf-QS
	for groff@gnu.org; Wed, 19 Dec 2012 09:11:47 -0500
Received: from relay02.pair.com ([209.68.5.16]:4944)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1TlKMm-0005BY-KP
	for groff@gnu.org; Wed, 19 Dec 2012 09:11:24 -0500
Received: (qmail 3592 invoked from network); 19 Dec 2012 14:11:23 -0000
Received: from 87.112.90.57 (HELO orac.inputplus.co.uk) (87.112.90.57)
	by relay02.pair.com with SMTP; 19 Dec 2012 14:11:23 -0000
X-pair-Authenticated: 87.112.90.57
Received: by orac.inputplus.co.uk (Postfix, from userid 1000)
	id 1F92F203A9; Wed, 19 Dec 2012 14:11:22 +0000 (GMT)
Received: from orac.inputplus.co.uk (localhost [127.0.0.1])
	by orac.inputplus.co.uk (Postfix) with ESMTP id EBF27202D2;
	Wed, 19 Dec 2012 14:11:22 +0000 (GMT)
To: Pete Phillips <pete@smtl.co.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
In-reply-to: <CALWfAa4FWauObHmcooyEWKKk-ky=6PZL6dOhTU0dU7VjNo-kkA@mail.gmail.com>
References: <CALWfAa5ZitWaTdEjNZ+ZMM8SLphwVv861auUKCR-O=8J6abUfQ@mail.gmail.com>
	<20121218163045.GA8591@foveal4.foveal.com>
	<CALWfAa4FWauObHmcooyEWKKk-ky=6PZL6dOhTU0dU7VjNo-kkA@mail.gmail.com>
Comments: In-reply-to Pete Phillips <pete@smtl.co.uk> message dated "Tue,
	18 Dec 2012 23:41:00 +0000."
Date: Wed, 19 Dec 2012 14:11:22 +0000
From: Ralph Corderoy <ralph@inputplus.co.uk>
Message-Id: <20121219141123.1F92F203A9@orac.inputplus.co.uk>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.68.5.16
Cc: groff@gnu.org
Subject: Re: [Groff] <OK> cover sheet macros for mm
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 19 Dec 2012 14:12:14 -0000

Hi Pete,

> but I'm hoping someone has tried to mimic the original AT&T ones with
> table counts etc.

With the current (SoftQuad?) macros, how is the table count produced?
Is the cover sheet at the end and moved to the front post-production, or
are two formatting runs done?

Cheers, Ralph.


From MAILER-DAEMON Wed Dec 19 16:31:56 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TlRF6-00071J-B0
	for mharc-groff@gnu.org; Wed, 19 Dec 2012 16:31:56 -0500
Received: from eggs.gnu.org ([208.118.235.92]:53617)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <petesmtl@googlemail.com>) id 1TlLF1-0005XN-Dw
	for groff@gnu.org; Wed, 19 Dec 2012 10:07:29 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <petesmtl@googlemail.com>) id 1TlLEt-0002oq-CE
	for groff@gnu.org; Wed, 19 Dec 2012 10:07:27 -0500
Received: from mail-vb0-f51.google.com ([209.85.212.51]:35775)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <petesmtl@googlemail.com>) id 1TlLEt-0002od-7M
	for groff@gnu.org; Wed, 19 Dec 2012 10:07:19 -0500
Received: by mail-vb0-f51.google.com with SMTP id fq11so2429130vbb.10
	for <groff@gnu.org>; Wed, 19 Dec 2012 07:07:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:reply-to:sender:in-reply-to:references:from:date
	:x-google-sender-auth:message-id:subject:to:cc:content-type;
	bh=hgGcWw8Nf0jCeyg3R99bnEG7xxBPq/oLcBP9Uu04Z7c=;
	b=u45nDO5oR+d+gOYCwdX2NKnb781lpns5M0VU6PRt/vHiF5VurjttlkPQH4JXTU3VZu
	JJrnnqanAhO2V47SqJsVCG9ghWLycVrkKV1umMiPNqRd1rxmEmnBGCwE6Sm8cgKHAGN/
	q4DLdjCKEIkK8zM9ZA5wN1UHUudJlpJl7PlREXW2WLxdpma15bTQMGG2HpnqpopKpapF
	Fc4EQzcm49NaT0KFlWU5hObaTSfWp7GPR8eYufzX7zMchAzEu8xdPVxfNL+J52TCB0Ti
	//FIRmBdzrBKyCBqPbMfe7ywJqzsNabnnsZrTVB1QUGXh3rsV7Np6YXtnVgKN8qxK7ph
	AKhw==
Received: by 10.58.248.41 with SMTP id yj9mr9388568vec.29.1355929638012; Wed,
	19 Dec 2012 07:07:18 -0800 (PST)
MIME-Version: 1.0
Sender: petesmtl@googlemail.com
Received: by 10.58.245.164 with HTTP; Wed, 19 Dec 2012 07:06:57 -0800 (PST)
In-Reply-To: <20121219141123.1F92F203A9@orac.inputplus.co.uk>
References: <CALWfAa5ZitWaTdEjNZ+ZMM8SLphwVv861auUKCR-O=8J6abUfQ@mail.gmail.com>
	<20121218163045.GA8591@foveal4.foveal.com>
	<CALWfAa4FWauObHmcooyEWKKk-ky=6PZL6dOhTU0dU7VjNo-kkA@mail.gmail.com>
	<20121219141123.1F92F203A9@orac.inputplus.co.uk>
From: Pete Phillips <pete@smtl.co.uk>
Date: Wed, 19 Dec 2012 15:06:57 +0000
X-Google-Sender-Auth: 2WWjetKSKc1gey1dBkg_ioNOy40
Message-ID: <CALWfAa6-ChB1Gx6AsUe90RsynYEFn8mQfrRNi-n1dNWGrzzaXg@mail.gmail.com>
To: Ralph Corderoy <ralph@inputplus.co.uk>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 209.85.212.51
X-Mailman-Approved-At: Wed, 19 Dec 2012 16:31:55 -0500
Content-Type: text/plain; charset=ISO-8859-1
X-Content-Filtered-By: Mailman/MimeDel 2.1.14
Cc: groff@gnu.org
Subject: Re: [Groff] <OK> cover sheet macros for mm
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: pete@smtl.co.uk
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, 19 Dec 2012 15:07:30 -0000

Cover sheet is produced at the end from a single formatting run.  I use
pdftk to rearrange the pages.
Pete

On 19 December 2012 14:11, Ralph Corderoy <ralph@inputplus.co.uk> wrote:

> Hi Pete,
>
> > but I'm hoping someone has tried to mimic the original AT&T ones with
> > table counts etc.
>
> With the current (SoftQuad?) macros, how is the table count produced?
> Is the cover sheet at the end and moved to the front post-production, or
> are two formatting runs done?
>
> Cheers, Ralph.
>
>


-- 
Pete Phillips
Director
Surgical Materials Testing Laboratory
Princess of Wales Hospital
Bridgend  CF31 1RQ
T: +44-1656-752820

From MAILER-DAEMON Thu Dec 27 09:46:53 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ToEjV-0008Mg-9o
	for mharc-groff@gnu.org; Thu, 27 Dec 2012 09:46:53 -0500
Received: from eggs.gnu.org ([208.118.235.92]:47041)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bertrand.garrigues@laposte.net>) id 1ToEjO-0008MK-2B
	for groff@gnu.org; Thu, 27 Dec 2012 09:46:51 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bertrand.garrigues@laposte.net>) id 1ToE8z-0003lA-Pk
	for groff@gnu.org; Thu, 27 Dec 2012 09:09:18 -0500
Received: from smtpout5.laposte.net ([193.253.67.230]:33574
	helo=smtpout.laposte.net) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bertrand.garrigues@laposte.net>) id 1ToE8z-0003ki-Iq
	for groff@gnu.org; Thu, 27 Dec 2012 09:09:09 -0500
Received: from wwinf8219 ([10.99.54.221]) by mwinf8509-out with ME
	id ge971k0054mN4ju03e97Bz; Thu, 27 Dec 2012 15:09:07 +0100
Date: Thu, 27 Dec 2012 15:09:07 +0100
From: Bertrand Garrigues <bertrand.garrigues@laposte.net>
To: groff gnu org <groff@gnu.org>
Message-ID: <892439122.17420.1356617347277.JavaMail.www@wwinf8219>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Originating-IP: [81.64.69.219]
X-Wum-Nature: EMAIL-NATURE
X-WUM-FROM: |~|
X-WUM-TO: |~|
X-WUM-REPLYTO: |~|
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 193.253.67.230
Subject: [Groff] [mom] string arguments and double quotes
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: Bertrand Garrigues <bertrand.garrigues@laposte.net>
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, 27 Dec 2012 14:46:52 -0000

Hi,=20

I need to put double quotes within string arguments, for example a HEADING.=
 According to the documentation, inline escapes \(lq and \(rq should be use=
d. However I found out that using "" (two double-quotes) works fine too, an=
d I find it more convenient.=20

Is that just by chance or can I safely use 2 double-quotes in any string ar=
gument ?

Regards,

Bertrand Garrigues


Une messagerie gratuite, garantie =C3=A0 vie et des services en plus, =C3=
=A7a vous tente ?
Je cr=C3=A9e ma bo=C3=AEte mail www.laposte.net


From MAILER-DAEMON Thu Dec 27 11:54:55 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ToGjP-0006WH-Ax
	for mharc-groff@gnu.org; Thu, 27 Dec 2012 11:54:55 -0500
Received: from eggs.gnu.org ([208.118.235.92]:44225)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dmw@oxytropis.plus.com>) id 1ToGjF-0006Tu-Dt
	for groff@gnu.org; Thu, 27 Dec 2012 11:54:53 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <dmw@oxytropis.plus.com>) id 1ToGjD-0004sd-Sg
	for groff@gnu.org; Thu, 27 Dec 2012 11:54:45 -0500
Received: from avasout08.plus.net ([212.159.14.20]:49170)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dmw@oxytropis.plus.com>) id 1ToGjD-0004rz-K6
	for groff@gnu.org; Thu, 27 Dec 2012 11:54:43 -0500
Received: from dell-desktop.example.com ([84.92.111.67]) by avasout08 with smtp
	id ggud1k0071THptQ01gufRk; Thu, 27 Dec 2012 16:54:39 +0000
X-CM-Score: 0.00
X-CNFS-Analysis: v=2.0 cv=b6RsFK6x c=1 sm=1 a=zahYBDPRSX6fECX55ANGMA==:17
	a=ZFGplID9JecA:10 a=ihvODaAuJD4A:10 a=8nJEP1OIZ-IA:10 a=EBOSESyhAAAA:8
	a=A1X0JdhQAAAA:8 a=iwi9VhrcHh4A:10 a=AVbMHacnAAAA:8 a=MrESbKllAAAA:8
	a=BETz_8j_DHbB9nl0OLEA:9 a=wPNLvfGTeEIA:10 a=yvZ1BPFDISIA:10
	a=zahYBDPRSX6fECX55ANGMA==:117
Date: Thu, 27 Dec 2012 16:54:28 +0000
From: "Denis M. Wilson" <dmw@oxytropis.plus.com>
To: groff@gnu.org
Message-ID: <20121227165428.4ddd49f0@dell-desktop.example.com>
In-Reply-To: <892439122.17420.1356617347277.JavaMail.www@wwinf8219>
References: <892439122.17420.1356617347277.JavaMail.www@wwinf8219>
X-Mailer: Claws Mail 3.7.4 (GTK+ 2.20.1; i486-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no
	timestamps) [generic]
X-Received-From: 212.159.14.20
Cc: Bertrand Garrigues <bertrand.garrigues@laposte.net>
Subject: Re: [Groff] [mom] string arguments and double quotes
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 27 Dec 2012 16:54:53 -0000

Yes, you can use a double quote in a macro argument (it is documented
and has been there forever).

But it gives you the ASCII quote mark, not the typographical open and
close quotes which are use in typesetting English (\[lq] and \[rq]).

What special symbols you use would depend on the language, eg I believe
guillemets are used in French.

Hope this helps.

Denis

On Thu, 27 Dec 2012 15:09:07 +0100
Bertrand Garrigues <bertrand.garrigues@laposte.net> wrote:

> Hi, 
> 
> I need to put double quotes within string arguments, for example a
> HEADING. According to the documentation, inline escapes \(lq and \(rq
> should be used. However I found out that using "" (two double-quotes)
> works fine too, and I find it more convenient. 
> 
> Is that just by chance or can I safely use 2 double-quotes in any
> string argument ?
> 
> Regards,
> 
> Bertrand Garrigues
> 
> 
> Une messagerie gratuite, garantie à vie et des services en plus, ça
> vous tente ? Je crée ma boîte mail www.laposte.net
> 


-- 
()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments


From MAILER-DAEMON Thu Dec 27 13:55:40 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ToIcG-0005tQ-HD
	for mharc-groff@gnu.org; Thu, 27 Dec 2012 13:55:40 -0500
Received: from eggs.gnu.org ([208.118.235.92]:36953)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <SRS0=u+bm32=KV=schaffter.ca=peter@eigbox.net>)
	id 1ToIcD-0005sl-Ka
	for groff@gnu.org; Thu, 27 Dec 2012 13:55:38 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <SRS0=u+bm32=KV=schaffter.ca=peter@eigbox.net>)
	id 1ToIcA-0004ZM-JN
	for groff@gnu.org; Thu, 27 Dec 2012 13:55:37 -0500
Received: from bosmailout20.eigbox.net ([66.96.185.20]:46008)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <SRS0=u+bm32=KV=schaffter.ca=peter@eigbox.net>)
	id 1ToIcA-0004ZB-GN
	for groff@gnu.org; Thu, 27 Dec 2012 13:55:34 -0500
Received: from bosmailscan15.eigbox.net ([10.20.15.15])
	by bosmailout20.eigbox.net with esmtp (Exim) id 1ToIc9-0007th-Tn
	for groff@gnu.org; Thu, 27 Dec 2012 13:55:33 -0500
Received: from bosimpout02.eigbox.net ([10.20.55.2])
	by bosmailscan15.eigbox.net with esmtp (Exim) id 1ToIc9-0000ds-JH
	for groff@gnu.org; Thu, 27 Dec 2012 13:55:33 -0500
Received: from bosauthsmtp02.eigbox.net ([10.20.18.2])
	by bosimpout02.eigbox.net with NO UCE
	id givZ1k00302gpmq01ivZYY; Thu, 27 Dec 2012 13:55:33 -0500
X-Authority-Analysis: v=2.0 cv=AaIG6QrG c=1 sm=1
	a=LnZuBynLPPPUeHtPhTi3bw==:17 a=Q9mMSRBxWxkA:10 a=wom5GMh1gUkA:10
	a=ZFGplID9JecA:10 a=d-Ega9QjyLEA:10 a=kj9zAlcOel0A:10 a=iwi9VhrcHh4A:10
	a=g_SW5-S5AAAA:8 a=SuUrMBK-Ic5eqkFXLSwA:9 a=CjuIK1q_8ugA:10
	a=9MP9vxlQrmnoeofDS6o88g==:117
X-EN-OrigOutIP: 10.20.18.2
X-EN-IMPSID: givZ1k00302gpmq01ivZYY
Received: from [69.158.173.16] (helo=augustus)
	by bosauthsmtp02.eigbox.net with esmtpsa (TLSv1:AES256-SHA:256)
	(Exim) id 1ToIc9-0002ZV-E7
	for groff@gnu.org; Thu, 27 Dec 2012 13:55:33 -0500
Received: from peter by augustus with local (Exim 4.76)
	(envelope-from <peter@schaffter.ca>) id 1ToIc7-0000yb-EY
	for groff@gnu.org; Thu, 27 Dec 2012 13:55:31 -0500
Date: Thu, 27 Dec 2012 13:55:26 -0500
From: Peter Schaffter <peter@schaffter.ca>
To: groff@gnu.org
Message-ID: <20121227185526.GA2710@augustus>
Mail-Followup-To: Peter Schaffter <peter@schaffter.ca>, groff@gnu.org
References: <892439122.17420.1356617347277.JavaMail.www@wwinf8219>
	<20121227165428.4ddd49f0@dell-desktop.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20121227165428.4ddd49f0@dell-desktop.example.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-EN-UserInfo: de950a90bfbefba2fd690f5ecdd2f718:712911bb6d01017077352c3c8e2e335d
X-EN-AuthUser: peter@schaffter.ca
Sender: Peter Schaffter <peter@schaffter.ca>
X-EN-OrigIP: 69.158.173.16
X-EN-OrigHost: unknown
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 66.96.185.20
Subject: Re: [Groff] [mom] string arguments and double quotes
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 27 Dec 2012 18:55:39 -0000

On Thu, Dec 27, 2012, Denis M. Wilson wrote:
> Yes, you can use a double quote in a macro argument (it is documented
> and has been there forever).
> 
> But it gives you the ASCII quote mark, not the typographical open and
> close quotes which are use in typesetting English (\[lq] and \[rq]).

If SMARTQUOTES is enabled (it is by default), doubling the quotes
in the string arg to say, HEADING, does, in fact, result in correct
typographical open and close quotes in the HEADING.

However, doubling quotes is generally not recommended for mom
because it can confuse or break other macros and routines.  For
example

  .HEADING 1 """Text of Heading"""

prints correctly in the body of the doc, but results in a blank
entry in the TOC.  That's why the mom documentation recommends
consistent use of \[lq]...\[rq] or \(lq...\(rq in string args.

-- 
Peter Schaffter

Author of The Binbrook Caucus
http://www.schaffter.ca


From MAILER-DAEMON Sat Dec 29 05:37:49 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TotnZ-0005Ou-I3
	for mharc-groff@gnu.org; Sat, 29 Dec 2012 05:37:49 -0500
Received: from eggs.gnu.org ([208.118.235.92]:43577)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bertrand.garrigues@laposte.net>) id 1TotnX-0005Ok-2D
	for groff@gnu.org; Sat, 29 Dec 2012 05:37:48 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bertrand.garrigues@laposte.net>) id 1TotnW-0004yK-4u
	for groff@gnu.org; Sat, 29 Dec 2012 05:37:47 -0500
Received: from mail-2d.bbox.fr ([194.158.122.57]:38621)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bertrand.garrigues@laposte.net>) id 1TotnV-0004xN-Ua
	for groff@gnu.org; Sat, 29 Dec 2012 05:37:46 -0500
Received: from [192.168.1.6] (bob75-h01-89-95-237-97.dsl.sta.abo.bbox.fr
	[89.95.237.97]) by mail-2d.bbox.fr (Postfix) with ESMTP id 69AE956
	for <groff@gnu.org>; Sat, 29 Dec 2012 11:37:43 +0100 (CET)
Message-ID: <50DEC7F7.6040509@laposte.net>
Date: Sat, 29 Dec 2012 11:37:43 +0100
From: Bertrand Garrigues <bertrand.garrigues@laposte.net>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:17.0) Gecko/17.0 Thunderbird/17.0
MIME-Version: 1.0
To: groff@gnu.org
References: <892439122.17420.1356617347277.JavaMail.www@wwinf8219>
	<20121227165428.4ddd49f0@dell-desktop.example.com>
	<20121227185526.GA2710@augustus>
In-Reply-To: <20121227185526.GA2710@augustus>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Solaris 10
X-Received-From: 194.158.122.57
Subject: Re: [Groff] [mom] string arguments and double quotes
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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: Sat, 29 Dec 2012 10:37:48 -0000

Hi Denis, Peter,

On 12/27/2012 07:55 PM, Peter Schaffter wrote:
> On Thu, Dec 27, 2012, Denis M. Wilson wrote:
>> Yes, you can use a double quote in a macro argument (it is documented
>> and has been there forever).
>>
>> But it gives you the ASCII quote mark, not the typographical open and
>> close quotes which are use in typesetting English (\[lq] and \[rq]).
>
> If SMARTQUOTES is enabled (it is by default), doubling the quotes
> in the string arg to say, HEADING, does, in fact, result in correct
> typographical open and close quotes in the HEADING.
>
> However, doubling quotes is generally not recommended for mom
> because it can confuse or break other macros and routines.  For
> example
>
>    .HEADING 1 """Text of Heading"""
>
> prints correctly in the body of the doc, but results in a blank
> entry in the TOC.  That's why the mom documentation recommends
> consistent use of \[lq]...\[rq] or \(lq...\(rq in string args.
>
Thanks for your explanations.

I needed the ascii quote mark (I was writting a technical document and 
the quotes were surrounding a function parameter, no need to use open 
and close quotes), so I used \(dq, which works fine too in a HEADING.

Regards,

Bertrand Garrigues


From MAILER-DAEMON Sun Dec 30 04:24:01 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1TpF7h-00076y-AH
	for mharc-groff@gnu.org; Sun, 30 Dec 2012 04:24:01 -0500
Received: from eggs.gnu.org ([208.118.235.92]:60550)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1TpF7c-00076r-OP
	for groff@gnu.org; Sun, 30 Dec 2012 04:24:00 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1TpF7Z-00036X-SY
	for groff@gnu.org; Sun, 30 Dec 2012 04:23:56 -0500
Received: from mout.gmx.net ([212.227.15.18]:59025)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1TpF7Z-00036M-JA
	for groff@gnu.org; Sun, 30 Dec 2012 04:23:53 -0500
Received: from mailout-de.gmx.net ([10.1.76.27]) by mrigmx.server.lan
	(mrigmx001) with ESMTP (Nemesis) id 0M5Jbd-1T7C5P2Plf-00zVQv for
	<groff@gnu.org>; Sun, 30 Dec 2012 10:23:52 +0100
Received: (qmail invoked by alias); 30 Dec 2012 09:23:52 -0000
Received: from 194-166-39-30.adsl.highway.telekom.at (EHLO localhost)
	[194.166.39.30]
	by mail.gmx.net (mp027) with SMTP; 30 Dec 2012 10:23:52 +0100
X-Authenticated: #54312696
X-Provags-ID: V01U2FsdGVkX1/v3vcMJ0zvVu9nWCVF6XqJS5mFA4O56B/iUAI5y2
	cdjC9Wl/f/qt1G
Date: Sun, 30 Dec 2012 10:23:45 +0100 (CET)
Message-Id: <20121230.102345.498361074.wl@gnu.org>
To: groff@gnu.org, info-gnu@gnu.org
From: Werner LEMBERG <wl@gnu.org>
X-Mailer: Mew version 6.5 on Emacs 24.3.50.1 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic]
X-Received-From: 212.227.15.18
Subject: [Groff] groff 1.22.1 has been released
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
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, 30 Dec 2012 09:24:00 -0000


groff 1.22.1 has been released.

It is available from ftp://ftp.gnu.org/gnu/groff/ and mirrors of that
site (see list of mirror sites at http://www.gnu.org/order/ftp.html).
Current snapshots are available from
ftp://ftp.ffii.org/pub/groff/devel/.

groff is the GNU implementation of troff, a document formatting
system.  Included in this release are implementations of troff, pic,
eqn, tbl, grn, refer, -man, -mdoc, -mom, and -ms macros, and drivers
for PostScript, PDF, TeX dvi format, HP LaserJet 4 printers, Canon
CAPSL printers, HTML and XHTML format (beta status), and
typewriter-like devices.  Also included is a modified version of the
Berkeley -me macros, the enhanced version gxditview of the X11
xditview previewer, and an implementation of the -mm macros.

See below for the relevant snippet from the NEWS file.

Bug reports should go to bug-groff@gnu.org.

Enjoy!


   Werner


======================================================================


VERSION 1.22.1
==============

(Version 1.22 has not been released.)

Groff
-----

o A new option `-j' has been added to call the `chem' preprocessor.

Tbl
---

o Improved line numbering support.

Macro Packages
--------------

o Support for the `refer' preprocessor has been added to the -mm macro
  package.

o In -me, the `TH' macro was changed for compatibility with line number
  support in tables.

  `bl' now works inside of blocks.

  The behaviour of centered blocks has been improved.

  Line numbering support has been improved.

o The -mom macro package has reached version 2.0, focusing on PDF output
  with gropdf (using the new `pdfmom' wrapper script).  See the file
  `version-2.html' of the -mom documentation for a list of the many changes.

o Some generic Unicode fallback characters (mainly Roman numerals) have been
  added.

Gropdf
------

o A new driver for generating PDF output directly, contributed by Deri James
  <deri@chuzzlewit.myzen.co.uk>.  Note that this driver is written in Perl,
  thus you need a working Perl installation to run this output device.

Pdfmom
------

o A new wrapper around groff that facilitates the production of PDF
  documents from files formatted with the -mom macros.


