summaryrefslogtreecommitdiff
path: root/Build/source/texk/gregorio/gregorio-src/src/gabc/gabc-score-determination.h
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2016-09-25 06:05:30 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2016-09-25 06:05:30 +0000
commitf77c54eb48f9abb742a0102243e04168e04f8d9f (patch)
treed39cc0f736eef5cd39e971f3834b6f521ddb00b4 /Build/source/texk/gregorio/gregorio-src/src/gabc/gabc-score-determination.h
parent337eaca0d4cd1b1257bfd995e50bd4caac7565e9 (diff)
gregorio 4.2.0
git-svn-id: svn://tug.org/texlive/trunk@42143 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/gregorio/gregorio-src/src/gabc/gabc-score-determination.h')
-rw-r--r--Build/source/texk/gregorio/gregorio-src/src/gabc/gabc-score-determination.h33
1 files changed, 29 insertions, 4 deletions
diff --git a/Build/source/texk/gregorio/gregorio-src/src/gabc/gabc-score-determination.h b/Build/source/texk/gregorio/gregorio-src/src/gabc/gabc-score-determination.h
index 3098ec17766..3400e100465 100644
--- a/Build/source/texk/gregorio/gregorio-src/src/gabc/gabc-score-determination.h
+++ b/Build/source/texk/gregorio/gregorio-src/src/gabc/gabc-score-determination.h
@@ -2,8 +2,8 @@
* Gregorio is a program that translates gabc files to GregorioTeX
* This header shares definitions between the score parser and lexer.
*
- * Gregorio score determination in gabc input.
- * Copyright (C) 2006-2015 The Gregorio Project (see CONTRIBUTORS.md)
+ * Gregorio score determination from gabc.
+ * Copyright (C) 2006-2016 The Gregorio Project (see CONTRIBUTORS.md)
*
* This file is part of Gregorio.
*
@@ -21,8 +21,24 @@
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#ifndef GABC_SCORE_DETERMINATION_H
+#define GABC_SCORE_DETERMINATION_H
+
+#include "bool.h"
+#include "struct.h"
#include "gabc.h"
+/* The bits in this enum are named to correspond with the _BEGIN/_END tokens */
+typedef enum {
+ SB_I = 0x01,
+ SB_B = 0x02,
+ SB_TT = 0x04,
+ SB_SC = 0x08,
+ SB_UL = 0x10,
+ SB_C = 0x20,
+ SB_ELISION = 0x40
+} gabc_style_bits;
+
typedef union gabc_score_determination_lval_t {
char *text;
char character;
@@ -31,7 +47,16 @@ typedef union gabc_score_determination_lval_t {
#define YYSTYPE gabc_score_determination_lval_t
#define YYSTYPE_IS_DECLARED 1
-int gabc_score_determination_lex(void);
-#define YY_DECL int gabc_score_determination_lex(void)
+#define YY_DECL \
+ int gabc_score_determination_lex(gabc_style_bits *const styles)
+YY_DECL;
#define YYLTYPE gregorio_scanner_location
+
+void fix_custos(gregorio_score *score_to_check);
+bool check_score_integrity(gregorio_score *score_to_check);
+bool check_infos_integrity(gregorio_score *score_to_check);
+void determine_oriscus_orientation(const gregorio_score *score);
+void determine_punctum_inclinatum_orientation(const gregorio_score *score);
+
+#endif