Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accented characters #23

Open
nilem opened this issue Oct 5, 2015 · 0 comments
Open

Accented characters #23

nilem opened this issue Oct 5, 2015 · 0 comments

Comments

@nilem
Copy link

nilem commented Oct 5, 2015

Hi! Your project is really great! But it doesn't support accented characters well. Right now, converting the word "préféré" for instance will return "pr_f_e_r", which is much less readable then "prefere".

I added those lines in case_parse.py (39), which doesn't handle all cases, but help a little bit :

arrayR = [(u'\xc9', 'e'),(u'\xc8', 'e'),(u'\xca', 'e'),(u'\xe8', 'e'),(u'\xe9', 'e'),(u'\xea', 'e'),(u'\xc0', 'a'),(u'\xc1', 'a'),(u'\xc2', 'a'),(u'\xe0', 'a'),(u'\xe1', 'a'),(u'\xe2', 'a')]

for a,b in arrayR:
    var = var.replace(a,b)

I hope this can help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant