abcm2ps
or abc2svg
may be changed in many ways thanks to
StyleSheet directives. These ones are named 'parameters' or 'commands'
in the documentation.
%%parameter_name new_value
CDEF | [I:annotationfont Arial 13] "^bla" GABc |
Alternatively one or more format parameters may be specified directly as run time argument pairs using the following syntax: the first argument is the format parameter name preceded by two dashes (eg. --vocalfont) and the second argument is the new value.
If the value contains spaces, it should be enclosed by quotes when
the program is run from a shell. For example, the following
command will run abcjsc
on the file myfile.abc changing
the format parameter 'vocalfont' to 'sans-serif 13':
abcjsc --vocalfont 'sans-serif 13' myfile.abc
The keyword "lock" is implicitly appended in the command line arguments
so that these parameters take precedence and override any other changes.
Example:
abcm2ps --vocalfont 'Arial 13' myfile.abcin myfile.abc:
%%vocalfont Times-Roman * % <- ignored %%vocalfont Helvetica * lock % <- vocalfont = 'Helvetica 13'
A format file is a sequence of lines containing a pair of parameter name
and the associated value(s) (no "%%" or "I:" prefix).
Empty lines and lines beginning with a '%' are ignored.
When running the program, one or more format files may be specified
using the command line option '-F' (see the file options.txt
).
By default, abcm2ps
loads the format file
default.fmt
.
This file is searched (in order) in:
/usr/share/abcm2ps/
).
By default, the command line scripts of abc2svg
load
the ABC file default.abc
.
This file is searched in the current directory and also
in the column separated list of directories contained in the
environment variable ABCPATH.
There is no default parameter file in a web context.