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

Improve Ukrainian support and minor fixes in CZ, KZ, LT, LV, PL, RU, SR languages #400

Merged
merged 10 commits into from
Jun 30, 2021

Conversation

rostyslav80
Copy link
Contributor

@rostyslav80 rostyslav80 commented Jun 10, 2021

Fixes # by rostyslav80

Changes proposed in this pull request:

  • Fix English char 'i' in Ukrainian words
  • Fix the feminine currency processing for UAH in lang_UK.py
  • Fix the feminine currency processing for UAH in lang_RU.py
  • Add world currencies to lang_UK.py
  • Fix incorrect handling of zeros after decimal point for CZ, KZ, LT, LV, PL, RU, SR and UK languages
  • Add Ukrainian ordinal numbers

Status

  • READY
  • HOLD
  • WIP (Work-In-Progress)

How to verify this change

Unit tests cover all of the possible cases.

Additional notes

This PR contains the bug fix, proposed in these abandoned PRs:

@coveralls
Copy link

coveralls commented Jun 10, 2021

Pull Request Test Coverage Report for Build 1071

  • 572 of 573 (99.83%) changed or added relevant lines in 17 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.4%) to 96.264%

Changes Missing Coverage Covered Lines Changed/Added Lines %
num2words/lang_UK.py 72 73 98.63%
Totals Coverage Status
Change from base Build 1056: 0.4%
Covered Lines: 6696
Relevant Lines: 6879

💛 - Coveralls

@rostyslav80
Copy link
Contributor Author

@mromdhane
Could I kindly ask you for a review?

@mromdhane mromdhane self-requested a review June 11, 2021 14:10
@mromdhane mromdhane self-assigned this Jun 11, 2021
@rostyslav80
Copy link
Contributor Author

Hello, @mromdhane
Any update on this PR?

@mromdhane
Copy link
Contributor

Hello, @rostyslav80 can you just give us a little example of bug fixing, please?
Thank you

@rostyslav80
Copy link
Contributor Author

@mromdhane
Here is the bug fixing example

Before fixing:
num2words(10.02, lang='cz') -> "deset celá dva"
num2words(15.007, lang='cz') -> "patnáct celá sedm"

After fixing:
num2words(10.02, lang='cz') -> "deset celá nula dva"
num2words(15.007, lang='cz') -> "patnáct celá nula nula sedm"

@mromdhane
Copy link
Contributor

@rostyslav80 Thank you!

num2words/lang_KZ.py Show resolved Hide resolved
@mromdhane mromdhane merged commit 40ab739 into savoirfairelinux:master Jun 30, 2021
KommuSoft pushed a commit to hapytex/num2words that referenced this pull request Aug 18, 2022
…SR languages (savoirfairelinux#400)

* Fix English char 'i' in Ukrainian words

* Fix the feminine currency processing for UAH in lang_UK.py

* Fix test_ua.py

* Fix the feminine currency processing for UAH in lang_RU.py

* Add tests for UAH in test_ru.py

* Add world currencies to lang_UK.py; Add test cases to test_uk.py for world currencies

* Fix incorrect handling of zeros after decimal point for CZ, KZ, LT, LV, PL, RU, SR and UK languages

* Add ukrainian ordinal numbers

* Fix too long lines of code

* Add test for negative cardinal number
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

Successfully merging this pull request may close these issues.

3 participants