From MAILER-DAEMON Thu Feb 02 09:11:15 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RsxNb-0004Du-D4
	for mharc-groff@gnu.org; Thu, 02 Feb 2012 09:11:15 -0500
Received: from eggs.gnu.org ([140.186.70.92]:53490)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1RsxNU-0004Df-Mt
	for groff@gnu.org; Thu, 02 Feb 2012 09:11:14 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1RsxNO-0004nO-LQ
	for groff@gnu.org; Thu, 02 Feb 2012 09:11:08 -0500
Received: from mail-bk0-f41.google.com ([209.85.214.41]:49644)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1RsxNO-0004n4-GP
	for groff@gnu.org; Thu, 02 Feb 2012 09:11:02 -0500
Received: by bkbzs2 with SMTP id zs2so2547916bkb.0
	for <groff@gnu.org>; Thu, 02 Feb 2012 06:11:00 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=date:from:to:subject:message-id:in-reply-to:references:x-mailer
	:mime-version:content-type:content-transfer-encoding;
	bh=QwRkp+eUHPbBPzCRQpgA3KW7iQq99GsyO7hQH4L6KyA=;
	b=VUOtG49AJjGPve++th49vYYavgWibz0Fl/I+FSNHTP1pjOwZgj9Lw1nuxkQjfIvFKO
	64NNSAMrqipyJTuhKR9MuYrpjQzy2BLlRQXWcqlhSflqnAqO/yEOs9A8nrj96tmmWVCn
	llrkcDYbqzxJ7AseIgeLdJNJO+OCQWeGDst2Y=
Received: by 10.204.129.208 with SMTP id p16mr1430762bks.131.1328191860738;
	Thu, 02 Feb 2012 06:11:00 -0800 (PST)
Received: from erp07.git.ru ([94.79.3.82])
	by mx.google.com with ESMTPS id ew13sm7532014bkb.1.2012.02.02.06.10.58
	(version=SSLv3 cipher=OTHER); Thu, 02 Feb 2012 06:10:59 -0800 (PST)
Date: Thu, 2 Feb 2012 18:10:56 +0400
From: Anton Shepelev <anton.txt@gmail.com>
To: groff@gnu.org
Message-Id: <20120202181056.d0d8bc643b9d550d3afbde8b@gmail.com>
In-Reply-To: <20120201001314.BA2881FB40@orac.inputplus.co.uk>
References: <4F1A00F7.9080009@mathcs.emory.edu>
	<20120129015831.6c8c520eccb9b9eee0405e70@gmail.com>
	<20120131.203517.345887628.wl@gnu.org>
	<20120201000138.0166e22f2de69357a589ff8b@gmail.com>
	<20120201001314.BA2881FB40@orac.inputplus.co.uk>
X-Mailer: Sylpheed 3.2.0beta5 (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: Genre and OS details not
	recognized.
X-Received-From: 209.85.214.41
Subject: Re: [Groff] groff MM problem with AU/AT
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, 02 Feb 2012 14:11:14 -0000

Ralph Corderoy:

> Is
> http://books.google.co.uk/books?id=Wz1C5JhTzlYC&lpg=PR12&ots=e8Ftu5WzMi&dq=documenters%20workbench%20mm%20macros&pg=PA38#v=onepage&q=documenters%20workbench%20mm%20macros&f=false
> of any use?  Section 7 might be going through the macros you're
> discussing.  Obviously, not a spec. but a book in print.

This  was  what  I had consulted in the first place,
before concluding that  groff's  mm's  behaviour  is
non-standard.   Ken's  examples produced by the non-
GNU troff he's using do not correspond  to  the  de-
scription  in  the Workbench, according to which all
arguments specified in .AU should appear before  the
name  of  every  author, while groff's version of mm
outputs this data only  for  the  last  author,  and
Ken's  one  simply  omits them (department, initials
and location), so I still don't have  even  indirect
access to what may be called a reference implementa-
tion of mm.

I think I had downloaded a scan of the  Documenter's
Workbench  from  a  link posted on this very mailing
list some time ago.

Anton


From MAILER-DAEMON Thu Feb 02 09:26:59 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rsxcp-0007oP-Jw
	for mharc-groff@gnu.org; Thu, 02 Feb 2012 09:26:59 -0500
Received: from eggs.gnu.org ([140.186.70.92]:35069)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1Rsxcj-0007mr-0G
	for groff@gnu.org; Thu, 02 Feb 2012 09:26:58 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1Rsxcb-00082c-1y
	for groff@gnu.org; Thu, 02 Feb 2012 09:26:52 -0500
Received: from mail-bk0-f41.google.com ([209.85.214.41]:43019)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1Rsxca-00082P-As
	for groff@gnu.org; Thu, 02 Feb 2012 09:26:44 -0500
Received: by bkbzs2 with SMTP id zs2so2570539bkb.0
	for <groff@gnu.org>; Thu, 02 Feb 2012 06:26:43 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer
	:mime-version:content-type:content-transfer-encoding;
	bh=0lZ+VjUIQK6QF03ZFEDUVOe+9z+Uth6SBBmyY8rSgCY=;
	b=AD3fnyzjipw9SbXtJaJ9d4AkAmCdTCYwH/3OwzCLFsfe5aTedeOkxrGAPyL91f1XZS
	MmUuG10B6n062loBy9WTkUgfm6x5oopHNC+Z7dnZLYZ+CGL9Luzg52AqJ97fQjyBydWJ
	bSFZKxkv0kxkvUF+GTJf406w6Y1l5YummzJ10=
Received: by 10.204.152.26 with SMTP id e26mr1434334bkw.87.1328192803394;
	Thu, 02 Feb 2012 06:26:43 -0800 (PST)
Received: from erp07.git.ru ([94.79.3.82])
	by mx.google.com with ESMTPS id jd17sm7634219bkb.4.2012.02.02.06.26.42
	(version=SSLv3 cipher=OTHER); Thu, 02 Feb 2012 06:26:42 -0800 (PST)
Date: Thu, 2 Feb 2012 18:26:41 +0400
From: Anton Shepelev <anton.txt@gmail.com>
To: Ken Mandelberg <km@mathcs.emory.edu>
Message-Id: <20120202182641.51aff8057d61dede31d07206@gmail.com>
In-Reply-To: <4F27FDC6.400@mathcs.emory.edu>
References: <4F1A00F7.9080009@mathcs.emory.edu>
	<20120126235326.6f3131f20d92bfd631f7130f@gmail.com>
	<4F27FDC6.400@mathcs.emory.edu>
X-Mailer: Sylpheed 3.2.0beta5 (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: Genre and OS details not
	recognized.
X-Received-From: 209.85.214.41
Cc: groff@gnu.org
Subject: Re: [Groff] groff MM problem with AU/AT
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, 02 Feb 2012 14:26:58 -0000

Ken Mandelberg:

> I've  attached the ascii and postscript output. It
> gets the multiple authors and author titles right,
> but makes a mess of the document title.  I suspect
> the latter is too Bell Labs specific.

The mess in the title is  some  roff  language  con-
structs  that,  assuming the correctness of the test
document, appeared in the text due to  an  erroneous
macro definition, most probably in your m.tmac.

By the way, with my patch groff's mm treats multiple
authors the way your version does, provided  you  do
not  specify  any  arguments  to  .AU other than the
first one -- the author's name.

Anton


From MAILER-DAEMON Tue Feb 07 08:50:52 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RulRc-0000XM-2W
	for mharc-groff@gnu.org; Tue, 07 Feb 2012 08:50:52 -0500
Received: from eggs.gnu.org ([140.186.70.92]:45622)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <louis@zabrico.com>) id 1RulRV-0000DQ-QW
	for groff@gnu.org; Tue, 07 Feb 2012 08:50:50 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <louis@zabrico.com>) id 1RulRM-0001xA-9Y
	for groff@gnu.org; Tue, 07 Feb 2012 08:50:45 -0500
Received: from [206.205.36.222] (port=51441 helo=p1892.superclick.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <louis@zabrico.com>) id 1RulRM-0001wW-4l
	for groff@gnu.org; Tue, 07 Feb 2012 08:50:36 -0500
Received: from Louis-Mac.local ([10.168.79.16]) (authenticated bits=0)
	by p1892.superclick.com (8.13.1/8.13.1) with ESMTP id q17D8XMW015768
	for <groff@gnu.org>; Tue, 7 Feb 2012 08:08:33 -0500
Message-ID: <4F312251.8070105@zabrico.com>
Date: Tue, 07 Feb 2012 08:08:33 -0500
From: Louis Guillaume <louis@zabrico.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6;
	rv:9.0) Gecko/20111222 Thunderbird/9.0.1
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: GNU/Linux 2.6 (newer, 3)
X-Received-From: 206.205.36.222
Subject: [Groff] pdfroff - links always go to the top of the page
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, 07 Feb 2012 13:50:50 -0000

Hi,

Is there a way to make `.pdfhref' or `.pdfbookmark' links go to the 
sections themselves rather than to the page that the target is on?

For example, my headings are done like this...

.NH 1
.XN -N CONTACTINFORMATION -- CONTACT INFORMATION
.LP


... then the link is like this...


.pdfhref L -D CONTACTINFORMATION  --  Contact Information


When hovering the mouse over the link a little "Go To Page 18" shows up. 
And the link links us to the relevant page. But I'd like the link to go 
to the actual heading.

Is this possible with pdfmark/pdfroff?

Louis


From MAILER-DAEMON Wed Feb 08 16:10:27 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RvEmZ-00072T-Eo
	for mharc-groff@gnu.org; Wed, 08 Feb 2012 16:10:27 -0500
Received: from eggs.gnu.org ([140.186.70.92]:49505)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <keith.d.marshall@ntlworld.com>) id 1RvEmT-00072L-VP
	for groff@gnu.org; Wed, 08 Feb 2012 16:10:25 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <keith.d.marshall@ntlworld.com>) id 1RvEmS-0008RT-RP
	for groff@gnu.org; Wed, 08 Feb 2012 16:10:21 -0500
Received: from mail-we0-f169.google.com ([74.125.82.169]:39946)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <keith.d.marshall@ntlworld.com>) id 1RvEmS-0008Qa-Mb
	for groff@gnu.org; Wed, 08 Feb 2012 16:10:20 -0500
Received: by wera13 with SMTP id a13so903260wer.0
	for <groff@gnu.org>; Wed, 08 Feb 2012 13:10:19 -0800 (PST)
Received: by 10.180.103.68 with SMTP id fu4mr40103632wib.7.1328735419124;
	Wed, 08 Feb 2012 13:10:19 -0800 (PST)
Received: from [192.168.13.4] (know-mailgateway-4.server.virginmedia.net.
	[62.254.26.109])
	by mx.google.com with ESMTPS id g6sm1184985wig.9.2012.02.08.13.10.17
	(version=SSLv3 cipher=OTHER); Wed, 08 Feb 2012 13:10:18 -0800 (PST)
Sender: Keith Marshall <keith.d.marshall@ntlworld.com>
Message-ID: <4F327467.1010208@users.sourceforge.net>
Date: Wed, 08 Feb 2012 13:11:03 +0000
From: Keith Marshall <keithmarshall@users.sourceforge.net>
Organization: MinGW Project Administrator
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
	rv:1.9.2.24) Gecko/20111108 Thunderbird/3.1.16
MIME-Version: 1.0
To: Louis Guillaume <louis@zabrico.com>
References: <4F312251.8070105@zabrico.com>
In-Reply-To: <4F312251.8070105@zabrico.com>
X-Enigmail-Version: 1.1.1
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 74.125.82.169
Cc: groff@gnu.org
Subject: Re: [Groff] pdfroff - links always go to the top of the page
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, 08 Feb 2012 21:10:26 -0000

On 07/02/12 13:08, Louis Guillaume wrote:
> Is there a way to make `.pdfhref' or `.pdfbookmark' links go to the
> sections themselves ...

For me, that's exactly what they do, by default, both with Adobe
Reader-9, and with Evince-2.32.0/poppler/cairo-0.14.3

> ... rather than to the page that the target is on?

I do seem to recall seeing similar behaviour with an older version of
Evince, or maybe with kpdf, (in the Ubuntu-8.04 era); Adobe Reader has
never, IME, exhibited such behaviour.

> For example, my headings are done like this...
> 
> .NH 1
> .XN -N CONTACTINFORMATION -- CONTACT INFORMATION
> .LP
> 
> ... then the link is like this...
> 
> .pdfhref L -D CONTACTINFORMATION  --  Contact Information

You don't say, but I'm guessing that you're using the sample -mspdf,
which accompanies the pdfroff/pdfmark distribution?  That looks okay to
me; certainly not significantly different from my own usage.

> When hovering the mouse over the link a little "Go To Page 18" shows up.

I see this too, with Evince; Adobe Reader offers no such feedback.

> And the link links us to the relevant page. But I'd like the link to go
> to the actual heading.

It should do this, automatically; the pdfmark *always* records both page
number and on-page co-ordinates for link destinations, but it can exert
no control over how your PDF reader will interpret this data.

> Is this possible with pdfmark/pdfroff?

Yes.  I suspect your problem is with your PDF reader; perhaps you need
to upgrade to a newer version, or switch to Adobe Reader, (which, IME,
has always done the right thing).

-- 
Regards,
Keith.


From MAILER-DAEMON Wed Feb 08 19:29:11 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RvHst-0005pm-Lj
	for mharc-groff@gnu.org; Wed, 08 Feb 2012 19:29:11 -0500
Received: from eggs.gnu.org ([140.186.70.92]:37968)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <louis@zabrico.com>) id 1RvHsq-0005mZ-6E
	for groff@gnu.org; Wed, 08 Feb 2012 19:29:09 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <louis@zabrico.com>) id 1RvHso-0004e1-1J
	for groff@gnu.org; Wed, 08 Feb 2012 19:29:08 -0500
Received: from isis.zabrico.com ([71.174.230.31]:29188 helo=anubis.zabrico.com)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <louis@zabrico.com>) id 1RvHsn-0004XW-U2
	for groff@gnu.org; Wed, 08 Feb 2012 19:29:05 -0500
Received: from Louis-Mac.local
	(75-148-4-66-WashingtonDC.hfc.comcastbusiness.net [75.148.4.66])
	(authenticated bits=0)
	by anubis.zabrico.com (8.14.4/8.14.4) with ESMTP id q190SvOW001815
	(version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO);
	Wed, 8 Feb 2012 19:28:58 -0500 (EST)
Message-ID: <4F331344.7060500@zabrico.com>
Date: Wed, 08 Feb 2012 19:28:52 -0500
From: Louis Guillaume <louis@zabrico.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6;
	rv:9.0) Gecko/20111222 Thunderbird/9.0.1
MIME-Version: 1.0
To: Keith Marshall <keithmarshall@users.sourceforge.net>
References: <4F312251.8070105@zabrico.com>
	<4F327467.1010208@users.sourceforge.net>
In-Reply-To: <4F327467.1010208@users.sourceforge.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 71.174.230.31
Cc: groff@gnu.org
Subject: Re: [Groff] pdfroff - links always go to the top of the page
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, 09 Feb 2012 00:29:09 -0000


On 2/8/12 8:11 AM, Keith Marshall wrote:
> On 07/02/12 13:08, Louis Guillaume wrote:
>> Is there a way to make `.pdfhref' or `.pdfbookmark' links go to the
>> sections themselves ...
>
> For me, that's exactly what they do, by default, both with Adobe
> Reader-9, and with Evince-2.32.0/poppler/cairo-0.14.3
>

Just tried with Acrobat Reader on Windows and you're right! It does work 
there. But it does not work properly on Preview on OS X (Snow Leopard). 
However other PDFs with bookmarks and/or links do work in Preview.

I wonder if there's some good reason that Preview is behaving like this 
just for the pdfroff output. Looking through the PDF contents is not 
shedding any light for me.

>> ... rather than to the page that the target is on?
>
> I do seem to recall seeing similar behaviour with an older version of
> Evince, or maybe with kpdf, (in the Ubuntu-8.04 era); Adobe Reader has
> never, IME, exhibited such behaviour.
>
>> For example, my headings are done like this...
>>
>> .NH 1
>> .XN -N CONTACTINFORMATION -- CONTACT INFORMATION
>> .LP
>>
>> ... then the link is like this...
>>
>> .pdfhref L -D CONTACTINFORMATION  --  Contact Information
>
> You don't say, but I'm guessing that you're using the sample -mspdf,
> which accompanies the pdfroff/pdfmark distribution?  That looks okay to
> me; certainly not significantly different from my own usage.

Before I was using `.pdfbookmark' entries for each heading, and had the 
same problem. So I decided to use `.XN' instead. But it didn't seem to 
change anything.

I did use the pdfmark document as a guide, and I'm building with

  pdfroff --no-toc-reloc -stp -mspdf -dpaper=letter -P-pletter

There are no fancy macros or anything.

Thanks for looking.

Louis


From MAILER-DAEMON Fri Feb 10 04:41:31 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rvmyx-0005ar-Eh
	for mharc-groff@gnu.org; Fri, 10 Feb 2012 04:41:31 -0500
Received: from eggs.gnu.org ([140.186.70.92]:35769)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bounces@nabble.com>) id 1Rvmyp-0005Sk-0v
	for Groff@gnu.org; Fri, 10 Feb 2012 04:41:29 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bounces@nabble.com>) id 1Rvmyj-0007mI-8Z
	for Groff@gnu.org; Fri, 10 Feb 2012 04:41:22 -0500
