🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
10 messages
10 total messages Started by doc Wed, 27 Jun 2007 19:06
Printing In Slrn
#201151
Author: doc
Date: Wed, 27 Jun 2007 19:06
17 lines
2085 bytes
I figured out how to print the article window by the command lpr -P,
but the results are primitive and unattractive.  Does anyone know an
easy and quick way to alter the .slrnrc file in order to produce
printed copies with a little more control over the process.

Thanks,

-- 
Terry

_______________

    All that is human must retrograde if it does not advance.
        Edward Gibbon
        English historian of Rome (1737 - 1794)
Re: Printing In Slrn
#201152
Author: Doc
Date: Wed, 27 Jun 2007 20:09
20 lines
1934 bytes
On 2007-06-27, doc <terry2wa@yahoo.com> wrote:
>
> Does anyone know an
> easy and quick way to alter the .slrnrc file in order to produce
> printed copies with a little more control over the process.

BTW, I realize that the answer must lie in the argument to the "lpr"
command, as I'm fairly certain "lpr -P" is sending the file to printer
as ascii.  However, it is way beyond my pay grade at this point to
figure out the appropriate argument.

Thanks for any help.

-- 
Terry
_______________

"One man alone can be pretty dumb sometimes, but for real bona fide stupidity, there ain't nothin' can beat teamwork." 

	Edward Abbey 
Re: Printing In Slrn
#201155
Author: Chris Game
Date: Wed, 27 Jun 2007 20:23
18 lines
1646 bytes
On Wed, 27 Jun 2007 12:06:56 -0700, doc wrote:

> I figured out how to print the article window by the command lpr
> -P, but the results are primitive and unattractive.  Does anyone
> know an easy and quick way to alter the .slrnrc file in order to
> produce printed copies with a little more control over the
> process.

Use something like a2ps to format the message. I use 
set printer_name "a2ps -1 -g -f10 -Email"
in my .slrnrc file. You can set the font size and layout according
to taste.

-- 
Chris Game

"...it is important to realize that any lock can be picked with
a big enough hammer." -- Sun System & Network Admin manual
Re: Printing In Slrn
#201154
Author: I R A Darth Aggie
Date: Wed, 27 Jun 2007 20:34
51 lines
3171 bytes
On Wed, 27 Jun 2007 15:09:42 -0500,
Doc <terry2wa@gmail.com>, in
<CM-dnbq5abCbWR_bnZ2dnUVZ_u6rnZ2d@comcast.com> wrote:
>+  On 2007-06-27, doc <terry2wa@yahoo.com> wrote:
>+ >
>+ > Does anyone know an
>+ > easy and quick way to alter the .slrnrc file in order to produce
>+ > printed copies with a little more control over the process.
>+ 
>+  BTW, I realize that the answer must lie in the argument to the "lpr"
>+  command, as I'm fairly certain "lpr -P" is sending the file to printer
>+  as ascii.  However, it is way beyond my pay grade at this point to
>+  figure out the appropriate argument.

I suspect that lpr won't give you the joy you want. So, perusing the
slrn docs - I can't say that I've actually ever *printed* any posts -
I came across this:

http://www.slrn.org/manual/slrn-manual-6.html#ss6.80

6.80 printer_name

Type: string
Default: (unset)

This variable can be used to customize the print function. Its meaning
and the default action depend on the operating system:

On Unix systems, it can contain a command to which slrn will pipe the
article you want to print. For example, you would set it to
"my_print_filter | lpr -Pmy_printer" if you want the article to be
processed by my_print_filter and then printed on ``my_printer''. If
unset, the default action is to use lpr with the value of $PRINTER as
the -P option.

---

If you want prettyfied printing, you probably want to substitute
"enscript" for "lpr", perhaps (untested) something like this:

set printer_name "enscript -G"

Consult the enscript manpages, it has just a few options that you
might find useful. "-G" means to print a fancy header, which by
default is just the filename + time and date.

-- 
Consulting Minister for Consultants, DNRC
I can please only one person per day. Today is not your day. Tomorrow
isn't looking good, either.
I am BOFH. Resistance is futile. Your network will be assimilated.
Re: Printing In Slrn
#201158
Author: doc
Date: Thu, 28 Jun 2007 00:05
18 lines
2160 bytes
On 27 Jun 2007 20:34:12 GMT
I R A Darth Aggie <n0b0dy@192.168.10.10> wrote:

> set printer_name "enscript -G"

Hey, thanks.  Enscript solved most of the immediate problems.  I
appreciate everyone's help.


-- 
Terry

_______________

    All that is human must retrograde if it does not advance.
        Edward Gibbon
        English historian of Rome (1737 - 1794)
