Re: enscript problem

2021-05-29 Thread Greg Marks
> I have the following problem with enscript:
> I do "enscript --i $MARGIN. "
> but whatever I put in MARGIN (10::: ,  10.:::) I get the error message
> enscript: malformed float dimension: google gave me nothing useful
> what am I supposed to put?

Something like

   enscript --margins=10:38:40:52 file.txt

should work (the four parameters are left, right, top, and bottom
margins, respectively, in PostScript points).

Best regards,
Greg Marks


signature.asc
Description: PGP signature


Re: enscript problem

2021-05-29 Thread C M Reinehr
I believe that you are confusing two different options the Indent option 
is -i or --indent, whereas the margin option is --margins and they take 
different inputs.


Check the manual.

CMR

Linux distribution Debian 10.3 "Buster"

“A ‘committee’ is a group of people who individually can do nothing, but who as
a group, can meet and decide that nothing can be done.” ~ Fred Allen
--

On 5/29/21 5:25 AM, Pierre Frenkiel wrote:


hi,
I have the following problem with enscript:
I do "enscript --i $MARGIN. "
but whatever I put in MARGIN (10::: ,  10.:::) I get the error message
   enscript: malformed float dimension: google gave me nothing useful
what am I supposed to put?

best regards,




enscript problem

2021-05-29 Thread Pierre Frenkiel



hi,
I have the following problem with enscript:
I do "enscript --i $MARGIN. "
but whatever I put in MARGIN (10::: ,  10.:::) I get the error message
    enscript: malformed float dimension: 
google gave me nothing useful

what am I supposed to put?

best regards,
--
Pierre Frenkiel



Re: Enscript and unicode, was Re: is a2ps broken?

2015-09-26 Thread David Wright
Quoting rlhar...@oplink.net (rlhar...@oplink.net):
> On Fri, September 25, 2015 11:34 pm, David Wright wrote:
> > The OP thanked me for my first post which suggested what might cause
> > problems in a2ps, but AFAICT gave no feedback on whether it was any help.
> > Presumably not, hence his move to enscript.
> ...
> > He appears not to be interested in unicode ("Fooey on unicode, then.")
> 
> Hi, David.
> 
> Your comments were helpful; they told me what I needed to know -- that
> a2ps is broken with respect to unicode.  I did not see what to do to a2ps,
> much less, how to do it.  So, having a pressing need, I abandoned a2ps and
> with relatively little effort I managed to get enscript configured to my
> liking.
> 
> I suppose that, running Jessie, I am using unicode, but that aspect of
> Linux is something I never have studied, and at present I do not have time
> to study.  I simply must use whatever representation the Debian team has
> decided to employ; but I do regret losing a2ps, which, for a number of
> years, worked well "right out of the box".
> 
> However, whatever the representation used in Jessie, enscript is working
> for me.

Fortunately linux chose utf8 to represent unicode (unlike 'doze) so
you get compatible behaviour if you're not too adventurous with your
characters. In my case, once TeX went to unicode, I could throw out
obscure incantations and sizeable lookup tables from my style files
and just put the characters I wanted to print into the source files.
My other major application, LilyPond, originating much later and
outside the US, was designed with Latin-1, then replaced by unicode
in 2005. It's a major advantage being able to write curly quotes etc
as they are to appear. In fact, I can't imagine going back to the old
methods.

I'm lucky in that I no longer need to prettyprint stuff like source
code and emails any more. I hope enscript lasts you a while; changing
over is a wrench (as I remember, when a2ps's options changed a good
deal between bo and hamm).

Cheers,
David.



Re: Enscript and unicode, was Re: is a2ps broken?

2015-09-25 Thread rlharris
On Fri, September 25, 2015 11:34 pm, David Wright wrote:
> The OP thanked me for my first post which suggested what might cause
> problems in a2ps, but AFAICT gave no feedback on whether it was any help.
> Presumably not, hence his move to enscript.
...
> He appears not to be interested in unicode ("Fooey on unicode, then.")

Hi, David.

Your comments were helpful; they told me what I needed to know -- that
a2ps is broken with respect to unicode.  I did not see what to do to a2ps,
much less, how to do it.  So, having a pressing need, I abandoned a2ps and
with relatively little effort I managed to get enscript configured to my
liking.

I suppose that, running Jessie, I am using unicode, but that aspect of
Linux is something I never have studied, and at present I do not have time
to study.  I simply must use whatever representation the Debian team has
decided to employ; but I do regret losing a2ps, which, for a number of
years, worked well "right out of the box".

However, whatever the representation used in Jessie, enscript is working
for me.

Thanks,
RLH











Re: Enscript and unicode, was Re: is a2ps broken?

2015-09-25 Thread David Wright
Quoting Vincent Lefevre (vinc...@vinc17.net):
> On 2015-09-16 14:01:40 -0500, David Wright wrote:
> > It doesn't crash, and the frames you have specified don't get bumped
> > into AFAICT, but a test line of unicode with:
> > 
> > Pound £ Euro € Divide ÷
> > 
> > gives me:
> > 
> > Pound £ Euro â\202¬ Divide ÷
> > 
> > There'a a good testpage to try at
> > http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-demo.txt
> 
> And FYI, the bug report (more than 11 years ago!):
> 
>   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=229595
> 
> For printing, I'm using paps as a replacement for a2ps. But this is
> mainly for printing, as contrary to a2ps, paps does not generate text
> in the PostScript output (it converts the text with pango).

I found a2ps very useful when I used to print at work quite a lot (on
shared printers). By the time it became unusable for me (IIRC around
the time of etch when Debian used TeX Live, and TeX Live was fully
unicode aware) I was retired and not printing text files/emails.
I didn't bother to look at enscript as it was known to suffer the same
way as a2ps; paps suffices nowadays: it appears to be able to print
more glyphs than any of my screen fonts can display.

The OP thanked me for my first post which suggested what might cause
problems in a2ps, but AFAICT gave no feedback on whether it was any
help. Presumably not, hence his move to enscript.

He appears not to be interested in unicode ("Fooey on unicode, then.")
but my second post was provoked only by his assertion that "enscript
handles unicode." I took the trouble to install enscript and check
this out, as reported above, but have no interest in continuing to use
it myself.

Cheers,
David.



Re: Enscript and unicode, was Re: is a2ps broken?

2015-09-25 Thread Vincent Lefevre
On 2015-09-16 14:01:40 -0500, David Wright wrote:
> It doesn't crash, and the frames you have specified don't get bumped
> into AFAICT, but a test line of unicode with:
> 
> Pound £ Euro € Divide ÷
> 
> gives me:
> 
> Pound £ Euro â\202¬ Divide ÷
> 
> There'a a good testpage to try at
> http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-demo.txt

And FYI, the bug report (more than 11 years ago!):

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=229595

For printing, I'm using paps as a replacement for a2ps. But this is
mainly for printing, as contrary to a2ps, paps does not generate text
in the PostScript output (it converts the text with pango).

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Enscript and unicode, was Re: is a2ps broken?

2015-09-16 Thread David Wright
Quoting rlhar...@oplink.net (rlhar...@oplink.net):
> > On Thu, September 3, 2015 10:28 am, David Wright wrote:
> >
> > Personally, a2ps has been broken for years because it doesn't handle
> > unicode.
> 
> I found in the Debian archive the package "enscript", which appears to
> provide (at least for my needs) the functionality of "a2ps"; and enscript
> handles unicode.

Perhaps you mean something else by "handles unicode".

It doesn't crash, and the frames you have specified don't get bumped
into AFAICT, but a test line of unicode with:

Pound £ Euro € Divide ÷

gives me:

Pound £ Euro â\202¬ Divide ÷

There'a a good testpage to try at
http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-demo.txt

Cheers,
David.



Bug#411637: dpkg-reconfigure enscript should allow to set papersize

2007-02-20 Thread Rick Thomas
Package: enscript
Version: 1.6.4-11
Severity: wishlist
Tags: l10n


enscript currently defaults to A4 size paper regardless of locale.  It would be 
nice if there were a way (possibly via 
"dpkg-reconfigure") to set it to whatever the local standard is ("Letter" in 
the US, for example).

This is already possible for the libpaper1 package, which enscript depends on.  
Maybe enscript could consult 
/etc/papersize as configured by libpaper1 to get its paper size.


-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-powerpc
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages enscript depends on:
ii  libc6   2.3.6.ds1-11 GNU C Library: Shared libraries
ii  libpaper1   1.1.21   Library for handling paper charact

enscript recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Enscript overlap

2004-08-21 Thread hank
Dumb user error.   I needed to select a variable width font and all was
well "-fHelvetica6"

Sorry for the needless traffic.

On Sat, Aug 21, 2004 at 03:27:26PM -0500, [EMAIL PROTECTED] wrote:
> This could just be stupid user error, but I figure I'll ask ... 
> 
> I'm running unstable and trying to use enscript to print some text
> files.
> 
> enscript  works fine, but any variant of 2Up or multi-column
> output produces overlaps between the pages or columns; almost like a
> margin or column definition setting isn't working.   Examples being:
> 
> enscript -2Gr -o outfile.ps somefile.txt
> enscript -U2r -o outfile.ps somefile.txt
> enscript -3G -o outfile.ps somefile.txt
> 
> Overlap is present direct to printer and out to file (as shown above)`
> 
> What am I missing?
> 
> 
> -- 
> Hank Marquardt <[EMAIL PROTECTED]>
> GPG Id: 2BB5E60C
> Fingerprint: D807 61BC FD18 370A AC1D  3EDF 2BF9 8A2D 2BB5 E60C
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 

-- 
Hank Marquardt <[EMAIL PROTECTED]>
GPG Id: 2BB5E60C
Fingerprint: D807 61BC FD18 370A AC1D  3EDF 2BF9 8A2D 2BB5 E60C


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Enscript overlap

2004-08-21 Thread hank
This could just be stupid user error, but I figure I'll ask ... 

I'm running unstable and trying to use enscript to print some text
files.

enscript  works fine, but any variant of 2Up or multi-column
output produces overlaps between the pages or columns; almost like a
margin or column definition setting isn't working.   Examples being:

enscript -2Gr -o outfile.ps somefile.txt
enscript -U2r -o outfile.ps somefile.txt
enscript -3G -o outfile.ps somefile.txt

Overlap is present direct to printer and out to file (as shown above)`

What am I missing?


-- 
Hank Marquardt <[EMAIL PROTECTED]>
GPG Id: 2BB5E60C
Fingerprint: D807 61BC FD18 370A AC1D  3EDF 2BF9 8A2D 2BB5 E60C


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: enscript margins

2004-01-15 Thread Leandro Guimarães Faria Corcete Dutra
Em Qua, 2004-01-14 Ãs 23:10, Matt Price escreveu:
> On Wed, Jan 14, 2004 at 03:54:13PM -0200, Leandro GuimarÃes Faria Corcete Dutra 
> wrote:
> > 
> > Haven't you something set to A4, like in CUPS, locales or something the
> > like?
> > 
> that was my first thought -- I checked in CUPS to make sure and paper
> size is set to US Letter.  How would I check in locales?

Just run the locale command.  It gets the printed values from the
environment.


-- 
Leandro GuimarÃes Faria Corcete Dutra <[EMAIL PROTECTED]>
Prefeitura do MunicÃpio de SÃo Paulo
Governo EletrÃnico, Telecentros  +55 (11) 5080 9647
http://br.geocities.com./lgcdutra/   +55 (11) 5080 9648


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: enscript margins

2004-01-14 Thread Leandro Guimarães Faria Corcete Dutra
> One little error that puzzles me -- enscript seems to think my 8.5x11
> (US Letter) pages are longer than they really are.  When formatting
> text it prints just past the bottom edge of the page.  I'm able to
> correct this with the --margins= switch, but I wonder if this points
> to some strange lack of communication bettween enscript and CUPS or
> something.  

Haven't you something set to A4, like in CUPS, locales or something the
like?


-- 
Leandro GuimarÃes Faria Corcete Dutra <[EMAIL PROTECTED]>
Prefeitura do MunicÃpio de SÃo Paulo
Governo EletrÃnico, Telecentros  +55 (11) 5080 9647
http://br.geocities.com./lgcdutra/   +55 (11) 5080 9648


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



enscript margins

2004-01-14 Thread Matt Price
hey folks,

just recently discovered enscript, which I'm loving as a
pretty-printing tool (though if folks have suggestions for other
tools, I'm happy to hear them).  

One little error that puzzles me -- enscript seems to think my 8.5x11
(US Letter) pages are longer than they really are.  When formatting
text it prints just past the bottom edge of the page.  I'm able to
correct this with the --margins= switch, but I wonder if this points
to some strange lack of communication bettween enscript and CUPS or
something.  

Any idea how to fix t his, or where the problem might lie?

matt


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: CUPS and enscript

2002-02-06 Thread Dave Sherohman
On Tue, Feb 05, 2002 at 08:23:56PM -0500, dman wrote:
> What is your "raw" data?  Do people always spool only Postscript,
> plain text, and PCL?

Well, actually, yes...

> What will happen on your current setup if I try
> lp -d  foo.dvi
> or
> lp -d  foo.pdf
> ?

There are really only two people here who know enough to send a
file directly to a printer...  I'm a TeX/dvips/ps junkie and the
other guy tends to write PCL by hand.  All the rest of the people on
the network are "non-technical" users who load plain text into
StarOffice and hit the 'print' button.

You do have a good point, though, regardless.

> At work we have some jetdirect boxes too, and I found that I _can't_
> send a PDF file directly with 'lp', if I set my spool to raw.

Never tried it myself, but I have been wondering about the limits of
the magic in those boxes.

> b)  a server to mediate between the workstations and the jetdirect
> box to convert from whatever data format the user wants to
> throw at it to a data format the printer can actually
> understand

Our old setup was basically like this.  Then the server everything
was channeled through had the /var partition go physically bad...
We're putting it on a more robust box this time and switching from
lpd to CUPS, but the basic layout is staying the same.  CUPS just
always works so well with the JetDirects that the possible need for a
filter hadn't occurred to me until the DBA brought up enscript.

-- 
When we reduce our own liberties to stop terrorism, the terrorists
have already won. - reverius

Innocence is no protection when governments go bad. - Tom Swiss



Re: CUPS and enscript

2002-02-05 Thread dman
On Tue, Feb 05, 2002 at 07:12:34PM -0600, Dave Sherohman wrote:
| On Tue, Feb 05, 2002 at 06:50:08PM -0500, dman wrote:
| > On Tue, Feb 05, 2002 at 12:21:44PM -0600, Dave Sherohman wrote:
| > | I'm in the process of migrating several systems from lpd to CUPS and
| > | it's going pretty well aside from one detail:  lpd has its if= in
| > | printcap, which provides an easy hook for throwing enscript filters
| > | into the printing process.  I haven't been able to find an equivalent
| > | hook in CUPS.
| > 
| > I'm not sure if this is the sort of thing you're looking for or not,
| > but for one particular queue I have this line in
| > /etc/cups/ppd/.ppd :
| > 
| > *cupsFilter:"application/vnd.cups-postscript 0 cupsomatic"
| 
| Looks similar...  The one potential sticking point is that all the
| printers have JetDirect or similar cards that maintain their own lpd
| spoolers, so we're not currently using any ppds, just sending the raw
| print job to the printer's own spooler.  So this might work or it
| might not...

What is your "raw" data?  Do people always spool only Postscript,
plain text, and PCL?  What will happen on your current setup if I try
lp -d  foo.dvi
or
lp -d  foo.pdf
?

At work we have some jetdirect boxes too, and I found that I _can't_
send a PDF file directly with 'lp', if I set my spool to raw.  The
reason being that the JetDirect box is a spooler, not a converter.  It
doesn't convert the PDF to PS or PCL first, thus the printer spews PDF
code.  If I set the driver/filter to a certain printer, then CUPS will
convert from PDF to a format the printer can handle and then hand off
the data to the JetDirect box for spooling.  (admittedly we have
low-end jetdirect boxes and those are the only ones I have experience
with).

I think you'll want to set up either
a)  the printer type on each workstation
or
b)  a server to mediate between the workstations and the jetdirect
box to convert from whatever data format the user wants to
throw at it to a data format the printer can actually
understand

(now I want a filter that automatically converts dvi->ps, but maybe
some other day ...)

| > If I was in your position, I would try creating a shell script that
| > pipes through enscript.  Before I had the cupsomatic package, I used
| > this for that printer :
| 
| Makes sense.  I'll give it a shot and see what happens.
| 
| > You could probaby stick enscript in there instead of gs.  (I figured
| > this out by reading the CUPS Programmers manual
| 
| So that's where the information is hiding!  I'd checked the Admin
| manual, but didn't think to try the Programmers manual...  Thanks for
| the pointer!

You're welcome.

-D

-- 

He who finds a wife finds what is good
and receives favor from the Lord.
Proverbs 18:22



Re: CUPS and enscript

2002-02-05 Thread Dave Sherohman
On Tue, Feb 05, 2002 at 06:50:08PM -0500, dman wrote:
> On Tue, Feb 05, 2002 at 12:21:44PM -0600, Dave Sherohman wrote:
> | I'm in the process of migrating several systems from lpd to CUPS and
> | it's going pretty well aside from one detail:  lpd has its if= in
> | printcap, which provides an easy hook for throwing enscript filters
> | into the printing process.  I haven't been able to find an equivalent
> | hook in CUPS.
> 
> I'm not sure if this is the sort of thing you're looking for or not,
> but for one particular queue I have this line in
> /etc/cups/ppd/.ppd :
> 
> *cupsFilter:  "application/vnd.cups-postscript 0 cupsomatic"

Looks similar...  The one potential sticking point is that all the
printers have JetDirect or similar cards that maintain their own lpd
spoolers, so we're not currently using any ppds, just sending the raw
print job to the printer's own spooler.  So this might work or it
might not...

> If I was in your position, I would try creating a shell script that
> pipes through enscript.  Before I had the cupsomatic package, I used
> this for that printer :

Makes sense.  I'll give it a shot and see what happens.

> You could probaby stick enscript in there instead of gs.  (I figured
> this out by reading the CUPS Programmers manual

So that's where the information is hiding!  I'd checked the Admin
manual, but didn't think to try the Programmers manual...  Thanks for
the pointer!

-- 
When we reduce our own liberties to stop terrorism, the terrorists
have already won. - reverius

Innocence is no protection when governments go bad. - Tom Swiss



Re: CUPS and enscript

2002-02-05 Thread dman
On Tue, Feb 05, 2002 at 12:21:44PM -0600, Dave Sherohman wrote:
| I'm in the process of migrating several systems from lpd to CUPS and
| it's going pretty well aside from one detail:  lpd has its if= in
| printcap, which provides an easy hook for throwing enscript filters
| into the printing process.  I haven't been able to find an equivalent
| hook in CUPS.

I'm not sure if this is the sort of thing you're looking for or not,
but for one particular queue I have this line in
/etc/cups/ppd/.ppd :

*cupsFilter:"application/vnd.cups-postscript 0 cupsomatic"


This tells CUPS to use the given executable (binary or script or
whatever it is that the system can execute) in /usr/lib/cups/filter.

If I was in your position, I would try creating a shell script that
pipes through enscript.  Before I had the cupsomatic package, I used
this for that printer :

~~~
#!/bin/sh

# Windo~1 prints an extra page with :
#   %%[ Page: 1 ]%%
#   %%[ LastPage ]%%
# on it.  Get rid of it with sed first.
if [ "$7" != "" ] ; then
sed -e "s/^.*%%\[ .*Page.* \]%%.*$//" | gs -sDEVICE=bjc600 -sOutputFile=- 
-q - < "$7" 
else
sed -e "s/^.*%%\[.*Page.*\]%%.*$//" | gs -sDEVICE=bjc600 -sOutputFile=- -q -
fi
~~~


You could probaby stick enscript in there instead of gs.  (I figured
this out by reading the CUPS Programmers manual (point a web browser
at localhost:631) and looking at the filters specification)

-D

-- 

One man gives freely, yet gains even more;
another withholds unduly, but comes to poverty.
Proverbs 11:24



CUPS and enscript

2002-02-05 Thread Dave Sherohman
I'm in the process of migrating several systems from lpd to CUPS and
it's going pretty well aside from one detail:  lpd has its if= in
printcap, which provides an easy hook for throwing enscript filters
into the printing process.  I haven't been able to find an equivalent
hook in CUPS.

Where can I find information on doing this?  (And, for that matter,
where is the lpd network protocol described?  I'm also running into
problems with network-attached printers acting up and it might be
useful to examine them at that level.)

-- 
When we reduce our own liberties to stop terrorism, the terrorists
have already won. - reverius

Innocence is no protection when governments go bad. - Tom Swiss



RE: lpr(ng) not filtering through enscript for remote printer

2001-01-26 Thread Lewis, James M.

> On Thu, Jan 25, 2001 at 03:15:55PM -0500, Lewis, James M. wrote:
> > > If you make a small tst.c and:
> > > $ cat tst.c|/etc/magicfilter/ljet4m-filter >~/me.ps
> 
> > > lp|hplj4l|HP Laserjet 4L:\
> > >
> :lp=lp:sd=/var/spool/lpd/hplj4l:rm=remoteprinter.lincrud:rp=hp:lpr_bounce:
> > > \
> > > :sh:pw#80:pl#72:px#1440:mx#0:\
> > > :if=/etc/magicfilter/ljet4m-filter:\
> > > :af=/var/log/lp-acct:lf=/var/log/lp-errs:
> > > 
> > Is your printer really on a remote machine called
> > "remoteprinter.lincrud"?
> > If it is, then maybe you need to use ":lp=:".
> > How about a little more detail on the setup...
> 
> Yes, the addressing side works fine. If i 
> $ cat tst.c|/etc/magicfilter/ljet4m-filter >~/me.ps
> $ lpr ~/me.ps
> 
> I get the printout I expect.
> 
> The problem seems specifically that for a non local printer, the if:
> filter is not used. (on a different machine with basically the same
> setup, the local printer port does have the expected format).
> 
> Also I have got :lp=lp (see second line of /etc/printcap).
> Incidentally, magicfilterconfig seems to set :lp=: which works for
> the lpr package daemon, but not the lprng daemon (unless I am
> misstaken). 
> 
> Thanks,
> Mark.
> 
I am using lprng and magicfilter on a potato system.
The :lp= and :rm= and :rp= fields can take several
forms.  Most of our printers are hung off of hp jetdirect
print servers or emulex print servers.  Here are some
of the entries from my /etc/printcap.  Note that the
same type printer can be run using :[EMAIL PROTECTED]
or :lp=host%portnumber (raw tcp), or with :lp= and
:rm=host :rp=printer type entries.  I don't use filters
with the postscript printers (I use a2ps instead).


tnp192|Remote hp5simx(ps) printer
:lp=
:rm=tnp192
:rp=raw
:sd=/var/spool/lpd/tnp192
:mx#0
  :sf
  :sh

tnp153|xerox|Remote xerox(ps) printer (engineering)
:lp=
:rm=tnp153.ten.alcoa.com
:rp=lp
:sd=/var/spool/lpd/tnp153
:mx#0
  :sf
  :sh

tnp015|rm164_hp|Remote hp8kN(ps) printer
:lp=tnp015.ten.alcoa.com%9100
:sd=/var/spool/lpd/tnp015
:mx#0
  :sf
  :sh

tnp100|CharlieBrown lj3(pcl)
  :lpr_bounce
:[EMAIL PROTECTED]
:sd=/var/spool/lpd/tnp100
:if=/etc/magicfilter/ljet3-filter
:mx#0
  :sf
  :sh

tnp077|Accounting lj3(pcl)
  :lpd_bounce
:[EMAIL PROTECTED]
:sd=/var/spool/lpd/tnp077
:if=/etc/magicfilter/ljet3-filter
:mx#0
  :sf
  :sh

tnp126|rm164_empac|Remote hp4k(ps) printer
:lp=tnp126%2501
:sd=/var/spool/lpd/tnp126
:mx#0
  :sf
  :sh


tnp077 and tnp100 are probably what you are most interested
in since they use magicfilter.  One uses lpr_bounce and the
other uses lpd_bounce.  Both work.  They both happen to use
the special form of :[EMAIL PROTECTED] but one of them used to
use :rm=tnp077 :rp=PASSTHRU and :lp= entries.

hth
jim




RE: lpr(ng) not filtering through enscript for remote printer

2001-01-25 Thread Lewis, James M.

> Hi,
> 
> Normally, with magicfilter installed, printing out a .c file will give
> a two collumned small font sized landscape printout, because it uses
> enscript.
> 
> If you make a small tst.c and:
> $ cat tst.c|/etc/magicfilter/ljet4m-filter >~/me.ps
> $ gv me.ps
> you will see what I mean (and this works properly for me)
> 
> However, when I 
> $ lpr tst.c 
> 
> I do not get the formatting (I get plain text portrait).
> 
> /etc/printcap has:
> 
> lp|hplj4l|HP Laserjet 4L:\
> 
> :lp=lp:sd=/var/spool/lpd/hplj4l:rm=remoteprinter.lincrud:rp=hp:lpr_bounce:
> \
> :sh:pw#80:pl#72:px#1440:mx#0:\
> :if=/etc/magicfilter/ljet4m-filter:\
> :af=/var/log/lp-acct:lf=/var/log/lp-errs:
> 
Is your printer really on a remote machine called
"remoteprinter.lincrud"?
If it is, then maybe you need to use ":lp=:".
How about a little more detail on the setup...

jim

> Is the 'if=' line not parsed for remote printing? I guess I
> could make a small script to force my printing through magicfilter.
> 
> Using lprng 3.7.4-1
> 
> regards,
> mark. 
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
> with a subject of "unsubscribe". Trouble? Contact
> [EMAIL PROTECTED]
> 



lpr(ng) not filtering through enscript for remote printer

2001-01-24 Thread Mark Mackenzie
Hi,

Normally, with magicfilter installed, printing out a .c file will give
a two collumned small font sized landscape printout, because it uses
enscript.

If you make a small tst.c and:
$ cat tst.c|/etc/magicfilter/ljet4m-filter >~/me.ps
$ gv me.ps
you will see what I mean (and this works properly for me)

However, when I 
$ lpr tst.c 

I do not get the formatting (I get plain text portrait).

/etc/printcap has:

lp|hplj4l|HP Laserjet 4L:\

:lp=lp:sd=/var/spool/lpd/hplj4l:rm=remoteprinter.lincrud:rp=hp:lpr_bounce:\
:sh:pw#80:pl#72:px#1440:mx#0:\
:if=/etc/magicfilter/ljet4m-filter:\
:af=/var/log/lp-acct:lf=/var/log/lp-errs:

Is the 'if=' line not parsed for remote printing? I guess I
could make a small script to force my printing through magicfilter.

Using lprng 3.7.4-1

regards,
mark. 



Re: enscript

1999-05-17 Thread J.H.M. Dassen
On Tue, May 18, 1999 at 01:13:20 +, angus claydon wrote:
>   Could anyone tell me where enscript queues  print jobs
>   if its  not somewhere  in /var/spool;   ?

It uses lpr, which queues in /var/spool/lpd/ .

>   By testing  enscripting a  gif file to the printer  my deskjet is
>   insisting on trying to print  300  garbage pages ....

Enscript is for producing PostScript from /text/ files. If you want a way to
print GIF files, install e.g. magicfilter, and use lpr.

HTH,
Ray
-- 
PATRIOTISM  A great British writer once said that if he had to choose 
between betraying his country and betraying a friend he hoped he would
have the decency to betray his country.  
- The Hipcrime Vocab by Chad C. Mulligan 


enscript

1999-05-17 Thread angus claydon
  Could anyone tell me where enscript queues  print jobs
  if its  not somewhere  in /var/spool;   ?

  By testing  enscripting a  gif file to the printer  my deskjet is insisting 
on trying to
  print  300  garbage pages 

  many thanks in advance




  angus claydon


enscript problem

1998-10-23 Thread ANDREW
Hi Saisanthosh

There are two approaches that you can try to sort out your problem.

1) purge the package and reinstall it.
2) copy the .deb file to a temporary directory and unpack it. (I think this is
done with dpkg-deb, but I don't have access to my Debian system at the moment
so I can't check this) You can now extract the single file that you need and
copy it to where it belongs. Yoou can then remove the temporry directory with
rm -R.

Hope this helps you sort out your problem.

Regards Andrew.


Re: enscript problem

1998-10-21 Thread Frank Barknecht
Saisanthosh B hat gesagt: // Saisanthosh B wrote:

> By mistake, I did a rm /etc/enscript.cfg, and so I decided to
> re-install enscript package. 
> 
> Even after re-installing enscript, I am not able to find
> /etc/enscript.cfg. 

> Any ideas / suggestions on what I should do ?
 
Try "purging" enscript with dpkg --purge enscript before you reinstall.
This removes the config file (which isn't there) and marks it as "purged".
Maybe now the install installs /etc/enscript.cfg again. If not I could send
you mine, it's not big.

-- 
 ____
 Frank Barknecht    __    __ trip\ \  / /wire __
  / __// __  /__/ __// // __  \ \/ /  __ \\  ___\   
 / /  / /  / /  / // // /\ \\  ___\\ \  
/_/  /_/  /_/  /_//_// /  \ \\_\\_\
/_/\_\ 


enscript problem

1998-10-21 Thread Saisanthosh B
By mistake, I did a rm /etc/enscript.cfg, and so I decided to
re-install enscript package. 

[/cdrom/debian/hamm/hamm/binary-i386/text] # dpkg -i enscript_1.5.0-8.deb
Selecting previously deselected package enscript.
(Reading database ... 55275 files and directories currently installed.)
Preparing to replace enscript 1.5.0-8 (using enscript_1.5.0-8.deb) ...
Unpacking replacement enscript ...
Update-menus: waiting for dpkg to finish (forking to background)
Update-menus: (checking /var/lib/dpkg/lock)
Setting up enscript (1.5.0-8) ...

Even after re-installing enscript, I am not able to find
/etc/enscript.cfg. 

Also, when I tried to execute enscript I get the following error
message: 
enscript: couldn't open config file
"/usr/lib/enscript/enscript.cfg": No such file or directory

Any ideas / suggestions on what I should do ?

-Saisanthosh

-- 
"On the Internet, no one knows you're using Windows NT"
(Submitted by Ramiro Estrugo, [EMAIL PROTECTED])


enscript package bug+fix

1997-04-11 Thread Pete Harlan
Hi,

In enscript_1.4.0-2, the file /usr/lib/enscript/simple.hdr has the
line

%Format: fmodstr$D{%a %b %2d %T %Y}

This produces a date in the header where the day is always "d".  If
you remove the '2' before the 'd' then you'll get the correct date.

Since this is a string that gets passed to strftime(), perhaps the
author's machine uses a different strftime() than Debian's latest
"stable" does (libc.so.5.4.20), one that understands the '%2d'; for
this reason it's not necessarily a bug in the gnu code (e.g., perhaps
gnu libc's strftime() interprets this as expected), but it is a bug in
the Debian package to not conform to our strftime().

Thanks for your time,

--
Pete Harlan
[EMAIL PROTECTED]