Sujet : Re: Enscript
De : physfitfreak (at) *nospam* gmail.com (Physfitfreak)
Groupes : comp.os.linux.advocacyDate : 25. Oct 2024, 04:33:24
Autres entêtes
Organisation : Modern Human
Message-ID : <vff3i5$1bvkt$4@solani.org>
References : 1 2
User-Agent : Mozilla Thunderbird
On 10/23/24 09:15, Farley Flud wrote:
On Wed, 23 Oct 2024 08:54:11 -0400, Chris Ahlstrom wrote:
I haven't used enscript for quite awhile. I used it all the time at work to
print code without having to use a text editor to do it. Here's part of a
script to convert a text file to PDF, with line numbers and a narrow font
suitable to printing. Blank lines and some info output removed.
>
#!/bin/bash
FONT="Monospace8"
OPTIONS="q -B -C -G -T3"
>
You must write very short lines.
The default page for enscript is A4 and that is very near to
Letter size of 8.5" x 11".
Most code, if we include the indents, has long lines of far more
than 80 characters that even with a size 8 font will exceed the
bounds of an A4 page. Enscript will wrap them by default and the
result is sort of ugly.
One could specify "landscape" orientation but that may not solve
the problem entirely.
The only other possibility would be to specify an A1 page size.
My philosophy is just to keep it in text format.
Enscript, and equivalents such as aps, paps, etc., are certainly
very capable programs, but who the fuck actually PRINTS nowadays?
Printing is, or should be, dead. Like facsimile (fax) it is kept
alive by throwback idiots that cannot adapt to change.
Like most of U.S. government agencies. Especially social security admin.
You're still young. Wait a few more years and you'll see how you fall back on printing and regular mail. They give you no other choice because those offices are all run by semi-literate old fat Black women.