[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can a user modify sheets.map or specify an alternative?
From: |
Akim Demaille |
Subject: |
Re: Can a user modify sheets.map or specify an alternative? |
Date: |
11 Sep 2002 17:33:01 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Honest Recruiter) |
>>>>> "Edward" == Edward Arthur <address@hidden> writes:
Edward> Hi, Firstly I do not have ROOT privs on this system so I
Edward> cannot modify /usr/local/share/a2ps/sheets/sheets.map.
You can have your own in ~/.a2ps, and use include. E.g.,
Why Does it Say my File is Binary?
----------------------------------
a2ps complains that my file is binary though it is not.
There are several reasons that can cause a2ps to consider a file is
binary:
- there are many non printable characters in the file. Then you
need to use the option `--print-anyway'.
- the file is sane, composed of printable characters. Then it is
very likely that `file(1)' said the type of the file is `data', in
which case a2ps prefers not to print the file. Then you can
either:
- specify the type of the file, for instance `-Eplain';
- specify to print in any case, `--print-anyway';
- remove the annoying rule from the system's `sheets.map':
binary: <data*>
- insert in your own `~/.a2ps/sheets.map' a rule that overrides
that of the system's `sheets.map':
# Load the system's sheets.map
include(/usr/local/share/a2ps/sheets/sheets.map)
# Override the rule for files with type `data' according to file\
(1)
plain: <data*>
But this is not very good, since then this rule is always the
first tested, which means that any file with type `data'
according to `file(1)' will be printed in `plain' style, even
if the file is called `foo.c'.
- if your files can be recognized, insert a new rule in a
`sheets.map', such as
# file(1) says it's data, but it's pure text
plain: /*.txx/