Common value types

boolean
It may be: Only the first character is checked.
dir
It is a direction or a relative position.
int
It is a whole number, usually positive.
encoding
It may be either 'native' or any other string in which case 'utf-8' is assumed (default value).
It is used only for PostScript output without pango.
When the encoding is not 'native', the utf-8 characters are replaced by the name of their glyphs as they appear in the font files. This is done thanks to an internal table which contains the ASCII and most Latin characters. This table may be extended by the command %%glyph to handle more characters (see the addition of '…' - ellipsis - in the file sample.abc).
float
It is a number which may have a decimal point number (eg. 0.5).
regular expression
Such expressions are a subset of Perl regular expressions:
^
match beginning of a line
$
match end of a line
|
start an alternate sequence
()
grouping
.
match any character
[...]
match any character from set
[^...]
match any character but ones from set
\s
match whitespace
\S
match non-whitespace
\d
match decimal digit
+
match one or more times
*
match zero or more times
?
match zero or once
\xDD
match byte with hex value 0xDD
\meta
match one of the meta character: ^$().[*+?\

Examples:

- transpose up by two semitones all the voices which names contain the characters "Bb":

abcm2ps tune1.abc --voice Bb --transpose 2 --voice end

- display only the 2 first measures of the tunes the titles of which start with "Gloria":

abcm2ps tune2.abc --tune 'T:Gloria' --clip -3 --tune end
(note: "-3" means "include the bar starting the measure 3")

size
It is used in font definitions. It is expressed in graphic points (see unit below).
symbol_selection
The symbol_selection used in %%break and %%clip permits the localisation of a music symbol (note, rest or bar - only). It has the following format:
measure_number [":" time_numerator "/" time_denominator]
measure_number is the measure number as it is displayed with %%measurenb 1 or -j1.
Note that this number may change when changing the %%contbarnb value. In the case %%contbarnb is not set, the repeat sequences may be identified by a letter after the measure number as "10b" (second repeat sequence).
time_numerator and time_denominator define the fraction of a whole note which gives the time offset of the symbol in the selected measure.
The numerator is numbered starting from 0. The value 0 (default) selects the measure bar. To select the first note of a measure, set the fraction to a small value as "5:1/64".
unit
It is a dimension of which the unit is defined by the suffix: The height of a 5 lines staff is always 24pt.
font, encoding and size appear in font definitions. They may be specified as '*' (asterisk), in which case their values remain unchanged.
encoding may be omitted, in which case its value defaults to 'utf-8' for the first declaration of the font or it remains unchanged.
When size is omitted, it remains unchanged.
Examples:
%%vocalfont Arial 12		% Arial utf-8 12pt
%%vocalfont Times-Roman		% Times-Roman utf-8 12pt
%%vocalfont * 13		% Times-Roman utf-8 13pt
%%vocalfont UKaiCN-UTF8-H native % UKaiCN-UTF8-H native 13pt