Re: Printing In Slrn
#201161
Author: Adam Funk
Date: Thu, 28 Jun 2007 12:07
13 lines
1480 bytes
On 2007-06-27, I R A Darth Aggie wrote:

> If you want prettyfied printing, you probably want to substitute
> "enscript" for "lpr", perhaps (untested) something like this:
>
> set printer_name "enscript -G"
>
> Consult the enscript manpages, it has just a few options that you
> might find useful. "-G" means to print a fancy header, which by
> default is just the filename + time and date.

I'd never heard of the enscript command before (I've been using a2ps)
but it looks interesting --- thanks.
OT enscript (was: Printing In Slrn)
#201162
Author: Adam Funk
Date: Thu, 28 Jun 2007 12:34
8 lines
1262 bytes
On 2007-06-28, Adam Funk wrote:

> I'd never heard of the enscript command before (I've been using a2ps)
> but it looks interesting --- thanks.

Hmm: is there any equivalent in enscript of `a2ps -Pdisplay` (to
display the ps output in a window so you can preview it before
printing)?
Re: Printing In Slrn
#201163
Author: Thomas Dickey
Date: Thu, 28 Jun 2007 12:45
23 lines
1878 bytes
Adam Funk <a24061@ducksburg.com> wrote:
> On 2007-06-27, I R A Darth Aggie wrote:

>> If you want prettyfied printing, you probably want to substitute
>> "enscript" for "lpr", perhaps (untested) something like this:
>>
>> set printer_name "enscript -G"
>>
>> Consult the enscript manpages, it has just a few options that you
>> might find useful. "-G" means to print a fancy header, which by
>> default is just the filename + time and date.

> I'd never heard of the enscript command before (I've been using a2ps)
> but it looks interesting --- thanks.

a2ps's developers should have documented the fact that they copied much
of enscript's features (one of a2ps's developers in fact plagiarized one
of my programs, so perhaps it was not unintentional).

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
Re: OT enscript (was: Printing In Slrn)
#201166
Author: I R A Darth Aggie
Date: Thu, 28 Jun 2007 15:19
41 lines
2950 bytes
On Thu, 28 Jun 2007 13:34:41 +0100,
Adam Funk <a24061@ducksburg.com>, in
<1gmcl4-b1k.ln1@news.ducksburg.com> wrote:
>+  On 2007-06-28, Adam Funk wrote:
>+ 
>+ > I'd never heard of the enscript command before (I've been using a2ps)
>+ > but it looks interesting --- thanks.
>+ 
>+  Hmm: is there any equivalent in enscript of `a2ps -Pdisplay` (to
>+  display the ps output in a window so you can preview it before
>+  printing)?

Well, enscript's manpage details this nugget:

       -p file, --output=file
               Leave  the  output  to file file.  If the file is `-',
	       enscript sends the output to the standard output
	       stdout.

which should allow you to pipe the results into a viewer of choice,
provided it can read from STDIN.

After about 30 seconds of playing, '-p -' does indeed spew to STDOUT,
and with the right tools can be manipulated. Unfortunately, I can't
get the standard postscript display renders to take input from STDIN.

Having taken a look at the goings-on when one runs "a2ps -P
display...", it seems to work around that limitation in gv by writing
a temp file in /tmp/, then opening it with gv.

So, with enscript one might do this in a script:

enscript -p /tmp/enscript-(some random value) (some file name)
gv /tmp/enscript-(some random value)
rm /tmp/enscript-(some random value)

-- 
Consulting Minister for Consultants, DNRC
I can please only one person per day. Today is not your day. Tomorrow
isn't looking good, either.
I am BOFH. Resistance is futile. Your network will be assimilated.
Re: Printing In Slrn
#204516
Author: Brad Sims
Date: Wed, 22 Aug 2007 22:31
25 lines
2424 bytes
In Dread Ink, the Grave hand of Doc Did Inscribe:
> On 2007-06-27, doc <terry2wa@yahoo.com> wrote:
>>
>> Does anyone know an
>> easy and quick way to alter the .slrnrc file in order to produce
>> printed copies with a little more control over the process.
>
> BTW, I realize that the answer must lie in the argument to the "lpr"
> command, as I'm fairly certain "lpr -P" is sending the file to printer
> as ascii.  However, it is way beyond my pay grade at this point to
> figure out the appropriate argument.

Install a handy little program called muttprint...

Muttprint strips out the headers you tell it to, and formats
the rest with TeX.

Replace the lpr -P stuff with muttprint.

Trust me its the only way to fly.
-- 
People who are willing to rely on the government to keep them safe
are pretty much standing on Darwin's mat, pounding on the door,
screaming, "Take me, take me!" 
	-- Carl Jacobs 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads