Python 3 library for accenting (and analyzing the accentuation of) Ancient Greek words
MIT License
Python 3 library for accenting (and analyzing the accentuation of) Ancient Greek words.
For more of my work on Ancient Greek, see http://jktauber.com/.
pip install greek-accentuation==1.2.0
see docs.rst
on_penult
will now return an oxytone rather than None if input only has one syllableaccentuation.persistent
now supports default_short
parametersyllabify.is_diphthong
now works with uppercase letters (fixes a syllabification bug when capitalized word begins with diphthong)syllabify.add_necessary_breathing
now returns a NFKC normalized form (improving rebreath/debreath roundtripping)possible_accentuations
now correctly gives paroxytone as a possible accentuation when penult is long and length of ultima is indeterminatesyllabify.add_necessary_breathing
now works with uppercase initial vowelssyllabify.debreath
syllabify.rebreath
syllabify.add_necessary_breathing
can optionally add rough breathingcharacters.add_breathing
properly handles macronsgreek_accentuation
package0.9.9 removed some unnecessary code
0.9.8 add_necessary_breathing now properly handles initial vowels with iota subscripts
0.9.7 fixed another bug in macro + breathing + accent case
0.9.6 fixed a bug in macro + breathing + accent case
0.9.5 breathing is now considered part of the onset and syllabification now works on words containing macron + breathing + accent on the same vowel
0.9.4 fixed syllabification of words containing macron and acute on same vowel
0.9.3 improved onset, nucleus, coda, and syllabify in cases where input has no vowels.
0.9.2 fixed some edge-case bugs in syllable_morae and contonation and got doctest coverage to 100%.
0.9.1 slightly improved persistent accent calculation by falling back to recessive if out of syllables (rather than raising an exception).
accentuation.display_accent_type
accentuation.get_accent_type
accentuation.on_penult
syllabify.contonation
syllabify.add_necessary_breathing
characters.strip_breathing
characters.strip_accents
characters.remove_redundant_macron