-
Notifications
You must be signed in to change notification settings - Fork 528
2 Issues Potentially Fixed #492
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
Open
meimaris
wants to merge
492
commits into
release-0.5.9
Choose a base branch
from
master
base: release-0.5.9
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ADD] to ordinal number for Turkish
Remove an unnecessary condition, since the very same action follows it.
…r options not implemented.
* [tr] return Turkish 0 ordinal and cardinal * add str_to_number to Turkish * try rather use Num2Word_Base
…SR languages (#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
…es); fixed accents in test_es.py (dieciséis, dólar, dólares, veintiún)
Fixed: ./num2words/lang_ES.py:366:56: E261 at least two spaces before inline comment ./num2words/lang_ES.py:366:80: E501 line too long (100 > 79 characters)
Fixed accent in Spanish examples ("centimos"->"céntimos"), thus making the example consistent with actual current behaviour.
Fixed accent in Spanish command line examples ("centimos"->"céntimos"), thus making the example consistent with actual current behaviour.
…test_es: updated accordingly
tests do pass in 333->343, 341->343, 572->exit but coverage marks as not testes
Run tests against Python 3.12
[ADD] num2words: es_CR language added
New languages: Welsh (Celtic) and Chechen (Nakho-Dagestanian)
* lang_CA * Flake8 * From "" to '' * Delete settings * Delete .coverage * Refactor Num2Word_CA to remove redundant code and include new tests in japanese language --------- Co-authored-by: Alberto Castaño <[email protected]>
* Initial Tetum copy of PT * ida too sanulu * Up to 999? * up to 9999? * up to 100000 * up to 19000000000 * change milaun to millaun * add trillaun rua * up to 145254635102 * changed trillaun an billaun * changed iliao to illaun * millaun change to miliaun * rm paramenter inside super * add more 'miliaun','biliaun','triliaun' * up to -1234567 * up to 2345.75 * remove parameter inside super * changed e to resin * changed o to u * implemented test cardinal float * add test ordinal * changed antes de Cristo to antes Kristu * changed format * add 145254635102 testing * add test currency integer * add test currency integer negative * add test currency float * add test year negative * add test currency float negative * rm skip * changed zero to mamuk * changed EUR to USD * Currency fixes * replace walu to ualu * Tetun ordinal numbers * add new source code for to_cardinal tet * add ordinal to tetun * add da and k * fixed ordinal number for tetun language * changed variavel to english * fixed logic for ordinal number * Fix test_currency_float * Don;t show sentavus if no sentavus * test currency integer negative * add test for ordinal * fix test currency float negative * fixed test currency integer * rm the comment * fixed atus ida resin ida to atus ida ida * add DRY * add test * add ho * tyup the source code * tyup source code * fixed ho bug * mv self.ho_result * changed 2 to 1 * fixed bug ho * pass the testing * Flake8 fix lang_TET.py * fix the test tet flake8 * isort test num2words * First small increases in coverage of TET * flake8 removing unused import * removed lines that doesn't execute test * removed anos line of code * removed unuse codes * Remove unused code in to_ordinal * assert raises ordinal tests * Remove if statement that was always true * rm the code * rm assert int(value) * fixed the failing error * Remove unicode literals and division * fixed the error * remove empty line --------- Co-authored-by: onorio <[email protected]> Co-authored-by: Mariano de Deus <[email protected]> Co-authored-by: Mario <[email protected]> Co-authored-by: joanico <[email protected]> Co-authored-by: MarioAP <[email protected]>
+ improvements in big numbers + PLN currency added +reformat flake8
Co-authored-by: Marlon Rodriguez Garcia <[email protected]>
* Feature:bangla number to word conversion library. * bangla number to word conversion library resgister to num2word converter class. * Test case for bangla number to word conversion. * refactor and rename class for library compatibility. * fix: isort and flake8 formating issue. * fix: add more test to increase coverage. --------- Co-authored-by: Mehedi Hasan Khondoker <[email protected]> Co-authored-by: Marlon Rodriguez Garcia <[email protected]>
* Added support for Tunisian Dinar * Added tests for TND currency * Set parPrecision for other AR currencies --------- Co-authored-by: Marlon Rodriguez Garcia <[email protected]>
Co-authored-by: Marlon Rodriguez Garcia <[email protected]>
Co-authored-by: Marlon Rodriguez Garcia <[email protected]>
Co-authored-by: Marlon Rodriguez Garcia <[email protected]>
Co-authored-by: Marlon Rodriguez Garcia <[email protected]>
Copied from stale PR here: #442
* Update base.py to remove cents from displaying when whole number inputted * Update test_en.py to align with updated base.py * Update test_en_ng.py to align with updated base.py * Update test_hu.py to align with updated base.py * Update test_nl.py to align with updated base.py * Update test_am.py to align with updated base.py * Remove Amharic cardinals test cases meant for other PR (#598) and fix formatting --------- Co-authored-by: cheng-jess <[email protected]>
Co-authored-by: Marlon Rodriguez Garcia <[email protected]>
* Update test_es.py * add support for grammatical gender to spanish ordinals - add support for grammatical gender - better spelling * Update test_es.py add new line to please the python gods
Co-authored-by: Marlon Rodriguez Garcia <[email protected]>
* Add zh_TW in num2words/__init__.py * Fix minus and float of lang_ZH_TW * Fix stuffing zero and add test_zh_tw.py * Add prefer in test_zh_tw * Improve the code of lang_ZH_TW.py * Fix the value of currency is minus * Improve code after running tox * Create lang_ZH.py Number to Chinese character --数字转中文字符 * Create test_zh.py test lang_ZH.py for num2words * Update test_zh.py * Update test_zh.py * init chinese for mainland, taiwan, & hong kong * Consistent currency format * Implement 3 types of stuff_zero for carnidal; Fix test cases * Ordinal with counter; Implement Year (ROC era for zh_TW) * Add select_text for reading & prefer; Revert 注音 for zh_TW; merge capital into reading * reorganize to_currency for better understanding; apply PR #622 for zh_tw * Fix pep8 errors for flake8 * Fix isort errors * add unit tests to increase coverage --------- Co-authored-by: ZoeLiao <[email protected]> Co-authored-by: icnbing <[email protected]> Co-authored-by: Marlon Rodriguez Garcia <[email protected]>
* Add support for Mongolian language * fix isort error
* Add Armenian (HY) language support This commit adds full support for the Armenian language to the num2words library with the following features: Complete implementation of cardinal numbers in Armenian; Support for ordinal numbers with appropriate suffixes; Support for years with special cases handling; Currency support for multiple currencies including AMD, EUR, USD and others; Proper pluralization rules for Armenian nouns; Modern numeral representation using Arabic digits; Comprehensive test suite to ensure correctness. The implementation follows Armenian grammar rules and provides correct pronunciation for all numeric forms.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes # by...
Changes proposed in this pull request:

instead of "en hundred"Status
How to verify this change
Fill out this section so that a reviewer can know how to verify your change.
Additional notes
If applicable, explain the rationale behind your change.