abc2svg
Diff
Not logged in

Differences From Artifact [a6bf2b1b45]:

To Artifact [55d13b14db]:


876
877
878
879
880
881
882
883

884
885
886
887
888
889
890
876
877
878
879
880
881
882

883
884
885
886
887
888
889
890







-
+







	switch (cmd) {
	case "center":
		set_font("text")
		if (parse.state >= 2) {
			s = new_block("text");
			s.text = param
			s.opt = 'c'
			s.font = gene.curfont
			s.font = cfmt.textfont
			return
		}
		write_text(param, 'c')
		return
	case "clef":
		if (parse.state >= 2) {
			if (parse.state == 2)
1146
1147
1148
1149
1150
1151
1152
1153

1154
1155
1156
1157
1158
1159
1160
1146
1147
1148
1149
1150
1151
1152

1153
1154
1155
1156
1157
1158
1159
1160







-
+







		break
	case "text":
		set_font("text")
		if (parse.state >= 2) {
			s = new_block(cmd);
			s.text = param
			s.opt = cfmt.textoption
			s.font = gene.curfont
			s.font = cfmt.textfont
			return
		}
		write_text(param, cfmt.textoption)
		return
	case "transpose":		// (abcm2ps compatibility)
		if (cfmt.sound)
			return
1300
1301
1302
1303
1304
1305
1306
1307

1308
1309
1310
1311
1312
1313
1314
1300
1301
1302
1303
1304
1305
1306

1307
1308
1309
1310
1311
1312
1313
1314







-
+







		if (!action)
			action = cfmt.textoption
		set_font("text")
		if (parse.state >= 2) {
			s = new_block(type);
			s.text = text
			s.opt = action
			s.font = gene.curfont
			s.font = cfmt.textfont
			break
		}
		write_text(text, action)
		break
	}
}