2 gregorian-ligature.hh -- part of GNU LilyPond
4 source file of the GNU LilyPond music typesetter
6 (c) 2003--2005 Juergen Reuter <reuter@ipd.uka.de>
9 #ifndef GREGORIAN_LIGATURE_HH
10 #define GREGORIAN_LIGATURE_HH
15 class Gregorian_ligature {
17 static bool has_interface (Grob *);
18 static String prefixes_to_str (Grob *);
22 * Head prefixes: these bit-mask constants are used to represent
23 * attributes immediately derived from user input (e.g. by the user
24 * setting a gregorian ligature grob property or using the "\~"
25 * keyword). If the according bit of the head prefix value is set,
26 * the attribute applies for this head. The binary opereator "\~" is
27 * treated like a prefix for the head that follows the operator, but
28 * does not affect the head that precedes the operator, if any.
30 #define VIRGA 0x0001 // attribute "\virga"
31 #define STROPHA 0x0002 // attribute "\stropha"
32 #define INCLINATUM 0x0004 // attribute "\inclinatum"
33 #define AUCTUM 0x0008 // attribute "\auctum"
34 #define DESCENDENS 0x0010 // attribute "\descendens"
35 #define ASCENDENS 0x0020 // attribute "\ascendens"
36 #define ORISCUS 0x0040 // attribute "\oriscus"
37 #define QUILISMA 0x0080 // attribute "\quilisma"
38 #define DEMINUTUM 0x0100 // attribute "\deminutum"
39 #define CAVUM 0x0200 // attribute "\cavum"
40 #define LINEA 0x0400 // attribute "\linea"
41 #define PES_OR_FLEXA 0x0800 // operator "\~"
44 * Ligature context info: these attributes are derived from the head
45 * prefixes by considering the current and the two neighbouring heads.
47 * These definitions may be extended by more specific Gregorian
48 * ligatures such as vaticana-ligature.hh.
50 #define PES_LOWER 0x0001 // this is a head before "\~" in an
52 #define PES_UPPER 0x0002 // this is a head after "\~" in an
54 #define FLEXA_LEFT 0x0004 // this is a head before "\~" in a
56 #define FLEXA_RIGHT 0x0008 // this is a head after "\~" in a
58 #define AFTER_DEMINUTUM 0x0020 // previous head was a deminutum
60 #endif /* GREGORIAN_LIGATURE_HH */