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

Issue when there is 'zéro' before other letters #105

Closed
Mickaelh51 opened this issue Jan 29, 2024 · 2 comments
Closed

Issue when there is 'zéro' before other letters #105

Mickaelh51 opened this issue Jan 29, 2024 · 2 comments
Assignees
Labels
bug Something isn't working python version only The bug does not exist on the Rust version

Comments

@Mickaelh51
Copy link

Ex OK:

data_zero = 'zéro'
print(alpha2digit(data_zero, 'fr'))
0

Ex: NOK:

data1 = 'a a un trois sept trois trois sept cinq quatre zéro c c'
data2 = 'b b un trois sept trois trois sept cinq quatre zéro d d'
print(alpha2digit(data1, 'fr'))
print(alpha2digit(data2, 'fr'))
a a 1 3 7 3 3 7 5 4 zéro c c 
b b 1 3 7 3 3 7 5 4 zéro d d

We can see zéro is not transform to digit 0.

thanks in advance for your help
have a good day

@rtxm rtxm self-assigned this Jan 29, 2024
@rtxm rtxm added the bug Something isn't working label Jan 29, 2024
@Mickaelh51
Copy link
Author

idem for this example:
data_3 = 'sept un zéro'

result: 7 un 0

@rtxm
Copy link
Collaborator

rtxm commented Jan 29, 2024

Thanks for your feedback.

@rtxm rtxm added the python version only The bug does not exist on the Rust version label Mar 19, 2024
@rtxm rtxm closed this as completed in 510f223 Mar 19, 2024
rtxm added a commit that referenced this issue Mar 19, 2024
Refined handling of zero. Fixes #105, fixes #106.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working python version only The bug does not exist on the Rust version
Projects
None yet
Development

No branches or pull requests

2 participants