Skip to content

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

@Mickaelh51

Description

@Mickaelh51

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpure python version onlyThe bug does not exist on the Rust version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions