Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment