🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.text
Article #844

Re: ditroff transparent command

#844
From: Neil Russell
Date: Sun, 27 Apr 1986 22:21
31 lines
1722 bytes
In article <139@cs.qmc.ac.uk>, liam@cs.qmc.ac.uk (William Roberts) writes:
> You don't need a pre-processor to turn
>         .BM xsize ysize
> into    .fl
>	etc
No, but you should not need to know the size of the bitmap.  This is
the whole point of the pre-processor.

Anyhow, I have done some research and found that the transparent mode
command leaves a bit to be desired.  Try:
	bit ... | troff -ms | ...
		.KS
		.BM filename
		.KE
and your bitmap commands come out as text, via a diversion.

It turns out that there has been a command added to DItroff to do
this sort of thing:
	.cf filename
which copies the contents of the named file directly to the output,
after it adds some nice positioning commands.  True, I have to mess
with nasty tmp files for my pre-processor to talk to the print driver,
but it works.

I can't post the sources to this to the net, since it contains
V8 code, to take the bitmaps.  But maybe if there is any demand,
I could post a censored version.


Neil Russell
..!seismo!munnari!basser.oz!caret		(tictoc is not ticking)
Technical Details
Message-ID: <593@basser.oz>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!qantel!lll-lcc!lll-crg!seismo!munnari!basser!caret
References: <23@tictoc.oz> <1005@mcvax.UUCP> <139@cs.qmc.ac.uk>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!qantel!lll-lcc!lll-crg!seismo!munnari!basser!caret
From: caret@basser.oz (Neil Russell)
Newsgroups: net.text
Subject: Re: ditroff transparent command
Message-ID: <593@basser.oz>
Date: Sun, 27-Apr-86 18:21:45 EDT
Article-I.D.: basser.593
Posted: Sun Apr 27 18:21:45 1986
Date-Received: Fri, 2-May-86 22:54:05 EDT
References: <23@tictoc.oz> <1005@mcvax.UUCP> <139@cs.qmc.ac.uk>
Organization: Dept. of Comp. Science, Uni of Sydney, Australia
Lines: 31
Keywords: ditroff bitmap post-processor
Summary: The answer