Skip to content

Commit

Permalink
Add toe symbol that sibmei2 used to support
Browse files Browse the repository at this point in the history
  • Loading branch information
th-we committed Sep 10, 2021
1 parent 1a913ca commit 4b59e0c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
14 changes: 8 additions & 6 deletions src/SymbolHandler.mss
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ function InitSymbolHandlers () {
'37', 'HandleControlEvent', //mordent
'38', 'HandleControlEvent', //turn
'39', 'HandleControlEvent', //inverted turn
'52', 'HandleModifier', //heel
'53', 'HandleModifier', //heel (2) (was toe in previous version, but this seems to be wrong)
'54', 'HandleModifier', //toe
'52', 'HandleModifier', //heel 1
'53', 'HandleModifier', //heel 2
'54', 'HandleModifier', //toe 1
'55', 'HandleModifier', //toe 2
'160', 'HandleModifier', //stop
'162', 'HandleModifier', //open
'163', 'HandleModifier', //damp
Expand Down Expand Up @@ -72,9 +73,10 @@ function InitSymbolMap () {
'37', CreateSparseArray('Mordent', CreateDictionary('form','upper')), //mordent
'38', CreateSparseArray('Turn', CreateDictionary('form', 'upper')), //turn
'39', CreateSparseArray('Turn', CreateDictionary('form', 'lower')), //inverted turn
'52', CreateSparseArray('Artic', CreateDictionary('artic','heel')), //heel
'53', CreateSparseArray('Artic', CreateDictionary('artic','heel')), //heel (2) (was toe in previous version, but this seems to be wrong)
'54', CreateSparseArray('Artic', CreateDictionary('artic','toe')), //toe
'52', CreateSparseArray('Artic', CreateDictionary('artic','heel')), //heel 1
'53', CreateSparseArray('Artic', CreateDictionary('artic','heel')), //heel 2
'54', CreateSparseArray('Artic', CreateDictionary('artic','toe')), //toe 1
'55', CreateSparseArray('Artic', CreateDictionary('artic','toe')), //toe 2
'160', CreateSparseArray('Artic', CreateDictionary('artic','stop')), //stop
'162', CreateSparseArray('Artic', CreateDictionary('artic','open')), //open
'163', CreateSparseArray('Artic', CreateDictionary('artic','damp')), //damp
Expand Down
7 changes: 3 additions & 4 deletions test/mocha/test-symbols.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ describe("Symbols", function() {
});
describe("Modifiers (children of note): Articulations", function() {
var artics = xpath.evaluateXPath('//*:artic', meiSymbols);
it("21 articulations were created", function () {
assert.strictEqual(artics.length, 21, "Not all 21 articulations were created");
it("22 articulations were created", function () {
assert.strictEqual(artics.length, 22, "Not all 22 articulations were created");
});
it("<artic> is child of <note>", function() {
for (let count = 0; count < artics.length; count++) {
Expand All @@ -37,8 +37,7 @@ describe("Symbols", function() {
utils.assertHasAttr(artics, "artic");
});
it("<artic> with @place", function() {
utils.assertElsHasAttr(artics, [9, 10, 11, 12, 13, 14], 'place');
utils.assertElsHasAttr(artics, [10, 11, 12, 13, 14, 15], 'place');
});
});
});

Binary file modified test/sibmeiTestSibs/symbols.sib
Binary file not shown.

0 comments on commit 4b59e0c

Please sign in to comment.