示例#1
0
def identify_text(index, element, parent):
    if isinstance(element, str):
        if not s.is_chord_line(element):
            parent.pop(index)
            parent.insert(index, s.Text(element))
示例#2
0
def identify_chordlines(index, element, parent):
    if isinstance(element, str):
        if s.is_chord_line(element):
            parent.pop(index)
            parent.insert(index, s.Chordline(element))