From MAILER-DAEMON Wed Jul 04 03:15:03 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SmJnj-0002WB-Eo
	for mharc-groff@gnu.org; Wed, 04 Jul 2012 03:15:03 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33894)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <erichhoffmann@gmx.de>) id 1SmJng-0002V0-MV
	for groff@gnu.org; Wed, 04 Jul 2012 03:15:02 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <erichhoffmann@gmx.de>) id 1SmJna-0006T8-Es
	for groff@gnu.org; Wed, 04 Jul 2012 03:15:00 -0400
Received: from mailout-de.gmx.net ([213.165.64.23]:33638)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <erichhoffmann@gmx.de>) id 1SmJna-0006Sl-5X
	for groff@gnu.org; Wed, 04 Jul 2012 03:14:54 -0400
Received: (qmail invoked by alias); 04 Jul 2012 07:14:51 -0000
Received: from p5794DBAE.dip.t-dialin.net (EHLO e.h) [87.148.219.174]
	by mail.gmx.net (mp017) with SMTP; 04 Jul 2012 09:14:51 +0200
X-Authenticated: #21150918
X-Provags-ID: V01U2FsdGVkX18Uwk0PhpgUvmDJg57RWnsLGnMLpoR4cuxJwh4I1c
	jiUwZ7Abpx9jhM
Date: Wed, 4 Jul 2012 07:13:39 +0200
From: erich hoffmann <erichhoffmann@gmx.de>
To: groff@gnu.org
Message-ID: <20120704071339.206abc82@e.h>
In-Reply-To: <XFMail.20120503231332.Ted.Harding@wlandres.net>
References: <20120503182109.GA19588@foveal4.foveal.com>
	<XFMail.20120503231332.Ted.Harding@wlandres.net>
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: Re: [Groff] Eric Raymond on groff and TeX
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, 04 Jul 2012 07:15:02 -0000

Am Thu, 03 May 2012 23:13:32 +0100 (BST)
schrieb (Ted Harding) <Ted.Harding@wlandres.net>:

> To go back to Anton's original posting, where he quoted
> Eric Raymond:
>
[...]
>         All your base <emphasis>are</emphasis> belong to us!
>
>     The  "<emphasis>" and </emphasis>in the line
>     above are called markup tags, or  just  tags
>     for short. They are the instructions to your
>     formatter.
[...]
> On the lines that others have since pointed out, one can
> emulate the "<emphasis>are</emphasis>" (with definitions
> in a "stylesheet") straightforwardly in groff:
>
> .\"Stylesheet definitions:
> .ds emph \fB
> .ds /emph \fP
> .\"..........................
>
> All your base \*[emph]are\*[/emph] belong to us!
>
> You could define \*[emph] as \fI (plain italic), or as \f[BI]
> (bold italic), etc.
[...]

Thank you for that remark.  I needed some time and a hazard to
realize how helpful it is.  I'm writing a small html website for my
own purpose (not to be published), all bash & gvim based (like Clarke
mentioned in this group before) and was facing the problem that I
wanted a plain latin1/utf8 output.  Was working with lynx --dump,
but that needed a lot of handwork afterwards (nothing against lynx!).
Now with your remark in mind, within minutes I wrote a script like this:

--------------------------\

for IN in $(ls *.html); do
            echo -n .
                  sed \
                      -e "1,/<\/head>/d" \
                      -e "s!&\([[:alnum:]]*\);!\\\*[\1]!g" \
                      -e "s!<!\\\*[!g"\
                      -e "s!>!]!g" \
                      $IN | sed -e "1i\
.so tag-definitions.tr" >  ${IN%%.html}.tr
              done
              echo ';'

--------------------------/

The "tag-definitions.tr" containing things like=20

--------------------------\

.ds auml  =C3=A4
.ds ouml  =C3=B6
.ds uuml  =C3=BC
.ds Auml  =C3=84
.ds Ouml  =C3=96
.ds Uuml  =C3=9C
.ds szlig =C3=9F
.ds mdash \\(em
.ds ndash \\(en
(...)

--------------------------/

With a little more time this method might lead to a filter for an MS
source file.  Thanks a lot!  What a lot of time and nerves this can
save...


erich


From MAILER-DAEMON Thu Jul 05 14:28:56 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SmqnQ-0001Wh-07
	for mharc-groff@gnu.org; Thu, 05 Jul 2012 14:28:56 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40421)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <steve@nestor.wlu.ca>) id 1SmqnJ-0001Vz-NK
	for groff@gnu.org; Thu, 05 Jul 2012 14:28:53 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <steve@nestor.wlu.ca>) id 1SmqnD-00047d-Dr
	for groff@gnu.org; Thu, 05 Jul 2012 14:28:49 -0400
Received: from nestor.wlu.ca ([205.189.30.74]:36379)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <steve@nestor.wlu.ca>) id 1SmqnD-00047F-9c
	for groff@gnu.org; Thu, 05 Jul 2012 14:28:43 -0400
Received: from steve by nestor.wlu.ca with local (Exim 4.72)
	(envelope-from <steve@nestor.wlu.ca>) id 1Smqmy-00069H-FH
	for groff@gnu.org; Thu, 05 Jul 2012 14:28:35 -0400
Date: Thu, 5 Jul 2012 14:28:28 -0400
From: Steve Izma <steve@nestor.wlu.ca>
To: groff@gnu.org
Message-ID: <20120705182828.GA23441@nestor.wlu.ca>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.20 (2009-06-14)
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Mail-From: steve@nestor.wlu.ca
X-SA-Exim-Version: 4.2.1 (built Mon, 22 Mar 2010 06:26:47 +0000)
X-SA-Exim-Scanned: Yes (on nestor.wlu.ca)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 205.189.30.74
Subject: [Groff] ps: import of an EPS file with binary data
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, 05 Jul 2012 18:28:54 -0000

I'm using convert (from imagemagick) to crop and convert pbm
images into encapsulated postscript. When I prefix the output
filename with eps2: I get a very compact EPS file where the image
data is contained as binary like this:

userdict begin
%%BeginData:        72200 Binary Bytes
DisplayImage
[a few lines of integers]
[72200 binary bytes, presumably]
%%EndData
end

The resulting image is displayable (e.g., in okular), but when it
gets imported into groff with either .PSPIC or \X'ps: import ...'
only the first part of the binary gets cleanly imported into the
PostScript output (up to the first newline character) and the
rest becomes a series of ^M's -- which print black.

I realize that up to now all the images I've been converting to
EPS for use in groff contain the image in ASCII format, but I was
hoping to reduce file size with this "convert" output. As far as
I can tell, the output conforms to PS LanguageLevel 2 (flagged by
the "eps2:" prefix in the convert commandline).

Is there some other flag or option I've overlooked?

	Thanks,
	-- Steve

-- 
Steve Izma                                steve@press.wlu.ca  
    Computing Systems Administrator       519-884-0710 ext. 6125

    Wilfrid Laurier University Press      http://www.wlupress.wlu.ca  
    Waterloo, Ont., Canada N2L 3C5        http://nestor.wlu.ca/blog   
Our e-newsletter http://www.wlupress.wlu.ca/press/General/signupform.shtml


From MAILER-DAEMON Thu Jul 05 15:19:22 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SmraE-0000uN-Pz
	for mharc-groff@gnu.org; Thu, 05 Jul 2012 15:19:22 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43613)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1SmraB-0000rr-MB
	for groff@gnu.org; Thu, 05 Jul 2012 15:19:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1SmraA-0000y6-4D
	for groff@gnu.org; Thu, 05 Jul 2012 15:19:19 -0400
Received: from helix.usm.uni-muenchen.de ([129.187.204.86]:39018)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1Smra9-0000xW-Tz
	for groff@gnu.org; Thu, 05 Jul 2012 15:19:18 -0400
Received: by helix.usm.uni-muenchen.de (Postfix, from userid 2097)
	id 761101613110; Thu,  5 Jul 2012 21:19:14 +0200 (CEST)
Date: Thu, 5 Jul 2012 21:19:14 +0200
From: Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
To: groff@gnu.org
Message-ID: <20120705191914.GC9917@usm.uni-muenchen.de>
References: <20120705182828.GA23441@nestor.wlu.ca>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20120705182828.GA23441@nestor.wlu.ca>
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] ps: import of an EPS file with binary data
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, 05 Jul 2012 19:19:20 -0000


> The resulting image is displayable (e.g., in okular), but when it
> gets imported into groff with either .PSPIC or \X'ps: import ...'
> only the first part of the binary gets cleanly imported into the
> PostScript output (up to the first newline character) and the
> rest becomes a series of ^M's -- which print black.

Appears to be a bug in grops, or a feature -- perhaps grops
was never programmed to be binary-safe.  Interestingly enough,
it copies the correct *number* of bytes, only with the wrong
content...




From MAILER-DAEMON Thu Jul 05 16:33:42 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SmskA-0001aJ-Ed
	for mharc-groff@gnu.org; Thu, 05 Jul 2012 16:33:42 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55078)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1Smsk7-0001aB-Tv
	for groff@gnu.org; Thu, 05 Jul 2012 16:33:41 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1Smsk5-0004Am-Ux
	for groff@gnu.org; Thu, 05 Jul 2012 16:33:39 -0400
Received: from smarthost03.mail.zen.net.uk ([212.23.1.3]:59314)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1Smsk5-0004AE-Oz
	for groff@gnu.org; Thu, 05 Jul 2012 16:33:37 -0400
Received: from [88.96.44.206] (helo=deb)
	by smarthost03.mail.zen.net.uk with esmtp (Exim 4.72)
	(envelope-from <Ted.Harding@wlandres.net>)
	id 1Smsk3-00085o-7f; Thu, 05 Jul 2012 20:33:35 +0000
Content-Length: 1430
Message-ID: <XFMail.20120705213330.Ted.Harding@wlandres.net>
X-Mailer: XFMail 1.5.5 on Linux
X-Priority: 3 (Normal)
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0
Date: Thu, 05 Jul 2012 21:33:30 +0100 (BST)
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.1.3
Subject: [Groff] Placement problem with coloured circles in pic
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: Thu, 05 Jul 2012 20:33:41 -0000

Greetings all!

The folloowing exemplifies a placement problem I am
experiencing when creating coloured circles in pic.
This is just a simple example: my ultimate intention
is to be able to place a circle of arbitrary size
and arbitrary colour, define by "RGB", at an arbitrary
point.

.PS
line from (-2,0) to (2,0)
line from (0,-2) to (0,2)
define cblob {
  command sprintf(".defcolor COL rgb %.3ff %.3ff %.3ff.sp 2",$4,$5,$6)
  circle rad $1 at ($2,$3)  coloured "COL"
}

circle rad 1 at (0,0)  ## First (black outline) circle (see below)
for i=0 to 20 do{      ## 2nd (i=0), 3rd (i=1) ... green circles.
  r = (1 - i/20) 
  cblob(r,0,0, 0,r,0)
}
.PE

The first (plain black outline) circle is correctly placed
with its centre at (0,0).

The second (pure green circle corresponding to i=0) is
displaced some distance above the point (0,0).

The third (slightly smaller greenish circle corresponding to i=1)
is displaced much further above (0,0).

All subsequent circles appear to have their centres at the
centre of the third circle, so from i=1 onwards things are
as they should be apart from being centred in the wrong place.

I'm puzzled about why the r=0 and r=1 circles get displaced!

Any comments?
Ted.


-------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding@wlandres.net>
Date: 05-Jul-2012  Time: 21:33:27
This message was sent by XFMail
-------------------------------------------------


From MAILER-DAEMON Thu Jul 05 17:09:36 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SmtIu-0006eU-6I
	for mharc-groff@gnu.org; Thu, 05 Jul 2012 17:09:36 -0400
Received: from eggs.gnu.org ([208.118.235.92]:38041)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1SmtIq-0006eH-To
	for groff@gnu.org; Thu, 05 Jul 2012 17:09:34 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1SmtIo-00039j-QR
	for groff@gnu.org; Thu, 05 Jul 2012 17:09:32 -0400
Received: from relay01.pair.com ([209.68.5.15]:2431)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1SmtIo-000391-LZ
	for groff@gnu.org; Thu, 05 Jul 2012 17:09:30 -0400
Received: (qmail 13930 invoked from network); 5 Jul 2012 21:09:28 -0000
Received: from 91.125.81.170 (HELO orac.inputplus.co.uk) (91.125.81.170)
	by relay01.pair.com with SMTP; 5 Jul 2012 21:09:28 -0000
X-pair-Authenticated: 91.125.81.170
Received: by orac.inputplus.co.uk (Postfix, from userid 1000)
	id 90BB7277B9; Thu,  5 Jul 2012 22:09:27 +0100 (BST)
Received: from orac.inputplus.co.uk (localhost [127.0.0.1])
	by orac.inputplus.co.uk (Postfix) with ESMTP id 6B555277AD;
	Thu,  5 Jul 2012 22:09:27 +0100 (BST)
To: Ted.Harding@wlandres.net
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
In-reply-to: <XFMail.20120705213330.Ted.Harding@wlandres.net>
References: <XFMail.20120705213330.Ted.Harding@wlandres.net>
Comments: In-reply-to (Ted Harding) <Ted.Harding@wlandres.net> message dated
	"Thu, 05 Jul 2012 21:33:30 +0100."
Date: Thu, 05 Jul 2012 22:09:27 +0100
From: Ralph Corderoy <ralph@inputplus.co.uk>
Message-Id: <20120705210927.90BB7277B9@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] Placement problem with coloured circles in pic
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, 05 Jul 2012 21:09:35 -0000

What-ho Ted!

> The first (plain black outline) circle is correctly placed with its
> centre at (0,0).
>
> The second (pure green circle corresponding to i=0) is displaced some
> distance above the point (0,0).

With

    GNU groff version 1.20.1
    Ubuntu's groff 1.20.1-10

I get a `bullseye' of green circles around 0, 0, see pic's output below.
You could feed it into groff you end and also compare with your pic's
output.

Cheers, Ralph.

.if !dPS .ds PS
.if !dPE .ds PE
.lf 1 -
.lf 1
.PS 4.000i 4.000i
.\" -2 -2 2 2
.\" 0.000i 4.000i 4.000i 0.000i
.nr 00 \n(.u
.nf
.nr 0x 1
\h'4.000i'
.sp -1
\D't -1.000p'\h'1.000p'
.sp -1
\h'0.000i'\v'2.000i'\D'l 4.000i 0.000i'
.sp -1
\h'2.000i'\v'4.000i'\D'l 0.000i -4.000i'
.sp -1
\h'1.000i'\v'2.000i'\D'c 2.000i'
.sp -1
.lf 14
.defcolor COL rgb 0.000f 1.000f 0.000f.sp 2
.fcolor COL
.gcolor COL
\h'1.000i'\v'2.000i'\D'C 2.000i'
.sp -1
\h'1.000i'\v'2.000i'\D'c 2.000i'
.sp -1
.fcolor
.gcolor
.lf 14
.defcolor COL rgb 0.000f 0.950f 0.000f.sp 2
.fcolor COL
.gcolor COL
\h'1.050i'\v'2.000i'\D'C 1.900i'
.sp -1
\h'1.050i'\v'2.000i'\D'c 1.900i'
.sp -1
.fcolor
.gcolor
.lf 14
.defcolor COL rgb 0.000f 0.900f 0.000f.sp 2
.fcolor COL
.gcolor COL
\h'1.100i'\v'2.000i'\D'C 1.800i'
.sp -1
\h'1.100i'\v'2.000i'\D'c 1.800i'
.sp -1
.fcolor
.gcolor
.lf 14
.defcolor COL rgb 0.000f 0.850f 0.000f.sp 2
.fcolor COL
.gcolor COL
\h'1.150i'\v'2.000i'\D'C 1.700i'
.sp -1
\h'1.150i'\v'2.000i'\D'c 1.700i'
.sp -1
.fcolor
.gcolor
.lf 14
.defcolor COL rgb 0.000f 0.800f 0.000f.sp 2
.fcolor COL
.gcolor COL
\h'1.200i'\v'2.000i'\D'C 1.600i'
.sp -1
\h'1.200i'\v'2.000i'\D'c 1.600i'
.sp -1
.fcolor
.gcolor
.lf 14
.defcolor COL rgb 0.000f 0.750f 0.000f.sp 2
.fcolor COL
.gcolor COL
\h'1.250i'\v'2.000i'\D'C 1.500i'
.sp -1
\h'1.250i'\v'2.000i'\D'c 1.500i'
.sp -1
.fcolor
.gcolor
.lf 14
.defcolor COL rgb 0.000f 0.700f 0.000f.sp 2
.fcolor COL
.gcolor COL
\h'1.300i'\v'2.000i'\D'C 1.400i'
.sp -1
\h'1.300i'\v'2.000i'\D'c 1.400i'
.sp -1
.fcolor
.gcolor
.lf 14
.defcolor COL rgb 0.000f 0.650f 0.000f.sp 2
.fcolor COL
.gcolor COL
\h'1.350i'\v'2.000i'\D'C 1.300i'
.sp -1
\h'1.350i'\v'2.000i'\D'c 1.300i'
.sp -1
.fcolor
.gcolor
.lf 14
.defcolor COL rgb 0.000f 0.600f 0.000f.sp 2
.fcolor COL
.gcolor COL
\h'1.400i'\v'2.000i'\D'C 1.200i'
.sp -1
\h'1.400i'\v'2.000i'\D'c 1.200i'
.sp -1
.fcolor
.gcolor
.lf 14
.defcolor COL rgb 0.000f 0.550f 0.000f.sp 2
.fcolor COL
.gcolor COL
\h'1.450i'\v'2.000i'\D'C 1.100i'
.sp -1
\h'1.450i'\v'2.000i'\D'c 1.100i'
.sp -1
.fcolor
.gcolor
.lf 14
.defcolor COL rgb 0.000f 0.500f 0.000f.sp 2
.fcolor COL
.gcolor COL
\h'1.500i'\v'2.000i'\D'C 1.000i'
.sp -1
\h'1.500i'\v'2.000i'\D'c 1.000i'
.sp -1
.fcolor
.gcolor
.lf 14
.defcolor COL rgb 0.000f 0.450f 0.000f.sp 2
.fcolor COL
.gcolor COL
\h'1.550i'\v'2.000i'\D'C 0.900i'
.sp -1
\h'1.550i'\v'2.000i'\D'c 0.900i'
.sp -1
.fcolor
.gcolor
.lf 14
.defcolor COL rgb 0.000f 0.400f 0.000f.sp 2
.fcolor COL
.gcolor COL
\h'1.600i'\v'2.000i'\D'C 0.800i'
.sp -1
\h'1.600i'\v'2.000i'\D'c 0.800i'
.sp -1
.fcolor
.gcolor
.lf 14
.defcolor COL rgb 0.000f 0.350f 0.000f.sp 2
.fcolor COL
.gcolor COL
\h'1.650i'\v'2.000i'\D'C 0.700i'
.sp -1
\h'1.650i'\v'2.000i'\D'c 0.700i'
.sp -1
.fcolor
.gcolor
.lf 14
.defcolor COL rgb 0.000f 0.300f 0.000f.sp 2
.fcolor COL
.gcolor COL
\h'1.700i'\v'2.000i'\D'C 0.600i'
.sp -1
\h'1.700i'\v'2.000i'\D'c 0.600i'
.sp -1
.fcolor
.gcolor
.lf 14
.defcolor COL rgb 0.000f 0.250f 0.000f.sp 2
.fcolor COL
.gcolor COL
\h'1.750i'\v'2.000i'\D'C 0.500i'
.sp -1
\h'1.750i'\v'2.000i'\D'c 0.500i'
.sp -1
.fcolor
.gcolor
.lf 14
.defcolor COL rgb 0.000f 0.200f 0.000f.sp 2
.fcolor COL
.gcolor COL
\h'1.800i'\v'2.000i'\D'C 0.400i'
.sp -1
\h'1.800i'\v'2.000i'\D'c 0.400i'
.sp -1
.fcolor
.gcolor
.lf 14
.defcolor COL rgb 0.000f 0.150f 0.000f.sp 2
.fcolor COL
.gcolor COL
\h'1.850i'\v'2.000i'\D'C 0.300i'
.sp -1
\h'1.850i'\v'2.000i'\D'c 0.300i'
.sp -1
.fcolor
.gcolor
.lf 14
.defcolor COL rgb 0.000f 0.100f 0.000f.sp 2
.fcolor COL
.gcolor COL
\h'1.900i'\v'2.000i'\D'C 0.200i'
.sp -1
\h'1.900i'\v'2.000i'\D'c 0.200i'
.sp -1
.fcolor
.gcolor
.lf 14
.defcolor COL rgb 0.000f 0.050f 0.000f.sp 2
.fcolor COL
.gcolor COL
\h'1.950i'\v'2.000i'\D'C 0.100i'
.sp -1
\h'1.950i'\v'2.000i'\D'c 0.100i'
.sp -1
.fcolor
.gcolor
.lf 14
.defcolor COL rgb 0.000f 0.000f 0.000f.sp 2
.fcolor COL
.gcolor COL
\h'2.000i'\v'2.000i'\D'C 0.000i'
.sp -1
\h'2.000i'\v'2.000i'\D'c 0.000i'
.sp -1
.fcolor
.gcolor
.sp 4.000i+1
.if \n(00 .fi
.br
.nr 0x 0
.lf 14
.PE
.lf 15


From MAILER-DAEMON Thu Jul 05 17:18:11 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SmtRD-0007Wu-JN
	for mharc-groff@gnu.org; Thu, 05 Jul 2012 17:18:11 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51390)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <poc@pocnet.net>) id 1SmtRB-0007Wo-PF
	for groff@gnu.org; Thu, 05 Jul 2012 17:18:10 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <poc@pocnet.net>) id 1SmtR9-0006Qy-Vk
	for groff@gnu.org; Thu, 05 Jul 2012 17:18:09 -0400
Received: from leela.pocnet.net ([217.28.105.2]:53290)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <poc@pocnet.net>) id 1SmtR9-0006PT-Kq
	for groff@gnu.org; Thu, 05 Jul 2012 17:18:07 -0400
Received: from gustav.pocnet.net (gustav.pocnet.net
	[IPv6:2001:6f8:1296:1:214:51ff:fe16:d584]) (authenticated bits=0)
	by leela.pocnet.net (8.14.5/8.14.5) with ESMTP id q65LHwO2029745
	(version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO);
	Thu, 5 Jul 2012 23:17:59 +0200
From: Schindler Patrik <poc@pocnet.net>
To: groff@gnu.org
In-Reply-To: <20120705182828.GA23441@nestor.wlu.ca>
References: <20120705182828.GA23441@nestor.wlu.ca>
Message-Id: <EB94E1E1-595F-400E-AA00-D5294437E81D@pocnet.net>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0 (Apple Message framework v936)
Jabber-Id: poc@leela.pocnet.net
Date: Thu, 5 Jul 2012 23:17:58 +0200
X-Mailer: Apple Mail (2.936)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1)
X-Received-From: 217.28.105.2
Subject: Re: [Groff] ps: import of an EPS file with binary data
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, 05 Jul 2012 21:18:11 -0000

Hi Steve,

Am 05.07.2012 um 20:28 schrieb Steve Izma:

> I'm using convert (from imagemagick) to crop and convert pbm
> images into encapsulated postscript. When I prefix the output
> filename with eps2: I get a very compact EPS file where the image
> data is contained as binary like this:
>
> userdict begin
> %%BeginData:        72200 Binary Bytes
> DisplayImage
> [a few lines of integers]
> [72200 binary bytes, presumably]
> %%EndData
> end
>
> The resulting image is displayable (e.g., in okular), but when it
> gets imported into groff with either .PSPIC or \X'ps: import ...'
> only the first part of the binary gets cleanly imported into the
> PostScript output (up to the first newline character) and the
> rest becomes a series of ^M's -- which print black.


I observed similar behaviour years ago but I live with that  
limitation. I never got up to the point to desperately need a fix.


:wq! PoC




From MAILER-DAEMON Thu Jul 05 17:29:04 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Smtbk-0008JM-B0
	for mharc-groff@gnu.org; Thu, 05 Jul 2012 17:29:04 -0400
Received: from eggs.gnu.org ([208.118.235.92]:48048)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1Smtbh-0008JF-RO
	for groff@gnu.org; Thu, 05 Jul 2012 17:29:03 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1Smtbg-0001uz-5u
	for groff@gnu.org; Thu, 05 Jul 2012 17:29:01 -0400
Received: from mailout-de.gmx.net ([213.165.64.22]:55465)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1Smtbf-0001uY-Qj
	for groff@gnu.org; Thu, 05 Jul 2012 17:29:00 -0400
Received: (qmail invoked by alias); 05 Jul 2012 21:28:57 -0000
Received: from 93-82-87-179.adsl.highway.telekom.at (EHLO localhost)
	[93.82.87.179]
	by mail.gmx.net (mp020) with SMTP; 05 Jul 2012 23:28:57 +0200
X-Authenticated: #54312696
X-Provags-ID: V01U2FsdGVkX19icA8EjIhi1C6YGRWr/9e+MkBSxdB2iVu/FORY0/
	80JMVQ/6nuny42
Date: Thu, 05 Jul 2012 23:28:45 +0200 (CEST)
Message-Id: <20120705.232845.81316755.wl@gnu.org>
To: hoffmann@usm.uni-muenchen.de
From: Werner LEMBERG <wl@gnu.org>
In-Reply-To: <20120705191914.GC9917@usm.uni-muenchen.de>
References: <20120705182828.GA23441@nestor.wlu.ca>
	<20120705191914.GC9917@usm.uni-muenchen.de>
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] ps: import of an EPS file with binary data
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, 05 Jul 2012 21:29:03 -0000

>> The resulting image is displayable (e.g., in okular), but when it
>> gets imported into groff with either .PSPIC or \X'ps: import ...'
>> only the first part of the binary gets cleanly imported into the
>> PostScript output (up to the first newline character) and the rest
>> becomes a series of ^M's -- which print black.
> 
> Appears to be a bug in grops, or a feature -- perhaps grops
> was never programmed to be binary-safe.

Hmm.  According to the source code of grops, binary sections in
imported files are supported.  So it really looks like a bug.  Can you
provide a small example?


    Werner


From MAILER-DAEMON Thu Jul 05 18:30:52 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SmuZX-0007vE-WC
	for mharc-groff@gnu.org; Thu, 05 Jul 2012 18:30:51 -0400
Received: from eggs.gnu.org ([208.118.235.92]:48539)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1SmuZV-0007v2-Qu
	for groff@gnu.org; Thu, 05 Jul 2012 18:30:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1SmuZT-0006h2-Kk
	for groff@gnu.org; Thu, 05 Jul 2012 18:30:49 -0400
Received: from helix.usm.uni-muenchen.de ([129.187.204.86]:46718)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1SmuZT-0006gD-Ds
	for groff@gnu.org; Thu, 05 Jul 2012 18:30:47 -0400
Received: by helix.usm.uni-muenchen.de (Postfix, from userid 2097)
	id CC7011613110; Fri,  6 Jul 2012 00:30:44 +0200 (CEST)
Date: Fri, 6 Jul 2012 00:30:44 +0200
From: Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
To: groff@gnu.org
Message-ID: <20120705223044.GD9917@usm.uni-muenchen.de>
References: <20120705182828.GA23441@nestor.wlu.ca>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="CUfgB8w4ZwR/yMy5"
Content-Disposition: inline
In-Reply-To: <20120705182828.GA23441@nestor.wlu.ca>
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] ps: import of an EPS file with binary data
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, 05 Jul 2012 22:30:51 -0000


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


> I'm using convert (from imagemagick) to crop and convert pbm
> images into encapsulated postscript. When I prefix the output
> filename with eps2: I get a very compact EPS file where the image
> data is contained as binary like this:
[snip]


Okay, I just completed a few tests and my conclusion is that
the fact that it's binary is not by itself the best criterion
regarding compactness.  Depending on the type of your images,
flate compression + ASCII base-85 can be almost as good as
or even much better:

  convert lena.ppm lena.eps2
  gs -q -dNODISPLAY -dBATCH -dNOPAUSE ppmtops.ps <lena.ppm >lena.ps

    49167  lena.ppm
    53624  lena.eps2
    59425  lena.ps

"lena" is a rather "noisy" image and compression doesn't seem
to be very effective.  What you're seeing here is probably
mostly the 7-bit/8-bit difference in the encoding.

On the other hand, "teapot" is a very smooth image, and
compression really shines here:

  convert teapot.ppm teapot.eps2
  gs -q -dNODISPLAY -dBATCH -dNOPAUSE ppmtops.ps <teapot.ppm >teapot.ps

    196623  teapot.ppm
    201258  teapot.eps2
     53708  teapot.ps

And if you have JPEG files, it's best to keep them that way
and simply wrap them with a simple DCT decoder in Postscript,
as Thomas Merz's jpeg2ps does.



--CUfgB8w4ZwR/yMy5
Content-Type: application/postscript
Content-Disposition: attachment; filename="ppmtops.ps"
Content-Transfer-Encoding: quoted-printable

%!=0A% gs -q -dNODISPLAY -dBATCH -dNOPAUSE ppmtops.ps <input.ppm >output.ps=
=0A/myerr (%stderr) (w) file def=0A/myinp (%stdin)  (r) file def=0A/myout (=
%stdout) (w) file def=0A/myenc (%stdout) (w) file=0A  /ASCII85Encode filter=
=0A  << /CloseTarget true >> /FlateEncode filter=0A  def=0A/buffer 1024 str=
ing def=0A/error { myerr exch writestring quit } def=0A/readint=0A{ myinp t=
oken not { (Error reading file\n) error } if=0A  dup /# eq { pop myinp buff=
er readline pop pop readint } if }=0Adef=0Amyinp token not { (Error reading=
 file\n) error } if=0A/P6 ne { (Not a raw PPM\n) error } if=0A/imgwidth  re=
adint 5 string cvs def=0A/imgheight readint 5 string cvs def=0Areadint 255 =
ne { (Maxval not 255\n) error } if=0A(  image\n)=0A(     /DataSource curren=
tfile /ASCII85Decode filter /FlateDecode filter >>\n)=0A(     /ImageMatrix =
[ 1 0 0 -1 0 imgheight ]\n)=0A(     /Decode [ 0 1 0 1 0 1 ]\n)=0A(     /Bit=
sPerComponent 8\n)=0A(     /Height imgheight\n)=0A(     /Width imgwidth\n)=
=0A(     /Interpolate false\n)=0A(  << /ImageType 1\n)=0A(  /DeviceRGB setc=
olorspace\n)=0A( def\n) imgheight (  /imgheight )=0A( def\n) imgwidth (  /i=
mgwidth  )=0A(\n%%EndComments\n%%Page: 1 1\n)=0Aimgheight ( ) imgwidth=0A(%=
!PS-Adobe-0.0\n%%BoundingBox: 0 0 )=0A21 { myout exch writestring } repeat=
=0A{ myinp buffer readstring exch=0A  myenc exch writestring=0A  not { myen=
c closefile exit } if }=0Aloop=0Amyout (\n  showpage\n%%EOF\n) writestring=
=0A
--CUfgB8w4ZwR/yMy5--


From MAILER-DAEMON Thu Jul 05 20:03:18 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Smw10-0002uW-Hx
	for mharc-groff@gnu.org; Thu, 05 Jul 2012 20:03:18 -0400
Received: from eggs.gnu.org ([208.118.235.92]:45182)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <steve@nestor.wlu.ca>) id 1Smw0y-0002uM-EA
	for groff@gnu.org; Thu, 05 Jul 2012 20:03:17 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <steve@nestor.wlu.ca>) id 1Smw0w-0007Ho-9H
	for groff@gnu.org; Thu, 05 Jul 2012 20:03:15 -0400
Received: from nestor.wlu.ca ([205.189.30.74]:36685)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <steve@nestor.wlu.ca>) id 1Smw0w-0007H8-5k
	for groff@gnu.org; Thu, 05 Jul 2012 20:03:14 -0400
Received: from steve by nestor.wlu.ca with local (Exim 4.72)
	(envelope-from <steve@nestor.wlu.ca>)
	id 1Smw0n-0008DQ-MC; Thu, 05 Jul 2012 20:03:11 -0400
Date: Thu, 5 Jul 2012 20:02:55 -0400
From: Steve Izma <steve@nestor.wlu.ca>
To: Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
Message-ID: <20120706000255.GE7376@nestor.wlu.ca>
References: <20120705182828.GA23441@nestor.wlu.ca>
	<20120705223044.GD9917@usm.uni-muenchen.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20120705223044.GD9917@usm.uni-muenchen.de>
User-Agent: Mutt/1.5.20 (2009-06-14)
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Mail-From: steve@nestor.wlu.ca
X-SA-Exim-Version: 4.2.1 (built Mon, 22 Mar 2010 06:26:47 +0000)
X-SA-Exim-Scanned: Yes (on nestor.wlu.ca)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 205.189.30.74
Cc: groff@gnu.org
Subject: Re: [Groff] ps: import of an EPS file with binary data
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, 06 Jul 2012 00:03:17 -0000

On Fri, Jul 06, 2012 at 12:30:44AM +0200, Tadziu Hoffmann wrote:
> Subject: Re: [Groff] ps: import of an EPS file with binary data
> 
>   convert teapot.ppm teapot.eps2
>   gs -q -dNODISPLAY -dBATCH -dNOPAUSE ppmtops.ps <teapot.ppm >teapot.ps

There must be a problem with the set of images I'm working on,
either with a transparency layer or something to do with
re-sizing in convert, so I need to do more testing.

The above gs commandline works on other images I've tried, but
when I run it on the set at hand, I get a "MAXVAL not 255" error.
I need more time to work on this.

Thanks for the above example, Tadziu. Is there an option to
resize and crop the input image? That's the main reason I'm
trying to use convert, which works with grops if I don't try to
reduce file size with the eps2: flag.

	Thanks,
	-- Steve

-- 
Steve Izma                                steve@press.wlu.ca  
    Computing Systems Administrator       519-884-0710 ext. 6125

    Wilfrid Laurier University Press      http://www.wlupress.wlu.ca  
    Waterloo, Ont., Canada N2L 3C5        http://nestor.wlu.ca/blog   
Our e-newsletter http://www.wlupress.wlu.ca/press/General/signupform.shtml


From MAILER-DAEMON Thu Jul 05 20:07:39 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Smw5D-0004hK-70
	for mharc-groff@gnu.org; Thu, 05 Jul 2012 20:07:39 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33123)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1Smw5A-0004gT-9u
	for groff@gnu.org; Thu, 05 Jul 2012 20:07:37 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1Smw58-0000Sj-L9
	for groff@gnu.org; Thu, 05 Jul 2012 20:07:35 -0400
Received: from relay00.pair.com ([209.68.5.9]:2360)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1Smw58-0000SL-Fq
	for groff@gnu.org; Thu, 05 Jul 2012 20:07:34 -0400
Received: (qmail 99857 invoked from network); 6 Jul 2012 00:07:31 -0000
Received: from 91.125.81.170 (HELO orac.inputplus.co.uk) (91.125.81.170)
	by relay00.pair.com with SMTP; 6 Jul 2012 00:07:31 -0000
X-pair-Authenticated: 91.125.81.170
Received: by orac.inputplus.co.uk (Postfix, from userid 1000)
	id AE37824591; Fri,  6 Jul 2012 01:07:31 +0100 (BST)
Received: from orac.inputplus.co.uk (localhost [127.0.0.1])
	by orac.inputplus.co.uk (Postfix) with ESMTP id 8A71F23F73
	for <groff@gnu.org>; Fri,  6 Jul 2012 01:07:31 +0100 (BST)
To: groff@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
In-reply-to: <20120705.232845.81316755.wl@gnu.org>
References: <20120705182828.GA23441@nestor.wlu.ca>
	<20120705191914.GC9917@usm.uni-muenchen.de>
	<20120705.232845.81316755.wl@gnu.org>
Comments: In-reply-to Werner LEMBERG <wl@gnu.org> message dated "Thu,
	05 Jul 2012 23:28:45 +0200."
Date: Fri, 06 Jul 2012 01:07:31 +0100
From: Ralph Corderoy <ralph@inputplus.co.uk>
Message-Id: <20120706000731.AE37824591@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] ps: import of an EPS file with binary data
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, 06 Jul 2012 00:07:37 -0000

Hi,

Werner wrote:
> Hmm.  According to the source code of grops, binary sections in
> imported files are supported.  So it really looks like a bug.  Can you
> provide a small example?

This trivial case seems to work OK for me.  The EPS has binary as does
the PS and diff says the line of binary is the same.

    $ convert rose: eps2:rose.eps
    $ sha1sum rose.eps
    16e6880c7a1cc7f72be2ac540715239e67f48e97  rose.eps
    $ grep %%BeginData rose.eps
    %%BeginData:         9727 Binary Bytes
    $ cat rose.tr
    Before.
    .PSPIC rose.eps
    After.
    $ groff rose.tr >rose.ps
    $

Cheers, Ralph.


From MAILER-DAEMON Thu Jul 05 20:19:24 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SmwGZ-0005my-WD
	for mharc-groff@gnu.org; Thu, 05 Jul 2012 20:19:23 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33444)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1SmwGX-0005mo-Rq
	for groff@gnu.org; Thu, 05 Jul 2012 20:19:22 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1SmwGW-0003y8-4y
	for groff@gnu.org; Thu, 05 Jul 2012 20:19:21 -0400
Received: from relay00.pair.com ([209.68.5.9]:3110)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1SmwGV-0003xs-VX
	for groff@gnu.org; Thu, 05 Jul 2012 20:19:20 -0400
Received: (qmail 2371 invoked from network); 6 Jul 2012 00:19:18 -0000
Received: from 91.125.81.170 (HELO orac.inputplus.co.uk) (91.125.81.170)
	by relay00.pair.com with SMTP; 6 Jul 2012 00:19:18 -0000
X-pair-Authenticated: 91.125.81.170
Received: by orac.inputplus.co.uk (Postfix, from userid 1000)
	id 1ED7624591; Fri,  6 Jul 2012 01:19:17 +0100 (BST)
Received: from orac.inputplus.co.uk (localhost [127.0.0.1])
	by orac.inputplus.co.uk (Postfix) with ESMTP id F111824420;
	Fri,  6 Jul 2012 01:19:17 +0100 (BST)
To: Steve Izma <steve@nestor.wlu.ca>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
In-reply-to: <20120706000255.GE7376@nestor.wlu.ca>
References: <20120705182828.GA23441@nestor.wlu.ca>
	<20120705223044.GD9917@usm.uni-muenchen.de>
	<20120706000255.GE7376@nestor.wlu.ca>
Comments: In-reply-to Steve Izma <steve@nestor.wlu.ca> message dated "Thu,
	05 Jul 2012 20:02:55 -0400."
Date: Fri, 06 Jul 2012 01:19:17 +0100
From: Ralph Corderoy <ralph@inputplus.co.uk>
Message-Id: <20120706001918.1ED7624591@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
Cc: groff@gnu.org
Subject: Re: [Groff] ps: import of an EPS file with binary data
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, 06 Jul 2012 00:19:23 -0000

Hi Steve,

> On Fri, Jul 06, 2012 at 12:30:44AM +0200, Tadziu Hoffmann wrote:
> >   gs -q -dNODISPLAY -dBATCH -dNOPAUSE ppmtops.ps <teapot.ppm >teapot.ps
> 
> The above gs commandline works on other images I've tried, but when I
> run it on the set at hand, I get a "MAXVAL not 255" error.

Take your PBM files and produce a 255-maxval PPM that ppmtops.ps demands
with

    convert foo.pbm ppm:- | pnmdepth 255 >foo.ppm

Cheers, Ralph.


From MAILER-DAEMON Fri Jul 06 05:34:48 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Sn4w4-0001Ot-RU
	for mharc-groff@gnu.org; Fri, 06 Jul 2012 05:34:48 -0400
Received: from eggs.gnu.org ([208.118.235.92]:48735)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1Sn4vx-0001FM-R4
	for groff@gnu.org; Fri, 06 Jul 2012 05:34:46 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1Sn4vv-000117-HY
	for groff@gnu.org; Fri, 06 Jul 2012 05:34:41 -0400
Received: from helix.usm.uni-muenchen.de ([129.187.204.86]:43256)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1Sn4vv-00010O-Ay
	for groff@gnu.org; Fri, 06 Jul 2012 05:34:39 -0400
Received: by helix.usm.uni-muenchen.de (Postfix, from userid 2097)
	id 345C91617140; Fri,  6 Jul 2012 11:34:37 +0200 (CEST)
Date: Fri, 6 Jul 2012 11:34:36 +0200
From: Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
To: groff@gnu.org
Message-ID: <20120706093436.GA30727@usm.uni-muenchen.de>
References: <20120705182828.GA23441@nestor.wlu.ca>
	<20120705223044.GD9917@usm.uni-muenchen.de>
	<20120706000255.GE7376@nestor.wlu.ca>
	<20120706001918.1ED7624591@orac.inputplus.co.uk>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="6TrnltStXW4iwmi0"
Content-Disposition: inline
In-Reply-To: <20120706001918.1ED7624591@orac.inputplus.co.uk>
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] ps: import of an EPS file with binary data
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, 06 Jul 2012 09:34:46 -0000


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


> > The above gs commandline works on other images I've tried,
> > but when I run it on the set at hand, I get a "MAXVAL not
> > 255" error.
> 
> Take your PBM files and produce a 255-maxval PPM that
> ppmtops.ps demands

Sorry, no, I advise against that.  The "ppmtops.ps" I posted
I had just put together on the spur of the moment, and it
wasn't intended to be very general or forgiving of errors.
In particular it was only meant for maxval-255 pixmaps.

Of course the unspoken implication was that it could be adapted
to bilevel (1 bit per pixel) bitmap images, as you said you were
using.  (But it should have given you a "Not a raw PPM" error,
because raw PBMs have a magic number of "P4" instead of "P6").

Anyhow, here goes:

  convert solarwind.pbm solarwind.eps2
  gs -q -dNODISPLAY -dBATCH -dNOPAUSE pbmtops.ps <solarwind.pbm >solarwind.ps

    821460  solarwind.pbm
    247424  solarwind.eps2
     86934  solarwind.ps

The image is a black-and-white scan from a book, and the
"flate" algorithm compresses it much better than either the
"runlength" algorithm (which "convert" uses here for eps2
output) or the "CCITT fax" algorithm.



--6TrnltStXW4iwmi0
Content-Type: application/postscript
Content-Disposition: attachment; filename="pbmtops.ps"
Content-Transfer-Encoding: quoted-printable

%!=0A% gs -q -dNODISPLAY -dBATCH -dNOPAUSE pbmtops.ps <input.pbm >output.ps=
=0A/myerr (%stderr) (w) file def=0A/myinp (%stdin)  (r) file def=0A/myout (=
%stdout) (w) file def=0A/myenc (%stdout) (w) file=0A  /ASCII85Encode filter=
=0A  << /CloseTarget true >> /FlateEncode filter=0A  def=0A/buffer 1024 str=
ing def=0A/error { myerr exch writestring quit } def=0A/readint=0A{ myinp t=
oken not { (Error reading file\n) error } if=0A  dup /# eq { pop myinp buff=
er readline pop pop readint } if }=0Adef=0Amyinp token not { (Error reading=
 file\n) error } if=0A/P4 ne { (Not a raw PBM\n) error } if=0A/imgwidth  re=
adint 5 string cvs def=0A/imgheight readint 5 string cvs def=0A(  image\n)=
=0A(     /DataSource currentfile /ASCII85Decode filter /FlateDecode filter =
>>\n)=0A(     /ImageMatrix [ 1 0 0 -1 0 imgheight ]\n)=0A(     /Decode [ 1 =
0 ]\n)=0A(     /BitsPerComponent 1\n)=0A(     /Height imgheight\n)=0A(     =
/Width imgwidth\n)=0A(     /Interpolate false\n)=0A(  << /ImageType 1\n)=0A=
(  /DeviceGray setcolorspace\n)=0A( def\n) imgheight (  /imgheight )=0A( de=
f\n) imgwidth (  /imgwidth  )=0A(\n%%EndComments\n%%Page: 1 1\n)=0Aimgheigh=
t ( ) imgwidth=0A(%!PS-Adobe-0.0\n%%BoundingBox: 0 0 )=0A21 { myout exch wr=
itestring } repeat=0A{ myinp buffer readstring exch=0A  myenc exch writestr=
ing=0A  not { myenc closefile exit } if }=0Aloop=0Amyout (\n  showpage\n%%E=
OF\n) writestring=0A
--6TrnltStXW4iwmi0--


From MAILER-DAEMON Fri Jul 06 06:04:18 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Sn5Oc-0002rm-3y
	for mharc-groff@gnu.org; Fri, 06 Jul 2012 06:04:18 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34734)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1Sn5OV-0002rF-HM
	for groff@gnu.org; Fri, 06 Jul 2012 06:04:17 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1Sn5ON-00006W-5x
	for groff@gnu.org; Fri, 06 Jul 2012 06:04:11 -0400
Received: from helix.usm.uni-muenchen.de ([129.187.204.86]:54028)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1Sn5OM-000059-Vq
	for groff@gnu.org; Fri, 06 Jul 2012 06:04:03 -0400
Received: by helix.usm.uni-muenchen.de (Postfix, from userid 2097)
	id 5B196161311C; Fri,  6 Jul 2012 12:04:00 +0200 (CEST)
Date: Fri, 6 Jul 2012 12:04:00 +0200
From: Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
To: groff@gnu.org
Message-ID: <20120706100400.GB30727@usm.uni-muenchen.de>
References: <20120705182828.GA23441@nestor.wlu.ca>
	<20120705223044.GD9917@usm.uni-muenchen.de>
	<20120706000255.GE7376@nestor.wlu.ca>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20120706000255.GE7376@nestor.wlu.ca>
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] ps: import of an EPS file with binary data
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, 06 Jul 2012 10:04:17 -0000


> Is there an option to resize and crop the input image?

No, it is only intended to encapsulate image data in Postscript.

> That's the main reason I'm trying to use convert, which works
> with grops if I don't try to reduce file size with the eps2:
> flag.

The "netpbm" package has lots of utilities to manipulate images
from the command line, such as pnmcrop and pnmscale.

Also, you can continue to use "convert" except for the final
output, for which you can use pbm/ppm and then pipe through
ghostscript:

  convert -options input.ext ppm:- |
    gs -q -dNODISPLAY -dBATCH -dNOPAUSE ppmtops.ps >output.ps




From MAILER-DAEMON Fri Jul 06 06:54:58 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Sn6Bd-0007fz-Vw
	for mharc-groff@gnu.org; Fri, 06 Jul 2012 06:54:57 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40150)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1Sn6BT-0007eY-Gm
	for groff@gnu.org; Fri, 06 Jul 2012 06:54:56 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1Sn6BL-0003oS-RC
	for groff@gnu.org; Fri, 06 Jul 2012 06:54:47 -0400
Received: from relay03.pair.com ([209.68.5.17]:1146)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1Sn6BL-0003oG-M6
	for groff@gnu.org; Fri, 06 Jul 2012 06:54:39 -0400
Received: (qmail 59601 invoked from network); 6 Jul 2012 10:54:36 -0000
Received: from 91.125.81.170 (HELO orac.inputplus.co.uk) (91.125.81.170)
	by relay03.pair.com with SMTP; 6 Jul 2012 10:54:36 -0000
X-pair-Authenticated: 91.125.81.170
Received: by orac.inputplus.co.uk (Postfix, from userid 1000)
	id D146823F7A; Fri,  6 Jul 2012 11:54:36 +0100 (BST)
Received: from orac.inputplus.co.uk (localhost [127.0.0.1])
	by orac.inputplus.co.uk (Postfix) with ESMTP id B3AD11FD11;
	Fri,  6 Jul 2012 11:54:36 +0100 (BST)
To: Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
In-reply-to: <20120706093436.GA30727@usm.uni-muenchen.de>
References: <20120705182828.GA23441@nestor.wlu.ca>
	<20120705223044.GD9917@usm.uni-muenchen.de>
	<20120706000255.GE7376@nestor.wlu.ca>
	<20120706001918.1ED7624591@orac.inputplus.co.uk>
	<20120706093436.GA30727@usm.uni-muenchen.de>
Comments: In-reply-to Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de> message
	dated "Fri, 06 Jul 2012 11:34:36 +0200."
Date: Fri, 06 Jul 2012 11:54:36 +0100
From: Ralph Corderoy <ralph@inputplus.co.uk>
Message-Id: <20120706105436.D146823F7A@orac.inputplus.co.uk>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.68.5.17
Cc: groff@gnu.org
Subject: Re: [Groff] ps: import of an EPS file with binary data
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, 06 Jul 2012 10:54:56 -0000

Hi Tadziu,

> (But it should have given you a "Not a raw PPM" error, because raw
> PBMs have a magic number of "P4" instead of "P6").

(Given the OP said bitmaps originally but passed the P6 test I assumed
he'd done something like `convert foo.pbm ppm:' which left the maxval at
1.)