Received: from sam.nabble.com ([216.139.236.26]:49561)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bounces@nabble.com>) id 1Rvmyj-0007m8-4v
	for Groff@gnu.org; Fri, 10 Feb 2012 04:41:17 -0500
Received: from isper.nabble.com ([192.168.236.156])
	by sam.nabble.com with esmtp (Exim 4.72)
	(envelope-from <bounces@nabble.com>) id 1Rvmyh-0004RY-NF
	for Groff@gnu.org; Fri, 10 Feb 2012 01:41:15 -0800
Message-ID: <33299025.post@talk.nabble.com>
Date: Fri, 10 Feb 2012 01:41:15 -0800 (PST)
From: maouinin <maouininnab@spam.su>
To: Groff@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Nabble-From: maouininnab@spam.su
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 216.139.236.26
Subject: [Groff] Using variables from register within fractions or equations
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, 10 Feb 2012 09:41:29 -0000


What would be the best way to use a regularly incremented variable within
fractions? 

I teach ESL and I hope to typeset cloze tests where selected individual
words are replaced by a blank space (a short line or underscore) which has
the question number printed below it. I have done this in LaTeX by using
fractions within the math environment paired with a counter as the
denominator:

\newcommand{\pq}{\hspace{1mm} \stepcounter{qnum} 
		      \begin{math} 
				_\frac{\hspace{3cm}}{\theqnum} 
		      \end{math} 
and the following:

I am honored to be with you today at your commencement...

becomes:
I am h_______ to be with you today at your c________ ...
             1                                                      2

Is this possible with groff, using eqn perhaps? Is it possible to use
variables from number registers within equations or fractions?
-- 
View this message in context: http://old.nabble.com/Using-variables-from-register-within-fractions-or-equations-tp33299025p33299025.html
Sent from the Groff - General mailing list archive at Nabble.com.



From MAILER-DAEMON Fri Feb 10 05:15:38 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RvnVy-00067n-J4
	for mharc-groff@gnu.org; Fri, 10 Feb 2012 05:15:38 -0500
Received: from eggs.gnu.org ([140.186.70.92]:53828)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1RvnVp-000673-Um
	for Groff@gnu.org; Fri, 10 Feb 2012 05:15:37 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1RvnVk-0005M5-4s
	for Groff@gnu.org; Fri, 10 Feb 2012 05:15:29 -0500
Received: from smarthost03.mail.zen.net.uk ([212.23.3.142]:40859)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1RvnVj-0005Lg-Mh
	for Groff@gnu.org; Fri, 10 Feb 2012 05:15:24 -0500
Received: from [88.96.44.206] (helo=deb)
	by smarthost03.mail.zen.net.uk with esmtp (Exim 4.63)
	(envelope-from <Ted.Harding@wlandres.net>)
	id 1RvnVC-0007Ip-Q5; Fri, 10 Feb 2012 10:14:51 +0000
Content-Length: 2612
Message-ID: <XFMail.20120210101407.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: <33299025.post@talk.nabble.com>
Date: Fri, 10 Feb 2012 10:14:07 -0000 (GMT)
Sender: ted@deb
From: (Ted Harding) <Ted.Harding@wlandres.net>
To: Groff@gnu.org
Bcc: 
X-Originating-Smarthost03-IP: [88.96.44.206]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 212.23.3.142
Cc: maouinin <maouininnab@spam.su>
Subject: Re: [Groff] Using variables from register within fractions or
	equations
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: Fri, 10 Feb 2012 10:15:37 -0000

On 10-Feb-2012 maouinin wrote:
> What would be the best way to use a regularly incremented
> variable within fractions? 
> 
> I teach ESL and I hope to typeset cloze tests where selected
> individual words are replaced by a blank space (a short line
> or underscore) which has the question number printed below it.
> I have done this in LaTeX by using fractions within the math
> environment paired with a counter as the denominator:
> 
> \newcommand{\pq}{\hspace{1mm} \stepcounter{qnum} 
>                     \begin{math} 
>                               _\frac{\hspace{3cm}}{\theqnum} 
>                     \end{math} 
> and the following:
> 
> I am honored to be with you today at your commencement...
> 
> becomes:
> I am h_______ to be with you today at your c________ ...
>              1                                                      2
> 
> Is this possible with groff, using eqn perhaps? Is it possible
> to use variables from number registers within equations or
> fractions?
> --

For the particular effect which you describe, it is not necessary
to use fractions and eqn. You can do it perfectly well using
basic troff primitives. The following produces the above result:


.nr subno 0 1
.ds qline \v'0.25m'\D'l 5m 0'\v'1.00m'\\n+[subno]\v'-1.25m'
.LP
I am h\*[qline] to be with you today at your c\*[qline]...

The ".nr subno 0 1" defines an auto-incrementing number register
\n[subno] whose initial value is 0 and which increments by 1 when
it is called using "\n+[subno]" (when called using "\n[subno]" it
is not incremented)

The ".ds qline etc" defines a string \*[qline] whose effect is

a) To move down by 0.25m
b) To draw a line at that level horizontally 5m, vertically 0
c) From the endpoint of that line, move down 1m and then
   print the incremented value of \n[subno]
d) Move back up 1.25m (i.e. to the original level).

The various paramaters in \*[qline] can be varied according
to precisely how you would like the result to appear.

Regarding your final query, it is perfectly possible to use
variables from number (or other) registers within mathematical
expressions processed by eqn. The simplest method is simply
to place them within quotes, so that they will be treated as
text by eqn. For example:

.EQ
X = "\n[subno]" over "\n+[subno]"
.EN

but, as I said, that sort of thing is not needed for your
application as described.

Hoping this helps,
Ted.



-------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding@wlandres.net>
Date: 10-Feb-2012  Time: 10:14:03
This message was sent by XFMail
-------------------------------------------------


From MAILER-DAEMON Fri Feb 10 23:36:20 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rw4hA-0000CB-Qt
	for mharc-groff@gnu.org; Fri, 10 Feb 2012 23:36:20 -0500
Received: from eggs.gnu.org ([140.186.70.92]:49277)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bounces@nabble.com>) id 1Rw4h7-00008r-Gw
	for Groff@gnu.org; Fri, 10 Feb 2012 23:36:18 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bounces@nabble.com>) id 1Rw4h6-0001Hu-6z
	for Groff@gnu.org; Fri, 10 Feb 2012 23:36:17 -0500
Received: from sam.nabble.com ([216.139.236.26]:41077)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bounces@nabble.com>) id 1Rw4h5-0001Hn-Va
	for Groff@gnu.org; Fri, 10 Feb 2012 23:36:16 -0500
Received: from isper.nabble.com ([192.168.236.156])
	by sam.nabble.com with esmtp (Exim 4.72)
	(envelope-from <bounces@nabble.com>) id 1Rw4h4-0003nX-RJ
	for Groff@gnu.org; Fri, 10 Feb 2012 20:36:14 -0800
Message-ID: <33304793.post@talk.nabble.com>
Date: Fri, 10 Feb 2012 20:36:14 -0800 (PST)
From: maouinin <maouininnab@spam.su>
To: Groff@gnu.org
In-Reply-To: <XFMail.20120210101407.Ted.Harding@wlandres.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Nabble-From: maouininnab@spam.su
References: <33299025.post@talk.nabble.com>
	<XFMail.20120210101407.Ted.Harding@wlandres.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 216.139.236.26
Subject: Re: [Groff] Using variables from register within fractions or
 equations
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, 11 Feb 2012 04:36:18 -0000



ted.harding-3 wrote:
> 
> On 10-Feb-2012 maouinin wrote:
>> What would be the best way to use a regularly incremented
>> variable within fractions? 
>> 
>> I teach ESL and I hope to typeset cloze tests where selected
>> individual words are replaced by a blank space (a short line
>> or underscore) which has the question number printed below it.
>> I have done this in LaTeX by using fractions within the math
>> environment paired with a counter as the denominator:
>> 
>> \newcommand{\pq}{\hspace{1mm} \stepcounter{qnum} 
>>                     \begin{math} 
>>                               _\frac{\hspace{3cm}}{\theqnum} 
>>                     \end{math} 
>> and the following:
>> 
>> I am honored to be with you today at your commencement...
>> 
>> becomes:
>> I am h_______ to be with you today at your c________ ...
>>              1                                                      2
>> 
>> Is this possible with groff, using eqn perhaps? Is it possible
>> to use variables from number registers within equations or
>> fractions?
>> --
> 
> For the particular effect which you describe, it is not necessary
> to use fractions and eqn. You can do it perfectly well using
> basic troff primitives. The following produces the above result:
> 
> 
> .nr subno 0 1
> .ds qline \v'0.25m'\D'l 5m 0'\v'1.00m'\\n+[subno]\v'-1.25m'
> .LP
> I am h\*[qline] to be with you today at your c\*[qline]...
> ...
> 
> The various paramaters in \*[qline] can be varied according
> to precisely how you would like the result to appear.
> ...
> but, as I said, that sort of thing is not needed for your
> application as described.
> 
> Hoping this helps,
> Ted.
> 
> 

Thanks for the help. What you gave works brilliantly for what
I described. However, the effect I described was only partial 
to what I hope to achieve. I hope to be able to achieve one 
of three possibilities:

1) for strong students: a blank line with the question number below -- no 
first letter given

2) for weaker students: a blank line with the question number below -- first 
letter given 
-- this is what i described in the original post

3) for the weakest students: a line with the first letter and an additional
smaller line for each 
letter of the word being tested  -- 

I am honored to be with you today at your commencement...

becomes:

I am h __ __ __ __ __ __ __ to be with you today at your c __ __ __ __ __ __
__ __ __ __ __ ...

with a line below the entire question.
This is why I ended up using fractions in LaTeX : I can put the first
letter and the blanks for each subsequent letter in the numerator
and the question number in the denominator. The bar stays the right 
length for each word. 




-- 
View this message in context: http://old.nabble.com/Using-variables-from-register-within-fractions-or-equations-tp33299025p33304793.html
Sent from the Groff - General mailing list archive at Nabble.com.



From MAILER-DAEMON Sat Feb 11 07:20:08 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RwBw0-0002Ok-Me
	for mharc-groff@gnu.org; Sat, 11 Feb 2012 07:20:08 -0500
Received: from eggs.gnu.org ([140.186.70.92]:34855)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1RwBvy-0002Nh-5P
	for groff@gnu.org; Sat, 11 Feb 2012 07:20:07 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1RwBvw-0008Nc-SJ
	for groff@gnu.org; Sat, 11 Feb 2012 07:20:06 -0500
Received: from relay02.pair.com ([209.68.5.16]:3905)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1RwBvw-0008NQ-NH
	for groff@gnu.org; Sat, 11 Feb 2012 07:20:04 -0500
Received: (qmail 22524 invoked from network); 11 Feb 2012 12:20:03 -0000
Received: from 87.115.108.60 (HELO orac.inputplus.co.uk) (87.115.108.60)
	by relay02.pair.com with SMTP; 11 Feb 2012 12:20:03 -0000
X-pair-Authenticated: 87.115.108.60
Received: by orac.inputplus.co.uk (Postfix, from userid 1000)
	id E0D681FFDF; Sat, 11 Feb 2012 12:20:02 +0000 (GMT)
Received: from orac.inputplus.co.uk (localhost [127.0.0.1])
	by orac.inputplus.co.uk (Postfix) with ESMTP id BFCDF1FBDE;
	Sat, 11 Feb 2012 12:20:02 +0000 (GMT)
To: maouinin <maouininnab@spam.su>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
In-reply-to: <33304793.post@talk.nabble.com>
References: <33299025.post@talk.nabble.com>
	<XFMail.20120210101407.Ted.Harding@wlandres.net>
	<33304793.post@talk.nabble.com>
Comments: In-reply-to maouinin <maouininnab@spam.su> message dated "Fri,
	10 Feb 2012 20:36:14 -0800."
Date: Sat, 11 Feb 2012 12:20:02 +0000
From: Ralph Corderoy <ralph@inputplus.co.uk>
Message-Id: <20120211122002.E0D681FFDF@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] Using variables from register within fractions or
	equations
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, 11 Feb 2012 12:20:07 -0000

Hi maouinin,

Just to make we're aiming at the right target, can you confirm/correct
these...

> 1) for strong students: a blank line with the question number below --
> no first letter given

The blank line is contiguous and of fixed length, giving no clue as to
the word length.  The question number is under the right-hand end of the
line, 1, or do you want it centred, as if a fraction, 2?  Is the number
to be the same size as the main text on a line of its own or more of a
subscript?

    I am _________ to be with you at your _________.
                 1                            2

> 2) for weaker students: a blank line with the question number below --
> first letter given -- this is what i described in the original post

But still a fixed-length line?

    I am h_________ to be with you at your c_________.
                  1                             2

> 3) for the weakest students: a line with the first letter and an
> additional smaller line for each letter of the word being tested  -- 

So,

    I am h------- to be with you at your c-----------.
                1                              2

except that h------- and c----------- would have a continuous line, in
the same style as above, underneath them.

For that last one it seems as if the presentation may be a limitation of
using a TeX equation as it stops the normal ___ from being broken to
indicate each letter.  If the formerly continuous underline could be
broken into equal-length chunks, so as to no give away an `i' versus a
`w', would that suffice?

Cheers, Ralph.


From MAILER-DAEMON Sat Feb 11 07:39:09 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RwCEP-0004su-2c
	for mharc-groff@gnu.org; Sat, 11 Feb 2012 07:39:09 -0500
Received: from eggs.gnu.org ([140.186.70.92]:53400)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bounces@nabble.com>) id 1RwCEM-0004ry-Kx
	for Groff@gnu.org; Sat, 11 Feb 2012 07:39:07 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bounces@nabble.com>) id 1RwCEL-0002Qw-7E
	for Groff@gnu.org; Sat, 11 Feb 2012 07:39:06 -0500
Received: from sam.nabble.com ([216.139.236.26]:48349)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bounces@nabble.com>) id 1RwCEL-0002QT-3R
	for Groff@gnu.org; Sat, 11 Feb 2012 07:39:05 -0500
Received: from isper.nabble.com ([192.168.236.156])
	by sam.nabble.com with esmtp (Exim 4.72)
	(envelope-from <bounces@nabble.com>) id 1RwCEK-0005WX-2G
	for Groff@gnu.org; Sat, 11 Feb 2012 04:39:04 -0800
Message-ID: <33305903.post@talk.nabble.com>
Date: Sat, 11 Feb 2012 04:39:04 -0800 (PST)
From: maouinin <maouininnab@spam.su>
To: Groff@gnu.org
In-Reply-To: <20120211122002.E0D681FFDF@orac.inputplus.co.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Nabble-From: maouininnab@spam.su
References: <33299025.post@talk.nabble.com>
	<XFMail.20120210101407.Ted.Harding@wlandres.net>
	<33304793.post@talk.nabble.com>
	<20120211122002.E0D681FFDF@orac.inputplus.co.uk>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 216.139.236.26
Subject: Re: [Groff] Using variables from register within fractions or
 equations
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, 11 Feb 2012 12:39:07 -0000



Ralph Corderoy wrote:
> 
> Hi maouinin,
> 
> Just to make we're aiming at the right target, can you confirm/correct
> these...
> 
>> 1) for strong students: a blank line with the question number below --
>> no first letter given
> 
> The blank line is contiguous and of fixed length, giving no clue as to
> the word length.  The question number is under the right-hand end of the
> line, 1, or do you want it centred, as if a fraction, 2?  Is the number
> to be the same size as the main text on a line of its own or more of a
> subscript?
> 

Centered as if a fraction and of a smaller size more like a subscript.



>     I am _________ to be with you at your _________.
>                  1                            2
> 
>> 2) for weaker students: a blank line with the question number below --
>> first letter given -- this is what i described in the original post
> 
> But still a fixed-length line?
> 

That is correct, line still of a fixed length.


> 
>     I am h_________ to be with you at your c_________.
>                   1                             2
> 
>> 3) for the weakest students: a line with the first letter and an
>> additional smaller line for each letter of the word being tested  -- 
> 
> So,
> 
>     I am h------- to be with you at your c-----------.
>                 1                              2
> 
> except that h------- and c----------- would have a continuous line, in
> the same style as above, underneath them.
> 
> For that last one it seems as if the presentation may be a limitation of
> using a TeX equation as it stops the normal ___ from being broken to
> indicate each letter.  If the formerly continuous underline could be
> broken into equal-length chunks, so as to no give away an `i' versus a
> `w', would that suffice?
> 
> 
Actually, under TeX I give the first letter followed by fixed-length,
underscored horizontal lines,
separated by spaces in the numerator, and the question number in the
denominator. The fraction
bar is still present. This does cause separate lines above the fraction bar,
but avoids the problem
of figuring out how far back to move the number under the question to get it
centered --
the fraction does that automatically. I'm pretty lazy, and I am not sure I
am skilled enough to figure out
how to do it without the fraction, since the lengths of words are different. 

The lines for each letter are of a fixed length -- giving different lengths
for each letter would be a
bit too easy.

Thanks.

-- 
View this message in context: http://old.nabble.com/Using-variables-from-register-within-fractions-or-equations-tp33299025p33305903.html
Sent from the Groff - General mailing list archive at Nabble.com.



From MAILER-DAEMON Sat Feb 11 09:35:12 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RwE2i-0006lv-Rz
	for mharc-groff@gnu.org; Sat, 11 Feb 2012 09:35:12 -0500
Received: from eggs.gnu.org ([140.186.70.92]:47313)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1RwE2f-0006k6-Sk
	for groff@gnu.org; Sat, 11 Feb 2012 09:35:10 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1RwE2e-0001b5-VB
	for groff@gnu.org; Sat, 11 Feb 2012 09:35:09 -0500
Received: from helix.usm.uni-muenchen.de ([129.187.204.86]:53417)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1RwE2e-0001Yv-Q1
	for groff@gnu.org; Sat, 11 Feb 2012 09:35:08 -0500
Received: by helix.usm.uni-muenchen.de (Postfix, from userid 2097)
	id 73EC21613089; Sat, 11 Feb 2012 15:35:05 +0100 (CET)
Date: Sat, 11 Feb 2012 15:35:05 +0100
From: Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
To: groff@gnu.org
Message-ID: <20120211143505.GA17941@usm.uni-muenchen.de>
References: <33299025.post@talk.nabble.com>
	<XFMail.20120210101407.Ted.Harding@wlandres.net>
	<33304793.post@talk.nabble.com>
	<20120211122002.E0D681FFDF@orac.inputplus.co.uk>
	<33305903.post@talk.nabble.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <33305903.post@talk.nabble.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 129.187.204.86
Subject: Re: [Groff] Using variables from register within fractions or
 equations
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, 11 Feb 2012 14:35:10 -0000


How about this, just to throw some ideas into the pool:
(Of course there's lots of stuff that can be tweaked.
For example, I left out the extra line in the "easy" case
because I personally didn't like it.)



.\"
.\" ------------------------------------------------------------------------
.de Z
.sp 2
.nr n 1
..
.\" ------------------------------------------------------------------------
.\" mode register m: 1 = easy, 2 = medium, 3 = hard
.\" ------------------------------------------------------------------------
.\" You could also use .X in modes 2 & 3
.de Q
.if \\nm=1 .X \\$@
.if \\nm=2 .Y \\$@
.if \\nm=3 .Y \\$@
..
.\" ------------------------------------------------------------------------
.\" Using blanks of variable length
.de X
.ds n \s'-2'\\nn\s'0'
.if \\nm=1 .char _ \v'.2m'\h'.1m'\D'l .8m 0'\h'.1m'\v'-.2m'
.if \\nm=2 .char _ \v'.2m'\D'l 1m 0'\v'-.2m'
.if \\nm=3 .char _ \v'.2m'\D'l 1m 0'\v'-.2m'
.tr a_b_c_d_e_f_g_h_i_j_k_l_m_n_o_p_q_r_s_t_u_v_w_x_y_z_
.nr w (\w'\\$1'-\w'\\*n')/2
\Z'\\$1'\c
.tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
.ds x \\$1
.substring x 0 0
.if \\nm=1 \Z'\o'_\\*x''\c
.if \\nm=2 \Z'\o'_\\*x''\c
\h'\\nwu'\v'1m'\\*n\v'-1m'\h'\\nwu'\\$2
.nr n +1
..
.\" ------------------------------------------------------------------------
.\" Using blanks of fixed length
.de Y
.if \\nm=1 .tm Please use .X instead of .Y in "easy" mode
.ds W \v'.2m'\D'l 3.5c 0'\v'-.2m'
.ds n \s'-2'\\nn\s'0'
.nr w (\w'\\*W'-\w'\\*n')/2
.ds x \\$1
.substring x 0 0
.if \\nm=1 \Z'\|\\*x'\c
.if \\nm=2 \Z'\|\\*x'\c
\Z'\\*W'\c
\h'\\nwu'\v'1m'\\*n\v'-1m'\h'\\nwu'\\$2
.nr n +1
..
.\" ------------------------------------------------------------------------
.sp 3c
.ps 12
.vs 14
.\" ------------------------------------------------------------------------
.nr m 1
.Z
I am
.Q honored
to be with you today at your
.Q commencement .
.nr m 2
.Z
I am
.Q honored
to be with you today at your
.Q commencement .
.nr m 3
.Z
I am
.Q honored
to be with you today at your
.Q commencement .





From MAILER-DAEMON Sat Feb 11 17:08:29 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RwL7N-0001tU-Bo
	for mharc-groff@gnu.org; Sat, 11 Feb 2012 17:08:29 -0500
Received: from eggs.gnu.org ([140.186.70.92]:36840)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1RwL7K-0001tO-SF
	for groff@gnu.org; Sat, 11 Feb 2012 17:08:27 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1RwL7J-0006lR-OH
	for groff@gnu.org; Sat, 11 Feb 2012 17:08:26 -0500
Received: from smarthost03.mail.zen.net.uk ([212.23.3.142]:36842)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1RwL7J-0006lB-Cb
	for groff@gnu.org; Sat, 11 Feb 2012 17:08:25 -0500
Received: from [88.96.44.206] (helo=deb)
	by smarthost03.mail.zen.net.uk with esmtp (Exim 4.63)
	(envelope-from <Ted.Harding@wlandres.net>)
	id 1RwL7G-0004h2-Hu; Sat, 11 Feb 2012 22:08:22 +0000
Content-Length: 2438
Message-ID: <XFMail.20120211220734.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: <20120211143505.GA17941@usm.uni-muenchen.de>
Date: Sat, 11 Feb 2012 22:07:34 -0000 (GMT)
Sender: ted@deb
From: (Ted Harding) <Ted.Harding@wlandres.net>
To: groff@gnu.org
Bcc: 
X-Originating-Smarthost03-IP: [88.96.44.206]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 212.23.3.142
Subject: Re: [Groff] Using variables from register within fractions or
	equations
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, 11 Feb 2012 22:08:27 -0000

On 11-Feb-2012 Tadziu Hoffmann wrote:
> How about this, just to throw some ideas into the pool:
> (Of course there's lots of stuff that can be tweaked.
> For example, I left out the extra line in the "easy" case
> because I personally didn't like it.)
> 
> .\"
> .\" ------------------------------------------------------------------------
> .de Z
> .sp 2
> .nr n 1
> ..
> .\" ------------------------------------------------------------------------
> .\" mode register m: 1 = easy, 2 = medium, 3 = hard
> .\" ------------------------------------------------------------------------
> .\" You could also use .X in modes 2 & 3
> .de Q
> .if \\nm=1 .X \\$@
> .if \\nm=2 .Y \\$@
> .if \\nm=3 .Y \\$@
> ..
> .\" ------------------------------------------------------------------------
> .\" Using blanks of variable length
> .de X
> .ds n \s'-2'\\nn\s'0'
> .if \\nm=1 .char _ \v'.2m'\h'.1m'\D'l .8m 0'\h'.1m'\v'-.2m'
> .if \\nm=2 .char _ \v'.2m'\D'l 1m 0'\v'-.2m'
> .if \\nm=3 .char _ \v'.2m'\D'l 1m 0'\v'-.2m'
> .tr a_b_c_d_e_f_g_h_i_j_k_l_m_n_o_p_q_r_s_t_u_v_w_x_y_z_
> .nr w (\w'\\$1'-\w'\\*n')/2
> \Z'\\$1'\c
> .tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
> .ds x \\$1
> .substring x 0 0
> .if \\nm=1 \Z'\o'_\\*x''\c
> .if \\nm=2 \Z'\o'_\\*x''\c
> \h'\\nwu'\v'1m'\\*n\v'-1m'\h'\\nwu'\\$2
> .nr n +1
> ..
> .\" ------------------------------------------------------------------------
> .\" Using blanks of fixed length
> .de Y
> .if \\nm=1 .tm Please use .X instead of .Y in "easy" mode
> .ds W \v'.2m'\D'l 3.5c 0'\v'-.2m'
> .ds n \s'-2'\\nn\s'0'
> .nr w (\w'\\*W'-\w'\\*n')/2
> .ds x \\$1
> .substring x 0 0
> .if \\nm=1 \Z'\|\\*x'\c
> .if \\nm=2 \Z'\|\\*x'\c
> \Z'\\*W'\c
> \h'\\nwu'\v'1m'\\*n\v'-1m'\h'\\nwu'\\$2
> .nr n +1
> ..
> .\" ------------------------------------------------------------------------
> .sp 3c
> .ps 12
> .vs 14
> .\" ------------------------------------------------------------------------
> .nr m 1
> .Z
> I am
> .Q honored
> to be with you today at your
> .Q commencement .
> .nr m 2
> .Z
> I am
> .Q honored
> to be with you today at your
> .Q commencement .
> .nr m 3
> .Z
> I am
> .Q honored
> to be with you today at your
> .Q commencement .

Beautifully crafted, Tadziu!
Ted.

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


From MAILER-DAEMON Fri Feb 17 08:45:31 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RyO7v-00038A-EY
	for mharc-groff@gnu.org; Fri, 17 Feb 2012 08:45:31 -0500
Received: from eggs.gnu.org ([140.186.70.92]:39431)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bounces@nabble.com>) id 1RyO7n-00036Y-Gw
	for Groff@gnu.org; Fri, 17 Feb 2012 08:45:29 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <bounces@nabble.com>) id 1RyO7h-00012S-LO
	for Groff@gnu.org; Fri, 17 Feb 2012 08:45:23 -0500
Received: from sam.nabble.com ([216.139.236.26]:37435)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bounces@nabble.com>) id 1RyO7h-00012L-HF
	for Groff@gnu.org; Fri, 17 Feb 2012 08:45:17 -0500
Received: from isper.nabble.com ([192.168.236.156])
	by sam.nabble.com with esmtp (Exim 4.72)
	(envelope-from <bounces@nabble.com>) id 1RyO7g-0006Ya-GT
	for Groff@gnu.org; Fri, 17 Feb 2012 05:45:16 -0800
Message-ID: <33342743.post@talk.nabble.com>
Date: Fri, 17 Feb 2012 05:45:16 -0800 (PST)
From: maouinin <maouininnab@spam.su>
To: Groff@gnu.org
In-Reply-To: <20120211143505.GA17941@usm.uni-muenchen.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Nabble-From: maouininnab@spam.su
References: <33299025.post@talk.nabble.com>
	<XFMail.20120210101407.Ted.Harding@wlandres.net>
	<33304793.post@talk.nabble.com>
	<20120211122002.E0D681FFDF@orac.inputplus.co.uk>
	<33305903.post@talk.nabble.com>
	<20120211143505.GA17941@usm.uni-muenchen.de>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 216.139.236.26
Subject: Re: [Groff] Using variables from register within fractions or
 equations
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, 17 Feb 2012 13:45:29 -0000




Tadziu Hoffmann wrote:
> 
> 
> How about this, just to throw some ideas into the pool:
> (Of course there's lots of stuff that can be tweaked.
> For example, I left out the extra line in the "easy" case
> because I personally didn't like it.)
> 
> 
> 
> .\"
> .\"
> ------------------------------------------------------------------------
> .de Z
> .sp 2
> .nr n 1
> ..
> .\"
> ------------------------------------------------------------------------
> .\" mode register m: 1 = easy, 2 = medium, 3 = hard
> .\"
> ------------------------------------------------------------------------
> .\" You could also use .X in modes 2 & 3
> .de Q
> .if \\nm=1 .X \\$@
> .if \\nm=2 .Y \\$@
> .if \\nm=3 .Y \\$@
> ..
> .\"
> ------------------------------------------------------------------------
> .\" Using blanks of variable length
> .de X
> .ds n \s'-2'\\nn\s'0'
> .if \\nm=1 .char _ \v'.2m'\h'.1m'\D'l .8m 0'\h'.1m'\v'-.2m'
> .if \\nm=2 .char _ \v'.2m'\D'l 1m 0'\v'-.2m'
> .if \\nm=3 .char _ \v'.2m'\D'l 1m 0'\v'-.2m'
> .tr a_b_c_d_e_f_g_h_i_j_k_l_m_n_o_p_q_r_s_t_u_v_w_x_y_z_
> .nr w (\w'\\$1'-\w'\\*n')/2
> \Z'\\$1'\c
> .tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
> .ds x \\$1
> .substring x 0 0
> .if \\nm=1 \Z'\o'_\\*x''\c
> .if \\nm=2 \Z'\o'_\\*x''\c
> \h'\\nwu'\v'1m'\\*n\v'-1m'\h'\\nwu'\\$2
> .nr n +1
> ..
> .\"
> ------------------------------------------------------------------------
> .\" Using blanks of fixed length
> .de Y
> .if \\nm=1 .tm Please use .X instead of .Y in "easy" mode
> .ds W \v'.2m'\D'l 3.5c 0'\v'-.2m'
> .ds n \s'-2'\\nn\s'0'
> .nr w (\w'\\*W'-\w'\\*n')/2
> .ds x \\$1
> .substring x 0 0
> .if \\nm=1 \Z'\|\\*x'\c
> .if \\nm=2 \Z'\|\\*x'\c
> \Z'\\*W'\c
> \h'\\nwu'\v'1m'\\*n\v'-1m'\h'\\nwu'\\$2
> .nr n +1
> ..
> .\"
> ------------------------------------------------------------------------
> .sp 3c
> .ps 12
> .vs 14
> .\"
> ------------------------------------------------------------------------
> .nr m 1
> .Z
> I am
> .Q honored
> to be with you today at your
> .Q commencement .
> .nr m 2
> .Z
> I am
> .Q honored
> to be with you today at your
> .Q commencement .
> .nr m 3
> .Z
> I am
> .Q honored
> to be with you today at your
> .Q commencement .
> 
> 
> ... I left out the extra line in the "easy" case
> because I personally didn't like it.)
> 

I didn't really like it either, but this was all I was able to come up with. 
I love the way this solution works.
If it isn't obvious by now, I am a complete novice to groff specifically
and typesetting in general, but I like what it makes possible. That said,
I would really appreciate it if someone would  walk me through exactly what
is 
happening in the following lines:



> if \\nm=1 .X \\$@
> 
I follow the front, but what is \\$@?

the following also loses me:


> \h'\\nwu'\v'1m'\\*n\v'-1m'\h'\\nwu'\\$2
> 
what exactly  is \\nwu?
-- 
View this message in context: http://old.nabble.com/Using-variables-from-register-within-fractions-or-equations-tp33299025p33342743.html
Sent from the Groff - General mailing list archive at Nabble.com.



From MAILER-DAEMON Fri Feb 17 09:09:18 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RyOUw-0002Tg-Vd
	for mharc-groff@gnu.org; Fri, 17 Feb 2012 09:09:18 -0500
Received: from eggs.gnu.org ([140.186.70.92]:42077)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1RyOUp-0002TW-Ie
	for groff@gnu.org; Fri, 17 Feb 2012 09:09:17 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1RyOUo-0005Hx-Ez
	for groff@gnu.org; Fri, 17 Feb 2012 09:09:11 -0500
Received: from relay01.pair.com ([209.68.5.15]:1051)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1RyOUo-0005Hs-CA
	for groff@gnu.org; Fri, 17 Feb 2012 09:09:10 -0500
Received: (qmail 31129 invoked from network); 17 Feb 2012 14:09:09 -0000
Received: from 31.185.251.208 (HELO orac.inputplus.co.uk) (31.185.251.208)
	by relay01.pair.com with SMTP; 17 Feb 2012 14:09:09 -0000
X-pair-Authenticated: 31.185.251.208
Received: by orac.inputplus.co.uk (Postfix, from userid 1000)
	id 7126C251D1; Fri, 17 Feb 2012 14:09:08 +0000 (GMT)
Received: from orac.inputplus.co.uk (localhost [127.0.0.1])
	by orac.inputplus.co.uk (Postfix) with ESMTP id 513D0251CC;
	Fri, 17 Feb 2012 14:09:08 +0000 (GMT)
To: maouinin <maouininnab@spam.su>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
In-reply-to: <33342743.post@talk.nabble.com>
References: <33299025.post@talk.nabble.com>
	<XFMail.20120210101407.Ted.Harding@wlandres.net>
	<33304793.post@talk.nabble.com>
	<20120211122002.E0D681FFDF@orac.inputplus.co.uk>
	<33305903.post@talk.nabble.com>
	<20120211143505.GA17941@usm.uni-muenchen.de>
	<33342743.post@talk.nabble.com>
Comments: In-reply-to maouinin <maouininnab@spam.su> message dated "Fri,
	17 Feb 2012 05:45:16 -0800."
Date: Fri, 17 Feb 2012 14:09:08 +0000
From: Ralph Corderoy <ralph@inputplus.co.uk>
Message-Id: <20120217140908.7126C251D1@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] Using variables from register within fractions or
	equations
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, 17 Feb 2012 14:09:17 -0000

Hi maouinin,

I'll have a stab...

> > if \\nm=1 .X \\$@
> 
> I follow the front, but what is \\$@?

From

    .de Q
    .if \\nm=1 .X \\$@
    .if \\nm=2 .Y \\$@
    .if \\nm=3 .Y \\$@
    ..

$@ refers to all the arguments passed to the macro, similar to $@ and $*
in sh.  IOW, macro Q is calling either macro X or Y with all the
arguments it was passed.  From groff's info page,

    $ info groff 2>/dev/null |
    > sed '/-- Escape: \\\$\*/p; 1,//d; /^$/Q'
     -- Escape: \$*
     -- Escape: \$@
         In some cases it is convenient to use all of the arguments at once
         (for example, to pass the arguments along to another macro).  The
         `\$*' escape concatenates all the arguments separated by spaces.
         A similar escape is `\$@', which concatenates all the arguments
         with each surrounded by double quotes, and separated by spaces.
         If not in compatibility mode, the input level of double quotes is
         preserved (see *note Request and Macro Arguments::).
    $ 

> the following also loses me:
> 
> > \h'\\nwu'\v'1m'\\*n\v'-1m'\h'\\nwu'\\$2
> 
> what exactly  is \\nwu?

\nw is the value of the w number register.  The trailing u is stating
what units that number, e.g. 42, is in to \h for the horizontal
movement.  If it was \nwi then it would be 42 inches instead.  See

    info groff 2>/dev/null | less +'/^[0-9.]* Measurements$'

In both cases, backslashes are doubled to delay interpretation to when
the macro is run, not defined.

Cheers, Ralph.


From MAILER-DAEMON Sat Feb 18 02:39:49 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RyetZ-0001Rr-8E
	for mharc-groff@gnu.org; Sat, 18 Feb 2012 02:39:49 -0500
Received: from eggs.gnu.org ([140.186.70.92]:49129)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <holgerherrlich05@arcor.de>) id 1RyWiZ-0006v0-LP
	for groff@gnu.org; Fri, 17 Feb 2012 17:55:56 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <holgerherrlich05@arcor.de>) id 1RyWiY-0005XQ-17
	for groff@gnu.org; Fri, 17 Feb 2012 17:55:55 -0500
Received: from mail-in-04.arcor-online.net ([151.189.21.44]:60207)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <holgerherrlich05@arcor.de>) id 1RyWiX-0005X7-Hd
	for groff@gnu.org; Fri, 17 Feb 2012 17:55:53 -0500
Received: from mail-in-18-z2.arcor-online.net (mail-in-18-z2.arcor-online.net
	[151.189.8.35]) by mx.arcor.de (Postfix) with ESMTP id B85FDA9E27
	for <groff@gnu.org>; Fri, 17 Feb 2012 23:55:51 +0100 (CET)
Received: from mail-in-06.arcor-online.net (mail-in-06.arcor-online.net
	[151.189.21.46])
	by mail-in-18-z2.arcor-online.net (Postfix) with ESMTP id B575A33A370
	for <groff@gnu.org>; Fri, 17 Feb 2012 23:55:51 +0100 (CET)
Received: from [87.123.105.214] (i577B69D6.versanet.de [87.123.105.214])
	(Authenticated sender: holgerherrlich@arcor.de)
	by mail-in-06.arcor-online.net (Postfix) with ESMTPA id 91A4A10C354
	for <groff@gnu.org>; Fri, 17 Feb 2012 23:55:51 +0100 (CET)
X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-06.arcor-online.net 91A4A10C354
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arcor.de; s=mail-in;
	t=1329519351; bh=UZkLRVaNEaVEBlZ8s4vNd+Lelk2CYsVLu7SvNShqYw0=;
	h=Message-ID:Date:From:MIME-Version:To:Subject:References:
	In-Reply-To:Content-Type:Content-Transfer-Encoding;
	b=gQRoNGJ5Prgj+tQMUpgz3RgBP/7eQKrW20cULqW9P6LD0KdS7tx7KnARCyqSBtRxN
	9+zNar6xhhsfW65Ve5Oho12yme7XjNBYJPb2exaHhQn0tpdsncBqGztFNnS8FceHGP
	aQTdPSh7Gdw+b+qVQ13nmnRANNppD/6zNYH1zoGk=
Message-ID: <4F3EDAC7.608@arcor.de>
Date: Fri, 17 Feb 2012 23:55:03 +0100
From: Holger Herrlich <holgerherrlich05@arcor.de>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.1.16) Gecko/20120207 Icedove/3.0.11
MIME-Version: 1.0
To: groff@gnu.org
References: <33299025.post@talk.nabble.com>	<XFMail.20120210101407.Ted.Harding@wlandres.net>	<33304793.post@talk.nabble.com>	<20120211122002.E0D681FFDF@orac.inputplus.co.uk>	<33305903.post@talk.nabble.com>	<20120211143505.GA17941@usm.uni-muenchen.de>
	<33342743.post@talk.nabble.com>
In-Reply-To: <33342743.post@talk.nabble.com>
X-Enigmail-Version: 1.0.1
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 151.189.21.44
X-Mailman-Approved-At: Sat, 18 Feb 2012 02:39:47 -0500
Subject: Re: [Groff] Using variables from register within fractions or
	equations
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, 17 Feb 2012 22:55:56 -0000

On 02/17/2012 02:45 PM, maouinin wrote:
>> \h'\\nwu'\v'1m'\\*n\v'-1m'\h'\\nwu'\\$2

father on:
\*n      \" recalls string of name n
\v'-1m'  \" vertical move up one (1) line (m), this is a value.

Note that \v for instance will interpret values by a default unit, used
in absence of one given. Thereas "Troff internally stores ... dimensions
in units that correspond to the particular device ..." (Troff Users
Manual, 1992, Ossanna/Kernighan). So in using number registers, i always
append 'u' (means basic unit). Otherwise things will be correctly
shifted out of sight, leaving you clueless that happend.

Lg Holger


From MAILER-DAEMON Sun Feb 19 14:23:11 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RzCLn-0002u1-3j
	for mharc-groff@gnu.org; Sun, 19 Feb 2012 14:23:11 -0500
Received: from eggs.gnu.org ([140.186.70.92]:48008)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1RzCLk-0002rd-Bp
	for groff@gnu.org; Sun, 19 Feb 2012 14:23:09 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1RzCLi-0001LX-U3
	for groff@gnu.org; Sun, 19 Feb 2012 14:23:08 -0500
Received: from helix.usm.uni-muenchen.de ([129.187.204.86]:56222)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1RzCLi-0001LT-Kx
	for groff@gnu.org; Sun, 19 Feb 2012 14:23:06 -0500
Received: by helix.usm.uni-muenchen.de (Postfix, from userid 2097)
	id F3E2E1613063; Sun, 19 Feb 2012 20:23:03 +0100 (CET)
Date: Sun, 19 Feb 2012 20:23:03 +0100
From: Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
To: groff@gnu.org
Message-ID: <20120219192303.GA23861@usm.uni-muenchen.de>
References: <33299025.post@talk.nabble.com>
	<XFMail.20120210101407.Ted.Harding@wlandres.net>
	<33304793.post@talk.nabble.com>
	<20120211122002.E0D681FFDF@orac.inputplus.co.uk>
	<33305903.post@talk.nabble.com>
	<20120211143505.GA17941@usm.uni-muenchen.de>
	<33342743.post@talk.nabble.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <33342743.post@talk.nabble.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 129.187.204.86
Subject: Re: [Groff] Using variables from register within fractions or
 equations
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, 19 Feb 2012 19:23:09 -0000




Sorry that this was a bit confusing... I have a habit of using
the old-style roff syntax with one- or two-character names.
Here's a slightly revised version using groff's extended syntax
(which is probably a bit easier to understand for novices)
including a short description of how it's supposed to work:

  .de Z
  .sp 1
  .nr n 1
  .ad l
  ..

This begins a new exercise/problem by vertically spacing a bit
and resetting the fill-in blanks counter to 1.  (You could
also increment an exercise counter here and output it at
this point.)  I added left-adjust so that groff doesn't
stretch text that needs to be line-wrapped before a blank.


  .de Q
  .if \\n[m]=1 .X \\$@
  .if \\n[m]=2 .Y \\$@
  .if \\n[m]=3 .Y \\$@
  ..

As Ralph already said, this just calls either macro X or
macro Y with all the arguments Q was called with.  This is
convenient because it lets you reconfigure the macros to
use either constant-width blanks or variable-width blanks,
while allowing you to always call macro Q in the actual
exercise part.


  .ds n \s'-2'\\n[n]\s'0'

This defines a string "n" specifying the current blank-number
at a size 2 points smaller.  We define this abbreviation for
convenience because we need this expression twice later on,
once to find the width of the number-text and then again to
print the number itself.


  .if \\n[m]=1 .char _ \v'.2m'\h'.1m'\D'l .8m 0'\h'.1m'\v'-.2m'
  .if \\n[m]=2 .char _ \v'.2m'\D'l 1m 0'\v'-.2m'
  .if \\n[m]=3 .char _ \v'.2m'\D'l 1m 0'\v'-.2m'

Depending on the current mode this defines a character "_"
which is either just a 1 em wide underline (0.2 ems below the
baseline) (which will give a continuous underline if several of
them are output next to each other) or a 0.8 em wide underline
with a 0.1 em wide space at each end (to make it symmetric)
(which will give an underline with gaps if several of the
are output next to each other).  This could be improved.
For example, because of the gaps the apparent width of the
total fill-in blank will be a bit different at the beginning
and end.  Alternatively, we could define a continuous underline
with little upticks between the letters.  Or we might try
letterspacing (track kerning) to obtain the gaps.

(Instead of a number you could also define the mode as a
string, ".ds m easy", and then say ".if '\\*[m]'easy' ..." etc.
Anyhow, always redefining the underline character at every
blank is probably a bit inefficient.  I've done it just to
demonstrate the different modes next to each other, but
I guess it will be more common to print a whole sheet in
the same mode, in which case you would need to define the
character only once when setting the mode.)


  .tr a_b_c_d_e_f_g_h_i_j_k_l_m_n_o_p_q_r_s_t_u_v_w_x_y_z_

This tells groff to replace all letters with the newly-defined
underline character when printing text from now on.  You will
probably want to add uppercase characters, too:

  .tr A_B_C_D_E_F_G_H_I_J_K_L_M_N_O_P_Q_R_S_T_U_V_W_X_Y_Z_

Hyphens, for example, are not translated (unless you add them
to the list as well), so a hyphenated word will be printed
as two blanks with a hyphen inbetween (but it will still get
only one number).


  .nr w (\w'\\$1'-\w'\\*[n]')/2

This defines a number register "w" whose value is half of
the width of the blank to be output (the word itself (\$1)
translated to underline characters) minus half of the width of
the blank-number. This will be used for centering the number.


  \Z'\\$1'\c

This now outputs the blank, but pretends it has zero width
(\Z'...') (you could think of groff drawing the stuff and
then moving the current point back to where it began),
and additionally it tells groff that the "word" still isn't
finished (\c) so groff won't start its line-filling/breaking
machinery just yet.


  .tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
  .tr AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXXYYZZ

This tells groff to print all letters as themselves again
from now on.


  .ds x \\$1
  .substring x 0 0

This copies the word to string "x" and then extracts the first
letter.


  .if \\n[m]=1 \Z'\o'_\\*[x]''\c
  .if \\n[m]=2 \Z'\o'_\\*[x]''\c

In modes 1 and 2 this prints the first letter (\*[x]) centered
on an underline character (_), using groff's overstrike function
(\o'...') (whose primary function probably is to print accents
on letters, but which is convenient here because it centers
the stuff by itself, so we don't explicitly have to calculate
how much to move the letter before printing it), again in zero
width and without terminating the word.


  \h'\\n[w]u'\v'1m'\\*[n]\v'-1m'\h'\\n[w]u'\\$2\x'1m'\x'-1m'

This now prints the blank-number centered below the blank:
it moves the necessary horizontal distance (calculated
as register "w" above) and moves 1 em below the baseline,
prints the number, moves 1 em up again and horizontally the
same distance as before, which should leave us at the end
of the blank (if we haven't miscalculated).  Then it outputs
any supplied punctuation (\$2) (if there is none, this simply
resolves to nothing) and tells groff that the line contains
overlarge items (the number below the blank (\x'1m'), and a
bit of extra space above (\x'-1m') to give the student room
to fill in the word).  (You can see the effect of these when
you create exercises spanning multiple lines.)  Now the word
is finished, and groff can start linebreaking if necessary.


The macro with fixed-width blanks works almost the same but
is a bit simpler.  It defines the blank as string "W"
(we could have defined a character instead)

  .ds W \v'.2m'\D'l 3.5c 0'\v'-.2m'

that will draw a 3.5 cm long line 0.2 ems below the baseline,
and computes the centering-distance for the number similarly
to what we had before,

  .nr w (\w'\\*[W]'-\w'\\*[n]')/2

Since we have a continuous-underline blank we don't need to
worry about centering the first letter within one "letter
blank", so we just space a short width (\|) into the blank
and print the letter,

  .if \\n[m]=1 \Z'\|\\*[x]'\c
  .if \\n[m]=2 \Z'\|\\*[x]'\c

then we print the blank and the number as before,

  \Z'\\*[W]'\c
  \h'\\n[w]u'\v'1m'\\*[n]\v'-1m'\h'\\n[w]u'\\$2\x'1m'\x'-1m'


As Holger correctly pointed out, many groff request that
work with numbers have implied default units that will be
used unless a unit is explicitly given.  For example, the
default unit for horizontal movement is "ems", but the width
function \w returns values in basic units ("u"), so we need to
specify "u" when moving horizontally a distance computed using
the width function, as in the above "\h'\\n[w]u'".





From MAILER-DAEMON Tue Feb 21 02:21:13 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rzk2D-0002Y0-Tu
	for mharc-groff@gnu.org; Tue, 21 Feb 2012 02:21:13 -0500
Received: from eggs.gnu.org ([140.186.70.92]:60283)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <clarke@verinet.net>) id 1Rzk2B-0002Xm-Uf
	for groff@gnu.org; Tue, 21 Feb 2012 02:21:12 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <clarke@verinet.net>) id 1Rzk26-0001w2-1j
	for groff@gnu.org; Tue, 21 Feb 2012 02:21:11 -0500
Received: from smtp02.frii.com ([216.17.135.168]:53394)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <clarke@verinet.net>) id 1Rzk25-0001vq-UT
	for groff@gnu.org; Tue, 21 Feb 2012 02:21:06 -0500
Received: from [192.168.0.100] (dsl-251-44.dynamic-dsl.frii.net
	[216.17.251.44])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp02.frii.com (FRII) with ESMTP id 4A89BD8BB2
	for <groff@gnu.org>; Tue, 21 Feb 2012 00:21:03 -0700 (MST)
Message-ID: <4F4345EB.3050206@verinet.net>
Date: Tue, 21 Feb 2012 00:21:15 -0700
From: Clarke Echols <clarke@verinet.net>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.2.27) Gecko/20120216 Thunderbird/3.1.19
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 (newer, 3)
X-Received-From: 216.17.135.168
Subject: [Groff] URL hyperlinks in PDF from grops and ps2pdf?
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, 21 Feb 2012 07:21:13 -0000

I use groff to produce technical white papers.  I run gv and
monitor a PostScript file so every time I update the file while
writing in vi (by pressing a function key that contains the groff
command as a vi macro).

When I need to print the file, I send it from gv to a LaserJet
printer.

But I also often need to convert the PostScript document file to
PDF format so I can load it onto a website for visitors to
download.  I normally use ps2pdf to make the conversion.

There are times when it would be nice if I could include a live
hyperlink to a web URL inside the PDF (and have it look like a
hyperlink in the PostScript file too).

I don't want to produce an HTML file from groff, which leaves
me with the question:

Is there an easy way to put an html hyperlink inside of a
groff-generated PostScript file?

Thanks,

Clarke


From MAILER-DAEMON Tue Feb 21 05:38:22 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Rzn70-00074S-5P
	for mharc-groff@gnu.org; Tue, 21 Feb 2012 05:38:22 -0500
Received: from eggs.gnu.org ([140.186.70.92]:60798)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1Rzn6s-00071R-M2
	for groff@gnu.org; Tue, 21 Feb 2012 05:38:20 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1Rzn6n-0004lF-2s
	for groff@gnu.org; Tue, 21 Feb 2012 05:38:14 -0500
Received: from relay00.pair.com ([209.68.5.9]:3588)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1Rzn6m-0004kx-V7
	for groff@gnu.org; Tue, 21 Feb 2012 05:38:09 -0500
Received: (qmail 76088 invoked from network); 21 Feb 2012 10:38:06 -0000
Received: from 31.185.251.208 (HELO orac.inputplus.co.uk) (31.185.251.208)
	by relay00.pair.com with SMTP; 21 Feb 2012 10:38:06 -0000
X-pair-Authenticated: 31.185.251.208
Received: by orac.inputplus.co.uk (Postfix, from userid 1000)
	id 1526C35E2A; Tue, 21 Feb 2012 10:38:05 +0000 (GMT)
Received: from orac.inputplus.co.uk (localhost [127.0.0.1])
	by orac.inputplus.co.uk (Postfix) with ESMTP id E4F1C1FECB
	for <groff@gnu.org>; Tue, 21 Feb 2012 10:38:05 +0000 (GMT)
to: Groff <groff@gnu.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
In-reply-to: <4F4345EB.3050206@verinet.net>
References: <4F4345EB.3050206@verinet.net>
Comments: In-reply-to Clarke Echols <clarke@verinet.net> message dated "Tue,
	21 Feb 2012 00:21:15 -0700."
Date: Tue, 21 Feb 2012 10:38:05 +0000
From: Ralph Corderoy <ralph@inputplus.co.uk>
Message-Id: <20120221103806.1526C35E2A@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] URL hyperlinks in PDF from grops and ps2pdf?
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, 21 Feb 2012 10:38:20 -0000

Hi Clarke,

> There are times when it would be nice if I could include a live
> hyperlink to a web URL inside the PDF (and have it look like a
> hyperlink in the PostScript file too).

Have a look at pdfroff(1) and the pdfmark.tmac that comes with groff.
I've not used them, but I think they can do what you want from
discussion on the list.

Cheers, Ralph.


From MAILER-DAEMON Tue Feb 21 05:43:36 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1RznC4-0008KR-Li
	for mharc-groff@gnu.org; Tue, 21 Feb 2012 05:43:36 -0500
Received: from eggs.gnu.org ([140.186.70.92]:49189)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <deri@chuzzlewit.demon.co.uk>) id 1RznBt-0008GY-Uw
	for groff@gnu.org; Tue, 21 Feb 2012 05:43:35 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <deri@chuzzlewit.demon.co.uk>) id 1RznBo-0005mb-2V
	for groff@gnu.org; Tue, 21 Feb 2012 05:43:25 -0500
Received: from chuzzlewit.demon.co.uk ([80.177.169.146]:55266
	helo=dombey.localdomain) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <deri@chuzzlewit.demon.co.uk>) id 1RznBn-0005mV-RY
	for groff@gnu.org; Tue, 21 Feb 2012 05:43:20 -0500
Received: by dombey.localdomain (Postfix, from userid 500)
	id AADF42174B; Tue, 21 Feb 2012 10:43:17 +0000 (GMT)
From: Deri James <deri@chuzzlewit.demon.co.uk>
To: groff@gnu.org
Date: Tue, 21 Feb 2012 10:43:16 +0000
User-Agent: KMail/1.13.7 (Linux/2.6.38.8-desktop-10.mga; KDE/4.6.5; x86_64; ; )
References: <4F4345EB.3050206@verinet.net>
In-Reply-To: <4F4345EB.3050206@verinet.net>
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Message-Id: <201202211043.16901.deri@chuzzlewit.demon.co.uk>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 80.177.169.146
Subject: Re: [Groff] URL hyperlinks in PDF from grops and ps2pdf?
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, 21 Feb 2012 10:43:35 -0000

On Tuesday 21 Feb 2012 07:21:15 Clarke Echols wrote:
> I use groff to produce technical white papers.  I run gv and
> monitor a PostScript file so every time I update the file while
> writing in vi (by pressing a function key that contains the groff
> command as a vi macro).
> 
> When I need to print the file, I send it from gv to a LaserJet
> printer.
> 
> But I also often need to convert the PostScript document file to
> PDF format so I can load it onto a website for visitors to
> download.  I normally use ps2pdf to make the conversion.
> 
> There are times when it would be nice if I could include a live
> hyperlink to a web URL inside the PDF (and have it look like a
> hyperlink in the PostScript file too).
> 
> I don't want to produce an HTML file from groff, which leaves
> me with the question:
> 
> Is there an easy way to put an html hyperlink inside of a
> groff-generated PostScript file?
> 
> Thanks,
> 
> Clarke

See Keith Marshall's documentation of the pdfmark macro set. It says to use:-

.pdfhref W [-D <URI>] [-P <prefix-text>] [-A <affixed-text>]  [--] descriptive text ...

as an example:-

.\"======================================
For example, we could introduce a reference to
.pdfhref W -D http://groff.ffii.org -A , the groff web site
in which the actual URI is concealed,
.\"======================================

Run this snippet with:-

groff -mpdfmark snippet.trf > snippet.ps; ps2pdf snippet.ps

If you have a recent CVS version of groff you can also try:-

groff -Tpdf snippet.trf > snippet.pdf

Cheers

Deri


From MAILER-DAEMON Wed Feb 22 15:30:48 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1S0Ips-0005IE-69
	for mharc-groff@gnu.org; Wed, 22 Feb 2012 15:30:48 -0500
Received: from eggs.gnu.org ([140.186.70.92]:39311)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <saint.snit@gmail.com>) id 1S0Ipq-0005I8-HA
	for groff@gnu.org; Wed, 22 Feb 2012 15:30:47 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <saint.snit@gmail.com>) id 1S0Ipo-0006an-Qn
	for groff@gnu.org; Wed, 22 Feb 2012 15:30:46 -0500
Received: from mail-ww0-f41.google.com ([74.125.82.41]:59549)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <saint.snit@gmail.com>) id 1S0Ipo-0006aX-Fd
	for groff@gnu.org; Wed, 22 Feb 2012 15:30:44 -0500
Received: by wgbdt11 with SMTP id dt11so6160164wgb.0
	for <groff@gnu.org>; Wed, 22 Feb 2012 12:30:42 -0800 (PST)
Received-SPF: pass (google.com: domain of saint.snit@gmail.com designates
	10.216.136.211 as permitted sender) client-ip=10.216.136.211; 
Authentication-Results: mr.google.com;
	spf=pass (google.com: domain of saint.snit@gmail.com
	designates 10.216.136.211 as permitted sender)
	smtp.mail=saint.snit@gmail.com;
	dkim=pass header.i=saint.snit@gmail.com
Received: from mr.google.com ([10.216.136.211])
	by 10.216.136.211 with SMTP id w61mr9837939wei.18.1329942642973
	(num_hops = 1); Wed, 22 Feb 2012 12:30:42 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type; bh=ioWSLoLbAFIH5MytUMoTTTQBs/lBiO+Zs1G1PsZ99vM=;
	b=vJV/c831E/IQn35y6SAddsFhRhW+iVmeFsNjicA8clAxNeAD4C5Bu8IkjdBGXMWcqL
	uWlEN5CAvtZBa7JLtHk8V6/KtHnWY7c1+OA1yIGzff8tfA1WSjW8Z2bATho7J8q5qdR5
	QyXhxWYGDOaUW53HWA8eiKg5l9PNXI8UNGGPE=
MIME-Version: 1.0
Received: by 10.216.136.211 with SMTP id w61mr8105437wei.18.1329942642872;
	Wed, 22 Feb 2012 12:30:42 -0800 (PST)
Received: by 10.180.85.133 with HTTP; Wed, 22 Feb 2012 12:30:42 -0800 (PST)
In-Reply-To: <20120123224556.GB16889@usm.uni-muenchen.de>
References: <20120101153404.GA8712@usm.uni-muenchen.de>
	<CACRhBXO35_MwnF=nFWQzh7p5ZC88U3YMZdFQF-p1Gk=RYskgwQ@mail.gmail.com>
	<20120105200628.GE13517@usm.uni-muenchen.de>
	<20120107.080217.159457058.wl@gnu.org>
	<20120123224556.GB16889@usm.uni-muenchen.de>
Date: Wed, 22 Feb 2012 14:30:42 -0600
Message-ID: <CACRhBXMQ-UT2NKfmCJpQMHT0=Tkw0tev6xO5_5p7EnKFxy++hw@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: Genre and OS details not
	recognized.
X-Received-From: 74.125.82.41
Subject: Re: [Groff] odd interaction between .bl and .(c in -me macros
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, 22 Feb 2012 20:30:47 -0000

On Mon, Jan 23, 2012 at 4:45 PM, Tadziu Hoffmann
<hoffmann@usm.uni-muenchen.de> wrote:
> By the way, I've also figured out why the centering of wide
> blocks in the "me" macros does not work correctly: the macros
> change the line width to 6.0 inches, but the indent for blocks
> is computed in environment 1 which retains the default line
> width of 6.5 inches.

I also discovered a pair of -me macro bugs that involve line lengths
and environments.  I suspect these bugs are related to each other; I
don't yet know enough to guess whether they're related to the problem
you describe above, but they cover the same ground at least.  I reported
them to bug-groff several months ago, and have not yet received a reply.

1. The following input file:

The quick brown fox
jumped over a quick brown fox which
jumped over a quick brown fox which
jumped over a quick brown fox which
jumped over a quick brown fox which
jumped over a quick brown fox which
jumped over a quick brown fox which
jumped over a quick brown fox which
jumped over a quick brown fox which
.ev foo
jumped over a quick brown fox which
jumped over a quick brown fox which
jumped over a quick brown fox which
jumped over a quick brown fox which
jumped over a quick brown fox which
jumped over a quick brown fox which
jumped over a quick brown fox which
jumped over a quick brown fox which
jumped over a quick brown fox which
.ev
jumped over a quick brown fox which
jumped over a quick brown fox which
jumped over a quick brown fox which
jumped over a quick brown fox which
jumped over a quick brown fox which
jumped over a quick brown fox which
jumped over a quick brown fox which
jumped over a quick brown fox which...

produces the expected output (with all lines of equal length) when using
basic groff, but changes line length in the foo environment when using
the -me macro set.  There is nothing in the meref.me documentation that
leads me to believe this is expected behavior, so I presume it's a bug.

2. meref.me documents that the .ll macro sets the line length across all
environments, but it does not work this way.  In particular, if you add
".ll 4i" to the beginning of the sample file above, the line length
still changes when switching environments.

It's possible, of course, that the first bug is a side effect of the
second.  There is a ".ll 6.0i" line near the end of e.tmac which, were
it working as documented, might fix bug 1.  (The -me output in bug 1
looks to me like the line length is going back to the groff default of
6.5i when entering foo.)


From MAILER-DAEMON Wed Feb 22 15:57:24 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1S0JFc-0002aH-50
	for mharc-groff@gnu.org; Wed, 22 Feb 2012 15:57:24 -0500
Received: from eggs.gnu.org ([140.186.70.92]:60630)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1S0JFY-0002YY-Sp
	for groff@gnu.org; Wed, 22 Feb 2012 15:57:21 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1S0JFX-0003cT-OJ
	for groff@gnu.org; Wed, 22 Feb 2012 15:57:20 -0500
Received: from mailout-de.gmx.net ([213.165.64.22]:51008)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1S0JFX-0003cP-Du
	for groff@gnu.org; Wed, 22 Feb 2012 15:57:19 -0500
Received: (qmail invoked by alias); 22 Feb 2012 20:57:18 -0000
Received: from host37-12-static.25-87-b.business.telecomitalia.it (EHLO
	localhost) [87.25.12.37]
	by mail.gmx.net (mp040) with SMTP; 22 Feb 2012 21:57:18 +0100
X-Authenticated: #54312696
X-Provags-ID: V01U2FsdGVkX1+oNT4Y5Tio8dEDA1ug7UmPL9xLYm9HTDGqGCnqca
	uzeOjesdmSVsmo
Date: Wed, 22 Feb 2012 21:57:15 +0100 (CET)
Message-Id: <20120222.215715.109891089.wl@gnu.org>
To: saint.snit@gmail.com
From: Werner LEMBERG <wl@gnu.org>
In-Reply-To: <CACRhBXMQ-UT2NKfmCJpQMHT0=Tkw0tev6xO5_5p7EnKFxy++hw@mail.gmail.com>
References: <20120107.080217.159457058.wl@gnu.org>
	<20120123224556.GB16889@usm.uni-muenchen.de>
	<CACRhBXMQ-UT2NKfmCJpQMHT0=Tkw0tev6xO5_5p7EnKFxy++hw@mail.gmail.com>
X-Mailer: Mew version 6.4rc1 on Emacs 24.0.92.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: Genre and OS details not
	recognized.
X-Received-From: 213.165.64.22
Cc: groff@gnu.org
Subject: Re: [Groff] odd interaction between .bl and .(c in -me macros
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, 22 Feb 2012 20:57:21 -0000


> I also discovered a pair of -me macro bugs that involve line lengths
> and environments.  I suspect these bugs are related to each other; I
> don't yet know enough to guess whether they're related to the
> problem you describe above, but they cover the same ground at least.
> I reported them to bug-groff several months ago, and have not yet
> received a reply.

Writing to the groff list in case nothing has happened meanwhile
(because I don't have time/knowledge/energy to work on it) is the
right thing :-)

Sorry for being so selective w.r.t. bug handling.  Working on FreeType
and ttfautohint sucks almost all of my time.


    Werner


From MAILER-DAEMON Thu Feb 23 10:12:06 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1S0aL0-0003FH-H4
	for mharc-groff@gnu.org; Thu, 23 Feb 2012 10:12:06 -0500
Received: from eggs.gnu.org ([140.186.70.92]:47495)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <the.tail.kinker@gmail.com>) id 1S0aKt-0003F9-MZ
	for groff@gnu.org; Thu, 23 Feb 2012 10:12:05 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <the.tail.kinker@gmail.com>) id 1S0aKs-0004Fr-N0
	for groff@gnu.org; Thu, 23 Feb 2012 10:11:59 -0500
Received: from mail-gy0-f169.google.com ([209.85.160.169]:60769)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <the.tail.kinker@gmail.com>) id 1S0aKs-0004Fl-Kc
	for groff@gnu.org; Thu, 23 Feb 2012 10:11:58 -0500
Received: by ghrr18 with SMTP id r18so742219ghr.0
	for <groff@gnu.org>; Thu, 23 Feb 2012 07:11:57 -0800 (PST)
Received-SPF: pass (google.com: domain of the.tail.kinker@gmail.com designates
	10.50.203.98 as permitted sender) client-ip=10.50.203.98; 
Authentication-Results: mr.google.com; spf=pass (google.com: domain of
	the.tail.kinker@gmail.com designates 10.50.203.98 as permitted
	sender) smtp.mail=the.tail.kinker@gmail.com;
	dkim=pass header.i=the.tail.kinker@gmail.com
Received: from mr.google.com ([10.50.203.98])
	by 10.50.203.98 with SMTP id kp2mr2453615igc.5.1330009917815 (num_hops
	= 1); Thu, 23 Feb 2012 07:11:57 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=message-id:date:from:user-agent:mime-version:to:subject
	:content-type:content-transfer-encoding;
	bh=XnsmTpuSA6sMzKnTrIl2oMnc/CCVFLqwaHQ8UbUS0ps=;
	b=t3moJ0TRC+ZCFDi9aUf7I9y/gkWPst4aExX5iQtTcUN+o5LQdIa3qIhYgDZlik906a
	TamUpC98mdUxcSWokk9TIe6pFjeM3ilQcs2NrRs/zAD8DsdncIi4JD0losBm2IKEXQWb
	Ta4ySQQfqoCsXryhCENl5MML/P//vYjq2uf2k=
Received: by 10.50.203.98 with SMTP id kp2mr2100386igc.5.1330009917593;
	Thu, 23 Feb 2012 07:11:57 -0800 (PST)
Received: from [192.168.2.32] (bas1-peterborough62-1242337394.dsl.bell.ca.
	[74.12.144.114])
	by mx.google.com with ESMTPS id z22sm2198886ibg.5.2012.02.23.07.11.56
	(version=SSLv3 cipher=OTHER); Thu, 23 Feb 2012 07:11:57 -0800 (PST)
Message-ID: <4F465767.2090003@gmail.com>
Date: Thu, 23 Feb 2012 10:12:39 -0500
From: Timothy Groves <the.tail.kinker@gmail.com>
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2
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: Genre and OS details not
	recognized.
X-Received-From: 209.85.160.169
Subject: [Groff] Detecting post-processor
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, 23 Feb 2012 15:12:05 -0000

I've got some documents that have to be handled differently depending on 
what post-processor they're heading to.  Primarily, my choices are 
between html, postscript or plain text.  Is there a convenient way for 
groff to detect which post-processor will be used?



From MAILER-DAEMON Thu Feb 23 10:36:01 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1S0ai8-000063-Tv
	for mharc-groff@gnu.org; Thu, 23 Feb 2012 10:36:00 -0500
Received: from eggs.gnu.org ([140.186.70.92]:56464)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1S0ai2-00005j-Cj
	for groff@gnu.org; Thu, 23 Feb 2012 10:35:59 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1S0ahw-0000TH-JD
	for groff@gnu.org; Thu, 23 Feb 2012 10:35:54 -0500
Received: from helix.usm.uni-muenchen.de ([129.187.204.86]:35218)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1S0ahw-0000Sk-Ec
	for groff@gnu.org; Thu, 23 Feb 2012 10:35:48 -0500
Received: by helix.usm.uni-muenchen.de (Postfix, from userid 2097)
	id B16031613063; Thu, 23 Feb 2012 16:35:45 +0100 (CET)
Date: Thu, 23 Feb 2012 16:35:45 +0100
From: Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
To: groff@gnu.org
Message-ID: <20120223153545.GA31307@usm.uni-muenchen.de>
References: <4F465767.2090003@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4F465767.2090003@gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 129.187.204.86
Subject: Re: [Groff] Detecting post-processor
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, 23 Feb 2012 15:36:00 -0000


> Is there a convenient way for groff to detect which
> post-processor will be used?

man 7 groff

  \*[.T]    The name of the current output device as specified
            by the -T command line option.




From MAILER-DAEMON Fri Feb 24 10:35:18 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1S0xB0-0002zQ-Qa
	for mharc-groff@gnu.org; Fri, 24 Feb 2012 10:35:18 -0500
Received: from eggs.gnu.org ([208.118.235.92]:45649)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gcpgg-help-groff@m.gmane.org>) id 1S0xAt-0002vI-1T
	for groff@gnu.org; Fri, 24 Feb 2012 10:35:16 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gcpgg-help-groff@m.gmane.org>) id 1S0xAn-0005A4-DL
	for groff@gnu.org; Fri, 24 Feb 2012 10:35:10 -0500
Received: from plane.gmane.org ([80.91.229.3]:48560)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gcpgg-help-groff@m.gmane.org>) id 1S0xAn-00058i-7H
	for groff@gnu.org; Fri, 24 Feb 2012 10:35:05 -0500
Received: from list by plane.gmane.org with local (Exim 4.69)
	(envelope-from <gcpgg-help-groff@m.gmane.org>) id 1S0xAl-0000iQ-9T
	for groff@gnu.org; Fri, 24 Feb 2012 16:35:03 +0100
Received: from 3904ds1-od.0.fullrate.dk ([90.185.65.180])
	by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
	id 1AlnuQ-0007hv-00
	for <groff@gnu.org>; Fri, 24 Feb 2012 16:35:03 +0100
Received: from mbj by 3904ds1-od.0.fullrate.dk with local (Gmexim 0.1 (Debian))
	id 1AlnuQ-0007hv-00
	for <groff@gnu.org>; Fri, 24 Feb 2012 16:35:03 +0100
X-Injected-Via-Gmane: http://gmane.org/
To: groff@gnu.org
From: Morten Bo Johansen <mbj@spamcop.net>
Date: Fri, 24 Feb 2012 16:26:37 +0100
Lines: 19
Message-ID: <slrnjkfb1d.akr.mbj@gatsby.mbjnet.dk>
X-Complaints-To: usenet@dough.gmane.org
X-Gmane-NNTP-Posting-Host: 3904ds1-od.0.fullrate.dk
User-Agent: slrn/pre1.0.0-26 (Linux)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 80.91.229.3
Subject: [Groff] postscript (ps) device and utf8
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: mbj@spamcop.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: Fri, 24 Feb 2012 15:35:16 -0000

Hi,

Is there some way that I can print a file that contains wide
characters with the "ps" device?

I need to use the ps device to preserve the typography (it
seems), but the wide characters are not printed correctly.

I suppose that I need to specify a utf8 font for the ps output
device?

I use the following command line:

  groff -mm -Tps <file>.mm | lpr -PHL-2030-series


Thanks,

Morten



From MAILER-DAEMON Fri Feb 24 10:48:22 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1S0xNe-0007Hc-MZ
	for mharc-groff@gnu.org; Fri, 24 Feb 2012 10:48:22 -0500
Received: from eggs.gnu.org ([208.118.235.92]:54070)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1S0xNZ-0007HR-MQ
	for groff@gnu.org; Fri, 24 Feb 2012 10:48:21 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1S0xNV-0007CC-D4
	for groff@gnu.org; Fri, 24 Feb 2012 10:48:17 -0500
Received: from helix.usm.uni-muenchen.de ([129.187.204.86]:32869)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1S0xNV-0007Bv-7B
	for groff@gnu.org; Fri, 24 Feb 2012 10:48:13 -0500
Received: by helix.usm.uni-muenchen.de (Postfix, from userid 2097)
	id 92A381613063; Fri, 24 Feb 2012 16:48:10 +0100 (CET)
Date: Fri, 24 Feb 2012 16:48:10 +0100
From: Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
To: groff@gnu.org
Message-ID: <20120224154810.GB18312@usm.uni-muenchen.de>
References: <20120101153404.GA8712@usm.uni-muenchen.de>
	<CACRhBXO35_MwnF=nFWQzh7p5ZC88U3YMZdFQF-p1Gk=RYskgwQ@mail.gmail.com>
	<20120105200628.GE13517@usm.uni-muenchen.de>
	<20120107.080217.159457058.wl@gnu.org>
	<20120123224556.GB16889@usm.uni-muenchen.de>
	<CACRhBXMQ-UT2NKfmCJpQMHT0=Tkw0tev6xO5_5p7EnKFxy++hw@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CACRhBXMQ-UT2NKfmCJpQMHT0=Tkw0tev6xO5_5p7EnKFxy++hw@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 129.187.204.86
Subject: Re: [Groff] odd interaction between .bl and .(c in -me macros
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, 24 Feb 2012 15:48:22 -0000


[...]
> produces the expected output (with all lines of equal length)
> when using basic groff,

because *all* lines are the default length

> but changes line length in the foo environment when using the
> -me macro set.

because the line length in environment 0 ("normal" text) has been
changed by the me macros, but environment foo retains the default
line length.


> There is nothing in the meref.me documentation that leads me
> to believe this is expected behavior, so I presume it's a bug.
> 
> 2. meref.me documents that the .ll macro sets the line length
> across all environments, but it does not work this way.

I don't thinks it's even possible to achieve this, so it must
be an error in the documentation, not in the macros.

In the old troff, it would have been possible to redefine "ll"
so that it changes the line lengths in all environments (there
were only three, "0", "1", and "2"), but in groff where you can
create new environments on the fly, this is surely not possible.
How is an "ll" at the beginning of the document going to know
which environments will be created later on?

Of course it is possible to redefine "ev" to switch to the
new environment and set the line length, but this is also
not without problems: often, environments are used to process
different parts of the text (e.g., you might use a separate
environment to process footnotes), and so you often do want to
have different parameters for the different environments. In
this case blindly setting the line length when entering the
environment is not desirable.

The best solution would probably be not to use the low-level
requests directly, but instead to define higher-level macros
for specific purposes.  (Have you looked at macro "@C" as a
wrapper around "ev"?)

(And, of course, having some knowledge of the design principles
behind groff is helpful for debugging.)




From MAILER-DAEMON Fri Feb 24 14:34:17 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1S10uH-00045e-QU
	for mharc-groff@gnu.org; Fri, 24 Feb 2012 14:34:17 -0500
Received: from eggs.gnu.org ([208.118.235.92]:55371)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <volker@volker-wolfram.de>) id 1S10uE-00045X-WB
	for groff@gnu.org; Fri, 24 Feb 2012 14:34:16 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <volker@volker-wolfram.de>) id 1S10uD-0002up-QY
	for groff@gnu.org; Fri, 24 Feb 2012 14:34:14 -0500
Received: from srv052.fs-itsolutions.de ([83.151.25.206]:37315)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <volker@volker-wolfram.de>) id 1S10uD-0002uE-KW
	for groff@gnu.org; Fri, 24 Feb 2012 14:34:13 -0500
Received: from localhost (localhost [127.0.0.1])
	by srv052.fs-itsolutions.de (Postfix) with ESMTP id D437D14A0C46;
	Fri, 24 Feb 2012 20:34:10 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at srv052.fs-itsolutions.de
Received: from srv052.fs-itsolutions.de ([127.0.0.1])
	by localhost (srv052.fs-itsolutions.de [127.0.0.1]) (amavisd-new,
	port 10024)
	with ESMTP id H-l8S3kxrDrB; Fri, 24 Feb 2012 20:34:10 +0100 (CET)
Received: from november.winter.de (p5B2BB030.dip.t-dialin.net [91.43.176.48])
	by srv052.fs-itsolutions.de (Postfix) with ESMTPA id 83E6A14A0C04;
	Fri, 24 Feb 2012 20:34:10 +0100 (CET)
Date: Fri, 24 Feb 2012 20:35:36 +0100
From: volker@volker-wolfram.de (Volker Wolfram)
To: mbj@spamcop.net, groff@gnu.org
Message-ID: <4f47e688.uBDcWDzDMTRSI00q%volker@volker-wolfram.de>
References: <slrnjkfb1d.akr.mbj@gatsby.mbjnet.dk>
In-Reply-To: <slrnjkfb1d.akr.mbj@gatsby.mbjnet.dk>
User-Agent: Heirloom mailx 12.4 7/29/08
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.6 (newer, 3)
X-Received-From: 83.151.25.206
Subject: Re: [Groff] postscript (ps) device and utf8
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, 24 Feb 2012 19:34:16 -0000

Morten Bo Johansen <mbj@spamcop.net> wrote:

> Hi,
>
> Is there some way that I can print a file that contains wide
> characters with the "ps" device?
>
> I need to use the ps device to preserve the typography (it
> seems), but the wide characters are not printed correctly.
>
> I suppose that I need to specify a utf8 font for the ps output
> device?
>
> I use the following command line:
>
>   groff -mm -Tps <file>.mm | lpr -PHL-2030-series
>
>
> Thanks,
>
> Morten
>

Hi Morten,

I'm using this command in my printing workflow:

GNU groff version 1.21
Copyright (C) 2009 Free Software Foundation, Inc.
GNU groff comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of groff and its subprograms
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

called subprograms:

GNU grops (groff) version 1.21
GNU troff (groff) version 1.21

This is my workflow makefile:
---snip
template = text
default:
	echo $(template)
text:
	groff -Tps -k -K utf-8 -dpaper=a4l -P-pa4 -P-l -mm $(template).tr > $(template).ps
	ps2pdf14 $(template).ps
	mupdf $(template).pdf
print:
	lpr -Prp $(template).ps
---snap

Regards,

echo 'HUE\a'
-- 
Volker Wolfram
good old europe

We have joy we have fun
there's no LINUX in the SUN.


From MAILER-DAEMON Fri Feb 24 15:46:20 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1S121z-0003e1-Rd
	for mharc-groff@gnu.org; Fri, 24 Feb 2012 15:46:19 -0500
Received: from eggs.gnu.org ([208.118.235.92]:59114)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gcpgg-help-groff@m.gmane.org>) id 1S121u-0003YU-Cv
	for groff@gnu.org; Fri, 24 Feb 2012 15:46:15 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gcpgg-help-groff@m.gmane.org>) id 1S121t-0007jy-4Z
	for groff@gnu.org; Fri, 24 Feb 2012 15:46:14 -0500
Received: from plane.gmane.org ([80.91.229.3]:35110)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gcpgg-help-groff@m.gmane.org>) id 1S121s-0007jt-UF
	for groff@gnu.org; Fri, 24 Feb 2012 15:46:13 -0500
Received: from list by plane.gmane.org with local (Exim 4.69)
	(envelope-from <gcpgg-help-groff@m.gmane.org>) id 1S121p-0007oQ-Hs
	for groff@gnu.org; Fri, 24 Feb 2012 21:46:09 +0100
Received: from 3904ds1-od.0.fullrate.dk ([90.185.65.180])
	by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
	id 1AlnuQ-0007hv-00
	for <groff@gnu.org>; Fri, 24 Feb 2012 21:46:09 +0100
Received: from mbj by 3904ds1-od.0.fullrate.dk with local (Gmexim 0.1 (Debian))
	id 1AlnuQ-0007hv-00
	for <groff@gnu.org>; Fri, 24 Feb 2012 21:46:09 +0100
X-Injected-Via-Gmane: http://gmane.org/
To: groff@gnu.org
From: Morten Bo Johansen <mbj@spamcop.net>
Date: Fri, 24 Feb 2012 21:45:56 +0100
Lines: 22
Message-ID: <slrnjkfto6.gci.mbj@gatsby.mbjnet.dk>
References: <slrnjkfb1d.akr.mbj@gatsby.mbjnet.dk>
	<4f47e688.uBDcWDzDMTRSI00q%volker__47420.8377454945$1330112064$gmane$org@volker-wolfram.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Complaints-To: usenet@dough.gmane.org
X-Gmane-NNTP-Posting-Host: 3904ds1-od.0.fullrate.dk
User-Agent: slrn/pre1.0.0-26 (Linux)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 80.91.229.3
Subject: Re: [Groff] postscript (ps) device and utf8
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: mbj@spamcop.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: Fri, 24 Feb 2012 20:46:15 -0000

Volker Wolfram <volker@volker-wolfram.de> wrote:

> I'm using this command in my printing workflow:

[...]

> This is my workflow makefile:
> ---snip
> template = text
> default:
> 	echo $(template)
> text:
> 	groff -Tps -k -K utf-8 -dpaper¤l -P-pa4 -P-l -mm $(template).tr > $(template).ps
> 	ps2pdf14 $(template).ps
> 	mupdf $(template).pdf
> print:
> 	lpr -Prp $(template).ps

Perfect, thanks!

Morten




From MAILER-DAEMON Fri Feb 24 15:54:39 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1S12A3-0005d2-17
	for mharc-groff@gnu.org; Fri, 24 Feb 2012 15:54:39 -0500
Received: from eggs.gnu.org ([208.118.235.92]:54978)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <guru@unixarea.de>) id 1S129z-0005cn-Tj
	for groff@gnu.org; Fri, 24 Feb 2012 15:54:37 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <guru@unixarea.de>) id 1S129y-0001CU-NG
	for groff@gnu.org; Fri, 24 Feb 2012 15:54:35 -0500
Received: from ms16-1.1blu.de ([89.202.0.34]:39303)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <guru@unixarea.de>) id 1S129y-0001C4-HR
	for groff@gnu.org; Fri, 24 Feb 2012 15:54:34 -0500
Received: from [82.113.106.62] (helo=tiny.Sisis.de)
	by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.69) (envelope-from <guru@unixarea.de>) id 1S129w-0007zo-7Z
	for groff@gnu.org; Fri, 24 Feb 2012 21:54:32 +0100
Received: from tiny.Sisis.de (localhost [127.0.0.1])
	by tiny.Sisis.de (8.14.5/8.14.3) with ESMTP id q1OKsTD8001544
	for <groff@gnu.org>; Fri, 24 Feb 2012 21:54:30 +0100 (CET)
	(envelope-from guru@unixarea.de)
Received: (from guru@localhost)
	by tiny.Sisis.de (8.14.5/8.14.3/Submit) id q1OKsTW4001543
	for groff@gnu.org; Fri, 24 Feb 2012 21:54:29 +0100 (CET)
	(envelope-from guru@unixarea.de)
X-Authentication-Warning: tiny.Sisis.de: guru set sender to guru@unixarea.de
	using -f
Date: Fri, 24 Feb 2012 21:54:28 +0100
From: Matthias Apitz <guru@unixarea.de>
To: groff@gnu.org
Message-ID: <20120224205428.GA1536@tiny>
References: <slrnjkfb1d.akr.mbj@gatsby.mbjnet.dk>
	<4f47e688.uBDcWDzDMTRSI00q%volker@volker-wolfram.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <4f47e688.uBDcWDzDMTRSI00q%volker@volker-wolfram.de>
X-Operating-System: FreeBSD 10.0-CURRENT r226986 (i386)
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Con-Id: 51246
X-Con-U: 0-guru
X-Originating-IP: 82.113.106.62
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 89.202.0.34
Subject: Re: [Groff] postscript (ps) device and utf8
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: Matthias Apitz <guru@unixarea.de>
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, 24 Feb 2012 20:54:37 -0000

El día Friday, February 24, 2012 a las 08:35:36PM +0100, Volker Wolfram escribió:

> This is my workflow makefile:
> ---snip
> template = text
> default:
> 	echo $(template)
> text:
> 	groff -Tps -k -K utf-8 -dpaper=a4l -P-pa4 -P-l -mm $(template).tr > $(template).ps
> 	ps2pdf14 $(template).ps
> 	mupdf $(template).pdf
> print:
> 	lpr -Prp $(template).ps
> ---snap

Hello Volker,

What areas of UTF-8 codepoints are supported by this groff/grops?
As well CJK?

Thanks

	matthias
-- 
Matthias Apitz
e <guru@unixarea.de> - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5


From MAILER-DAEMON Sat Feb 25 23:29:30 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1S1Vjm-0001H8-90
	for mharc-groff@gnu.org; Sat, 25 Feb 2012 23:29:30 -0500
Received: from eggs.gnu.org ([208.118.235.92]:52299)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <aliqrudi@gmail.com>) id 1S1Vje-0001EY-8a
	for groff@gnu.org; Sat, 25 Feb 2012 23:29:28 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <aliqrudi@gmail.com>) id 1S1VjW-0008Kl-JU
	for groff@gnu.org; Sat, 25 Feb 2012 23:29:22 -0500
Received: from mail-wi0-f169.google.com ([209.85.212.169]:36680)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <aliqrudi@gmail.com>) id 1S1VjW-0008KX-9j
	for groff@gnu.org; Sat, 25 Feb 2012 23:29:14 -0500
Received: by wibhj13 with SMTP id hj13so2917232wib.0
	for <groff@gnu.org>; Sat, 25 Feb 2012 20:29:13 -0800 (PST)
Received-SPF: pass (google.com: domain of aliqrudi@gmail.com designates
	10.180.104.4 as permitted sender) client-ip=10.180.104.4; 
Authentication-Results: mr.google.com;
	spf=pass (google.com: domain of aliqrudi@gmail.com
	designates 10.180.104.4 as permitted sender)
	smtp.mail=aliqrudi@gmail.com;
	dkim=pass header.i=aliqrudi@gmail.com
Received: from mr.google.com ([10.180.104.4])
	by 10.180.104.4 with SMTP id ga4mr8040753wib.17.1330230553048 (num_hops
	= 1); Sat, 25 Feb 2012 20:29:13 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=date:from:to:subject:message-id:user-agent:mime-version
	:content-type; bh=SRXbVSS4WWJ34cwzy7Au0GdPdwFA2KUBe3YzGkhAsPM=;
	b=JxqEHOdItNTLEJulM4+UobgJAr/W7Vmr3oPMIX85MevvAUoECMgpMdt+bMYF+4R48J
	bl/Hf+hWnVB9PP+Mo9Tuxs8DJUfJupB0YGnfunQSs4uLjJjvMkPDS7Ch6hbpfLGiOSzG
	XjnI8lh6kfLPwYeAkHJNl5DZuZCuMcCn97lTQ=
Received: by 10.180.104.4 with SMTP id ga4mr6361875wib.17.1330230552979;
	Sat, 25 Feb 2012 20:29:12 -0800 (PST)
Received: from lilem.mirepesht ([80.191.3.110])
	by mx.google.com with ESMTPS id fl2sm33791758wib.4.2012.02.25.20.29.10
	(version=SSLv3 cipher=OTHER); Sat, 25 Feb 2012 20:29:11 -0800 (PST)
Date: Sun, 26 Feb 2012 08:00:47 +0330
From: Ali Gholami Rudi <aliqrudi@gmail.com>
To: groff@gnu.org
Message-ID: <4f49b577.x3G06jTnGacbyrbjKcDood8n@lilem.mirepesht>
User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: multipart/mixed;
	boundary="=_4f49b577.u2RXZq+42Oy8NDVO4hiut2tV3vEe67X27wCok6sTVCFBVfbv"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.212.169
Subject: [Groff] Misplaced glyphs
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, 26 Feb 2012 04:29:28 -0000

This is a multi-part message in MIME format.

--=_4f49b577.u2RXZq+42Oy8NDVO4hiut2tV3vEe67X27wCok6sTVCFBVfbv
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,

Unfortunately some of the glyphs in ghostscript symbol font are misplaced,
which cause bad table rendering, among other things, in the original
troff and its descendants; the same behavior can be observed in solaris
troff, heirloom troff, and plan9 troff with little differences.  See the
attached file which has been created using my linux port of plan9 troff
(http://repo.or.cz/w/troff.git).

I don't know what's the best way of fixing it, but I can think of the
following solutions.  The last two seem cleaner but I don't have the
necessary postscript skills to judge how easy they are:

* Adding per glyph horizontal and vertical displacements in troff font
  description files
* Adding charlib glyphs for the problematic ones (I don't know what's its
  groff equivalent)
* Adding a postscript prolog to fix those glyphs

On the other hand, groff places \(br and \(rn correctly.  How does it
do it?

Note that gnu eqn seems to handle large brackets and sqrt using special
characters (\[bracketrightex] instead of \(bv which the original eqn
uses).

Regards,
Ali

Troff source of the attached file:

.LP
Bad br:
.TS
box;
c.
box
.TE
.sp 2
.LP
Bad rn and br,
\(bragain\l'|0\(rn'\l'|0\(ul'\(br
.sp 2
.LP
Bad rn, \(sr\(rn, and large brackets lc, lf, rc, rf,
\b'\(lc\(bv\(lf' \b'\(rc\(bv\(rf':
.br
.EQ L ""
c =
left [
sqrt { a } over b
right ]
.EN

--=_4f49b577.u2RXZq+42Oy8NDVO4hiut2tV3vEe67X27wCok6sTVCFBVfbv
Content-Type: application/pdf
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="test.pdf"

JVBERi0xLjQKJcfsj6IKNSAwIG9iago8PC9MZW5ndGggNiAwIFIvRmlsdGVyIC9GbGF0ZURl
Y29kZT4+CnN0cmVhbQp4nHVSy07DMBC8+yt8w5Ea41fipBKXSggJcQHlVqE2TdsIaIvacuBL
+YUKceCMuLBru0kalUSJH7PemZ31lgouqcA3jNWaXD5YWu+JoDfw1WRLpAugYajWdFRAUIYb
xZL4c5JaRa3IaLEmYzYq51GsTM5mu2H0WNxCeB7CIeKOsAk+0UUnTUJjqWgxJ2z2+h4Vz50j
MWAe8scARErcOPiFaRcKgs0/WMsWu7Ccpwh29O42OFpWbtxGCgUMegUkeEqcS6p5FoCyLp82
vSIadMymkUkFm+LjkosjMHGAq/IQaBvFjjfW5zT3JWrJ86DkY3qqUQqeHNkGcD4Rba2rclcv
cCqh7LJ6WbztYaUztqow1MBkOQicfkez3bJPLpUFidLTfyI7zqHn39Bv9gW/lGuqPP6DuEd+
T64DuhVyDH0FUhydkBne1lilUAoGVKdOp00brhCw4EXGbSunFdJJ6nxRIeGsSSgdoeGKSu1N
A0N1brhJEjYNlTdJ0sb2snfdMm6gd8cm68Q1uW+cBXobJPSMuS7IPbx/ekDcYGVuZHN0cmVh
bQplbmRvYmoKNiAwIG9iago0MTAKZW5kb2JqCjQgMCBvYmoKPDwvVHlwZS9QYWdlL01lZGlh
Qm94IFswIDAgNjEyIDc5Ml0KL1JvdGF0ZSAwL1BhcmVudCAzIDAgUgovUmVzb3VyY2VzPDwv
UHJvY1NldFsvUERGIC9UZXh0XQovRXh0R1N0YXRlIDExIDAgUgovRm9udCAxMiAwIFIKPj4K
L0NvbnRlbnRzIDUgMCBSCj4+CmVuZG9iagozIDAgb2JqCjw8IC9UeXBlIC9QYWdlcyAvS2lk
cyBbCjQgMCBSCl0gL0NvdW50IDEKPj4KZW5kb2JqCjEgMCBvYmoKPDwvVHlwZSAvQ2F0YWxv
ZyAvUGFnZXMgMyAwIFIKL01ldGFkYXRhIDE0IDAgUgo+PgplbmRvYmoKNyAwIG9iago8PC9U
eXBlL0V4dEdTdGF0ZQovT1BNIDE+PmVuZG9iagoxMSAwIG9iago8PC9SNwo3IDAgUj4+CmVu
ZG9iagoxMiAwIG9iago8PC9SOQo5IDAgUi9SOAo4IDAgUi9SMTAKMTAgMCBSPj4KZW5kb2Jq
CjkgMCBvYmoKPDwvQmFzZUZvbnQvU3ltYm9sL1R5cGUvRm9udAovRW5jb2RpbmcgMTMgMCBS
L1N1YnR5cGUvVHlwZTE+PgplbmRvYmoKMTMgMCBvYmoKPDwvVHlwZS9FbmNvZGluZy9CYXNl
RW5jb2RpbmcvV2luQW5zaUVuY29kaW5nL0RpZmZlcmVuY2VzWwo5Ni9yYWRpY2FsZXgKMjE0
L3JhZGljYWwKMjMxL3BhcmVubGVmdGV4CjIzMy9icmFja2V0bGVmdHRwCjIzNS9icmFja2V0
bGVmdGJ0CjIzOS9icmFjZWV4CjI0OS9icmFja2V0cmlnaHR0cAoyNTEvYnJhY2tldHJpZ2h0
YnRdPj4KZW5kb2JqCjggMCBvYmoKPDwvQmFzZUZvbnQvVGltZXMtUm9tYW4vVHlwZS9Gb250
Ci9TdWJ0eXBlL1R5cGUxPj4KZW5kb2JqCjEwIDAgb2JqCjw8L0Jhc2VGb250L1RpbWVzLUl0
YWxpYy9UeXBlL0ZvbnQKL1N1YnR5cGUvVHlwZTE+PgplbmRvYmoKMTQgMCBvYmoKPDwvVHlw
ZS9NZXRhZGF0YQovU3VidHlwZS9YTUwvTGVuZ3RoIDEzMDY+PnN0cmVhbQo8P3hwYWNrZXQg
YmVnaW49J++7vycgaWQ9J1c1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCc/Pgo8P2Fkb2JlLXhh
cC1maWx0ZXJzIGVzYz0iQ1JMRiI/Pgo8eDp4bXBtZXRhIHhtbG5zOng9J2Fkb2JlOm5zOm1l
dGEvJyB4OnhtcHRrPSdYTVAgdG9vbGtpdCAyLjkuMS0xMywgZnJhbWV3b3JrIDEuNic+Cjxy
ZGY6UkRGIHhtbG5zOnJkZj0naHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3lu
dGF4LW5zIycgeG1sbnM6aVg9J2h0dHA6Ly9ucy5hZG9iZS5jb20vaVgvMS4wLyc+CjxyZGY6
RGVzY3JpcHRpb24gcmRmOmFib3V0PScyNzcxOTc5OS05ODRkLTExZWMtMDAwMC0wYzQyZDMw
ODYzYjUnIHhtbG5zOnBkZj0naHR0cDovL25zLmFkb2JlLmNvbS9wZGYvMS4zLycgcGRmOlBy
b2R1Y2VyPSdHUEwgR2hvc3RzY3JpcHQgIDkuMCcvPgo8cmRmOkRlc2NyaXB0aW9uIHJkZjph
Ym91dD0nMjc3MTk3OTktOTg0ZC0xMWVjLTAwMDAtMGM0MmQzMDg2M2I1JyB4bWxuczp4bXA9
J2h0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8nPjx4bXA6TW9kaWZ5RGF0ZT4yMDEyLTAy
LTI2VDA3OjQ2OjA3KzAzOjMwPC94bXA6TW9kaWZ5RGF0ZT4KPHhtcDpDcmVhdGVEYXRlPjIw
MTItMDItMjZUMDc6NDY6MDcrMDM6MzA8L3htcDpDcmVhdGVEYXRlPgo8eG1wOkNyZWF0b3JU
b29sPnRyb2ZmPC94bXA6Q3JlYXRvclRvb2w+PC9yZGY6RGVzY3JpcHRpb24+CjxyZGY6RGVz
Y3JpcHRpb24gcmRmOmFib3V0PScyNzcxOTc5OS05ODRkLTExZWMtMDAwMC0wYzQyZDMwODYz
YjUnIHhtbG5zOnhhcE1NPSdodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vJyB4YXBN
TTpEb2N1bWVudElEPScyNzcxOTc5OS05ODRkLTExZWMtMDAwMC0wYzQyZDMwODYzYjUnLz4K
PHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9JzI3NzE5Nzk5LTk4NGQtMTFlYy0wMDAwLTBj
NDJkMzA4NjNiNScgeG1sbnM6ZGM9J2h0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEv
JyBkYzpmb3JtYXQ9J2FwcGxpY2F0aW9uL3BkZic+PGRjOnRpdGxlPjxyZGY6QWx0PjxyZGY6
bGkgeG1sOmxhbmc9J3gtZGVmYXVsdCc+VW50aXRsZWQ8L3JkZjpsaT48L3JkZjpBbHQ+PC9k
Yzp0aXRsZT48L3JkZjpEZXNjcmlwdGlvbj4KPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSd3Jz8+
CmVuZHN0cmVhbQplbmRvYmoKMiAwIG9iago8PC9Qcm9kdWNlcihHUEwgR2hvc3RzY3JpcHQg
IDkuMCkKL0NyZWF0aW9uRGF0ZShEOjIwMTIwMjI2MDc0NjA3KzAzJzMwJykKL01vZERhdGUo
RDoyMDEyMDIyNjA3NDYwNyswMyczMCcpCi9DcmVhdG9yKHRyb2ZmKT4+ZW5kb2JqCnhyZWYK
MCAxNQowMDAwMDAwMDAwIDY1NTM1IGYgCjAwMDAwMDA3MzMgMDAwMDAgbiAKMDAwMDAwMjcx
OCAwMDAwMCBuIAowMDAwMDAwNjc0IDAwMDAwIG4gCjAwMDAwMDA1MTQgMDAwMDAgbiAKMDAw
MDAwMDAxNSAwMDAwMCBuIAowMDAwMDAwNDk1IDAwMDAwIG4gCjAwMDAwMDA3OTggMDAwMDAg
biAKMDAwMDAwMTIwMSAwMDAwMCBuIAowMDAwMDAwOTE5IDAwMDAwIG4gCjAwMDAwMDEyNjcg
MDAwMDAgbiAKMDAwMDAwMDgzOSAwMDAwMCBuIAowMDAwMDAwODY5IDAwMDAwIG4gCjAwMDAw
MDA5OTYgMDAwMDAgbiAKMDAwMDAwMTMzNSAwMDAwMCBuIAp0cmFpbGVyCjw8IC9TaXplIDE1
IC9Sb290IDEgMCBSIC9JbmZvIDIgMCBSCi9JRCBbPDIwOTEzQzU5MURDRjMzQkUyQUY1RjY2
MjY2NDg1MUQ1PjwyMDkxM0M1OTFEQ0YzM0JFMkFGNUY2NjI2NjQ4NTFENT5dCj4+CnN0YXJ0
eHJlZgoyODU3CiUlRU9GCg==

--=_4f49b577.u2RXZq+42Oy8NDVO4hiut2tV3vEe67X27wCok6sTVCFBVfbv--



From MAILER-DAEMON Sun Feb 26 03:38:16 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1S1ZcW-0003uV-9O
	for mharc-groff@gnu.org; Sun, 26 Feb 2012 03:38:16 -0500
Received: from eggs.gnu.org ([208.118.235.92]:48483)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <cloos@jhcloos.com>) id 1S1ZcP-0003tq-Hn
	for groff@gnu.org; Sun, 26 Feb 2012 03:38:14 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <cloos@jhcloos.com>) id 1S1ZcK-0003P2-Dn
	for groff@gnu.org; Sun, 26 Feb 2012 03:38:09 -0500
Received: from eagle.jhcloos.com ([207.210.242.212]:41328)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <cloos@jhcloos.com>) id 1S1ZcK-0003Oi-7b
	for groff@gnu.org; Sun, 26 Feb 2012 03:38:04 -0500
Received: by eagle.jhcloos.com (Postfix, from userid 10)
	id 408A540694; Sun, 26 Feb 2012 08:37:38 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jhcloos.com;
	s=eagle; t=1330245482;
	bh=BKjzfcLji+Esz3bjnoGUJMMgjGm57KWsuZ07aG+cvBQ=;
	h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:
	MIME-Version:Content-Type;
	b=I2MJg7obz6UthB94NimlvUIKHij6OKZFRaXEmmbsNqcmjskA1jnAtDwsrQh8EpwD6
	eCZWX2IPZr2jhTSMejWG+wO8ZQI8aUE1ucvlp+Y2Y5Yn8G7WqLgyT1kq49KzlLemb3
	tQ1w9Qg3graVGAsin4ruBFwzO6htnvWwyvHXyZ9E=
Received: by carbon.jhcloos.org (Postfix, from userid 500)
	id 9BA5D36004C; Sun, 26 Feb 2012 08:32:05 +0000 (UTC)
From: James Cloos <cloos@jhcloos.com>
To: groff@gnu.org
In-Reply-To: <4f49b577.x3G06jTnGacbyrbjKcDood8n@lilem.mirepesht> (Ali Gholami
	Rudi's message of "Sun, 26 Feb 2012 08:00:47 +0330")
References: <4f49b577.x3G06jTnGacbyrbjKcDood8n@lilem.mirepesht>
User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.93 (gnu/linux)
Face: iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAACVBMVEX///8ZGXBQKKnCrDQ3
	AAAAJElEQVQImWNgQAAXzwQg4SKASgAlXIEEiwsSIYBEcLaAtMEAADJnB+kKcKioAAAAAElFTkSu
	QmCC
Copyright: Copyright 2012 James Cloos
OpenPGP: ED7DAEA6; url=http://jhcloos.com/public_key/0xED7DAEA6.asc
OpenPGP-Fingerprint: E9E9 F828 61A4 6EA9 0F2B  63E7 997A 9F17 ED7D AEA6
Date: Sun, 26 Feb 2012 03:32:05 -0500
Message-ID: <m34nueouzm.fsf@carbon.jhcloos.org>
Lines: 23
MIME-Version: 1.0
Content-Type: text/plain
X-Hashcash: 1:30:120226:groff@gnu.org::MpX1+A/ctYt7KTnf:000Dl7Ca
X-Hashcash: 1:30:120226:aliqrudi@gmail.com::vsTmHNwUcNIT+w+7:000000000000000000000000000000000000000000wYIfj
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 207.210.242.212
Cc: Ali Gholami Rudi <aliqrudi@gmail.com>
Subject: Re: [Groff] Misplaced glyphs
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, 26 Feb 2012 08:38:14 -0000

>>>>> "AGR" == Ali Gholami Rudi <aliqrudi@gmail.com> writes:

When I tried this, using groff-1.21 as packaged by gentoo, I got
reasonable output for -Tps and -Tdvi for most of the text.

Only the lc, lf, rc, rf chunk had bad alignment.

AGR> Bad ... large brackets lc, lf, rc, rf,
AGR> \b'\(lc\(bv\(lf' \b'\(rc\(bv\(rf'

That rendered with the extensions narrower than the upper and lower
bits, essentially matching the rendering in you pdf.

The problem seems to be the use of CURLY BRACKET EXTENSION between
SQUARE BRACKET UPPER CORNER and SQUARE BRACKET LOWER CORNER glyphs.
Ie, \(bv is not the correct extension (empirically) to use between
the \(lc \(lf and \(rc \(rf pairs.

Everything else, though, looked fine.

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 1024D/ED7DAEA6


From MAILER-DAEMON Sun Feb 26 05:14:19 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1S1b7T-0005lx-8J
	for mharc-groff@gnu.org; Sun, 26 Feb 2012 05:14:19 -0500
Received: from eggs.gnu.org ([208.118.235.92]:52944)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1S1b7L-0005lh-4k
	for groff@gnu.org; Sun, 26 Feb 2012 05:14:17 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1S1b7E-0005it-2Q
	for groff@gnu.org; Sun, 26 Feb 2012 05:14:10 -0500
Received: from relay01.pair.com ([209.68.5.15]:2390)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1S1b7D-0005ig-TW
	for groff@gnu.org; Sun, 26 Feb 2012 05:14:03 -0500
Received: (qmail 73223 invoked from network); 26 Feb 2012 10:14:02 -0000
Received: from 87.115.108.5 (HELO orac.inputplus.co.uk) (87.115.108.5)
	by relay01.pair.com with SMTP; 26 Feb 2012 10:14:02 -0000
X-pair-Authenticated: 87.115.108.5
Received: by orac.inputplus.co.uk (Postfix, from userid 1000)
	id 94FEB251B9; Sun, 26 Feb 2012 10:14:01 +0000 (GMT)
Received: from orac.inputplus.co.uk (localhost [127.0.0.1])
	by orac.inputplus.co.uk (Postfix) with ESMTP id 75F6A1FE53;
	Sun, 26 Feb 2012 10:14:01 +0000 (GMT)
To: James Cloos <cloos@jhcloos.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
In-reply-to: <m34nueouzm.fsf@carbon.jhcloos.org>
References: <4f49b577.x3G06jTnGacbyrbjKcDood8n@lilem.mirepesht>
	<m34nueouzm.fsf@carbon.jhcloos.org>
Comments: In-reply-to James Cloos <cloos@jhcloos.com> message dated "Sun,
	26 Feb 2012 03:32:05 -0500."
Date: Sun, 26 Feb 2012 10:14:01 +0000
From: Ralph Corderoy <ralph@inputplus.co.uk>
Message-Id: <20120226101401.94FEB251B9@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: Ali Gholami Rudi <aliqrudi@gmail.com>, groff@gnu.org
Subject: Re: [Groff] Misplaced glyphs
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, 26 Feb 2012 10:14:18 -0000

Hi,

James Cloos wrote:
> The problem seems to be the use of CURLY BRACKET EXTENSION between
> SQUARE BRACKET UPPER CORNER and SQUARE BRACKET LOWER CORNER glyphs.
> Ie, \(bv is not the correct extension (empirically) to use between the
> \(lc \(lf and \(rc \(rf pairs.

I haven't paid attention thus far but given the surrounding runes to
SQUARE BRACKET UPPER CORNER perhaps these are the right sets to use?

    ⎛ ⎞
    ⎜ ⎟
    ⎝ ⎠

    ⎡ ⎤
    ⎢ ⎥
    ⎣ ⎦

    ⎧ ⎫
    ⎪ ⎮
    ⎨ ⎬
    ⎪ ⎮
    ⎩ ⎭

Cheers, Ralph.


From MAILER-DAEMON Sun Feb 26 05:29:16 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1S1bLw-00079o-1y
	for mharc-groff@gnu.org; Sun, 26 Feb 2012 05:29:16 -0500
Received: from eggs.gnu.org ([208.118.235.92]:48982)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1S1bLn-00079a-Uu
	for groff@gnu.org; Sun, 26 Feb 2012 05:29:14 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1S1bLb-0007O5-A8
	for groff@gnu.org; Sun, 26 Feb 2012 05:29:07 -0500
Received: from mailout-de.gmx.net ([213.165.64.23]:59540)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1S1bLa-0007Nz-Vd
	for groff@gnu.org; Sun, 26 Feb 2012 05:28:55 -0500
Received: (qmail invoked by alias); 26 Feb 2012 10:28:53 -0000
Received: from p5DE864AD.dip.t-dialin.net (EHLO localhost) [93.232.100.173]
	by mail.gmx.net (mp017) with SMTP; 26 Feb 2012 11:28:53 +0100
X-Authenticated: #54312696
X-Provags-ID: V01U2FsdGVkX1+TKwsoSPiTK3s65NzT0lAl9+mEECIG3+/yqnrpIN
	rI59SJwjrdgHTi
Date: Sun, 26 Feb 2012 11:28:54 +0100 (CET)
Message-Id: <20120226.112854.130797911.wl@gnu.org>
To: cloos@jhcloos.com
From: Werner LEMBERG <wl@gnu.org>
In-Reply-To: <m34nueouzm.fsf@carbon.jhcloos.org>
References: <4f49b577.x3G06jTnGacbyrbjKcDood8n@lilem.mirepesht>
	<m34nueouzm.fsf@carbon.jhcloos.org>
X-Mailer: Mew version 6.4rc1 on Emacs 24.0.92.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: Genre and OS details not
	recognized.
X-Received-From: 213.165.64.23
Cc: aliqrudi@gmail.com, groff@gnu.org
Subject: Re: [Groff] Misplaced glyphs
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, 26 Feb 2012 10:29:15 -0000


> When I tried this, using groff-1.21 as packaged by gentoo, I got
> reasonable output for -Tps and -Tdvi for most of the text.
> 
> Only the lc, lf, rc, rf chunk had bad alignment.

You might read the section `brackets' in the `groff_char' man page.


    Werner


From MAILER-DAEMON Sun Feb 26 10:05:25 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1S1ffB-00076G-Qu
	for mharc-groff@gnu.org; Sun, 26 Feb 2012 10:05:25 -0500
Received: from eggs.gnu.org ([208.118.235.92]:58277)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <aliqrudi@gmail.com>) id 1S1ff3-00075c-O8
	for groff@gnu.org; Sun, 26 Feb 2012 10:05:24 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <aliqrudi@gmail.com>) id 1S1feu-0000vJ-Ec
	for groff@gnu.org; Sun, 26 Feb 2012 10:05:17 -0500
Received: from mail-bk0-f41.google.com ([209.85.214.41]:60814)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <aliqrudi@gmail.com>)
	id 1S1fem-0000pz-HF; Sun, 26 Feb 2012 10:05:00 -0500
Received: by bkty12 with SMTP id y12so3763062bkt.0
	for <multiple recipients>; Sun, 26 Feb 2012 07:04:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=date:from:to:cc:subject:message-id:in-reply-to:references
	:user-agent; bh=M+rp7W+4mwP7uduXN4ftSuTUeYj4t82uYH0dTM0MpFY=;
	b=kU59k9+nKqzaDZgcysRrjDmIkyKKCZCaHACnC4QCFEYPQMY8XLn7MSqXsNyDUTuuMy
	fRulS/33cwlyhPnEIS3viwwuGa4ZgKVCEVO+SHv+H3UA/6n0+6eDYR1VZM+A7PUySBOc
	rfnVNNluj1QdgEr2Sf5QfVqjaNKdHHpmcaYzw=
Received: by 10.204.155.132 with SMTP id s4mr3837960bkw.43.1330268699203;
	Sun, 26 Feb 2012 07:04:59 -0800 (PST)
Received: from lilem.mirepesht ([2.178.69.181])
	by mx.google.com with ESMTPS id w15sm19474156bku.0.2012.02.26.07.04.56
	(version=SSLv3 cipher=OTHER); Sun, 26 Feb 2012 07:04:58 -0800 (PST)
Date: Sun, 26 Feb 2012 18:25:27 +0330
From: Ali Gholami Rudi <aliqrudi@gmail.com>
To: Werner LEMBERG <wl@gnu.org>
Message-ID: <20122602182527@lilem.mirepesht>
In-Reply-To: <20120226.112854.130797911.wl@gnu.org>
References: <4f49b577.x3G06jTnGacbyrbjKcDood8n@lilem.mirepesht>
	<m34nueouzm.fsf@carbon.jhcloos.org>
	<20120226.112854.130797911.wl@gnu.org>
User-Agent: git://repo.or.cz/mailx.git
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.214.41
Cc: groff@gnu.org
Subject: Re: [Groff] Misplaced glyphs
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, 26 Feb 2012 15:05:24 -0000

Hi Werner,

> > When I tried this, using groff-1.21 as packaged by gentoo, I got
> > reasonable output for -Tps and -Tdvi for most of the text.
> > 
> > Only the lc, lf, rc, rf chunk had bad alignment.
> 
> You might read the section `brackets' in the `groff_char' man page.

Thanks for the pointer.

But what about \(rn and \(br?  The glyphs don't fit well but in groff
they do.  See the table and text box in my previous mail to see how the
original troff renders it.  How does groff do it?

Thanks,
Ali



From MAILER-DAEMON Sun Feb 26 14:27:21 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1S1jkf-0004MT-Cv
	for mharc-groff@gnu.org; Sun, 26 Feb 2012 14:27:21 -0500
Received: from eggs.gnu.org ([208.118.235.92]:56059)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1S1jkd-0004MN-2V
	for groff@gnu.org; Sun, 26 Feb 2012 14:27:19 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1S1jkb-0003lt-UH
	for groff@gnu.org; Sun, 26 Feb 2012 14:27:18 -0500
Received: from mailout-de.gmx.net ([213.165.64.23]:56827)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1S1jkb-0003ll-Jp
	for groff@gnu.org; Sun, 26 Feb 2012 14:27:17 -0500
Received: (qmail invoked by alias); 26 Feb 2012 19:27:16 -0000
Received: from p5DE864AD.dip.t-dialin.net (EHLO localhost) [93.232.100.173]
	by mail.gmx.net (mp019) with SMTP; 26 Feb 2012 20:27:16 +0100
X-Authenticated: #54312696
X-Provags-ID: V01U2FsdGVkX1+KkToIg7OKpRskxXDMhmnI4pKfl+IbxofmX+T6zE
	IfhPP+uXsJ8CJj
Date: Sun, 26 Feb 2012 20:27:14 +0100 (CET)
Message-Id: <20120226.202714.207113539.wl@gnu.org>
To: aliqrudi@gmail.com
From: Werner LEMBERG <wl@gnu.org>
In-Reply-To: <20122602182527@lilem.mirepesht>
References: <m34nueouzm.fsf@carbon.jhcloos.org>
	<20120226.112854.130797911.wl@gnu.org>
	<20122602182527@lilem.mirepesht>
X-Mailer: Mew version 6.4rc1 on Emacs 24.0.92.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: Genre and OS details not
	recognized.
X-Received-From: 213.165.64.23
Cc: groff@gnu.org
Subject: Re: [Groff] Misplaced glyphs
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, 26 Feb 2012 19:27:20 -0000


> But what about \(rn and \(br?  The glyphs don't fit well but in
> groff they do.  See the table and text box in my previous mail to
> see how the original troff renders it.  How does groff do it?

In groff, \[ul], \[rn], and \[br] are not real characters.  Instead,
they are defined with drawing requests.  From ps.tmac (dvi.tmac and
the other driver macro files contain very similar code):

  .\" This is designed so that \(ul, \(rn and \(br form corners.
  .char \[ul] \v'.25m'\D'l .5m 0'\v'-.25m'
  .char \[br] \Z'\v'.25m'\D'l 0 -1m''
  .char \[rn] \v'-.75m'\D'l .5m 0'\v'.75m'


      Werner


From MAILER-DAEMON Sun Feb 26 14:44:36 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1S1k1M-0000la-Gg
	for mharc-groff@gnu.org; Sun, 26 Feb 2012 14:44:36 -0500
Received: from eggs.gnu.org ([208.118.235.92]:55048)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <aliqrudi@gmail.com>) id 1S1k1K-0000lU-D6
	for groff@gnu.org; Sun, 26 Feb 2012 14:44:35 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <aliqrudi@gmail.com>) id 1S1k1J-0006ZN-As
	for groff@gnu.org; Sun, 26 Feb 2012 14:44:34 -0500
Received: from mail-bk0-f41.google.com ([209.85.214.41]:50908)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <aliqrudi@gmail.com>)
	id 1S1k1H-0006Z2-Jf; Sun, 26 Feb 2012 14:44:31 -0500
Received: by bkty12 with SMTP id y12so3859472bkt.0
	for <multiple recipients>; Sun, 26 Feb 2012 11:44:30 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=date:from:to:cc:subject:message-id:in-reply-to:references
	:user-agent; bh=PR7BpPgc9+ZZ0DnMMf9UitCQeLt1V/4pVxuLeHASdPU=;
	b=ZBln9tl5bxC9zjfxpsNUEALVKpfrfRLOV1m/q0sx15U5CYc96789ug03Mtix+bYpAo
	aTY+AxqVIc/ZpUECZ9aIer/+efpcRh1CuMdZy0QHeZlEvchN6oF+e3O1vDHndY2GPNNe
	VMUYQPHdq6HFru+IAsSmJsI42FPaTSOmYPH0E=
Received: by 10.205.122.73 with SMTP id gf9mr4210696bkc.4.1330285470083;
	Sun, 26 Feb 2012 11:44:30 -0800 (PST)
Received: from lilem.mirepesht ([2.178.69.181])
	by mx.google.com with ESMTPS id bw9sm20451973bkb.8.2012.02.26.11.44.26
	(version=SSLv3 cipher=OTHER); Sun, 26 Feb 2012 11:44:29 -0800 (PST)
Date: Sun, 26 Feb 2012 23:05:05 +0330
From: Ali Gholami Rudi <aliqrudi@gmail.com>
To: Werner LEMBERG <wl@gnu.org>
Message-ID: <20122602230505@lilem.mirepesht>
In-Reply-To: <20120226.202714.207113539.wl@gnu.org>
References: <m34nueouzm.fsf@carbon.jhcloos.org>
	<20120226.112854.130797911.wl@gnu.org>
	<20122602182527@lilem.mirepesht>
	<20120226.202714.207113539.wl@gnu.org>
User-Agent: git://repo.or.cz/mailx.git
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.214.41
Cc: groff@gnu.org
Subject: Re: [Groff] Misplaced glyphs
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, 26 Feb 2012 19:44:35 -0000

Werner LEMBERG <wl@gnu.org> wrote:
> > But what about \(rn and \(br?  The glyphs don't fit well but in
> > groff they do.  See the table and text box in my previous mail to
> > see how the original troff renders it.  How does groff do it?
> 
> In groff, \[ul], \[rn], and \[br] are not real characters.  Instead,
> they are defined with drawing requests.  From ps.tmac (dvi.tmac and
> the other driver macro files contain very similar code):
> 
>   .\" This is designed so that \(ul, \(rn and \(br form corners.
>   .char \[ul] \v'.25m'\D'l .5m 0'\v'-.25m'
>   .char \[br] \Z'\v'.25m'\D'l 0 -1m''
>   .char \[rn] \v'-.75m'\D'l .5m 0'\v'.75m'

I see.  Then probably the closest solution in the original troff is
using charlib characters, as it does not support .char macro.  Anyway,
thanks for the helpful answer.

	Ali



From MAILER-DAEMON Tue Feb 28 12:50:36 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1S2RC8-0002s9-Bz
	for mharc-groff@gnu.org; Tue, 28 Feb 2012 12:50:36 -0500
Received: from eggs.gnu.org ([208.118.235.92]:53142)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <erichhoffmann@gmx.de>) id 1S2RBy-0002qG-PZ
	for groff@gnu.org; Tue, 28 Feb 2012 12:50:34 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <erichhoffmann@gmx.de>) id 1S2RBZ-0001qc-Lp
	for groff@gnu.org; Tue, 28 Feb 2012 12:50:26 -0500
Received: from mailout-de.gmx.net ([213.165.64.23]:40198)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <erichhoffmann@gmx.de>) id 1S2RBZ-0001po-BK
	for groff@gnu.org; Tue, 28 Feb 2012 12:50:01 -0500
Received: (qmail invoked by alias); 28 Feb 2012 17:49:55 -0000
Received: from p5B13FBBB.dip.t-dialin.net (EHLO e.h) [91.19.251.187]
	by mail.gmx.net (mp041) with SMTP; 28 Feb 2012 18:49:55 +0100
X-Authenticated: #21150918
X-Provags-ID: V01U2FsdGVkX189CZ86vlQ9eRzHssger3U4VAxRDertEvW+M/FFhh
	gpG9vLloEKsO6W
Date: Tue, 28 Feb 2012 17:49:47 +0100
From: erich hoffmann <erichhoffmann@gmx.de>
To: groff@gnu.org
Message-ID: <20120228174947.2031fdd0@e.h>
In-Reply-To: <20120224154810.GB18312@usm.uni-muenchen.de>
References: <20120101153404.GA8712@usm.uni-muenchen.de>
	<CACRhBXO35_MwnF=nFWQzh7p5ZC88U3YMZdFQF-p1Gk=RYskgwQ@mail.gmail.com>
	<20120105200628.GE13517@usm.uni-muenchen.de>
	<20120107.080217.159457058.wl@gnu.org>
	<20120123224556.GB16889@usm.uni-muenchen.de>
	<CACRhBXMQ-UT2NKfmCJpQMHT0=Tkw0tev6xO5_5p7EnKFxy++hw@mail.gmail.com>
	<20120224154810.GB18312@usm.uni-muenchen.de>
X-Mailer: Claws Mail 3.7.9 (GTK+ 2.24.4; x86_64-slackware-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Y-GMX-Trusted: 0
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 213.165.64.23
Subject: [Groff] editing chinese?
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, 28 Feb 2012 17:50:34 -0000

Hello.

I'm editing chinese texts, which I can do very well in plain text
and format them to printable output with the paps filter (at
http://paps.sourceforge.net), the texts look like:=20

   =E4=BD=A0 =E5=AE=B6 =E6=9C=89 =E5=87=A0 =E5=8F=A3 =E4=BA=BA ?
   =E4=BD=A0=E4=BB=AC =E5=AD=A6=E6=A0=A1 =E6=9C=89 =E5=A4=9A=E5=B0=91 =E5=
=AD=A6=E7=94=9F ?
   =E6=88=91 =E6=83=B3 , =E5=A4=A7=E6=A6=82 =E6=9C=89 =E4=B8=89 =E4=B8=87 =
=E4=B8=AA .
   =E8=80=81=E6=9D=BF =E8=AE=A9 =E6=88=91 =E5=8E=BB =E9=82=A3=E9=87=8C =E5=
=B7=A5=E4=BD=9C .

Then, I know how to do that with tex, having a running texlive
distribution, and I can do that with groff and the -Tutf8 output,
formatting that again with the paps filter to printable output.
This works fine and so far I can live with that.

   Are there chances to generate dvi, ps, pdf output with groff, using
afmtodit or tfmtodit or so?  The idea is to have those chinese symbols
in the source file, and groff can manage them.  I tried to, but it was
very difficult if not impossible for me to figure out the font files,
then I first got error messages and then got lost.  Can someone give
me advice or warn me not to try?

Thanks in advance, Erich



