Skip to content

Commit

Permalink
fix order of commands
Browse files Browse the repository at this point in the history
  • Loading branch information
pudo committed Dec 19, 2016
1 parent a104f9f commit 33d8ad5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion normality/transliteration.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ def _latinize_internal(text, ascii=False):
if not hasattr(latinize_text, '_ascii'):
# Transform to latin, separate accents, decompose, remove
# symbols, compose, push to ASCII
latinize_text._ascii = Transliterator.createInstance('Any-Latin; Accents-Any; NFD; [:Symbol:] Remove; [:Nonspacing Mark:] Remove; NFC; Latin-ASCII') # noqa
latinize_text._ascii = Transliterator.createInstance('Any-Latin; NFKD; [:Symbol:] Remove; [:Nonspacing Mark:] Remove; NFKC; Accents-Any; Latin-ASCII') # noqa
return latinize_text._ascii.transliterate(text)

if not hasattr(latinize_text, '_tr'):
latinize_text._tr = Transliterator.createInstance('Any-Latin')
return latinize_text._tr.transliterate(text)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name='normality',
version='0.3.7',
version='0.3.8',
description="Micro-library to normalize text strings",
long_description="",
classifiers=[
Expand Down
1 change: 1 addition & 0 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
SAMPLES = [
u'Порошенко Петро Олексійович',
u'FUAD ALIYEV ƏHMƏD OĞLU',
u'Häschen Spaß',
u'ავლაბრის ფონდი',
]

Expand Down

0 comments on commit 33d8ad5

Please sign in to comment.