Skip to content

Commit

Permalink
moved modules into container package and bump to version 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jtauber committed Jul 27, 2016
1 parent fdef4a7 commit 7a67c69
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 27 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ For more of my work on Ancient Greek, see <http://jktauber.com/>.

## Installation

pip install greek-accentuation==0.9.9
pip install greek-accentuation==1.0.0


## Documentation
Expand All @@ -21,6 +21,16 @@ see [docs.rst](https://github.com/jtauber/greek-accentuation/blob/master/docs.rs

## Change Log

### New in 1.0.0

* `syllabify.debreath`
* `syllabify.rebreath`
* `syllabify.add_necessary_breathing` can optionally add rough breathing
* `characters.add_breathing` properly handles macrons
* modules moved into `greek_accentuation` package
* universal wheel build


0.9.9 removed some unnecessary code

0.9.8 add_necessary_breathing now properly handles initial vowels with iota
Expand Down
19 changes: 10 additions & 9 deletions docs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
Characters
==========

>>> from characters import *
>>> from greek_accentuation.characters import *

The ``characters`` module provides basic analysis and manipulation of Greek
characters in terms of their Unicode diacritics as if decomposed.
The ``greek_accentuation.characters`` module provides basic analysis and
manipulation of Greek characters in terms of their Unicode diacritics as if
decomposed.

For example:

Expand Down Expand Up @@ -90,10 +91,10 @@ circumflex:
Syllabify
=========

>>> from syllabify import *
>>> from greek_accentuation.syllabify import *

The ``syllabify`` module provides basic analysis and manipulation of Greek
syllables.
The ``greek_accentuation.syllabify`` module provides basic analysis and
manipulation of Greek syllables.


You can syllabify a word with ``syllabify``:
Expand Down Expand Up @@ -411,10 +412,10 @@ Finally, there are two experimental functions ``morae`` and ``contonation``:
Accentuation
============

>>> from accentuation import *
>>> from greek_accentuation.accentuation import *

The ``accentuation`` module uses the two modules above to analyze and
manipulate the accentuation of Greek words.
The ``greek_accentuation.accentuation`` module uses the two modules above to
analyze and manipulate the accentuation of Greek words.


``get_accent_type`` will return the type of accent on a word (as tuple of
Expand Down
9 changes: 3 additions & 6 deletions extra.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
>>> from characters import add_diacritic, add_breathing
>>> from characters import accent, breathing, length
>>> from characters import LONG, ACUTE, ROUGH, SMOOTH
>>> from greek_accentuation.characters import *

>>> a = add_diacritic(add_diacritic(add_diacritic('ι', LONG), ACUTE), ROUGH)
>>> a
Expand Down Expand Up @@ -28,8 +26,7 @@
>>> add_breathing("", ROUGH)
'ῑ̔'

>>> from syllabify import syllabify, add_necessary_breathing, rebreath
>>> from syllabify import onset, nucleus, coda, onset_nucleus_coda
>>> from greek_accentuation.syllabify import *

>>> syllabify('ῑ́̔στην')
['ῑ́̔', 'στην']
Expand Down Expand Up @@ -87,7 +84,7 @@ True
''


>>> from accentuation import recessive, add_accent, syllable_add_accent, PAROXYTONE
>>> from greek_accentuation.accentuation import *

>>> syllabify('ῑ̔στην')
['ῑ̔', 'στην']
Expand Down
Empty file added greek_accentuation/__init__.py
Empty file.
8 changes: 4 additions & 4 deletions accentuation.py → greek_accentuation/accentuation.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from characters import add_diacritic
from characters import ACUTE, CIRCUMFLEX, SHORT, LONG, SMOOTH, ROUGH
from syllabify import onset_nucleus_coda, syllabify, UNKNOWN, syllable_length
from syllabify import syllable_accent, ultima, penult, antepenult
from .characters import add_diacritic
from .characters import ACUTE, CIRCUMFLEX, SHORT, LONG, SMOOTH, ROUGH
from .syllabify import onset_nucleus_coda, syllabify, UNKNOWN, syllable_length
from .syllabify import syllable_accent, ultima, penult, antepenult


def syllable_add_accent(s, a):
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions syllabify.py → greek_accentuation/syllabify.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from characters import accent, base, diaeresis, iota_subscript, length
from characters import remove_redundant_macron
from characters import breathing, strip_breathing, add_breathing, SMOOTH, ROUGH
from characters import ACUTE, CIRCUMFLEX, SHORT, LONG
from .characters import accent, base, diaeresis, iota_subscript, length
from .characters import remove_redundant_macron
from .characters import breathing, strip_breathing, add_breathing
from .characters import SMOOTH, ROUGH, ACUTE, CIRCUMFLEX, SHORT, LONG


def is_vowel(ch):
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[bdist_wheel]
universal = 1
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

setup(
name="greek-accentuation",
version="0.9.9",
version="1.0.0",
description="""\
Python 3 library for accenting (and analyzing the accentuation of) \
Ancient Greek words""",
license="MIT",
url="https://github.com/jtauber/greek-accentuation",
author="James Tauber",
author_email="[email protected]",
py_modules=["characters", "syllabify", "accentuation"],
packages=["greek_accentuation"],
classifiers=[
"Development Status :: 4 - Beta",
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
Expand Down

0 comments on commit 7a67c69

Please sign in to comment.