Skip to content

Commit

Permalink
Fixed: Lyric symbols have dash connectors
Browse files Browse the repository at this point in the history
This commit adds the dash connector to multi-syllable words.

Fixes #44
  • Loading branch information
ahankinson committed Jul 19, 2016
1 parent 0fa1fdf commit 93127c2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ExportProcessors.mss
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,11 @@ function ProcessLyric (lyricobj, objectPositions) {
if (j = 0)
{
libmei.AddAttribute(sylel, 'wordpos', 'i'); // 'initial'

if (lyric_word.Length > 1)
{
libmei.AddAttribute(sylel, 'con', 'd');
}
}
else
{
Expand All @@ -291,6 +296,7 @@ function ProcessLyric (lyricobj, objectPositions) {
else
{
libmei.AddAttribute(sylel, 'wordpos', 'm'); // medial
libmei.AddAttribute(sylel, 'con', 'd');
}
}

Expand Down

0 comments on commit 93127c2

Please sign in to comment.