I agree, sticking with the bitmap is better given you've made a P4
version available.  :-)

Cheers, Ralph.


From MAILER-DAEMON Fri Jul 06 09:58:51 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Sn93b-0005yc-CY
	for mharc-groff@gnu.org; Fri, 06 Jul 2012 09:58:51 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55889)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1Sn93U-0005y2-0U
	for groff@gnu.org; Fri, 06 Jul 2012 09:58:49 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1Sn93P-0000Nv-B0
	for groff@gnu.org; Fri, 06 Jul 2012 09:58:43 -0400
Received: from mailout-de.gmx.net ([213.165.64.22]:42521)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1Sn93P-0000Nj-4J
	for groff@gnu.org; Fri, 06 Jul 2012 09:58:39 -0400
Received: (qmail invoked by alias); 06 Jul 2012 13:58:37 -0000
Received: from 178-190-68-9.adsl.highway.telekom.at (EHLO localhost)
	[178.190.68.9]
	by mail.gmx.net (mp012) with SMTP; 06 Jul 2012 15:58:37 +0200
X-Authenticated: #54312696
X-Provags-ID: V01U2FsdGVkX1+BrXAgELiBwdZoUe5Hv6F/jBvfU3K6iTLbDB0BFD
	wjr9XhqZY7qDH2
Date: Fri, 06 Jul 2012 15:58:34 +0200 (CEST)
Message-Id: <20120706.155834.288023687.wl@gnu.org>
To: groff@gnu.org
From: Werner LEMBERG <wl@gnu.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.22
Subject: [Groff] recent MS Windows port of groff
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <groff.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/groff>,
	<mailto:groff-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/groff>
List-Post: <mailto:groff@gnu.org>
List-Help: <mailto:groff-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/groff>,
	<mailto:groff-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 06 Jul 2012 13:58:49 -0000


A recent port of groff to MS Windows, and a lot of other GNU software,
can be found here:

  http://sourceforge.net/projects/ezwinports/files/


     Werner


From MAILER-DAEMON Sat Jul 07 23:32:36 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SniEe-0002wN-Cm
	for mharc-groff@gnu.org; Sat, 07 Jul 2012 23:32:36 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34250)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <holgerherrlich05@arcor.de>) id 1SndYF-0002eu-Qo
	for groff@gnu.org; Sat, 07 Jul 2012 18:32:33 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <holgerherrlich05@arcor.de>) id 1SndYE-0004yC-C8
	for groff@gnu.org; Sat, 07 Jul 2012 18:32:31 -0400
Received: from mail-in-04.arcor-online.net ([151.189.21.44]:40544)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <holgerherrlich05@arcor.de>) id 1SndYD-0004xc-V1
	for groff@gnu.org; Sat, 07 Jul 2012 18:32:30 -0400
Received: from mail-in-20-z2.arcor-online.net (mail-in-20-z2.arcor-online.net
	[151.189.8.85]) by mx.arcor.de (Postfix) with ESMTP id 61F46AA2DB
	for <groff@gnu.org>; Sun,  8 Jul 2012 00:32:27 +0200 (CEST)
Received: from mail-in-16.arcor-online.net (mail-in-16.arcor-online.net
	[151.189.21.56])
	by mail-in-20-z2.arcor-online.net (Postfix) with ESMTP id 5B56A6FA43D
	for <groff@gnu.org>; Sun,  8 Jul 2012 00:32:27 +0200 (CEST)
Received: from [89.247.239.102] (i59F7EF66.versanet.de [89.247.239.102])
	(Authenticated sender: holgerherrlich@arcor.de)
	by mail-in-16.arcor-online.net (Postfix) with ESMTPA id 0517B852A
	for <groff@gnu.org>; Sun,  8 Jul 2012 00:32:26 +0200 (CEST)
X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-16.arcor-online.net 0517B852A
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arcor.de; s=mail-in;
	t=1341700347; bh=0Lknqm7uFg3VgYcJl9eaaqvITBZE3vwTkzIdE2vmVY8=;
	h=Message-ID:Date:From:MIME-Version:To:Subject:References:
	In-Reply-To:Content-Type;
	b=mTT6tZMJdTFyDhHPhUZ5ktD58JMerHYpJzS/n6jzeUdWn1rkdmMq7F29iP/pkCFtZ
	CWVX7bIl6freb3/Ji0wzv9YqbRguHJAjq45oicTNnoG6UY2e+wR8zziMUTKBQ9fPhX
	o+5e2tkhK6H/r+YQenPpvUNvwxoxw6Hp9fYSOavE=
Message-ID: <4FF8B8DD.3030202@arcor.de>
Date: Sun, 08 Jul 2012 00:31:57 +0200
From: Holger Herrlich <holgerherrlich05@arcor.de>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.1.16) Gecko/20120613 Icedove/3.0.11
MIME-Version: 1.0
To: groff@gnu.org
References: <20120705182828.GA23441@nestor.wlu.ca>
In-Reply-To: <20120705182828.GA23441@nestor.wlu.ca>
X-Enigmail-Version: 1.0.1
Content-Type: multipart/mixed; boundary="------------040207060604080103060705"
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, 07 Jul 2012 23:32:35 -0400
Subject: Re: [Groff] ps: import of an EPS file with binary data
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, 07 Jul 2012 22:32:33 -0000

This is a multi-part message in MIME format.
--------------040207060604080103060705
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit


BTW,
In the case of jpeg-files I finally switched to gimp's fu-script to
convert pictures to groffable eps-files. Gimp seems to me as of very
high quality.

I attached a pbm version of the script still leaving jpeg artifacts as
comments. Further info of fu-script functions is provided by  gimp's
"Procedure Browser" under the help menu entry.

Regards Holger


On 07/05/2012 08:28 PM, Steve Izma wrote:
> I'm using convert (from imagemagick) to crop and convert pbm
> images into encapsulated postscript. When I prefix the output
> filename with eps2: I get a very compact EPS file where the image
> data is contained as binary like this:
> 
> userdict begin
> %%BeginData:        72200 Binary Bytes
> DisplayImage
> [a few lines of integers]
> [72200 binary bytes, presumably]
> %%EndData
> end
> 
> The resulting image is displayable (e.g., in okular), but when it
> gets imported into groff with either .PSPIC or \X'ps: import ...'
> only the first part of the binary gets cleanly imported into the
> PostScript output (up to the first newline character) and the
> rest becomes a series of ^M's -- which print black.
> 
> I realize that up to now all the images I've been converting to
> EPS for use in groff contain the image in ASCII format, but I was
> hoping to reduce file size with this "convert" output. As far as
> I can tell, the output conforms to PS LanguageLevel 2 (flagged by
> the "eps2:" prefix in the convert commandline).
> 
> Is there some other flag or option I've overlooked?
> 
> 	Thanks,
> 	-- Steve
> 

--------------040207060604080103060705
Content-Type: application/x-sh;
 name="mkEpsFromPbm-gimp.sh"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="mkEpsFromPbm-gimp.sh"

#!/bin/bash

# (C) 2009 Holger Herrlich
# "as is" + no profit use granted

# This script converts a pbm-files to eps via gimp fuscript



if test -z "$1"; then
   echo no file
   exit 2
   fi


ext="pbm"
name=$(basename $1 ".$ext")
dir=$(dirname $1)

epsfile="$dir/$name.eps"
pbmfile="$dir/$name.$ext"

echo ":: start processing gimp on: $pbmfile."
gimp -i --console-messages --debug-handlers -b \
   "(let*  ((image    (car (file-pnm-load               1 \"$pbmfile\" \"$pbmfile\" )))
           ;; (tmp      (car (gimp-image-convert-grayscale image                       )))
            (drawable (car (gimp-image-active-drawable   image                       )))
         )
;;       (gimp-image-rotate         image   ;;
;;                                  0       ;; -90 deg
;;                                  )
       (plug-in-normalize   1
                            image
                            drawable
                            )

       (gimp-brightness-contrast  drawable  ;;
                                  55        ;; brightness
                                  75        ;; contrast
                                  )
       (file-eps-save             1             ;; run mode
                                  image         ;; image obj
                                  drawable      ;; internal obj
                                  \"$epsfile\"  ;; save to name
                                  \"$epsfile\"  ;; <same>
                                  272 400       ;; wid ht  (ht ignored)
                                  3 13          ;; x/y-offset
                                  1             ;; unit 1==mm  (0==in)
                                  1             ;; keep ratio  (0: use wid+ht)
                                  270           ;; rotation in deg
                                  1             ;; 0==ps, 1==eps
                                  0             ;; preview: 0==no, >0==size
                                  1             ;; postscript level
                                  )
    )
    (gimp-quit 0)"

--------------040207060604080103060705--


From MAILER-DAEMON Mon Jul 09 04:07:55 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1So90d-0003ZT-HF
	for mharc-groff@gnu.org; Mon, 09 Jul 2012 04:07:55 -0400
Received: from eggs.gnu.org ([208.118.235.92]:36687)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1So90M-0003Sl-0x
	for groff@gnu.org; Mon, 09 Jul 2012 04:07:53 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1So8zr-0002Xs-7V
	for groff@gnu.org; Mon, 09 Jul 2012 04:07:37 -0400
Received: from mailout-de.gmx.net ([213.165.64.23]:60002)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1So8zq-0002X0-Pn
	for groff@gnu.org; Mon, 09 Jul 2012 04:07:07 -0400
Received: (qmail invoked by alias); 09 Jul 2012 08:07:04 -0000
Received: from 93-82-81-172.adsl.highway.telekom.at (EHLO localhost)
	[93.82.81.172]
	by mail.gmx.net (mp033) with SMTP; 09 Jul 2012 10:07:04 +0200
X-Authenticated: #54312696
X-Provags-ID: V01U2FsdGVkX19ODqEtJylOFj0+AdPz5xodQzUPdERVYoWL3f50JU
	FGXUHsdpA0Efhv
Date: Mon, 09 Jul 2012 10:07:03 +0200 (CEST)
Message-Id: <20120709.100703.170329139.wl@gnu.org>
To: ralph@inputplus.co.uk
From: Werner LEMBERG <wl@gnu.org>
In-Reply-To: <20120705210927.90BB7277B9@orac.inputplus.co.uk>
References: <XFMail.20120705213330.Ted.Harding@wlandres.net>
	<20120705210927.90BB7277B9@orac.inputplus.co.uk>
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] Placement problem with coloured circles in pic
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <groff.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/groff>,
	<mailto:groff-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/groff>
List-Post: <mailto:groff@gnu.org>
List-Help: <mailto:groff-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/groff>,
	<mailto:groff-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 09 Jul 2012 08:07:53 -0000


> I get a `bullseye' of green circles around 0, 0, see pic's output below.
> You could feed it into groff you end and also compare with your pic's
> output.

Me too, using the current CVS.


    Werner


From MAILER-DAEMON Mon Jul 09 11:22:36 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SoFnI-0006o0-3j
	for mharc-groff@gnu.org; Mon, 09 Jul 2012 11:22:36 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57135)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <schwarze@usta.de>) id 1SoFnC-0006n5-I9
	for groff@gnu.org; Mon, 09 Jul 2012 11:22:34 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <schwarze@usta.de>) id 1SoFnA-0004nG-Im
	for groff@gnu.org; Mon, 09 Jul 2012 11:22:30 -0400
Received: from mailout.scc.kit.edu ([129.13.185.202]:40278)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <schwarze@usta.de>) id 1SoFnA-0004my-CN
	for groff@gnu.org; Mon, 09 Jul 2012 11:22:28 -0400
Received: from hekate.usta.de (asta-nat.asta.uni-karlsruhe.de [172.22.63.82])
	by scc-mailout-02.scc.kit.edu with esmtp (Exim 4.72 #1)
	id 1SoFn7-0006rf-Hn; Mon, 09 Jul 2012 17:22:25 +0200
Received: from donnerwolke.usta.de ([172.24.96.3])
	by hekate.usta.de with esmtp (Exim 4.77)
	(envelope-from <schwarze@usta.de>) id 1SoFn7-0002Pp-Lp
	for groff@gnu.org; Mon, 09 Jul 2012 17:22:25 +0200
Received: from iris.usta.de ([172.24.96.5] helo=usta.de)
	by donnerwolke.usta.de with esmtp (Exim 4.72)
	(envelope-from <schwarze@usta.de>) id 1SoFn7-00044I-KU
	for groff@gnu.org; Mon, 09 Jul 2012 17:22:25 +0200
Received: from schwarze by usta.de with local (Exim 4.77)
	(envelope-from <schwarze@usta.de>) id 1SoFn7-0000zp-Cr
	for groff@gnu.org; Mon, 09 Jul 2012 17:22:25 +0200
Date: Mon, 9 Jul 2012 17:22:25 +0200
From: Ingo Schwarze <schwarze@usta.de>
To: groff@gnu.org
Message-ID: <20120709152225.GA30839@iris.usta.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.21 (2010-09-15)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 129.13.185.202
Subject: [Groff] mdoc: correct .Fl font restore
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <groff.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/groff>,
	<mailto:groff-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/groff>
List-Post: <mailto:groff@gnu.org>
List-Help: <mailto:groff-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/groff>,
	<mailto:groff-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 09 Jul 2012 15:22:35 -0000

Hi,

while working on the automatic test suite for mandoc(1)
comparing its output against groff(1), i noticed that
the .Fl macro in the groff_mdoc(7) suite doesn't correctly
restore the font if its arguments have switched the font.
Admittedly, switching the font in .Fl arguments is rather
bad mdoc(7) style, but i think the macros should behave
correctly even for mildly weird input, in particular for
issues that are easy to fix.

Here is a test case:

.Dd July 9, 2012
.Dt FL-FONT 1
.Os
.Sh NAME
.Nm Fl-font
.Nd changing fonts inside the flag macro
.Sh DESCRIPTION
normal text
.Fl bold\\fIemphasis\\fPback
trailing text

Currently, the "trailing text" will be emphasized
because .Fl does \f[] on exit instead of restoring the font.
With the patch below, the "trailing text" will be rendered
as normal text, as it should.

There are some more cases of "\f[]\s[0]" in the definition
of the .Fl macro, but as far as i understand, those do not
need to be changed because they cannot be reached after
processing text provided by the user.

Greetings from the OpenBSD general hackathon in Budapest,
  Ingo

P.S.
Regarding the VCS, i think in a project having basically
one or two active committers and not using branches at
all, anything more complicated than CVS is overkill.
I certainly wouldn't like to install bazaar just to be
able to send my occasional groff patches.


Index: tmac/doc.tmac
===================================================================
RCS file: /sources/groff/groff/tmac/doc.tmac,v
retrieving revision 1.43
diff -u -p -r1.43 doc.tmac
--- tmac/doc.tmac	8 Oct 2011 09:11:22 -0000	1.43
+++ tmac/doc.tmac	9 Jul 2012 15:04:35 -0000
@@ -438,7 +438,7 @@
 .      \" last argument
 .      if (\n[doc-reg-dfr1] == 4) \
 .        nop \|\-\c
-.      nop \f[]\s[0]\c
+.      nop \f[\n[doc-curr-font]]\s[\n[doc-curr-size]u]\c
 .      doc-print-and-reset
 .    \}
 .    el \{\


From MAILER-DAEMON Thu Jul 19 18:58:07 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Srzfb-00032K-2v
	for mharc-groff@gnu.org; Thu, 19 Jul 2012 18:58:07 -0400
Received: from eggs.gnu.org ([208.118.235.92]:59350)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1SrzfY-0002yT-PY
	for groff@gnu.org; Thu, 19 Jul 2012 18:58:05 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1SrzfY-0003OP-1O
	for groff@gnu.org; Thu, 19 Jul 2012 18:58:04 -0400
Received: from mailout-de.gmx.net ([213.165.64.22]:44252)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1SrzfX-0003OH-RD
	for groff@gnu.org; Thu, 19 Jul 2012 18:58:03 -0400
Received: (qmail invoked by alias); 19 Jul 2012 22:58:02 -0000
Received: from p14160-ipngn2701marunouchi.tokyo.ocn.ne.jp (EHLO localhost)
	[180.11.135.160]
	by mail.gmx.net (mp070) with SMTP; 20 Jul 2012 00:58:02 +0200
X-Authenticated: #54312696
X-Provags-ID: V01U2FsdGVkX1+cJeMyoUCcUXsQrotdB32iOKksbJyUhBv/J5fbxA
	HxFErrBIq0FMLf
Date: Wed, 18 Jul 2012 10:51:37 +0200 (CEST)
Message-Id: <20120718.105137.180373861.wl@gnu.org>
To: schwarze@usta.de
From: Werner LEMBERG <wl@gnu.org>
In-Reply-To: <20120709152225.GA30839@iris.usta.de>
References: <20120709152225.GA30839@iris.usta.de>
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] mdoc: correct .Fl font restore
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, 19 Jul 2012 22:58:05 -0000


> With the patch below, the "trailing text" will be rendered as normal
> text, as it should.

Thanks, I've commit it to the CVS.


    Werner


From MAILER-DAEMON Fri Jul 20 08:22:23 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SsCDv-0003eN-KL
	for mharc-groff@gnu.org; Fri, 20 Jul 2012 08:22:23 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44042)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1SsCDt-0003dF-P2
	for groff@gnu.org; Fri, 20 Jul 2012 08:22:22 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1SsCDp-0001L3-GE
	for groff@gnu.org; Fri, 20 Jul 2012 08:22:21 -0400
Received: from mail-lb0-f169.google.com ([209.85.217.169]:38062)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1SsCDp-0001Kt-93
	for groff@gnu.org; Fri, 20 Jul 2012 08:22:17 -0400
Received: by lbjn8 with SMTP id n8so6115095lbj.0
	for <groff@gnu.org>; Fri, 20 Jul 2012 05:22:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=date:from:to:subject:message-id:x-mailer:mime-version:content-type
	:content-transfer-encoding;
	bh=PmW2O8a6JrneqJvJf4B/ANKCOj8su5yg4nYpBBiellA=;
	b=INi+/ecSKsQrXrcdpHC/O3ZcgpcH+Oa/mU3LD7Tb5ueAkki5HBvHv/DjGm7aVQRWZO
	FI8gCM2U3L3PE9DWMOv5HtXszTPrka2BHjvh6LjZGPD9CT9YjdwrJPIAq71uTLTz4+1p
	vDoVW5tD4+ROEq5uYZ7e0NjkCcq7esSB0ubGF7ebH+Aey8+k2VW8h9p/4hrnntN5M5Cq
	5Ei2oTz7jba4XWLYcYJ2TfGyw2QYj+BqpFIMMBQe0DMvaifeuGy3qWMOXMrC6TKcgLK7
	9cm1vL/1Z7xVsApwlVDmvC2/n+l/rd4MSBBYk7hSRVxud2HiAl5OzSXoTDVrfu7zOKR+
	53UQ==
Received: by 10.112.102.8 with SMTP id fk8mr2825046lbb.71.1342786936150;
	Fri, 20 Jul 2012 05:22:16 -0700 (PDT)
Received: from erp07.git.ru ([81.195.105.5])
	by mx.google.com with ESMTPS id hi14sm4795348lab.4.2012.07.20.05.22.13
	(version=SSLv3 cipher=OTHER); Fri, 20 Jul 2012 05:22:14 -0700 (PDT)
Date: Fri, 20 Jul 2012 16:22:03 +0400
From: Anton Shepelev <anton.txt@gmail.com>
To: groff@gnu.org
Message-Id: <20120720162203.4a960e21d289de6edbad94cb@gmail.com>
X-Mailer: Sylpheed 3.2.0 (GTK+ 2.10.14; i686-pc-mingw32)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.217.169
Subject: [Groff] .bp in end-of-input traps.
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, 20 Jul 2012 12:22:22 -0000

Hello all,

.bp  doesn't  seem  to work in an end-of-input trap.
Here's an example for -Tascii:

    .de END
    this page
    .tm before bp
    .bp
    .tm after bp
    next page
    ..
    .em END
    End of input occurs here!

Why could this be?  The same code works as expected,
i.e.  prints "next page", if the END macro is called
directly at the end instead of from the trap.

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


From MAILER-DAEMON Fri Jul 20 08:36:22 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SsCRS-00079S-L1
	for mharc-groff@gnu.org; Fri, 20 Jul 2012 08:36:22 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43209)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1SsCRN-00079H-8o
	for groff@gnu.org; Fri, 20 Jul 2012 08:36:21 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1SsCRJ-0005MP-86
	for groff@gnu.org; Fri, 20 Jul 2012 08:36:17 -0400
Received: from helix.usm.uni-muenchen.de ([129.187.204.86]:55898)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1SsCRJ-0005M6-25
	for groff@gnu.org; Fri, 20 Jul 2012 08:36:13 -0400
Received: by helix.usm.uni-muenchen.de (Postfix, from userid 2097)
	id 6DD171613117; Fri, 20 Jul 2012 14:36:10 +0200 (CEST)
Date: Fri, 20 Jul 2012 14:36:10 +0200
From: Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
To: groff@gnu.org
Message-ID: <20120720123610.GC11674@usm.uni-muenchen.de>
References: <20120720162203.4a960e21d289de6edbad94cb@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20120720162203.4a960e21d289de6edbad94cb@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] .bp in end-of-input traps.
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, 20 Jul 2012 12:36:21 -0000


> .bp doesn't seem to work in an end-of-input trap.

Does this thread answer your question?:

  http://lists.gnu.org/archive/html/groff/2009-04/msg00019.html




From MAILER-DAEMON Fri Jul 20 09:13:34 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SsD1S-0000Aw-NM
	for mharc-groff@gnu.org; Fri, 20 Jul 2012 09:13:34 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56241)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1SsD1N-000098-7l
	for groff@gnu.org; Fri, 20 Jul 2012 09:13:33 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1SsD1J-0000Ui-7a
	for groff@gnu.org; Fri, 20 Jul 2012 09:13:29 -0400
Received: from mail-lb0-f169.google.com ([209.85.217.169]:45996)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1SsD1I-0000Uc-Ui
	for groff@gnu.org; Fri, 20 Jul 2012 09:13:25 -0400
Received: by lbjn8 with SMTP id n8so6190391lbj.0
	for <groff@gnu.org>; Fri, 20 Jul 2012 06:13:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=date:from:to:subject:message-id:in-reply-to:references:x-mailer
	:mime-version:content-type:content-transfer-encoding;
	bh=p03pnAsjyLBG2dS2oljAlPshvLYZAYqZY1y5V/ZoNYc=;
	b=nzLi81e0IiQBY4JNv/ndUTm/GZoX47mrcFwcMMxhi8W0NYcwUW71hreDWUfqDBxOEA
	yfM6juWgNqHMzcX8azKLEzpaubsOjk28PeX9FzkbT8/MUT9KYX1hdvaJAzRAogxNRglB
	Aql7fQ9qEfFMYgz0KN3pLm733z6jVEQ/6L7pubbXp3xFCrtWltn7hpS0uxv5J1xEqKHQ
	axfGeoO2JzEOzg4I4Z8Q1Hcm1QVmuFn18s3VLRtBaoh0Vw/Nr0BId65LhqLTnBSsqiS8
	N5JPDXOmqgVFQVnNt8UMNtqzaC9DCkCNOhhNOVFhuk6967y5js451MkzblkX0urQygn6
	r2UA==
Received: by 10.112.85.42 with SMTP id e10mr2914762lbz.17.1342790003836;
	Fri, 20 Jul 2012 06:13:23 -0700 (PDT)
Received: from erp07.git.ru ([81.195.105.5])
	by mx.google.com with ESMTPS id n7sm1141058lbk.10.2012.07.20.06.13.21
	(version=SSLv3 cipher=OTHER); Fri, 20 Jul 2012 06:13:22 -0700 (PDT)
Date: Fri, 20 Jul 2012 17:13:20 +0400
From: Anton Shepelev <anton.txt@gmail.com>
To: groff@gnu.org
Message-Id: <20120720171320.a21fec0c3f515068d2e07607@gmail.com>
In-Reply-To: <20120720123610.GC11674@usm.uni-muenchen.de>
References: <20120720162203.4a960e21d289de6edbad94cb@gmail.com>
	<20120720123610.GC11674@usm.uni-muenchen.de>
X-Mailer: Sylpheed 3.2.0 (GTK+ 2.10.14; i686-pc-mingw32)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.217.169
Subject: Re: [Groff] .bp in end-of-input traps.
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, 20 Jul 2012 13:13:33 -0000

Tadziu Hoffmann:

> > .bp  doesn't  seem  to  work  in an end-of-input
> > trap.  Here's an example for -Tascii:
> >
> >     .de END
> >     this page
> >     .tm before bp
> >     .bp
> >     .tm after bp
> >     next page
> >     ..
> >     .em END
> >     End of input occurs here!
> >
> > Why could this be?  The same code works  as  ex-
> > pected,  i.e.  prints  "next  page",  if the END
> > macro is called directly at the end  instead  of
> > from the trap.
>
> Does this thread answer your question?:
>
>       http://tinyurl.com/8yqysu3

Thanks,  it  does.  Adding \c and replacing .bp with
'bp fixed it.

The online version of the manual, which I was using,
is not up to date :-(

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


From MAILER-DAEMON Fri Jul 20 09:31:59 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SsDJH-0003Z1-Qe
	for mharc-groff@gnu.org; Fri, 20 Jul 2012 09:31:59 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50968)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1SsDJC-0003YV-Sl
	for groff@gnu.org; Fri, 20 Jul 2012 09:31:58 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1SsDJB-0005cT-6C
	for groff@gnu.org; Fri, 20 Jul 2012 09:31:54 -0400
Received: from helix.usm.uni-muenchen.de ([129.187.204.86]:42040)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1SsDJA-0005cG-W4
	for groff@gnu.org; Fri, 20 Jul 2012 09:31:53 -0400
Received: by helix.usm.uni-muenchen.de (Postfix, from userid 2097)
	id F41521613117; Fri, 20 Jul 2012 15:31:50 +0200 (CEST)
Date: Fri, 20 Jul 2012 15:31:50 +0200
From: Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
To: groff@gnu.org
Message-ID: <20120720133150.GD11674@usm.uni-muenchen.de>
References: <20120720162203.4a960e21d289de6edbad94cb@gmail.com>
	<20120720123610.GC11674@usm.uni-muenchen.de>
	<20120720171320.a21fec0c3f515068d2e07607@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20120720171320.a21fec0c3f515068d2e07607@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] .bp in end-of-input traps.
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, 20 Jul 2012 13:31:58 -0000


> Adding \c and replacing .bp with 'bp fixed it.

In a message further on in the thread Werner says he has
implemented an "em1" request which is the same as "em"
but doesn't have the last-page restriction.




From MAILER-DAEMON Fri Jul 20 09:47:26 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SsDYE-0007lE-E4
	for mharc-groff@gnu.org; Fri, 20 Jul 2012 09:47:26 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34269)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1SsDYB-0007ks-I6
	for groff@gnu.org; Fri, 20 Jul 2012 09:47:24 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1SsDY4-0001Sa-Fk
	for groff@gnu.org; Fri, 20 Jul 2012 09:47:23 -0400
Received: from mail-lb0-f169.google.com ([209.85.217.169]:43911)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1SsDY4-0001SQ-85
	for groff@gnu.org; Fri, 20 Jul 2012 09:47:16 -0400
Received: by lbjn8 with SMTP id n8so6239596lbj.0
	for <groff@gnu.org>; Fri, 20 Jul 2012 06:47:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=date:from:to:subject:message-id:in-reply-to:references:x-mailer
	:mime-version:content-type:content-transfer-encoding;
	bh=aNFyGRmua+diIvX5MsxJPqu1ta39QHXgXwLvlcxWE90=;
	b=dGM/eFDZTVUk3G0inBw4U0W/nmHUTVJzyThDFTm2Rx0YsPiSWA1P+eTYCikA05XIUT
	Rjcr4Bc7I36tkRsaaqdLjiFOXeENvTDGqFWCuH+pAvNDT5cZJvJBZ/zWwfgXemzLWoK0
	pT8o2dLwmgL+5GBTsVukSdsVHcR/etchK4yRkI0PQetQNloympcOSglOi9XTcB4nCMm1
	EM+LHWNfIeztg0y7twaHsb7KSuGx1s/vm2Diru+Qcs66fe7CkQQfRzPQmQr1BI4gzkQn
	C3jxN8z8I2RL0IK2W0MJenT7MajdSmvfPO/jN+PMc8+5vaGecs5S+VwhRwFhEj3/C9Uw
	oDNQ==
Received: by 10.112.48.169 with SMTP id m9mr2963416lbn.93.1342792035044;
	Fri, 20 Jul 2012 06:47:15 -0700 (PDT)
Received: from erp07.git.ru ([81.195.105.5])
	by mx.google.com with ESMTPS id d3sm1160697lbh.3.2012.07.20.06.47.13
	(version=SSLv3 cipher=OTHER); Fri, 20 Jul 2012 06:47:14 -0700 (PDT)
Date: Fri, 20 Jul 2012 17:47:13 +0400
From: Anton Shepelev <anton.txt@gmail.com>
To: groff@gnu.org
Message-Id: <20120720174713.a9279b5638b5d299613c2148@gmail.com>
In-Reply-To: <20120720133150.GD11674@usm.uni-muenchen.de>
References: <20120720162203.4a960e21d289de6edbad94cb@gmail.com>
	<20120720123610.GC11674@usm.uni-muenchen.de>
	<20120720171320.a21fec0c3f515068d2e07607@gmail.com>
	<20120720133150.GD11674@usm.uni-muenchen.de>
X-Mailer: Sylpheed 3.2.0 (GTK+ 2.10.14; i686-pc-mingw32)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.217.169
Subject: Re: [Groff] .bp in end-of-input traps.
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, 20 Jul 2012 13:47:24 -0000

Tadziu Hoffmann:

> > Adding \c and replacing .bp with 'bp fixed it.
>
> In  a message further on in the thread Werner says
> he has implemented an "em1" request which  is  the
> same  as  "em"  but doesn't have the last-page re-
> striction.

Yes, I had seen it.  But my version of groff is  too
old.

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


From MAILER-DAEMON Fri Jul 20 10:33:11 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SsEGV-00037M-49
	for mharc-groff@gnu.org; Fri, 20 Jul 2012 10:33:11 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43397)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1SsEGR-00035D-OX
	for groff@gnu.org; Fri, 20 Jul 2012 10:33:08 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1SsEGO-00066l-FP
	for groff@gnu.org; Fri, 20 Jul 2012 10:33:07 -0400
Received: from mail-lb0-f169.google.com ([209.85.217.169]:36579)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1SsEGO-00066d-8H
	for groff@gnu.org; Fri, 20 Jul 2012 10:33:04 -0400
Received: by lbjn8 with SMTP id n8so6303470lbj.0
	for <groff@gnu.org>; Fri, 20 Jul 2012 07:33:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=date:from:to:subject:message-id:x-mailer:mime-version:content-type
	:content-transfer-encoding;
	bh=CvEXEAAoW2OLjfeTgIx4CTZQseZNbQm2c+QUBQcfvEI=;
	b=f7Si7LQnl/1S1/J2tXfYKS1m6xUxwHI0XUgHDRvmmOrIkEn0BZc6eDzKI9XviomZkp
	tq1Bz2+wGv3miyd+RFPU3QNZ/M5KtvAheIFO39j0d4NbZuqEnlq+fFYm21YyreYsoSB6
	RketvOuiNjir+Ex0dV1E8rNpFYX16eYB/+YYnjZye9a6dA2cFXCKt9mIm1KcWD8UrJzR
	OFg8trZRpB8PUg/FomXAEHAjzjyZhsisKNSFXgX1Yfasx+E39EysC4F8MN6Pzw5PeTTS
	bCMdoxf0YmcWGqrNOlDwp6uyzsYeuYJEOfV1k2MiQxr7mtrQ3y/kn9IFjp/6qoIVCmFC
	+tRg==
Received: by 10.152.104.47 with SMTP id gb15mr6492956lab.45.1342794783135;
	Fri, 20 Jul 2012 07:33:03 -0700 (PDT)
Received: from erp07.git.ru ([81.195.105.5])
	by mx.google.com with ESMTPS id pp2sm5067157lab.3.2012.07.20.07.33.00
	(version=SSLv3 cipher=OTHER); Fri, 20 Jul 2012 07:33:01 -0700 (PDT)
Date: Fri, 20 Jul 2012 18:33:14 +0400
From: Anton Shepelev <anton.txt@gmail.com>
To: groff@gnu.org
Message-Id: <20120720183314.da4138cb4090a70856e13884@gmail.com>
X-Mailer: Sylpheed 3.2.0 (GTK+ 2.10.14; i686-pc-mingw32)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.217.169
Subject: [Groff] Included files are not preprocessed
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <groff.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/groff>,
	<mailto:groff-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/groff>
List-Post: <mailto:groff@gnu.org>
List-Help: <mailto:groff-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/groff>,
	<mailto:groff-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 20 Jul 2012 14:33:09 -0000

Hello all,

I have a problem designing well-strucutred documents
consisting of several  files.   Files  included  via
.mso,  .so,  or -m, are never run through preproces-
sors.  For example, it is very incovenient to use  a
macro  package containing Russian text together with
-K, and it is  impossible  to  initialize  eqn  from
within an included file.

Another  option  could  be to list all those file as
parameters to groff, or send them to  groff's  stan-
dard  input,  but  this  has the disadvantage of the
need to create an individual make- or  .bat  or  .sh
script in which all the used files must be hard-cod-
ed, together with their paths.

I want to keep all the inclusions to the source file
itself like:

    .mso ant-stacks
    .mso ant-statement-form
    .\" and so on...
    Source of the document using above
    macro packages

making  it  more autonomous and portable, so that it
could be typeset with a generic groff commandline.

Can you suggest a way to achieve this?

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


From MAILER-DAEMON Fri Jul 20 12:11:20 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SsFnU-00033b-Il
	for mharc-groff@gnu.org; Fri, 20 Jul 2012 12:11:20 -0400
Received: from eggs.gnu.org ([208.118.235.92]:49761)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1SsFnN-000339-6s
	for groff@gnu.org; Fri, 20 Jul 2012 12:11:18 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1SsFnL-0001jg-PO
	for groff@gnu.org; Fri, 20 Jul 2012 12:11:13 -0400
Received: from helix.usm.uni-muenchen.de ([129.187.204.86]:45854)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1SsFnL-0001j3-J5
	for groff@gnu.org; Fri, 20 Jul 2012 12:11:11 -0400
Received: by helix.usm.uni-muenchen.de (Postfix, from userid 2097)
	id 9E2EF1613117; Fri, 20 Jul 2012 18:11:09 +0200 (CEST)
Date: Fri, 20 Jul 2012 18:11:09 +0200
From: Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
To: groff@gnu.org
Message-ID: <20120720161109.GE11674@usm.uni-muenchen.de>
References: <20120720183314.da4138cb4090a70856e13884@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20120720183314.da4138cb4090a70856e13884@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] Included files are not preprocessed
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <groff.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/groff>,
	<mailto:groff-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/groff>
List-Post: <mailto:groff@gnu.org>
List-Help: <mailto:groff-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/groff>,
	<mailto:groff-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 20 Jul 2012 16:11:19 -0000


> Files included via .mso, .so, or -m, are never run through
> preprocessors.

That's why soelim was invented

  http://lists.gnu.org/archive/html/groff/2003-01/msg00069.html

(at least for .so, don't know about .mso or -m).




From MAILER-DAEMON Sat Jul 21 07:17:11 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SsXgN-0008ST-1J
	for mharc-groff@gnu.org; Sat, 21 Jul 2012 07:17:11 -0400
Received: from eggs.gnu.org ([208.118.235.92]:41217)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1SsXgK-0008Rd-Gv
	for groff@gnu.org; Sat, 21 Jul 2012 07:17:09 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1SsXgI-0003W6-Il
	for groff@gnu.org; Sat, 21 Jul 2012 07:17:08 -0400
Received: from mail-lb0-f169.google.com ([209.85.217.169]:49565)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1SsXgI-0003W2-8W
	for groff@gnu.org; Sat, 21 Jul 2012 07:17:06 -0400
Received: by lbjn8 with SMTP id n8so7474624lbj.0
	for <groff@gnu.org>; Sat, 21 Jul 2012 04:17:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=date:from:to:subject:message-id:in-reply-to:references:x-mailer
	:mime-version:content-type:content-transfer-encoding;
	bh=PbQlfuw60CLUwbZ9i2ksE3TJcHFha+7jr8bQVDu/Ozk=;
	b=XaAM+rTuBpHP0SqlxY3N+grX1Ckc11Pt+YuEnGgbAqmKvOd/NbWEsYpqXmOTjM3n3o
	fyCskNrOTihBaiAXXnXzeIbacC3LXQskC/t072Cqq8u9iEnHXpESxD8Q5jtm4KK/sNwt
	297DsU3D+6iuPjqAZPz0ukYxOUh2wWVRuyY+tSOYHsVq6Mdl7WZo1AFniNq9n2pXVe+H
	xVwlTAYy3htBELxZR2PP2EZpqcDVMX+wzEuGCQWRRqoyuaODFZB9DIsP02Ea7++aPhsA
	kX5JFkFJGgZbuJseuQ2nv2dnNUDgfot4IjmutVZQlUflQc2TNyIS4amr0vN/+gDQeCUh
	jRpw==
Received: by 10.152.122.12 with SMTP id lo12mr9693103lab.3.1342869422647;
	Sat, 21 Jul 2012 04:17:02 -0700 (PDT)
Received: from ANT ([95.73.200.182])
	by mx.google.com with ESMTPS id sm7sm7461099lab.5.2012.07.21.04.17.00
	(version=TLSv1/SSLv3 cipher=OTHER);
	Sat, 21 Jul 2012 04:17:01 -0700 (PDT)
Date: Sat, 21 Jul 2012 15:17:02 +0400
From: Anton Shepelev <anton.txt@gmail.com>
To: groff@gnu.org
Message-Id: <20120721151702.d46682078904eb003a1f7e9c@gmail.com>
In-Reply-To: <20120720161109.GE11674@usm.uni-muenchen.de>
References: <20120720183314.da4138cb4090a70856e13884@gmail.com>
	<20120720161109.GE11674@usm.uni-muenchen.de>
X-Mailer: Sylpheed 3.2.0beta9 (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.217.169
Subject: Re: [Groff] Included files are not preprocessed
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <groff.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/groff>,
	<mailto:groff-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/groff>
List-Post: <mailto:groff@gnu.org>
List-Help: <mailto:groff-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/groff>,
	<mailto:groff-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 21 Jul 2012 11:17:09 -0000

Tadziu Hoffmann:

> > Files  included  via .mso, .so, or -m, are never
> > run through preprocessors.
>
> That's why soelim was invented
>
>     http://tinyurl.com/d9yh2da
>     (link to the mailing list archive)
>
> (at least for .so, don't know about .mso or -m).

Thanks.  No, it doesn't work for either .mso or  -m,
and Werner explained why:

    Hmm.  Maybe you are right that some day peo-
    ple write a  standard  macro  package  <foo>
    which has to be preprocessed with, say, tbl.
    Nevertheless, I think  it  would  be  better
    then to store both a tmac.<foo>-raw file and
    a preprocessed tmac.<foo>.

Before asking this question I  too  had  thought  of
such  a  solution,  and had found it undesirable be-
cause it added an intermediate layer and the  burden
of  maintaining two copies of macro packages: origi-
nal and preprocessed.  It is similar to using a pre-
built  library  instead  of  a source file.  I don't
think it suits a script-based system like groff...

On the other hand, I already have  a  macro  package
which  I  use  to  maintain  more than one document.
Naturally, I want to keep it in the  tmac  directory
and call via the -m option, which I can't because it
has to be preprocessed with gpreconv on  account  of
its containing bits of Russian text...

    How  should  a  user know that a given macro
    package has to always be used with a certain
    preprocessor?

Good  question,  but  the alternative we now have is
that macro packages are never  preprocessed,  unless
used  in  an  inconvenient way -- via .so, which re-
quires system-specific setup like setting  up  paths
and symlinks for it to work.

I  don't have a better solution in mind, only a cou-
ple of suggestions:

  1.  Maybe a convention similar to  that  used  for
      man  pages -- list  required  preprocessors on
      the  first  line  of  the  source  in  a  com-
      ment -- would   be  better?   Of  course,  the
      source encoding will also have to be specified
      for gpreconv.

  2.  Have  an  option  to process all files: input,
      included via .so and .mso, and called  via  -m
      with  all  the preprocessors specified on com-
      mand line.  This would be a working,  although
      dirty, solution.

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


From MAILER-DAEMON Sat Jul 21 20:45:43 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SskIp-0004hu-9x
	for mharc-groff@gnu.org; Sat, 21 Jul 2012 20:45:43 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52673)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1SskIm-0004gJ-5j
	for groff@gnu.org; Sat, 21 Jul 2012 20:45:41 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1SskIl-0007mB-9T
	for groff@gnu.org; Sat, 21 Jul 2012 20:45:40 -0400
Received: from mailout-de.gmx.net ([213.165.64.23]:42403)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1SskIk-0007lv-UV
	for groff@gnu.org; Sat, 21 Jul 2012 20:45:39 -0400
Received: (qmail invoked by alias); 22 Jul 2012 00:45:36 -0000
Received: from st0094.nas931.kobe.nttpc.ne.jp (EHLO localhost)
	[202.212.166.190]
	by mail.gmx.net (mp033) with SMTP; 22 Jul 2012 02:45:36 +0200
X-Authenticated: #54312696
X-Provags-ID: V01U2FsdGVkX18gNEUXz/ogPN3wtwzt672ot0qet0MBR/cgI1Pl6Q
	swHPiGIAQDEFMA
Date: Sun, 22 Jul 2012 02:45:25 +0200 (CEST)
Message-Id: <20120722.024525.17324033.wl@gnu.org>
To: anton.txt@gmail.com
From: Werner LEMBERG <wl@gnu.org>
In-Reply-To: <20120721151702.d46682078904eb003a1f7e9c@gmail.com>
References: <20120720183314.da4138cb4090a70856e13884@gmail.com>
	<20120720161109.GE11674@usm.uni-muenchen.de>
	<20120721151702.d46682078904eb003a1f7e9c@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.23
Cc: groff@gnu.org
Subject: Re: [Groff] Included files are not preprocessed
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <groff.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/groff>,
	<mailto:groff-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/groff>
List-Post: <mailto:groff@gnu.org>
List-Help: <mailto:groff-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/groff>,
	<mailto:groff-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 22 Jul 2012 00:45:41 -0000


> On the other hand, I already have a macro package which I use to
> maintain more than one document.  Naturally, I want to keep it in
> the tmac directory and call via the -m option, which I can't because
> it has to be preprocessed with gpreconv on account of its containing
> bits of Russian text...

Compare this to the doc package: Before installation to the tmac
directory, (almost) all names have the prefix `doc-' which gets
stripped, together with all leading whitespace.  Using a Makefile for
doing `make install', it is really trivial to preprocess the macro
file with preconv before installing it.

>   1.  Maybe a convention similar to that used for man pages -- list
>       required preprocessors on the first line of the source in a
>       comment -- would be better?  Of course, the source encoding
>       will also have to be specified for gpreconv.

Honestly, I don't see a need for that.  In particular, it will cause
problems with older versions of groff.

>   2.  Have an option to process all files: input, included via .so
>       and .mso, and called via -m with all the preprocessors
>       specified on command line.  This would be a working, although
>       dirty, solution.

I'm not convinced that this is really useful.


    Werner


From MAILER-DAEMON Sun Jul 22 12:54:08 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SszQ0-0006sr-Kl
	for mharc-groff@gnu.org; Sun, 22 Jul 2012 12:54:08 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34593)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1SszPx-0006sA-Gl
	for groff@gnu.org; Sun, 22 Jul 2012 12:54:06 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1SszPw-0003Tx-Lu
	for groff@gnu.org; Sun, 22 Jul 2012 12:54:05 -0400
Received: from mail-lb0-f169.google.com ([209.85.217.169]:48122)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>)
	id 1SszPu-0003T5-Fx; Sun, 22 Jul 2012 12:54:02 -0400
Received: by lbjn8 with SMTP id n8so8546840lbj.0
	for <multiple recipients>; Sun, 22 Jul 2012 09:54:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer
	:mime-version:content-type:content-transfer-encoding;
	bh=9iuLNH5LeD1+FlHwapOutDMBa9W3TU+2WXPv8Z5yMGg=;
	b=XMK/3hpwiJRF7rNoS06qp3djZYQgtuXNbvkFpX/EZ9vc84SBkzN+5cRdWZjhNcqxSo
	RiIKaNIIBkB0QGi7q4L9BIpDGxdHfvqnzKvPLm80mWvgGZrqcSL7lDM0LVZ28cfU3veI
	HRl0IOIJpdBmzmB5Y8urDd2spH+lEizBGHjr/d7/tNib90Y6lPF5DphFZSOsdR9+iSzI
	mARVFm/5OzavFqG1UYDwzmw1Nq5T9SquY8Y2eCrTUeCDIrROpZArxrq5ikIrLwNOeTiT
	jktMu6eBpVrbHNb+J9dixxbeUJmMx5dXdltBMcRU+jXXsBZcirCJrIkqIekNCmbi9DI/
	r/dA==
Received: by 10.152.144.138 with SMTP id sm10mr13633546lab.22.1342976040964;
	Sun, 22 Jul 2012 09:54:00 -0700 (PDT)
Received: from ANT ([95.73.205.248]) by mx.google.com with ESMTPS id
	gi19sm10868493lab.16.2012.07.22.09.53.57
	(version=TLSv1/SSLv3 cipher=OTHER);
	Sun, 22 Jul 2012 09:54:00 -0700 (PDT)
Date: Sun, 22 Jul 2012 20:54:19 +0400
From: Anton Shepelev <anton.txt@gmail.com>
To: Werner LEMBERG <wl@gnu.org>
Message-Id: <20120722205419.1599cd81b3d704b9f3138be9@gmail.com>
In-Reply-To: <20120722.024525.17324033.wl@gnu.org>
References: <20120720183314.da4138cb4090a70856e13884@gmail.com>
	<20120720161109.GE11674@usm.uni-muenchen.de>
	<20120721151702.d46682078904eb003a1f7e9c@gmail.com>
	<20120722.024525.17324033.wl@gnu.org>
X-Mailer: Sylpheed 3.2.0beta9 (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.217.169
Cc: groff@gnu.org
Subject: Re: [Groff] Included files are not preprocessed
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <groff.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/groff>,
	<mailto:groff-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/groff>
List-Post: <mailto:groff@gnu.org>
List-Help: <mailto:groff-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/groff>,
	<mailto:groff-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 22 Jul 2012 16:54:06 -0000

Werner LEMBERG:

> Compare  this to the doc package: Before installa-
> tion to the tmac  directory,  (almost)  all  names
> have  the  prefix  `doc-' which gets stripped, to-
> gether with all leading whitespace.  Using a Make-
> file  for doing `make install', it is really triv-
> ial to preprocess the macro file with preconv  be-
> fore installing it.

Thanks -- I didn't know it.  I'll think about an in-
staller.  Currently I have a  primitive  cross-plat-
form  Pascal  program  that allows to call groff ac-
cording to one of the templates  defined  in  a  re-
source file.  I might teach it to expand environment
variables, and then I'd use the -I option to replace
.mso with .so and use soelim...

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


From MAILER-DAEMON Tue Jul 24 06:12:43 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Stc6d-0002Ia-PI
	for mharc-groff@gnu.org; Tue, 24 Jul 2012 06:12:43 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58957)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1Stc6Z-0002Hc-2b
	for groff@gnu.org; Tue, 24 Jul 2012 06:12:43 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1Stc6T-0007XU-79
	for groff@gnu.org; Tue, 24 Jul 2012 06:12:39 -0400
Received: from mailout-de.gmx.net ([213.165.64.22]:43906)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1Stc6S-0007TN-QY
	for groff@gnu.org; Tue, 24 Jul 2012 06:12:33 -0400
Received: (qmail invoked by alias); 24 Jul 2012 10:12:29 -0000
Received: from 22.193.145.122.ap.yournet.ne.jp (EHLO localhost)
	[122.145.193.22]
	by mail.gmx.net (mp038) with SMTP; 24 Jul 2012 12:12:29 +0200
X-Authenticated: #54312696
X-Provags-ID: V01U2FsdGVkX1+LtvEtEHaLhqscGsKeOX53MpQqY1LqNwFzqM5d57
	FuMkmw/s3FY7tF
Date: Tue, 24 Jul 2012 12:12:20 +0200 (CEST)
Message-Id: <20120724.121220.137517425.wl@gnu.org>
To: anton.txt@gmail.com
From: Werner LEMBERG <wl@gnu.org>
In-Reply-To: <20120720171320.a21fec0c3f515068d2e07607@gmail.com>
References: <20120720162203.4a960e21d289de6edbad94cb@gmail.com>
	<20120720123610.GC11674@usm.uni-muenchen.de>
	<20120720171320.a21fec0c3f515068d2e07607@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] .bp in end-of-input traps.
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, 24 Jul 2012 10:12:43 -0000


> The online version of the manual, which I was using, is not up to
> date :-(

Thanks for the reminder!  I've completely forgotten to install version
1.21, and I've fixed this right now.

    Werner


From MAILER-DAEMON Tue Jul 24 10:50:24 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1StgRM-0008Le-0B
	for mharc-groff@gnu.org; Tue, 24 Jul 2012 10:50:24 -0400
Received: from eggs.gnu.org ([208.118.235.92]:37537)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <wharms@bfs.de>) id 1StgRG-0008LX-1R
	for groff@gnu.org; Tue, 24 Jul 2012 10:50:22 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <wharms@bfs.de>) id 1StgRB-0007Wt-CO
	for groff@gnu.org; Tue, 24 Jul 2012 10:50:17 -0400
Received: from mx01.sz.bfs.de ([194.94.69.103]:57643)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <wharms@bfs.de>) id 1StgRA-0007Vs-Rx
	for groff@gnu.org; Tue, 24 Jul 2012 10:50:13 -0400
Received: from localhost (localhost [127.0.0.1])
	by mx01.sz.bfs.de (Postfix) with ESMTP id 897BE4AF9B
	for <groff@gnu.org>; Tue, 24 Jul 2012 16:50:10 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
	by mx01.sz.bfs.de (Postfix) with ESMTP id 7CDD14AFAC
	for <Groff@gnu.org>; Tue, 24 Jul 2012 16:50:10 +0200 (CEST)
X-Virus-Scanned: by amavisd-new-2.6.1 (20080629) (Debian) at bfs.de
Received: from mx01.sz.bfs.de ([127.0.0.1])
	by localhost (dc-slave-mx01.bfs.de [127.0.0.1]) (amavisd-new,
	port 10024) with ESMTP id 0DQsxz04450c for <Groff@gnu.org>;
	Tue, 24 Jul 2012 16:50:10 +0200 (CEST)
Received: from dc-slave2-fr.fr.bfs.de (dc-slave2-fr.fr.bfs.de [10.177.18.200])
	by mx01.sz.bfs.de (Postfix) with ESMTP id 3E4434AF9B
	for <Groff@gnu.org>; Tue, 24 Jul 2012 16:50:10 +0200 (CEST)
Received: from [134.92.181.33] (unknown [134.92.181.33])
	by dc-slave2-fr.fr.bfs.de (Postfix) with ESMTPSA id 64D7A71CDC4
	for <Groff@gnu.org>; Tue, 24 Jul 2012 16:50:09 +0200 (CEST)
Message-ID: <500EB621.1050107@bfs.de>
Date: Tue, 24 Jul 2012 16:50:09 +0200
From: walter harms <wharms@bfs.de>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de;
	rv:1.9.1.16) Gecko/20101125 SUSE/3.0.11 Thunderbird/3.0.11
MIME-Version: 1.0
To: Groff <Groff@gnu.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 194.94.69.103
Subject: [Groff] replacement for col
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: wharms@bfs.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: Tue, 24 Jul 2012 14:50:22 -0000

hi list,
i run into a problem that may be solved by others already.

I show a groff file as latin1, that worked fine. i had some ^H but that where filtered by "tr"
no problem. But i added some boldface to the text and i got something like that N^HNi^Hic^Hch^Hht^Ht.
No real surprise i know that "col" could handle that. Unfortunately the current version (util-linux-2.21.2)
stumble over some umlauts in the text (older version also).

Does someone have an sed statement that replaces col ?
Is there an easy way to tell groff to avoid N^HN for bold ?

re,
 wh


From MAILER-DAEMON Tue Jul 24 12:15:37 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Sthlp-0004Rh-PB
	for mharc-groff@gnu.org; Tue, 24 Jul 2012 12:15:37 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52907)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dmw@oxytropis.plus.com>) id 1Sthlm-0004Qk-V0
	for groff@gnu.org; Tue, 24 Jul 2012 12:15:36 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <dmw@oxytropis.plus.com>) id 1Sthll-00046y-Nu
	for groff@gnu.org; Tue, 24 Jul 2012 12:15:34 -0400
Received: from avasout07.plus.net ([84.93.230.235]:47447)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <dmw@oxytropis.plus.com>) id 1Sthll-00040s-1I
	for groff@gnu.org; Tue, 24 Jul 2012 12:15:33 -0400
Received: from dell-desktop.example.com ([84.92.111.67]) by avasout07 with smtp
	id eGFT1j0021THptQ01GFUi8; Tue, 24 Jul 2012 17:15:28 +0100
X-CM-Score: 0.00
X-CNFS-Analysis: v=2.0 cv=FPSZNpUs c=1 sm=1 a=zahYBDPRSX6fECX55ANGMA==:17
	a=anb54OhLz1MA:10 a=ihvODaAuJD4A:10 a=kj9zAlcOel0A:10 a=EBOSESyhAAAA:8
	a=A1X0JdhQAAAA:8 a=MrESbKllAAAA:8 a=6_8_lkY5QJpFQMZW15YA:9
	a=CjuIK1q_8ugA:10
	a=NwCu-nZhnzwA:10 a=zahYBDPRSX6fECX55ANGMA==:117
Date: Tue, 24 Jul 2012 17:16:43 +0100
From: "Denis M. Wilson" <dmw@oxytropis.plus.com>
To: groff@gnu.org
Message-ID: <20120724171643.690aaaee@dell-desktop.example.com>
In-Reply-To: <500EB621.1050107@bfs.de>
References: <500EB621.1050107@bfs.de>
X-Mailer: Claws Mail 3.7.4 (GTK+ 2.20.1; i486-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 84.93.230.235
Subject: Re: [Groff] replacement for col
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, 24 Jul 2012 16:15:36 -0000

Hello all

On Tue, 24 Jul 2012 16:50:09 +0200
walter harms <wharms@bfs.de> wrote:

> hi list,
> i run into a problem that may be solved by others already.
> 
> I show a groff file as latin1, that worked fine. i had some ^H but
> that where filtered by "tr" no problem. But i added some boldface to
> the text and i got something like that N^HNi^Hic^Hch^Hht^Ht. No real
> surprise i know that "col" could handle that. Unfortunately the
> current version (util-linux-2.21.2) stumble over some umlauts in the
> text (older version also).
> 
> Does someone have an sed statement that replaces col ?
> Is there an easy way to tell groff to avoid N^HN for bold ?

Pass on options to grotty; the following removes all backspaces:

     groff -ww -Tlatin1 -P-c -P-b -P-o -P-u

'col' is not needed for groff (was for old pre-groff nroff).

Denis



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


From MAILER-DAEMON Wed Jul 25 04:19:37 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Stwoj-0007Ff-G2
	for mharc-groff@gnu.org; Wed, 25 Jul 2012 04:19:37 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55217)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <wharms@bfs.de>) id 1Stwoc-00077J-Rm
	for groff@gnu.org; Wed, 25 Jul 2012 04:19:35 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <wharms@bfs.de>) id 1StwoY-0008Rn-PP
	for groff@gnu.org; Wed, 25 Jul 2012 04:19:30 -0400
Received: from mx01.sz.bfs.de ([194.94.69.103]:55625)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <wharms@bfs.de>) id 1StwoY-0008Rf-Id
	for groff@gnu.org; Wed, 25 Jul 2012 04:19:26 -0400
Received: from localhost (localhost [127.0.0.1])
	by mx01.sz.bfs.de (Postfix) with ESMTP id A42B34AFE0;
	Wed, 25 Jul 2012 10:19:25 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
	by mx01.sz.bfs.de (Postfix) with ESMTP id 948EA4AFE9;
	Wed, 25 Jul 2012 10:19:25 +0200 (CEST)
X-Virus-Scanned: by amavisd-new-2.6.1 (20080629) (Debian) at bfs.de
Received: from mx01.sz.bfs.de ([127.0.0.1])
	by localhost (dc-slave-mx01.bfs.de [127.0.0.1]) (amavisd-new,
	port 10024)
	with ESMTP id G2FLEJ3uiEqb; Wed, 25 Jul 2012 10:19:25 +0200 (CEST)
Received: from dc-slave2-fr.fr.bfs.de (dc-slave2-fr.fr.bfs.de [10.177.18.200])
	by mx01.sz.bfs.de (Postfix) with ESMTP id 444DE4AFE0;
	Wed, 25 Jul 2012 10:19:25 +0200 (CEST)
Received: from [134.92.181.33] (unknown [134.92.181.33])
	by dc-slave2-fr.fr.bfs.de (Postfix) with ESMTPSA id 64D8F74CAD1;
	Wed, 25 Jul 2012 10:19:24 +0200 (CEST)
Message-ID: <500FAC0B.5020708@bfs.de>
Date: Wed, 25 Jul 2012 10:19:23 +0200
From: walter harms <wharms@bfs.de>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de;
	rv:1.9.1.16) Gecko/20101125 SUSE/3.0.11 Thunderbird/3.0.11
MIME-Version: 1.0
To: "Denis M. Wilson" <dmw@oxytropis.plus.com>
References: <500EB621.1050107@bfs.de>
	<20120724171643.690aaaee@dell-desktop.example.com>
In-Reply-To: <20120724171643.690aaaee@dell-desktop.example.com>
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, 2)
X-Received-From: 194.94.69.103
Cc: groff@gnu.org
Subject: Re: [Groff] replacement for col
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: wharms@bfs.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: Wed, 25 Jul 2012 08:19:35 -0000



Am 24.07.2012 18:16, schrieb Denis M. Wilson:
> Hello all
> 
> On Tue, 24 Jul 2012 16:50:09 +0200
> walter harms <wharms@bfs.de> wrote:
> 
>> hi list,
>> i run into a problem that may be solved by others already.
>>
>> I show a groff file as latin1, that worked fine. i had some ^H but
>> that where filtered by "tr" no problem. But i added some boldface to
>> the text and i got something like that N^HNi^Hic^Hch^Hht^Ht. No real
>> surprise i know that "col" could handle that. Unfortunately the
>> current version (util-linux-2.21.2) stumble over some umlauts in the
>> text (older version also).
>>
>> Does someone have an sed statement that replaces col ?
>> Is there an easy way to tell groff to avoid N^HN for bold ?
> 
> Pass on options to grotty; the following removes all backspaces:
> 
>      groff -ww -Tlatin1 -P-c -P-b -P-o -P-u
> 

Works fine for me.
A nice extension for grotty would be a switch for pure/plain that disables
all bold, underlines etc.

re,
 wh



From MAILER-DAEMON Wed Jul 25 06:08:55 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1StyWV-0003SQ-GI
	for mharc-groff@gnu.org; Wed, 25 Jul 2012 06:08:55 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54382)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1StyWT-0003Pm-2c
	for groff@gnu.org; Wed, 25 Jul 2012 06:08:53 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1StyWN-0004dM-FH
	for groff@gnu.org; Wed, 25 Jul 2012 06:08:53 -0400
Received: from relay02.pair.com ([209.68.5.16]:3518)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <ralph@inputplus.co.uk>) id 1StyWN-0004dG-A1
	for groff@gnu.org; Wed, 25 Jul 2012 06:08:47 -0400
Received: (qmail 9208 invoked from network); 25 Jul 2012 10:08:45 -0000
Received: from 87.112.149.151 (HELO orac.inputplus.co.uk) (87.112.149.151)
	by relay02.pair.com with SMTP; 25 Jul 2012 10:08:45 -0000
X-pair-Authenticated: 87.112.149.151
Received: by orac.inputplus.co.uk (Postfix, from userid 1000)
	id 47BCB2050A; Wed, 25 Jul 2012 11:08:45 +0100 (BST)
Received: from orac.inputplus.co.uk (localhost [127.0.0.1])
	by orac.inputplus.co.uk (Postfix) with ESMTP id 262E1204A5
	for <groff@gnu.org>; Wed, 25 Jul 2012 11:08:45 +0100 (BST)
To: groff@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
In-reply-to: <500FAC0B.5020708@bfs.de>
References: <500EB621.1050107@bfs.de>
	<20120724171643.690aaaee@dell-desktop.example.com>
	<500FAC0B.5020708@bfs.de>
Comments: In-reply-to walter harms <wharms@bfs.de> message dated "Wed,
	25 Jul 2012 10:19:23 +0200."
Date: Wed, 25 Jul 2012 11:08:45 +0100
From: Ralph Corderoy <ralph@inputplus.co.uk>
Message-Id: <20120725100845.47BCB2050A@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
Subject: Re: [Groff] replacement for col
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, 25 Jul 2012 10:08:54 -0000

Hi Walter,

> > Pass on options to grotty; the following removes all backspaces:
> > 
> >      groff -ww -Tlatin1 -P-c -P-b -P-o -P-u
> > 
> 
> Works fine for me.  A nice extension for grotty would be a switch for
> pure/plain that disables all bold, underlines etc.

You could combine them.  -P-cbou

Cheers, Ralph.


From MAILER-DAEMON Thu Jul 26 08:17:40 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SuN0e-0006JW-TL
	for mharc-groff@gnu.org; Thu, 26 Jul 2012 08:17:40 -0400
Received: from eggs.gnu.org ([208.118.235.92]:59321)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1SuN0X-0006Ir-R8
	for groff@gnu.org; Thu, 26 Jul 2012 08:17:39 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1SuN0S-0004af-4a
	for groff@gnu.org; Thu, 26 Jul 2012 08:17:33 -0400
Received: from mailout-de.gmx.net ([213.165.64.23]:40641)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1SuN0R-0004aX-Ow
	for groff@gnu.org; Thu, 26 Jul 2012 08:17:28 -0400
Received: (qmail invoked by alias); 26 Jul 2012 12:17:25 -0000
Received: from 211-9-51-233.cust.bit-drive.ne.jp (EHLO localhost)
	[211.9.51.233]
	by mail.gmx.net (mp016) with SMTP; 26 Jul 2012 14:17:25 +0200
X-Authenticated: #54312696
X-Provags-ID: V01U2FsdGVkX1/aKBsl+EjacLZUOhcI2jGBoRJUNzMHi16dOw/NHn
	QAdJ4FQ54gRyd7
Date: Thu, 26 Jul 2012 14:17:17 +0200 (CEST)
Message-Id: <20120726.141717.10946988.wl@gnu.org>
To: ralph@inputplus.co.uk
From: Werner LEMBERG <wl@gnu.org>
In-Reply-To: <20120725100845.47BCB2050A@orac.inputplus.co.uk>
References: <20120724171643.690aaaee@dell-desktop.example.com>
	<500FAC0B.5020708@bfs.de>
	<20120725100845.47BCB2050A@orac.inputplus.co.uk>
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] replacement for col
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, 26 Jul 2012 12:17:39 -0000

>> > Pass on options to grotty; the following removes all backspaces:
>> > 
>> >      groff -ww -Tlatin1 -P-c -P-b -P-o -P-u
>> Works fine for me.  A nice extension for grotty would be a switch
>> for pure/plain that disables all bold, underlines etc.
> 
> You could combine them.  -P-cbou

Or write a simple shell script.


    Werner


From MAILER-DAEMON Thu Jul 26 08:31:53 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SuNEP-0005f0-Ro
	for mharc-groff@gnu.org; Thu, 26 Jul 2012 08:31:53 -0400
Received: from eggs.gnu.org ([208.118.235.92]:41575)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <wharms@bfs.de>) id 1SuNEK-0005cs-26
	for groff@gnu.org; Thu, 26 Jul 2012 08:31:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <wharms@bfs.de>) id 1SuNEE-000082-9a
	for groff@gnu.org; Thu, 26 Jul 2012 08:31:47 -0400
Received: from mx01.sz.bfs.de ([194.94.69.103]:24773)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <wharms@bfs.de>) id 1SuNEE-00007c-2i
	for groff@gnu.org; Thu, 26 Jul 2012 08:31:42 -0400
Received: from localhost (localhost [127.0.0.1])
	by mx01.sz.bfs.de (Postfix) with ESMTP id 171DF4AEBC
	for <groff@gnu.org>; Thu, 26 Jul 2012 14:31:40 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
	by mx01.sz.bfs.de (Postfix) with ESMTP id 08D394AFE9
	for <groff@gnu.org>; Thu, 26 Jul 2012 14:31:40 +0200 (CEST)
X-Virus-Scanned: by amavisd-new-2.6.1 (20080629) (Debian) at bfs.de
Received: from mx01.sz.bfs.de ([127.0.0.1])
	by localhost (dc-slave-mx01.bfs.de [127.0.0.1]) (amavisd-new,
	port 10024) with ESMTP id AmUSIXYGELx1 for <groff@gnu.org>;
	Thu, 26 Jul 2012 14:31:39 +0200 (CEST)
Received: from dc-slave2-fr.fr.bfs.de (dc-slave2-fr.fr.bfs.de [10.177.18.200])
	by mx01.sz.bfs.de (Postfix) with ESMTP id C33024AEBC
	for <groff@gnu.org>; Thu, 26 Jul 2012 14:31:39 +0200 (CEST)
Received: from [134.92.181.33] (unknown [134.92.181.33])
	by dc-slave2-fr.fr.bfs.de (Postfix) with ESMTPSA id ECD9271CDC4
	for <groff@gnu.org>; Thu, 26 Jul 2012 14:31:38 +0200 (CEST)
Message-ID: <501138AA.3030305@bfs.de>
Date: Thu, 26 Jul 2012 14:31:38 +0200
From: walter harms <wharms@bfs.de>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de;
	rv:1.9.1.16) Gecko/20101125 SUSE/3.0.11 Thunderbird/3.0.11
MIME-Version: 1.0
To: groff@gnu.org
References: <20120724171643.690aaaee@dell-desktop.example.com>	<500FAC0B.5020708@bfs.de>	<20120725100845.47BCB2050A@orac.inputplus.co.uk>
	<20120726.141717.10946988.wl@gnu.org>
In-Reply-To: <20120726.141717.10946988.wl@gnu.org>
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, 2)
X-Received-From: 194.94.69.103
Subject: Re: [Groff] replacement for col
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: wharms@bfs.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: Thu, 26 Jul 2012 12:31:52 -0000



Am 26.07.2012 14:17, schrieb Werner LEMBERG:
>>>> Pass on options to grotty; the following removes all backspaces:
>>>>
>>>>      groff -ww -Tlatin1 -P-c -P-b -P-o -P-u
>>> Works fine for me.  A nice extension for grotty would be a switch
>>> for pure/plain that disables all bold, underlines etc.
>>
>> You could combine them.  -P-cbou
> 
> Or write a simple shell script.
> 

Actualy I have a simple shell script NTL it would be convenied to disable all
styles at once.

re,
 wh


From MAILER-DAEMON Thu Jul 26 08:43:32 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SuNPg-0006CF-HQ
	for mharc-groff@gnu.org; Thu, 26 Jul 2012 08:43:32 -0400
Received: from eggs.gnu.org ([208.118.235.92]:36143)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1SuNPZ-0005pE-3n
	for groff@gnu.org; Thu, 26 Jul 2012 08:43:30 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1SuNPT-00047u-5U
	for groff@gnu.org; Thu, 26 Jul 2012 08:43:25 -0400
Received: from mailout-de.gmx.net ([213.165.64.23]:48953)
	by eggs.gnu.org with smtp (Exim 4.71)
	(envelope-from <werner.lemberg@gmx.de>) id 1SuNPS-00047h-Qf
	for groff@gnu.org; Thu, 26 Jul 2012 08:43:19 -0400
Received: (qmail invoked by alias); 26 Jul 2012 12:43:17 -0000
Received: from 211-9-51-233.cust.bit-drive.ne.jp (EHLO localhost)
	[211.9.51.233]
	by mail.gmx.net (mp072) with SMTP; 26 Jul 2012 14:43:17 +0200
X-Authenticated: #54312696
X-Provags-ID: V01U2FsdGVkX18iS9JISFIia5BWhUE9ExWc3urTcVnQkpyYaFO9vU
	DFxNsmoNxViiRr
Date: Thu, 26 Jul 2012 14:43:10 +0200 (CEST)
Message-Id: <20120726.144310.127865466.wl@gnu.org>
To: wharms@bfs.de
From: Werner LEMBERG <wl@gnu.org>
In-Reply-To: <501138AA.3030305@bfs.de>
References: <20120725100845.47BCB2050A@orac.inputplus.co.uk>
	<20120726.141717.10946988.wl@gnu.org> <501138AA.3030305@bfs.de>
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=iso-8859-1
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
Cc: groff@gnu.org
Subject: Re: [Groff] replacement for col
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, 26 Jul 2012 12:43:31 -0000


>>> You could combine them.  -P-cbou
>> =

>> Or write a simple shell script.
> =

> Actualy I have a simple shell script NTL it would be convenied to
> disable all styles at once.

If we have a situation similar to GNU's `indent' program where, say,
option `-gnu=B4 is the same as setting the options

  -nbad -bap -nbc -bbo -bl -bli2 -bls -ncdb -nce -cp1 -cs -di2
  -ndj -nfc1 -nfca -hnl -i2 -ip5 -lp -pcs -nprs -psl -saf -sai
  -saw -nsc -nsob

*then* I'm willing to add a shorthand :-)


    Werner


From MAILER-DAEMON Thu Jul 26 09:54:08 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SuOW0-0000ai-3k
	for mharc-groff@gnu.org; Thu, 26 Jul 2012 09:54:08 -0400
Received: from eggs.gnu.org ([208.118.235.92]:38324)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1SuOVs-0008OQ-SP
	for groff@gnu.org; Thu, 26 Jul 2012 09:54:06 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1SuOVo-00087c-AD
	for groff@gnu.org; Thu, 26 Jul 2012 09:54:00 -0400
Received: from helix.usm.uni-muenchen.de ([129.187.204.86]:58677)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1SuOVn-000878-VW
	for groff@gnu.org; Thu, 26 Jul 2012 09:53:56 -0400
Received: by helix.usm.uni-muenchen.de (Postfix, from userid 2097)
	id E78B41613121; Thu, 26 Jul 2012 15:53:52 +0200 (CEST)
Date: Thu, 26 Jul 2012 15:53:52 +0200
From: Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
To: groff@gnu.org
Message-ID: <20120726135352.GA15760@usm.uni-muenchen.de>
References: <20120720183314.da4138cb4090a70856e13884@gmail.com>
	<20120720161109.GE11674@usm.uni-muenchen.de>
	<20120721151702.d46682078904eb003a1f7e9c@gmail.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="OgqxwSJOaUobr8KG"
Content-Disposition: inline
In-Reply-To: <20120721151702.d46682078904eb003a1f7e9c@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] Included files are not preprocessed
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <groff.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/groff>,
	<mailto:groff-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/groff>
List-Post: <mailto:groff@gnu.org>
List-Help: <mailto:groff-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/groff>,
	<mailto:groff-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 26 Jul 2012 13:54:07 -0000


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


> Nevertheless, I think it would be better then to store both
> a tmac.<foo>-raw file and a preprocessed tmac.<foo>.

>From what I've read, the old Bell Labs [nt]roff had an option
to read macro files in a sort of "compiled" version (to reduce
startup time), so if one used this feature it would have been
useful to install the compiled version of the *preprocessed*
macro file.  But this is probably irrelevant for groff.


> Maybe a convention similar to that used for man pages --
> list required preprocessors on the first line of the source
> in a comment -- would  be better?

Interesting that you mention this, because that's exactly
what I usually do (inspired by man, of course).  That is,
I have a shell script "myroff" [*] which reads the first
line of the input file, interprets it as options, and calls
groff accordingly (and also opens/refreshes the gv window
with the output).  You could also use this shell script as
a replacement for the "driver" program groff and build your
own pipeline with it instead.

(It goes without saying that such a script is of course
permanently under construction.)


[*] which, by the way, is bound to <F1> in Vim via

  au BufNewFile,BufRead *.ro map <buffer> <F1> :up<CR>:!myroff "%"<CR><CR>

in my .vimrc (my *roff files are recognized by a ".ro"
(for "runoff") extension).



--OgqxwSJOaUobr8KG
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=myroff

#!/bin/bash

# set -x
  trap "" 1

  roff="$1"
  post=`dirname "$1"`/`basename "$1" .ro`.ps
  view="gv --nowatch"
# groff="$HOME/comp/src/groff-cvs/groff/test-groff -P -F$HOME/lib/roff/font"
  groff=groff
# GROFF_FONT_PATH=$HOME/lib/fonts/DIT-edited:$HOME/lib/fonts/DIT-generated
  GROFF_FONT_PATH=$HOME/lib/roff/font
  export GROFF_FONT_PATH

  refresh(){
    test -z "$1" && { $view "$post" & } || kill -HUP $1
  }

  opt=""
  sort="no"
  manual="false"
  duplex="true"
  read comment options <"$roff"

  for option in $options
  do
    case $option in
      soelim)  opt="$opt -s";;
      tbl)     opt="$opt -t";;
      eqn)     opt="$opt -e";;
      pic)     opt="$opt -p";;
      refer)   opt="$opt -R";;
      man)     opt="$opt -man";;
      mdoc)    opt="$opt -mdoc";;
      ms)      opt="$opt -ms";;
      me)      opt="$opt -me";;
      mm)      opt="$opt -mm";;
      mom)     opt="$opt -mom";;
      unsafe)  opt="$opt -U";;
      land)    opt="$opt -P -l";;
      a5)      opt="$opt -P -pa5";;
      b5)      opt="$opt -P -pb5";;
      c6)      opt="$opt -P -pc6";;
      -p*)     opt="$opt -P $option";;
#     manual)  opt="$opt -P -m";;
      manual)  manual="true";;
      simplex) duplex="false";;
      resort)  sort="yes";;
      *)       echo "unknown option \"$option\"";;
    esac
  done

  if test "$sort" = "yes"
  then
    "$groff" -ww -b -Tps $opt -Z "$roff" |
      sed -f $HOME/lib/roff/resort.sed |
      grops |
      sed -e "/%%BeginFeature: \*PageSize Default/,/%%EndFeature/d
        /^%%EndSetup$/i\
        << /Duplex $duplex /ManualFeed $manual >> setpagedevice" \
      >"$post"
    rm troff.sort
  else
    "$groff" -ww -b -Tps $opt "$roff" |
      sed -e "
#        1s/$/ EPSF\\
# %%BoundingBox: 0 0 596 794/
#       /%%BeginFeature: \*PageSize Default/,/%%EndFeature/d
        /^%%EndSetup$/i\
        << /Duplex $duplex /ManualFeed $manual >> setpagedevice" \
      >"$post"
  fi

# -- ps output is like "1308677 pts/19  S  0:00.38 gv test.ps" --
# -- first item is PID, used in refresh function as $1 --
# -- [0-9] matches time and is used to exclude the grep process --

  pid=`ps x | grep "[0-9] $view $post"`
  refresh $pid


--OgqxwSJOaUobr8KG--


From MAILER-DAEMON Mon Jul 30 07:46:22 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SvoQY-0004wZ-3A
	for mharc-groff@gnu.org; Mon, 30 Jul 2012 07:46:22 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57920)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1SvoQM-0004vI-Lh
	for groff@gnu.org; Mon, 30 Jul 2012 07:46:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1SvoQF-0005of-F6
	for groff@gnu.org; Mon, 30 Jul 2012 07:46:10 -0400
Received: from mail-lb0-f169.google.com ([209.85.217.169]:56239)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1SvoQF-0005nP-3q
	for groff@gnu.org; Mon, 30 Jul 2012 07:46:03 -0400
Received: by lbjn8 with SMTP id n8so3720450lbj.0
	for <groff@gnu.org>; Mon, 30 Jul 2012 04:46:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=date:from:to:subject:message-id:in-reply-to:references:x-mailer
	:mime-version:content-type:content-transfer-encoding;
	bh=9DBSZt1xxnJqYEK3402wKjm/4gfvXBvrMri/T4oH/4s=;
	b=oA81aogYT/vL3UbsHINrNwejUPC7fkjf7tD6h7CQR9U/3kZOF6PE9H9sRxmghnsM+p
	nC582QeJEfpUnvIHVKnJct2t67DIGeCLswYeEPxrt5aUslfvm0DxiUbLtW66RiAzNiOw
	RQiKyoqSUuFoFELtvdYrTEkVQJ9fiDDTWiA/KD1GBqLQoxJA05b9fKf5hwM/J3uYrLSv
	vOJsLg6/0Iv5zqkAVvApadr5hmdh9r0yRiq3aFqZpfjVa1hGIHL1RB5NaEfJmM1x4pwC
	AK92oj8q5z1Z+n+zR5MX8jTpEA0B0D6P5QeYZQbR4Jvkb+Y3Atrqq1iIRMAomYJQ/ea9
	o1jA==
Received: by 10.152.127.98 with SMTP id nf2mr11433068lab.4.1343648761856;
	Mon, 30 Jul 2012 04:46:01 -0700 (PDT)
Received: from erp07.git.ru ([81.195.105.5])
	by mx.google.com with ESMTPS id o5sm2141059lbg.5.2012.07.30.04.45.58
	(version=SSLv3 cipher=OTHER); Mon, 30 Jul 2012 04:46:00 -0700 (PDT)
Date: Mon, 30 Jul 2012 15:45:51 +0400
From: Anton Shepelev <anton.txt@gmail.com>
To: groff@gnu.org
Message-Id: <20120730154551.c383ba7c5ebd529246955e68@gmail.com>
In-Reply-To: <20120726135352.GA15760@usm.uni-muenchen.de>
References: <20120720183314.da4138cb4090a70856e13884@gmail.com>
	<20120720161109.GE11674@usm.uni-muenchen.de>
	<20120721151702.d46682078904eb003a1f7e9c@gmail.com>
	<20120726135352.GA15760@usm.uni-muenchen.de>
X-Mailer: Sylpheed 3.2.0 (GTK+ 2.10.14; i686-pc-mingw32)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.217.169
Subject: Re: [Groff] Included files are not preprocessed
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <groff.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/groff>,
	<mailto:groff-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/groff>
List-Post: <mailto:groff@gnu.org>
List-Help: <mailto:groff-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/groff>,
	<mailto:groff-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 11:46:20 -0000

Tadziu Hoffmann:

> Interesting  that you mention this, because that's
> exactly what I usually do  (inspired  by  man,  of
> course).   That is, I have a shell script "myroff"
> [*] which reads the first line of the input  file,
> interprets  it as options, and calls groff accord-
> ingly (and also opens/refreshes the gv window with
> the output).  You could also use this shell script
> as a replacement for the  "driver"  program  groff
> and build your own pipeline with it instead.
>
> (It  goes  without saying that such a script is of
> course permanently under construction.)
> [...]

Thanks for sharing your script, Tadziu!  I  hesitate
to  use  more than trivial scripts for groff because
I'd have to maintain them in  two  verstions:  POSIX
and MSDOS, but that might be a good reason for me to
learn both.

By the way, the principle of early processing  stat-
ing that any decision in a program should be made as
soon as the relevant information  becomes  available
seems  to speak in favour of intalling pre-processed
macro files...

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


From MAILER-DAEMON Mon Jul 30 09:07:06 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Svpgg-0006un-Mp
	for mharc-groff@gnu.org; Mon, 30 Jul 2012 09:07:06 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52434)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1SvpgX-0006uM-7u
	for groff@gnu.org; Mon, 30 Jul 2012 09:07:04 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1SvpgP-00029e-4O
	for groff@gnu.org; Mon, 30 Jul 2012 09:06:57 -0400
Received: from mail-lpp01m010-f41.google.com ([209.85.215.41]:46985)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1SvpgO-00029P-Si
	for groff@gnu.org; Mon, 30 Jul 2012 09:06:49 -0400
Received: by lahi5 with SMTP id i5so3691082lah.0
	for <groff@gnu.org>; Mon, 30 Jul 2012 06:06:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=date:from:to:subject:message-id:x-mailer:mime-version:content-type
	:content-transfer-encoding;
	bh=4lCKyI+NrtUEI/Cs3Ep320u2CblajMQXLybO2B1mNLQ=;
	b=k7acBthXReSbv3I4/J+4amUUnYncyu7T3RNfMtRGaStFnKblqyLOxpmxD1FqsyxCFp
	FfAZTLML1nHJ6XMPRQAgnhRQ0yDgLMfuv4qMfGN9Y1ZQ+Cuhw4Nu7xcklBRvthEeu6ks
	PfcMvZiESSCC2t1UPY4o/DrSeaBNwwrb+vpzMhPOuROFyEdiNNhWndrlMKirNQMdzaCJ
	/JtsUgMyYksZ/+TLArlDQJ6/rj8W1iPye2N81KU5iCPnIjoIFlzHS/fs7zQji3+JJXzg
	1QGoFfEu4oIRojUSZQmjrR3iyVI3RHOoL9IWbwaX01BjsL8nnVKXaMF9CqVSRy9J3Mpo
	eUog==
Received: by 10.112.83.169 with SMTP id r9mr5104947lby.66.1343653607909;
	Mon, 30 Jul 2012 06:06:47 -0700 (PDT)
Received: from erp07.git.ru ([81.195.105.5])
	by mx.google.com with ESMTPS id b3sm2183648lbh.6.2012.07.30.06.06.46
	(version=SSLv3 cipher=OTHER); Mon, 30 Jul 2012 06:06:46 -0700 (PDT)
Date: Mon, 30 Jul 2012 17:06:40 +0400
From: Anton Shepelev <anton.txt@gmail.com>
To: groff@gnu.org
Message-Id: <20120730170640.5d9f7506ce63e67360bf0d6a@gmail.com>
X-Mailer: Sylpheed 3.2.0 (GTK+ 2.10.14; i686-pc-mingw32)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.215.41
Subject: [Groff] gpreconv on Windows fails with CRLF files
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <groff.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/groff>,
	<mailto:groff-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/groff>
List-Post: <mailto:groff@gnu.org>
List-Help: <mailto:groff-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/groff>,
	<mailto:groff-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 13:07:05 -0000

Hello, all

I  have  problems with gpreconv on Windows (GNUWin32
Groff).  Whenever I want to use it, I have  to  con-
vert the end-of-line symbols:

    tr -d \015 < [infile]|groff -U -Kcp1251 ...

which  makes the use of soelim much less convenient,
because I have to preconvert my files  to  the  '\n'
line  end  format,  while tbl, eqn, and groff itself
handle '\r\n' files correctly.

Is it reasonable to modify gpreconv or  its  Windows
port so that on Windows it will expect '\r\n'?

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


From MAILER-DAEMON Mon Jul 30 11:41:54 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Svs6U-0002Gc-P5
	for mharc-groff@gnu.org; Mon, 30 Jul 2012 11:41:54 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43232)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1Svs6P-0002G5-72
	for groff@gnu.org; Mon, 30 Jul 2012 11:41:53 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1Svs6J-0006qE-8b
	for groff@gnu.org; Mon, 30 Jul 2012 11:41:49 -0400
Received: from mail-lpp01m010-f41.google.com ([209.85.215.41]:55871)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1Svs6J-0006pu-13
	for groff@gnu.org; Mon, 30 Jul 2012 11:41:43 -0400
Received: by lahi5 with SMTP id i5so3803318lah.0
	for <groff@gnu.org>; Mon, 30 Jul 2012 08:41:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=date:from:to:subject:message-id:x-mailer:mime-version:content-type;
	bh=py7XUeeSfM3VHI9/pIGDC36xnVscYXuYKXqy41shMU4=;
	b=0zkyOT5tjSWsiUl3zlTNAPKCOPWxYhupgiyFQvsnWOujIQFE+EbOsvf3LEFarMgCFd
	06TRorMrzttX9+GXRqD+ZR7R6npiOv2V5IqLYl3j/s1NVAX3T6EWn1ElY4c2TRn0Mk81
	N7FDo9A//mgRR8MB1IZXUctRWEn7Zsxm6mTHr5GzBXfddAKIgEjNxDrTJ8hWvXMz5Z0M
	snyi0+vsv9wIeoJZPugpMs6hRSftZQejKVxkK7gCeEngRYejki6/WTjeJBq/6L8ADRBH
	9DbyBllDSOdaPclKpFUNVmcVv0LPQMGnbWsGUIUH9BOoVEoaCUH88gAHv2yCJZ+PDwnG
	g27A==
Received: by 10.112.29.233 with SMTP id n9mr5386109lbh.91.1343662901923;
	Mon, 30 Jul 2012 08:41:41 -0700 (PDT)
Received: from erp07.git.ru ([81.195.105.5])
	by mx.google.com with ESMTPS id pe8sm10871980lab.17.2012.07.30.08.41.39
	(version=SSLv3 cipher=OTHER); Mon, 30 Jul 2012 08:41:40 -0700 (PDT)
Date: Mon, 30 Jul 2012 19:41:28 +0400
From: Anton Shepelev <anton.txt@gmail.com>
To: groff@gnu.org
Message-Id: <20120730194128.93e0ef6e552f90d223ceab03@gmail.com>
X-Mailer: Sylpheed 3.2.0 (GTK+ 2.10.14; i686-pc-mingw32)
Mime-Version: 1.0
Content-Type: multipart/mixed;
	boundary="Multipart=_Mon__30_Jul_2012_19_41_28_+0400_NIhBaokZ8c8_Tw5B"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.215.41
Subject: [Groff] A question about vertical position traps
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <groff.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/groff>,
	<mailto:groff-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/groff>
List-Post: <mailto:groff@gnu.org>
List-Help: <mailto:groff-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/groff>,
	<mailto:groff-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 15:41:53 -0000

This is a multi-part message in MIME format.

--Multipart=_Mon__30_Jul_2012_19_41_28_+0400_NIhBaokZ8c8_Tw5B
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Hello, again

I want to typeset a list like this:

     1.  Text text text text text text text   [label A]
         text text text text  text  text  text  text
         text  text  text  text  text text text text
         text text..

     2.  Text text text text text text text   [label B]
         text text text text  text  text  text  text
         text  text  text  text  text text text text
         text text..

In order to make the text flow around the [labels] I
want to use vertical position traps, and my  problem
is  that  I can't hava a trap spring earlier than on
the next line, so I get:

     1.  Text text text text text text text   [label C]
         text text text text text text text
         text  text  text  text  text text text text
         text text text text..

     2.  Text text text text text text text   [label D]
         text text text text text text text
         text  text  text  text  text text text text
         text text..

Can you suggest a way to achieve the desired result?
Attached  is  a  small  test example for -Tascii de-
mostrating the setting of the earliest  trap  possi-
ble.

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

--Multipart=_Mon__30_Jul_2012_19_41_28_+0400_NIhBaokZ8c8_Tw5B
Content-Type: application/x-troff;
 name="test.roff"
Content-Disposition: attachment;
 filename="test.roff"
Content-Transfer-Encoding: base64

Lndhcm4NCi5sbCAzMG4NCi5kZSB0cmFwDQouICAgbGwgKzhuDQouICAgdG0gVHJhcCBzcHJ1bmcg
YXQgXFxuWy5kXQ0KLi4NCkEgdGVzdCBvZiB2ZXJ0aWNhbCBwb3NpdGlvbiB0cmFwcy4NCi5zcCAx
dg0KLlwiIFJlcGxhY2luZyB0aGUgdmFsdWUgYmVsb3cgdG8gYW55dGhpbmcgbG93ZXIgdGhhbiAy
MXUNCi5cIiBzdG9wcyBpdCBmcm9tIHdvcmtpbmcgYXQgYWxsIG9uIC1UYXNjaWkuLi4NCi53aCBc
blsuZF11KzIxdSB0cmFwDQpJJ20gZ29pbmcgZG93bnRvd24sIGJ1eSBtZSBhIGZvdXJ0eS1mb3Vy
Lg0KWWVzLCBJIGFtIGdvaW5nIGRvd250b3duLCBidXkgbWUgYSBmb3VydHktZm91ci4NCkdvdCBi
YWQgbmV3cyB0b2RheSwgbXkgYmFieSBkb24ndCB3YW50IG1lIG5vIG1vcmUu

--Multipart=_Mon__30_Jul_2012_19_41_28_+0400_NIhBaokZ8c8_Tw5B--


From MAILER-DAEMON Mon Jul 30 15:24:29 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SvvZt-0007aD-1t
	for mharc-groff@gnu.org; Mon, 30 Jul 2012 15:24:29 -0400
Received: from eggs.gnu.org ([208.118.235.92]:46350)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1SvvZp-0007Xa-ER
	for groff@gnu.org; Mon, 30 Jul 2012 15:24:26 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1SvvZo-0006mL-HW
	for groff@gnu.org; Mon, 30 Jul 2012 15:24:25 -0400
Received: from helix.usm.uni-muenchen.de ([129.187.204.86]:35084)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hoffmann@usm.uni-muenchen.de>) id 1SvvZo-0006kT-Ay
	for groff@gnu.org; Mon, 30 Jul 2012 15:24:24 -0400
Received: by helix.usm.uni-muenchen.de (Postfix, from userid 2097)
	id 7480ACC666; Mon, 30 Jul 2012 21:24:21 +0200 (CEST)
Date: Mon, 30 Jul 2012 21:24:20 +0200
From: Tadziu Hoffmann <hoffmann@usm.uni-muenchen.de>
To: groff@gnu.org
Message-ID: <20120730192420.GA7307@usm.uni-muenchen.de>
References: <20120730194128.93e0ef6e552f90d223ceab03@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20120730194128.93e0ef6e552f90d223ceab03@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] A question about vertical position traps
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <groff.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/groff>,
	<mailto:groff-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/groff>
List-Post: <mailto:groff@gnu.org>
List-Help: <mailto:groff-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/groff>,
	<mailto:groff-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 19:24:26 -0000


> Attached is a small test example for -Tascii demonstrating
> the setting of the earliest trap possible.

The manual says:

  The effect of ll, in, or ti is delayed, if a partially
  collected line exists, until after that line is output.

Your trap is actually sprung, but it was triggered in fill-mode,
and this usually means that whatever had already been gathered
and did not fit on the line that was just output now constitutes
the partially collected line.  Thus, your .ll is delayed until
the next line.

One very crude way of preventing this is to empty the partially
collected line into a diversion, set the new line length, and
then replay the diversion into a "new" partially collected line,
like so:

  .de trap
  .di xx
  .br
  .di
  .ll +8n
  .xx
  ..

But diverting and rereading the diversion requires you to
carefully set up indent and filling, otherwise bizarre spacing
may result, so this might not be the optimum solution.

If you know for sure that your label requires only one
line-height, then it would be easier to start a partially
collected line (e.g., including your list marker and the
right-hand label) and then already set the new line length.
This way you wouldn't have to futz around with traps at all.

  .ll 7c
  .in 1c
  .ds xx [label 1]
  .nr xx \n[.l]-\n[.i]-\w'\*[xx]'
  .ll 5c
  \Z'\h'-3n'1.'\c
  \Z'\h'\n[xx]u'\*[xx]'\c
  .ll 6.5c
  I'm going downtown, buy me a fourty-four.
  Yes, I am going downtown, buy me a fourty-four.
  Got bad news today, my baby don't want me no more.

(Tested with -Tps, 10pt font size.)




From MAILER-DAEMON Mon Jul 30 18:06:14 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Svy6Q-00036K-93
	for mharc-groff@gnu.org; Mon, 30 Jul 2012 18:06:14 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33771)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <the.tail.kinker@gmail.com>) id 1Svy6N-00035D-7L
	for groff@gnu.org; Mon, 30 Jul 2012 18:06:11 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <the.tail.kinker@gmail.com>) id 1Svy6M-00066N-FG
	for groff@gnu.org; Mon, 30 Jul 2012 18:06:11 -0400
Received: from mail-gh0-f169.google.com ([209.85.160.169]:45618)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <the.tail.kinker@gmail.com>) id 1Svy6M-00066G-B2
	for groff@gnu.org; Mon, 30 Jul 2012 18:06:10 -0400
Received: by ghrr18 with SMTP id r18so6378444ghr.0
	for <groff@gnu.org>; Mon, 30 Jul 2012 15:06:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=message-id:date:from:user-agent:mime-version:to:subject
	:content-type:content-transfer-encoding;
	bh=IKaI7a2Y8hBMV/VKbgQ/3WI6m6LIpKtn/rsWGeIA4YM=;
	b=UK8IawywdxMgmmhLfXnGDhfEQ9idsJsOk57+/vw7cwP019NhLcivJh7+XN/aaXjjY1
	FCoev1zzTWoILhFhfzdiESSqRtc6t4RIhtd8gMbjzmCIr7X6K26kRvhyqv0d1+7IcUHr
	nY6AX25Z0gcon0HrH8pGFGu5i93lpx3NzwKnJEYPI5qkgdRnDE7T5t6e/slaa4LqA4dJ
	LzKVdGMFQNppimSuB6jRqXL8dSR6ZqsTQWSSYmK3uVZxZBqZrFosbKUf+xFGFzuFubRN
	BbaxzITlBecOYxFlFPn4DCzEJfgyWU0WT9/ByTlnDLDQkn5OCNHjtShyFzC7kV/5bAiK
	xb7Q==
Received: by 10.50.222.137 with SMTP id qm9mr83857igc.64.1343685969435;
	Mon, 30 Jul 2012 15:06:09 -0700 (PDT)
Received: from [192.168.0.102] (d24-235-163-1.home1.cgocable.net.
	[24.235.163.1])
	by mx.google.com with ESMTPS id yh10sm10307673igb.0.2012.07.30.15.06.08
	(version=SSLv3 cipher=OTHER); Mon, 30 Jul 2012 15:06:08 -0700 (PDT)
Message-ID: <5017055A.9030405@gmail.com>
Date: Mon, 30 Jul 2012 18:06:18 -0400
From: Timothy Groves <the.tail.kinker@gmail.com>
User-Agent: Mozilla/5.0 (X11; Linux i686;
	rv:14.0) Gecko/20120714 Thunderbird/14.0
MIME-Version: 1.0
To: groff@gnu.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.160.169
Subject: [Groff] Subscripts
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <groff.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/groff>,
	<mailto:groff-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/groff>
List-Post: <mailto:groff@gnu.org>
List-Help: <mailto:groff-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/groff>,
	<mailto:groff-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 22:06:12 -0000

I need to embed subscripts in my document.  In particular, I want 
something that in eqn would be expressed as 'V sub 0' and 'V sub 1'.  
There appears to be no glyphs suitable to this job available in groff, 
and I cannot use eqn in the context that I need this expression, because 
inline eqn produces results inconsistent with the surrounding text.

I am using groff 1.21 and ms.  Any suggestions?


From MAILER-DAEMON Mon Jul 30 18:48:35 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SvylP-00069T-6J
	for mharc-groff@gnu.org; Mon, 30 Jul 2012 18:48:35 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54630)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <clarke@verinet.net>) id 1SvylM-000691-Cm
	for groff@gnu.org; Mon, 30 Jul 2012 18:48:33 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <clarke@verinet.net>) id 1SvylL-0006en-EI
	for groff@gnu.org; Mon, 30 Jul 2012 18:48:32 -0400
Received: from smtp02.frii.com ([216.17.135.168]:44950)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <clarke@verinet.net>) id 1SvylL-0006a0-97
	for groff@gnu.org; Mon, 30 Jul 2012 18:48:31 -0400
Received: from [192.168.0.100] (dsl-179-163.dynamic-dsl.frii.net
	[216.17.179.163])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp02.frii.com (FRII) with ESMTP id ECF03D90A6;
	Mon, 30 Jul 2012 16:48:24 -0600 (MDT)
Message-ID: <50170F38.7000300@verinet.net>
Date: Mon, 30 Jul 2012 16:48:24 -0600
From: Clarke Echols <clarke@verinet.net>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:14.0) Gecko/20120714 Thunderbird/14.0
MIME-Version: 1.0
To: Timothy Groves <the.tail.kinker@gmail.com>
References: <5017055A.9030405@gmail.com>
In-Reply-To: <5017055A.9030405@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 216.17.135.168
Cc: groff@gnu.org
Subject: Re: [Groff] Subscripts
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <groff.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/groff>,
	<mailto:groff-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/groff>
List-Post: <mailto:groff@gnu.org>
List-Help: <mailto:groff-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/groff>,
	<mailto:groff-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 22:48:33 -0000

On 07/30/2012 04:06 PM, Timothy Groves wrote:
> I need to embed subscripts in my document.  In particular, I want
> something that in eqn would be expressed as 'V sub 0' and 'V sub 1'.
> There appears to be no glyphs suitable to this job available in groff,
> and I cannot use eqn in the context that I need this expression, because
> inline eqn produces results inconsistent with the surrounding text.
>
> I am using groff 1.21 and ms.  Any suggestions?
>
>

The approach I usually use for superscripts is \u and \d, and to reduce
the size of the superscript a \s-1 and \s+1 or +/- 2 if it looks better.

The \u and \d move up and down by 0.5v.

For other up/down distances, you can use \v'e' where the value of e
determines the distance moved.  Negative moves up, positive down.
Default unit is v, as in \v'-.3v', or if you want it in points, use
\v'-6p', for example.  Of course if you subscript with \v'4p',  you must
balance it with a \v'-4p' to move back up after the subscript.

Same with using \u and \d.  They must be used in balanced pairs.

Clarke


From MAILER-DAEMON Mon Jul 30 19:04:01 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Svz0L-0008A9-EO
	for mharc-groff@gnu.org; Mon, 30 Jul 2012 19:04:01 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43879)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1Svz0J-000883-7I
	for groff@gnu.org; Mon, 30 Jul 2012 19:04:00 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1Svz0I-00054F-2G
	for groff@gnu.org; Mon, 30 Jul 2012 19:03:59 -0400
Received: from smarthost02.mail.zen.net.uk ([212.23.1.2]:35657)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1Svz0H-00053s-T3
	for groff@gnu.org; Mon, 30 Jul 2012 19:03:57 -0400
Received: from [88.96.44.206] (helo=deb)
	by smarthost02.mail.zen.net.uk with esmtp (Exim 4.72)
	(envelope-from <Ted.Harding@wlandres.net>)
	id 1Svz0F-00023M-MD; Mon, 30 Jul 2012 23:03:55 +0000
Content-Length: 1574
Message-ID: <XFMail.20120731000347.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: <5017055A.9030405@gmail.com>
Date: Tue, 31 Jul 2012 00:03:47 +0100 (BST)
Sender: ted@deb
From: (Ted Harding) <Ted.Harding@wlandres.net>
To: groff@gnu.org
Bcc: 
X-Originating-Smarthost02-IP: [88.96.44.206]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 212.23.1.2
Cc: Timothy Groves <the.tail.kinker@gmail.com>
Subject: Re: [Groff] Subscripts
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: Mon, 30 Jul 2012 23:04:00 -0000

On 30-Jul-2012 22:06:18 Timothy Groves wrote:
> I need to embed subscripts in my document.  In particular, I want 
> something that in eqn would be expressed as 'V sub 0' and 'V sub 1'.  
> There appears to be no glyphs suitable to this job available in groff, 
> and I cannot use eqn in the context that I need this expression, because 
> inline eqn produces results inconsistent with the surrounding text.
> 
> I am using groff 1.21 and ms.  Any suggestions?

If you want subscripts in a similar style to eqn subscripts (i.e. at
reduced point size), then you can use \*<X\*> to make X into a
subscript, and also \*{Y\*} to make Y into a superscript.

So, for instance, your "V sub 0" and "V sub 1" would be done as

  V\*<0\*>   V\*<1\*>

Note that this makes no reference to what precedes it, unlike eqn
where 'sub' situates the subscript beside the "bottom right-hand
corner" of what precedes it; \*<X\*> simply moves down a bit from
the current position, reduces the point size, outputs whatever X
may be, and then resets the point size and moves back up. So

  V\*<This is a subscript\*>

is perfectly possible.

You can refine the style of this by defining your own version of
\*< and \*> as strings, using
.ds < [...]
.ds > [...]
to, for instance, move down a different amount, or not change the
point size by so much, etc.

Hoping this helps,
Ted.

-------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding@wlandres.net>
Date: 31-Jul-2012  Time: 00:03:43
This message was sent by XFMail
-------------------------------------------------


From MAILER-DAEMON Mon Jul 30 19:28:07 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SvzNf-0002Iq-E6
	for mharc-groff@gnu.org; Mon, 30 Jul 2012 19:28:07 -0400
Received: from eggs.gnu.org ([208.118.235.92]:33503)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <saint.snit@gmail.com>) id 1SvzNc-0002HM-QA
	for groff@gnu.org; Mon, 30 Jul 2012 19:28:05 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <saint.snit@gmail.com>) id 1SvzNb-0006U1-Q3
	for groff@gnu.org; Mon, 30 Jul 2012 19:28:04 -0400
Received: from mail-yw0-f41.google.com ([209.85.213.41]:65031)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <saint.snit@gmail.com>) id 1SvzNb-0006Tb-Le
	for groff@gnu.org; Mon, 30 Jul 2012 19:28:03 -0400
Received: by yhr47 with SMTP id 47so6473008yhr.0
	for <groff@gnu.org>; Mon, 30 Jul 2012 16:28:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type; bh=1RYqhoebEmCnBbdZhMOxFapijgWCYxjKQvDsrYgMT5M=;
	b=T7EWtXF5yOuNt5tbXs8KCtIsHlXLB4hM9tzxFZXxjtP4aogC20+2CJYQq2/OM/MoQh
	OIXcS6TfZMZ40N6ZOfgUJe4EJaD8t+cjef0rOzzyKJLi3xcRvNu3mqBISwcejee4AROy
	ZRqimdRXeIAJrT6jDidniyKjplt+XKEP8WE4n0XWdnTNFH1QltLxUcgrivc/MWuGpYqG
	qlQI/ix/2ZmZ+89E0O5/qBvW5PAWVDG91IjvdKztMCfGyxUQsF7SoaiZY1UXxIShnoOH
	BZus9KP1dD9jlV4uoo+a0pTdXv6FQm/aZ4CwcgQd5vQ+jV8ytx/2D7bZtn88ZinL1mFE
	pOmQ==
MIME-Version: 1.0
Received: by 10.50.17.193 with SMTP id q1mr295199igd.33.1343690882832; Mon, 30
	Jul 2012 16:28:02 -0700 (PDT)
Received: by 10.231.199.83 with HTTP; Mon, 30 Jul 2012 16:28:02 -0700 (PDT)
In-Reply-To: <XFMail.20120731000347.Ted.Harding@wlandres.net>
References: <5017055A.9030405@gmail.com>
	<XFMail.20120731000347.Ted.Harding@wlandres.net>
Date: Mon, 30 Jul 2012 18:28:02 -0500
Message-ID: <CACRhBXM7L_CQZTv890Kbr6qkvHg0McqO18qNdbe_PJeHDvXVDA@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: 209.85.213.41
Subject: Re: [Groff] Subscripts
X-BeenThere: groff@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: <groff.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/groff>,
	<mailto:groff-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/groff>
List-Post: <mailto:groff@gnu.org>
List-Help: <mailto:groff-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/groff>,
	<mailto:groff-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 23:28:05 -0000

On Mon, Jul 30, 2012 at 6:03 PM, Ted Harding <Ted.Harding@wlandres.net> wrote:
> [In ms] you can use \*<X\*> to make X into a
> subscript, and also \*{Y\*} to make Y into a superscript.

Oddly, both the groff_ms man page and the ms section of the groff info
files document the superscript tags but not the subscript ones.


From MAILER-DAEMON Mon Jul 30 19:36:21 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SvzVd-0004Di-HQ
	for mharc-groff@gnu.org; Mon, 30 Jul 2012 19:36:21 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56108)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1SvzVb-0004CC-6S
	for groff@gnu.org; Mon, 30 Jul 2012 19:36:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1SvzVZ-0001Tq-Vm
	for groff@gnu.org; Mon, 30 Jul 2012 19:36:19 -0400
Received: from queue02.mail.zen.net.uk ([212.23.3.27]:47376)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Ted.Harding@wlandres.net>) id 1SvzVZ-0001Th-Pw
	for groff@gnu.org; Mon, 30 Jul 2012 19:36:17 -0400
Received: from [212.23.1.1] (helo=smarthost01.mail.zen.net.uk)
	by queue02.mail.zen.net.uk with esmtp (Exim 4.72)
	(envelope-from <Ted.Harding@wlandres.net>) id 1SvzVY-0004Ye-H3
	for groff@gnu.org; Mon, 30 Jul 2012 23:36:16 +0000
Received: from [88.96.44.206] (helo=deb)
	by smarthost01.mail.zen.net.uk with esmtp (Exim 4.72)
	(envelope-from <Ted.Harding@wlandres.net>)
	id 1SvzVW-0006o5-Jk; Mon, 30 Jul 2012 23:36:14 +0000
Content-Length: 2507
Message-ID: <XFMail.20120731003606.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: <XFMail.20120731000347.Ted.Harding@wlandres.net>
Date: Tue, 31 Jul 2012 00:36:06 +0100 (BST)
Sender: ted@deb
From: (Ted Harding) <Ted.Harding@wlandres.net>
To: groff@gnu.org
Bcc: 
X-Originating-Smarthost01-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.27
Cc: Timothy Groves <the.tail.kinker@gmail.com>
Subject: Re: [Groff] [OOPS!] Subscripts
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: Mon, 30 Jul 2012 23:36:20 -0000

OOPS! [see at end]

On 30-Jul-2012 23:03:47 Ted Harding wrote:
> On 30-Jul-2012 22:06:18 Timothy Groves wrote:
>> I need to embed subscripts in my document.  In particular, I want 
>> something that in eqn would be expressed as 'V sub 0' and 'V sub 1'.  
>> There appears to be no glyphs suitable to this job available in groff, 
>> and I cannot use eqn in the context that I need this expression, because 
>> inline eqn produces results inconsistent with the surrounding text.
>> 
>> I am using groff 1.21 and ms.  Any suggestions?
> 
> If you want subscripts in a similar style to eqn subscripts (i.e. at
> reduced point size), then you can use \*<X\*> to make X into a
> subscript, and also \*{Y\*} to make Y into a superscript.
> 
> So, for instance, your "V sub 0" and "V sub 1" would be done as
> 
>   V\*<0\*>   V\*<1\*>
> 
> Note that this makes no reference to what precedes it, unlike eqn
> where 'sub' situates the subscript beside the "bottom right-hand
> corner" of what precedes it; \*<X\*> simply moves down a bit from
> the current position, reduces the point size, outputs whatever X
> may be, and then resets the point size and moves back up. So
> 
>   V\*<This is a subscript\*>
> 
> is perfectly possible.
> 
> You can refine the style of this by defining your own version of
> \*< and \*> as strings, using
> .ds < [...]
> .ds > [...]
> to, for instance, move down a different amount, or not change the
> point size by so much, etc.
> 
> Hoping this helps,
> Ted.

OOPS!
In putting my suggestion above, I had forgotten (it is decades since
I did it) that I had pinched the \*<...\*> and \*{...\*} from the
'me' macros, incorporating them (with modifications) in my personal
macro set! They are not part of troff intrinsically, nor do they occur
in the 'ms' macros.

My definitions are:

.\" Superscripts (ex tmac.e) (current versions without extra line space)
.\" (reinstate commented versions to restore extra line space)
.\" .ds { \v'-0.3m'\x'-0.2m'\\s[\\n[.s]*8u/10u]
.ds { \v'-0.3m'\\s[\\n[.s]*9u/12u]
.ds } \s0\v'0.3m'
.\" Subscripts
.\" .ds < \v'0.3m'\x'0.2m'\s[\\n[.s]*8u/10u]
.ds < \v'0.3m'\s[\\n[.s]*9u/12u]
.ds > \s0\v'-0.3m'
.\" Up and Down (like sup/sub but no size change)
.ds UP \v'-0.3m'\x'-0.3m'
.ds DOWN \v'0.3m'\x'0.3m'

Sorry for the confusion!
Ted.

-------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding@wlandres.net>
Date: 31-Jul-2012  Time: 00:35:58
This message was sent by XFMail
-------------------------------------------------


From MAILER-DAEMON Tue Jul 31 03:47:30 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Sw7Aw-0005Ab-Qa
	for mharc-groff@gnu.org; Tue, 31 Jul 2012 03:47:30 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34462)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1Sw7Ar-000587-VB
	for groff@gnu.org; Tue, 31 Jul 2012 03:47:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1Sw7Am-0006RK-3T
	for groff@gnu.org; Tue, 31 Jul 2012 03:47:25 -0400
Received: from mail-lb0-f169.google.com ([209.85.217.169]:47205)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1Sw7Al-0006RA-SA
	for groff@gnu.org; Tue, 31 Jul 2012 03:47:20 -0400
Received: by lbjn8 with SMTP id n8so4305593lbj.0
	for <groff@gnu.org>; Tue, 31 Jul 2012 00:47:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=date:from:to:subject:message-id:in-reply-to:references:x-mailer
	:mime-version:content-type:content-transfer-encoding;
	bh=pjgYjPqbiQ9A82szRb7AWPg/0elwMC//Bjep5AkwXWg=;
	b=dexlvtns1hqpDSk4sgJrhhQ0sGB7SjYkpkbcC85/t89PSWHL6WwvhokA4Itf2TN4+A
	EZK+mp9QigEYDo/Scnqges45bM6iXz0IQ5ifpAL4z5ocCeHcihAJNWj9GrAU8rrTnTlj
	YgajFxPO78GLGAOHctbVbKa/+0plamSq8M/aeGytyXwtqsnlAvP1L1MRVZgGcGVDm8F8
	lFOgwFbKseSvihnlbIjUsDpOoNXw+ckeG36u2zC1t2G+YlCZ1AyLUE3YbdsiAtIhIWFQ
	5vHTKK1antA6VI2v/76MjzawIyMT/vFzL03NN3HWKKMDw+cpJposPLnSTN1xdQ9QcxPS
	Ev1Q==
Received: by 10.152.144.168 with SMTP id sn8mr14115833lab.1.1343720838761;
	Tue, 31 Jul 2012 00:47:18 -0700 (PDT)
Received: from erp07.git.ru ([81.195.105.5])
	by mx.google.com with ESMTPS id i4sm2630098lbg.17.2012.07.31.00.47.15
	(version=SSLv3 cipher=OTHER); Tue, 31 Jul 2012 00:47:17 -0700 (PDT)
Date: Tue, 31 Jul 2012 11:47:03 +0400
From: Anton Shepelev <anton.txt@gmail.com>
To: groff@gnu.org
Message-Id: <20120731114703.4f89955452ac397a0b5ed211@gmail.com>
In-Reply-To: <20120730192420.GA7307@usm.uni-muenchen.de>
References: <20120730194128.93e0ef6e552f90d223ceab03@gmail.com>
	<20120730192420.GA7307@usm.uni-muenchen.de>
X-Mailer: Sylpheed 3.2.0 (GTK+ 2.10.14; i686-pc-mingw32)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.217.169
Subject: Re: [Groff] A question about vertical position traps
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, 31 Jul 2012 07:47:29 -0000

Tadziu Hoffmann:

> If you know for sure that your label requires only
> one line-height, then it would be easier to  start
> a  partially  collected line (e.g., including your
> list marker and the right-hand label) and then al-
> ready  set  the  new  line  length.   This way you
> wouldn't have to futz around with traps at all.
> [...]

So you are creating a partially filled line and then
update the line length.  Thanks!

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


From MAILER-DAEMON Tue Jul 31 11:05:42 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1SwE10-0007MI-Tc
	for mharc-groff@gnu.org; Tue, 31 Jul 2012 11:05:42 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52016)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1SwE0t-0007Lc-IT
	for groff@gnu.org; Tue, 31 Jul 2012 11:05:41 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1SwE0k-0006aL-5S
	for groff@gnu.org; Tue, 31 Jul 2012 11:05:35 -0400
Received: from mail-lb0-f169.google.com ([209.85.217.169]:46833)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <anton.txt@gmail.com>) id 1SwE0j-0006aA-Tt
	for groff@gnu.org; Tue, 31 Jul 2012 11:05:26 -0400
Received: by lbjn8 with SMTP id n8so4560475lbj.0
	for <groff@gnu.org>; Tue, 31 Jul 2012 08:05:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer
	:mime-version:content-type:content-transfer-encoding;
	bh=mniCV6i9o124j4vanlQDSbla85H7j3J/6tmUzi2yBYU=;
	b=C4oDyPjT4rFctlIwg44OiF/xRR6NwDb/F26e2BW8PoezzYHqoKKmJ/01xBB/F7u5t1
	qkb5HHDlNCrnkuCL+BAOmnCN9erkuGJbBRGwScD7g3WesfGFBoU+sxPLqek7nOA8CVls
	H5gF/6Wz3+BkvmE2MMqbGHtpNVvQanlPNwVp5sfI9jiv+jnCr36yDu4yq1vVbZQH1K39
	/wQ77gekURinXDVTEpHHSpbSGBr0wVlRv12EgFjKMdH9Bidx0uIXpR87FEYavGyEQ6ir
	XmiNs5MUMnxd0uGlaVfk4BTZeC6aaMeVytxBENOK81/I+bOFE8wVPY6xayTJIkh1XshO
	Zerg==
Received: by 10.112.54.100 with SMTP id i4mr6774831lbp.97.1343747124431;
	Tue, 31 Jul 2012 08:05:24 -0700 (PDT)
Received: from erp07.git.ru ([81.195.105.5])
	by mx.google.com with ESMTPS id q8sm170194lbj.2.2012.07.31.08.05.22
	(version=SSLv3 cipher=OTHER); Tue, 31 Jul 2012 08:05:23 -0700 (PDT)
Date: Tue, 31 Jul 2012 19:05:07 +0400
From: Anton Shepelev <anton.txt@gmail.com>
To: Clarke Echols <clarke@verinet.net>, the.tail.kinker@gmail.com
Message-Id: <20120731190507.5aaf5640afd51bc1ecf1a473@gmail.com>
In-Reply-To: <50170F38.7000300@verinet.net>
References: <5017055A.9030405@gmail.com>
	<50170F38.7000300@verinet.net>
X-Mailer: Sylpheed 3.2.0 (GTK+ 2.10.14; i686-pc-mingw32)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.217.169
Cc: groff@gnu.org
Subject: Re: [Groff] Subscripts
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, 31 Jul 2012 15:05:41 -0000

Clarke Echols:

> The  approach I usually use for superscripts is \u
> and \d, and to reduce the size of the  superscript
> a \s-1 and \s+1 or +/- 2 if it looks better.

When  I  need  to make my superscripts size-indepen-
dent, I multiply the current font size by  a  factor
instead of using a fixed decrement:

    a\s'\n[.s]*7/10'\v'-0.4v'2\s'0'\v'0.4v'

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


