Commit 1a482a09 authored by Simon Will's avatar Simon Will
Browse files

Merge branch 'master' of gitlab.cl.uni-heidelberg.de:Messerschleifer/Allzweckmesser

parents bf07b304 73af212b
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -170,9 +170,9 @@ def get_syllables_for_token(token: Token):
    syllables = []
    if token.accented:
        regex = (
            r'((?:ua|ue|ae|oe|au|eu|yi|[aeiouy])[_^]?)'
            r'((?<!q)(?:ua|ue|ae|oe|au|eu|yi|[aeiouy])[_^]?)'
            if token.text[0].isupper()
            else r'((?:ua|ue|ae|oe|au|[aeiouy])[_^]?)'
            else r'((?<!q)(?:ua|ue|ae|oe|au|[aeiouy])[_^]?)'
        )
        accented = (token.accented + token.clitic
                    if token.clitic
@@ -280,6 +280,9 @@ def parse_verse(verse):
        for syllable in syllables:
            
            if 'muta cum liquida' in syllable.phenomena:
                if 'positional lengthening' in syllable.phenomena and ' ' in syllable.phenomena['positional lengthening'].chars:
                    abstract += '2'
                else:
                    abstract += '{}'
                    mcl_count += 1
            elif 'positional lengthening' in syllable.phenomena: