diff --git a/allzweckmesser/scanner.py b/allzweckmesser/scanner.py index 903040e34f8b1494d40d87774301ba2189fafbdd..fc2e7bd2cc56629bf4a3520a7c0552247970fe6f 100644 --- a/allzweckmesser/scanner.py +++ b/allzweckmesser/scanner.py @@ -440,7 +440,7 @@ def generate_synizesis(reading): in_syllables = match.start() < len(syl.text) < match.end() if in_syllables: - syn_list.append([syl.id, other_syl.id, new_text, match.groups(0)]) + syn_list.append([syl.id, other_syl.id, new_text, match.group(0)]) else: continue @@ -579,11 +579,11 @@ def make_elisions(verse, old = False): next_syllable.phenomena['apheresis'] = apheresis next_syllable.syllable_length = 0 if reading.tokens[i+1].text in {'est', 'estis'}: - pl = Phenomenon(chars=m.groups(0)+" est") + pl = Phenomenon(chars=m.group(0)+" est") this_syllable.phenomena['positional_lengthening'] = pl this_syllable.syllable_length = 2 - elif reading.tokens[i+1].text in {'es'} and 'm' in m.groups(1): - pl = Phenomenon(chars=m.groups(0)+" es") + elif reading.tokens[i+1].text in {'es'} and 'm' in m.group(1): + pl = Phenomenon(chars=m.group(0)+" es") this_syllable.phenomena['positional_lengthening'] = pl this_syllable.syllable_length = 2