Skip to content

Commit

Permalink
_accepted_chars() accepts Vietnamese characters with tone and mark as…
Browse files Browse the repository at this point in the history
… well

ISSUE: #17
  • Loading branch information
lewtds committed Jul 10, 2014
1 parent c815ff7 commit 07fdbba
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions bogo/core.py
Expand Up @@ -101,16 +101,14 @@ def get_vni_definition():

def _accepted_chars(rules):
if sys.version_info[0] > 2:
accepted_chars = \
string.ascii_letters + \
''.join(rules.keys())
ascii_letters = \
string.ascii_letters
else:
accepted_chars = \
ascii_letters = \
string.lowercase + \
string.uppercase + \
''.join(rules.keys())
string.uppercase

return accepted_chars
return set(ascii_letters + ''.join(rules.keys()) + utils.VOWELS + "đ")


def process_sequence(sequence,
Expand Down

0 comments on commit 07fdbba

Please sign in to comment.