Re: Printing C Program from KWrite on SuSE 10.1



Craig Andersen wrote:

I having been searching for the format characters definitions for
headers and footers (e.g. %f means filename) without success.

Enscript may be used but still no comprehensive list of the %y %U and
all the rest.

Will continue to search, any help would be appreciated.

Do you mean that
man enscript
info enscript
doesn't contain enough information ;-)

Sincerely, after looking trough 'enscript' manual I'm happier than before.
It would be really interesting to set printing manually, but I can live
without it :^)

********************************************************
%Format: name format
Define a new string constant name according to the format string format.
Format string start from the first non-space character and it ends to the
end of the line. Format string can contain general `%' escapes and input
file related `$' escapes. Currently following escapes are supported:


%% character `%'
$$ character `$'
$% current page number
$= number of pages in the current file
$p number of pages processed so far
$(VAR) value of the environment variable VAR.
%c trailing component of the current working directory
%C ($C) current time (file modification time) in `hh:mm:ss' format
%d current working directory
%D ($D) current date (file modification date) in `yy-mm-dd' format

%D{string} ($D{string}) format string string with the strftime(3) function.
`%D{}' refers to the current date and `$D{}' to the input file's last
modification date.

%E ($E) current date (file modification date) in `yy/mm/dd' format
%F ($F) current date (file modification date) in `dd.mm.yyyy' format
%H document title
$L number of lines in the current input file. This is valid only for the
toc entries, it can't be used in header strings.

%m the hostname up to the first `.' character
%M the full hostname
%n the user login name
$n input file name without the directory part
%N the user's pw_gecos field up to the first `,' character
$N the full input file name
%t ($t) current time (file modification time) in 12-hour am/pm format
%T ($T) current time (file modification time) in 24-hour format `hh:mm'
%* ($*) current time (file modification time) in 24-hour format with
seconds `hh:mm:ss'

$v the sequence number of the current input file
$V the sequence number of the current input file in the `Table of Contents'
format: if the --toc option is given, escape expands to `num-'; if
the --toc is not given, escape expands to an empty string.

%W ($W) current date (file modification date) in `mm/dd/yy' format
All format directives except `$=' can also be given in format
********************************************************

The %f that I have seen in KDE printer configuration, seems to be KDE
internal replacement for file name.

--
Regards,
Rajko.
.



Relevant Pages

  • Re: Printing C Program from KWrite on SuSE 10.1
    ... Enscript may be used but still no comprehensive list of the %y %U and ... %Format: name format ... Define a new string constant name according to the format string format. ... $L number of lines in the current input file. ...
    (alt.os.linux.suse)
  • Dropbear SSH Server <= 0.34
    ... Application Dropbear SSH Server <= 0.34 ... A remotely exploitable format string vulnerability exists in the default ... methodname may be anything except "none" which is explicitly not allowed. ...
    (Bugtraq)
  • [Full-Disclosure] [0xbadc0ded #02] Dropbear SSH Server <= 0.34
    ... Application Dropbear SSH Server <= 0.34 ... A remotely exploitable format string vulnerability exists in the default ... methodname may be anything except "none" which is explicitly not allowed. ...
    (Full-Disclosure)
  • Re: frustrated by fscanf and sscanf
    ... there is no threads talking about reading a series of numbers. ... <snip description of input file structure> ... Your description of the file format makes no sense at all. ... along with a sample of your input file or a clearer ...
    (comp.lang.c)
  • Re: BWF.P to BWF.M Batch conversion program
    ... it contains two new "per file" options: A "File name override" option allows you to give the output file a different name than the input file. ... A "Sample rate override" option allows you to override the sample rate derived from the files (this does not change the audio data – it is sometimes useful for doing a manual correction e.g. if the input file format did not contain any sample rate information). ... - The new "Metadata" page not only allows you to view all metadata collected from the source file, it also allows you to edit and override it. ...
    (rec.arts.movies.production.sound)