Skip to content

Commit

Permalink
Implementation for issue humdrum-tools/verovio-humdrum-viewer#856
Browse files Browse the repository at this point in the history
  • Loading branch information
craigsapp committed Oct 4, 2023
1 parent 82197ef commit b3d4df4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/iohumdrum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24854,6 +24854,10 @@ template <class ELEMENT> void HumdrumInput::convertVerses(ELEMENT element, hum::

for (int j = 0; j < (int)vtexts.size(); ++j) {
content = vtexts[j];
bool addSpacer = true;
if (content.find(" ") != std::string::npos) {
addSpacer = false;
}
vtoken = vtoks[j];
versenum++;
if (content == "") {
Expand Down Expand Up @@ -25066,12 +25070,11 @@ template <class ELEMENT> void HumdrumInput::convertVerses(ELEMENT element, hum::
id += "S" + to_string(m + 1);
syls[m]->SetID(id);
}
bool spacer = true;

if (ij) {
Rend *rend = new Rend();
rend->SetFontstyle(FONTSTYLE_italic);
addTextElement(rend, contents[m], "", spacer);
addTextElement(rend, contents[m], "", addSpacer);
syls[m]->AddChild(rend);
std::string ijbegin = vtoken->getValue("auto", "ij-begin");
bool ijbeginQ = !ijbegin.empty();
Expand All @@ -25091,7 +25094,7 @@ template <class ELEMENT> void HumdrumInput::convertVerses(ELEMENT element, hum::
}
}
else {
addTextElement(syls[m], contents[m], "", spacer);
addTextElement(syls[m], contents[m], "", addSpacer);
}
}
}
Expand Down

0 comments on commit b3d4df4

Please sign in to comment.