a2ps
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can a user modify sheets.map or specify an alternative?


From: earthur
Subject: Re: Can a user modify sheets.map or specify an alternative?
Date: Wed, 11 Sep 2002 18:02:26 +0000

OK, what went wrong here:

% cat ~/.a2ps/sheets.map
# Load the system's sheets.map
include(/usr/local/share/a2ps/sheets/sheets.map)

# 'e' files (Specman)
e:      /*.e/
        /*.ecom/

# More C++ files
cxx:    /*.C/


% a2ps --version 
GNU a2ps 4.13
  :
% a2ps --versbose=100 -P display ~/cpp/queue_setup.cpp
  :
  :
r-fopen (/users/earthur/.a2ps/sheets.map)
/users/earthur/.a2ps/sheets.map:2: 
includes /usr/local/share/a2ps/sheets/sheets.map
r-fopen (/users/earthur/.a2ps/sheets.map)
/users/earthur/.a2ps/sheets.map:3: 
includes /usr/local/share/a2ps/sheets/sheets.map
r-fopen (/users/earthur/.a2ps/sheets.map)
/users/earthur/.a2ps/sheets.map:4: 
includes /usr/local/share/a2ps/sheets/sheets.map
r-fopen (/users/earthur/.a2ps/sheets.map)
/users/earthur/.a2ps/sheets.map:5: 
includes /usr/local/share/a2ps/sheets/sheets.map
r-fopen (/users/earthur/.a2ps/sheets.map)
/users/earthur/.a2ps/sheets.map:6: 
includes /usr/local/share/a2ps/sheets/sheets.map
r-fopen (/users/earthur/.a2ps/sheets.map)
/users/earthur/.a2ps/sheets.map:7: 
includes /usr/local/share/a2ps/sheets/sheets.map
r-fopen (/users/earthur/.a2ps/sheets.map)
/users/earthur/.a2ps/sheets.map:8: 
includes /usr/local/share/a2ps/sheets/sheets.map
r-fopen (/users/earthur/.a2ps/sheets.map)
/users/earthur/.a2ps/sheets.map:9: 
includes /usr/local/share/a2ps/sheets/sheets.map
r-fopen (/users/earthur/.a2ps/sheets.map)
/users/earthur/.a2ps/sheets.map:10: 
includes /usr/local/share/a2ps/sheets/sheets.map
r-fopen (/users/earthur/.a2ps/sheets.map)
/users/earthur/.a2ps/sheets.map:11: 
includes /usr/local/share/a2ps/sheets/sheets.map
r-fopen (/users/earthur/.a2ps/sheets.map)
a2ps: too many includes
%

Note: I wasn't even trying to take advantage of my
changes to my sheets.map.

Now what?

/Ed
> >>>>> "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/
> 
> 
> 
> 
> _______________________________________________
> A2ps mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/a2ps




reply via email to

[Prev in Thread] Current Thread [Next in Thread]