Commit e5c8d74e authored by Simon Will's avatar Simon Will
Browse files

Change faulty usage of match.groups to match.group

@zimmermann, can you please check that this is what those lines were
supposed to look like?
parent 30b9355b
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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