src/tool-strophe.cpp
void Tool_strophe::markWithColor(HumdrumFile& infile) {
	int counter = 0;
	for (int i=0; i<infile.getStropheCount(); i++) {
		HTp strophestart = infile.getStropheStart(i);
		HTp stropheend = infile.getStropheEnd(i);
		counter += markStrophe(strophestart, stropheend);
	}
	if (counter) {
		string rdf = "!!!RDF**kern: ";
		rdf += m_marker;
		rdf += " = marked note, strophe";
		if (m_color != "red") {
			rdf += ", color=\"";
			rdf += m_color;
			rdf += "\"";
		}
		infile.appendLine(rdf);
		infile.createLinesFromTokens();
	}
}
//////////////////////////////
//
// Tool_strophe::markWithColor --  Maybe give different colors
//     to different variants.  Currently only marking the primary
//     strophe.
//
:markWithColor --  Maybe give different colors
to different variants.  Currently only marking the primary
strophe.
: markWithColor -- Maybe give different colors to different variants . Currently only marking the primary strophe .
void Tool_strophe::markWithColor(HumdrumFile& infile) {
	int counter = 0;
	for (int i=0; i<infile.getStropheCount(); i++) {
		HTp strophestart = infile.getStropheStart(i);
		HTp stropheend = infile.getStropheEnd(i);
		counter += markStrophe(strophestart, stropheend);
	}
	if (counter) {
		string rdf = "!!!RDF**kern: ";
		rdf += m_marker;
		rdf += " = marked note, strophe";
		if (m_color != "red") {
			rdf += ", color=\"";
			rdf += m_color;
			rdf += "\"";
		}
		infile.appendLine(rdf);
		infile.createLinesFromTokens();
	}
}
void Tool_strophe :: markWithColor ( HumdrumFile & infile ) { int counter = 0 ; for ( int i = 0 ; i < infile . getStropheCount ( ) ; i ++ ) { HTp strophestart = infile . getStropheStart ( i ) ; HTp stropheend = infile . getStropheEnd ( i ) ; counter += markStrophe ( strophestart , stropheend ) ; } if ( counter ) { string rdf = " " ; rdf += m_marker ; rdf += " " ; if ( m_color != " " ) { rdf += " \" " ; rdf += m_color ; rdf += " \" " ; } infile . appendLine ( rdf ) ; infile . createLinesFromTokens ( ) ; } }
Tool_strophe::markWithColor --  Maybe give different colors
to different variants.
Tool_strophe :: markWithColor -- Maybe give different colors to different variants .