Skip to content

Commit

Permalink
Prepare v0.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto Pettarin committed May 5, 2019
1 parent ede4b3c commit 359bcb3
Show file tree
Hide file tree
Showing 21 changed files with 363 additions and 354 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changelog
=========

v0.0.9 (2019-05-05)
-------------------

#. Fix for Windows users when installing via PyPI


v0.0.8 (2016-06-07)
-------------------

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 Alberto Pettarin (alberto@albertopettarin.it)
Copyright (c) 2016-2019 Alberto Pettarin (alberto@albertopettarin.it)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

**ipapy** is a Python module to work with International Phonetic Alphabet (IPA) strings.

* Version: 0.0.8
* Date: 2016-06-07
* Version: 0.0.9
* Date: 2019-05-05
* Developer: [Alberto Pettarin](http://www.albertopettarin.it/)
* License: the MIT License (MIT)
* Contact: [click here](http://www.albertopettarin.it/contact.html)
Expand Down Expand Up @@ -362,4 +362,7 @@ $ python run_all_unit_tests.py
**ipapy** is released under the MIT License.
## Acknowledgments
* Bram Vanroy provided a fix to ``setup.py`` for Windows users
560 changes: 280 additions & 280 deletions README.rst

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.8
0.0.9
4 changes: 2 additions & 2 deletions bin/ipapy
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ from __future__ import absolute_import
from ipapy.__main__ import main as package_main

__author__ = "Alberto Pettarin"
__copyright__ = "Copyright 2016, Alberto Pettarin (www.albertopettarin.it)"
__copyright__ = "Copyright 2016-2019, Alberto Pettarin (www.albertopettarin.it)"
__license__ = "MIT"
__email__ = "alberto@albertopettarin.it"

__version__ = "0.0.8"
__version__ = "0.0.9"
__status__ = "Production"

def main():
Expand Down
12 changes: 6 additions & 6 deletions ipapy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@
from ipapy.data import UNICODE_TO_IPA_MAX_KEY_LENGTH

__author__ = "Alberto Pettarin"
__copyright__ = "Copyright 2016, Alberto Pettarin (www.albertopettarin.it)"
__copyright__ = "Copyright 2016-2019, Alberto Pettarin (www.albertopettarin.it)"
__license__ = "MIT"
__email__ = "alberto@albertopettarin.it"

__version__ = "0.0.8"
__version__ = "0.0.9"
__status__ = "Production"

def split_using_dictionary(string, dictionary, max_key_length, single_char_parsing=False):
"""
Return a list of (non-empty) substrings of the given string,
where each substring is either:
1. the longest string starting at the current index
that is a key in the dictionary, or
2. a single character that is not a key in the dictionary.
Expand All @@ -47,7 +47,7 @@ def substring(string, i, j):
return tuple([string[k][0] for k in range(i, j)])
# just return substring
return string[i:j]

if string is None:
return None
if (single_char_parsing) or (max_key_length < 2):
Expand All @@ -73,7 +73,7 @@ def ipa_substrings(unicode_string, single_char_parsing=False):
"""
Return a list of (non-empty) substrings of the given string,
where each substring is either:
1. the longest Unicode string starting at the current index
representing a (known) valid IPA character, or
2. a single Unicode character (which is not IPA valid).
Expand Down Expand Up @@ -112,7 +112,7 @@ def invalid_ipa_characters(unicode_string, indices=False):
:param str unicode_string: the Unicode string to be parsed
:param bool indices: if ``True``, return a list of pairs (index, invalid character),
instead of a list of str (characters).
:rtype: list of str or list of (int, str)
:rtype: list of str or list of (int, str)
"""
if unicode_string is None:
return None
Expand Down
8 changes: 4 additions & 4 deletions ipapy/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from ipapy.ipastring import IPAString

__author__ = "Alberto Pettarin"
__copyright__ = "Copyright 2016, Alberto Pettarin (www.albertopettarin.it)"
__copyright__ = "Copyright 2016-2019, Alberto Pettarin (www.albertopettarin.it)"
__license__ = "MIT"
__email__ = "alberto@albertopettarin.it"

Expand Down Expand Up @@ -105,7 +105,7 @@ def print_invalid_chars(invalid_chars, vargs):

def command_canonize(string, vargs):
"""
Print the canonical representation of the given string.
Print the canonical representation of the given string.
It will replace non-canonical compound characters
with their canonical synonym.
Expand Down Expand Up @@ -182,7 +182,7 @@ def command_clean(string, vargs):

def command_u2a(string, vargs):
"""
Print the ARPABEY ASCII string corresponding to the given Unicode IPA string.
Print the ARPABEY ASCII string corresponding to the given Unicode IPA string.
:param str string: the string to act upon
:param dict vargs: the command line arguments
Expand All @@ -200,7 +200,7 @@ def command_u2a(string, vargs):

def command_u2k(string, vargs):
"""
Print the Kirshenbaum ASCII string corresponding to the given Unicode IPA string.
Print the Kirshenbaum ASCII string corresponding to the given Unicode IPA string.
:param str string: the string to act upon
:param dict vargs: the command line arguments
Expand Down
2 changes: 1 addition & 1 deletion ipapy/arpabetmapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from ipapy.mapper import Mapper

__author__ = "Alberto Pettarin"
__copyright__ = "Copyright 2016, Alberto Pettarin (www.albertopettarin.it)"
__copyright__ = "Copyright 2016-2019, Alberto Pettarin (www.albertopettarin.it)"
__license__ = "MIT"
__email__ = "alberto@albertopettarin.it"

Expand Down
6 changes: 3 additions & 3 deletions ipapy/compatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import sys

__author__ = "Alberto Pettarin"
__copyright__ = "Copyright 2016, Alberto Pettarin (www.albertopettarin.it)"
__copyright__ = "Copyright 2016-2019, Alberto Pettarin (www.albertopettarin.it)"
__license__ = "MIT"
__email__ = "alberto@albertopettarin.it"

Expand Down Expand Up @@ -41,7 +41,7 @@ def is_unicode_string(string):
def to_unicode_string(string):
"""
Return a Unicode string out of the given string.
On Python 2, it calls ``unicode`` with ``utf-8`` encoding.
On Python 3, it just returns the given string.
Expand All @@ -54,7 +54,7 @@ def to_unicode_string(string):
return None
if is_unicode_string(string):
return string
# if reached here, string is a byte string
# if reached here, string is a byte string
if PY2:
return unicode(string, encoding="utf-8")
return string.decode(encoding="utf-8")
Expand Down
6 changes: 3 additions & 3 deletions ipapy/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from ipapy.ipachar import IPATone

__author__ = "Alberto Pettarin"
__copyright__ = "Copyright 2016, Alberto Pettarin (www.albertopettarin.it)"
__copyright__ = "Copyright 2016-2019, Alberto Pettarin (www.albertopettarin.it)"
__license__ = "MIT"
__email__ = "alberto@albertopettarin.it"

Expand Down Expand Up @@ -97,7 +97,7 @@ def convert_raw_tuple(value_tuple, format_string):
:param tuple value_tuple: the tuple of raw values
:param str format_string: the format of the tuple
:rtype: list of tuples
"""
"""
values = []
for v, c in zip(value_tuple, format_string):
if v is None:
Expand Down Expand Up @@ -209,7 +209,7 @@ def load_ipa_data():
ipa_to_unicode[obj.canonical_representation] = first_key
obj.unicode_repr = first_key
max_key_length = max(max_key_length, len(first_key))
# add all Unicode strings
# add all Unicode strings
for key in i_unicode_keys:
if key in unicode_to_ipa:
raise ValueError("The IPA data file contains a bad line, redefining codepoint '%s': '%s'" % (key, line))
Expand Down
4 changes: 2 additions & 2 deletions ipapy/data/arpabet.dat
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#
# ARPABET Symbols
#
# Version: 0.0.8
# Date: 2016-06-07
# Version: 0.0.9
# Date: 2019-05-05
#
# Syntax:
# ipa,arpabet
Expand Down
4 changes: 2 additions & 2 deletions ipapy/data/ipa.dat
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#
# IPA Symbols
#
# Version: 0.0.8
# Date: 2016-06-07
# Version: 0.0.9
# Date: 2019-05-05
#
# Syntax:
# desc,unic
Expand Down
4 changes: 2 additions & 2 deletions ipapy/data/kirshenbaum.dat
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#
# Kirshenbaum Symbols
#
# Version: 0.0.8
# Date: 2016-06-07
# Version: 0.0.9
# Date: 2019-05-05
#
# Syntax:
# desc,unic,kirs
Expand Down
Loading

0 comments on commit 359bcb3

Please sign in to comment.