Skip to content

Some numbers "break" Cyrillic converter #3

@ENDrain

Description

@ENDrain

By design, Cyrillic converter supports reading numbers with decorator irregularities - including missing "thousand" marks. (Whether this design is right is another question - #4.) The problem here is that certain irregularly written numbers can break current translation algorithm.

Concider this number:
раi҂ра҃i

Let's agree that all our numbers are properly written left-to right, only some decorators are missing. Now, current algorithm will not interpret this as 111,111,000 as it should. It will interpret this as 222,000. It will take the "thousand" mark from the first numeral group and index value (1) for the second numeral group. Both will yield a multiplier of 1,000. Hence, 111*1,000 + 111*1,000 = 222,000.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions