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

2 Issues Potentially Fixed #492

Open
wants to merge 481 commits into
base: release-0.5.9
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
481 commits
Select commit Hold shift + click to select a range
8633c0b
[FIX] /num2words/lang_TR.py:812:1: W293 blank line contains whitespace
ieski Aug 17, 2022
2ced5f9
Merge branch 'master' of github.com-ieski:ieski/num2words
ieski Aug 17, 2022
0b435c4
Merge branch 'savoirfairelinux:master' into master
ieski Aug 17, 2022
ebada15
Merge branch 'master' into master
mrodriguezg1991 Aug 17, 2022
18b0007
Merge pull request #387 from OpesMentis/master
mrodriguezg1991 Aug 17, 2022
e08193a
Merge branch 'master' into master
mrodriguezg1991 Aug 17, 2022
3187fa2
[TEST] ordinal_num test
ieski Aug 17, 2022
e000cd2
Merge branch 'master' of github.com-ieski:ieski/num2words
ieski Aug 17, 2022
c19ea13
[TEST] ordinal_num test
ieski Aug 17, 2022
605d82e
Merge branch 'master' into master
mrodriguezg1991 Aug 18, 2022
a05f6e5
[FIX] E231 missing whitespace after ','
ieski Aug 18, 2022
48dd5bd
Merge pull request #468 from ieski/master
mrodriguezg1991 Aug 18, 2022
8db643a
Remove dupplicated line in lang_PT_BR
israelst Dec 22, 2020
9c64d48
[UPD] Readme file
mromdhane Jan 21, 2021
cb24e20
This error is already raised in line 223
israelst Jan 26, 2021
1b35e7f
added swedish language including test cases
peternordstrombookbeat Dec 7, 2020
a35effb
added correct ordinal handling and more test cases
peternordstrombookbeat Dec 7, 2020
469aaff
updated test case to increase coverage. raised NotImplementedError fo…
peternordstrombookbeat Jan 25, 2021
3e494d7
updated failing flake8 test
peternordstrombookbeat Jan 26, 2021
402b1e8
Add translations to spanish of several currencies
fernandahf Dec 23, 2020
2039df6
split some lines that were too long for flake8
peternordstrombookbeat Jan 27, 2021
f1cfc8e
updated readme (added swedish)
peternordstrombookbeat Jan 28, 2021
5cb4605
Fix ordinal_num output for Dutch (NL)
EraYaN Feb 14, 2021
ea82fe1
[ADD] polish ordinal numbers (#367)
PaulinaKomorek Apr 23, 2021
79a9abf
[tr] return Turkish 0 ordinal and cardinal (#347)
cyriaka90 May 7, 2021
6bf14be
Improve Ukrainian support and minor fixes in CZ, KZ, LT, LV, PL, RU, …
rostyslav80 Jun 30, 2021
b5875b8
[ADD] to ordinal number for Turkish
ieski Oct 12, 2021
3b27a09
[FIX] /num2words/lang_TR.py:812:1: W293 blank line contains whitespace
ieski Aug 17, 2022
5a8a17d
feat: ci: replace travis by github workflows
Mar 19, 2022
0b896c5
Orthography fixes: added 2 missing accents (dieciseis->dieciséis ; do…
gonsalet Feb 16, 2022
a61760b
Orthography fix: added accent veintiun->veintiún
gonsalet Feb 16, 2022
1cea151
Orthography fixes: added missing accent (nuevos dolares->nuevos dólar…
gonsalet Feb 16, 2022
4afc68f
flake8 fix: fixed comment style
gonsalet Feb 16, 2022
fc0c15c
Fixed pound cents: penny->penique, pence->peniques; fixed tests accor…
gonsalet Feb 16, 2022
0ee149a
Added test covering new fix penny->penique
gonsalet Feb 16, 2022
d4c979e
Fixed accent in examples ("centimos"->"céntimos")
gonsalet Mar 5, 2022
db5e1d1
Fixed accent in Spanish command line examples
gonsalet Mar 21, 2022
62eba31
lang_ES: improved currency gender handling, improved error messages; …
gonsalet Mar 23, 2022
12e8402
Improved currency gender handling, now splitting 'dollars' and 'cents…
gonsalet Mar 23, 2022
b8a215a
Added tests for every currency gender combination (dollars, cents)
gonsalet Mar 23, 2022
2cb98d3
Added new release
Aug 3, 2022
f2acbc2
Add new check to base
Aug 4, 2022
112e91c
fix pluralize
Oct 3, 2020
07ea1ba
implement currency for HE
Oct 3, 2020
f820ee5
add unit tests
Oct 3, 2020
7993ca5
typo
Oct 3, 2020
c11927b
fix flake issues
gs202 Aug 6, 2022
b01c44e
typo
gs202 Aug 6, 2022
9f59c5c
add basic farsi support
HKalbasi Dec 16, 2020
bbd9de8
fix test coverage
HKalbasi Jan 24, 2021
a1f0392
remove unneccery if
HKalbasi Jan 24, 2021
3d2fa18
try fix test failure
HKalbasi Jan 24, 2021
464f9ed
fix flake8 problems
HKalbasi Jan 25, 2021
4e6a573
Support Japanese Reiwa (令和/れいわ) era.
kaiidams Aug 20, 2021
5d1e3c7
Update __init__.py
mrodriguezg1991 Aug 4, 2022
16229a3
Add Amharic language
Aug 7, 2022
4355e11
Update init for Amharic language
Aug 7, 2022
736db51
Update Amharic language
Aug 7, 2022
770cd6d
Add Amharic currency form
Aug 7, 2022
a5a812d
Add test cases
Aug 7, 2022
5948065
Fix flake 8 requirements in python3.1 and increase test coverage.
Aug 9, 2022
83203ed
Fix line too long __init__.py
Aug 9, 2022
8ed54f3
Update Amharic language support
devEyosiyas Aug 9, 2022
5bfcebd
Added Tajik language support
decherd Jul 2, 2021
af97683
Added test for OverflowError and ordinal_num
decherd Jul 2, 2021
beb3326
Added MEGA_SUFFIX and GIGA_SUFFIX tests
decherd Jul 2, 2021
7bf80d5
Fixed flake8 errors
decherd Aug 9, 2022
a744270
Update __init__.py
devEyosiyas Aug 9, 2022
2ca9897
Add additional test case
Aug 10, 2022
084ace6
- add uzs for ru and en
Nov 2, 2021
d1fe269
fix Polish twenties
cyriaka90 Nov 9, 2020
5878cd0
adapt polish tests
cyriaka90 Nov 9, 2020
e4b75bb
increase Polish test coverage
cyriaka90 Aug 16, 2022
3dda6ee
Add to_currency and CURRENCY_FORMS for italian
primes2h Jan 15, 2022
593435f
Add tests for italian language currencies
primes2h Jan 16, 2022
44a2b7c
[TEST] ordinal_num test
ieski Aug 17, 2022
75eec68
Added support for Esperanto numbers.
OpesMentis May 14, 2021
7109e16
[TEST] ordinal_num test
ieski Aug 17, 2022
b6a80e0
[FIX] E231 missing whitespace after ','
ieski Aug 18, 2022
2ee06aa
reformatting
KommuSoft Aug 18, 2022
bb1c718
Merge remote-tracking branch 'org/master' into bugfix/dutch_zero_ordinal
KommuSoft Aug 18, 2022
7c86a85
Merge pull request #326 from hapytex/bugfix/dutch_zero_ordinal
mrodriguezg1991 Aug 18, 2022
0865ac2
new release
Aug 19, 2022
1fd633c
Merge pull request #475 from savoirfairelinux/release_0.5.12
mrodriguezg1991 Aug 19, 2022
5142fe8
Merge branch 'master' into patch-1
mrodriguezg1991 Aug 19, 2022
b28fb08
Merge pull request #421 from Cris140/patch-1
mrodriguezg1991 Aug 19, 2022
0121931
Merge branch 'master' into master
mrodriguezg1991 Aug 19, 2022
a218b33
Merge pull request #436 from Daniel-EST/master
mrodriguezg1991 Aug 19, 2022
3ffdbec
#454: [tr] fix negative number problem
Aug 19, 2022
ddf6a88
#454: [tr] fix flake8 E501 problem
Aug 19, 2022
a7d095c
#454: [tr] fix flake8 E128
Aug 19, 2022
931d71b
Merge pull request #477 from emregeldegul/#454
mrodriguezg1991 Aug 19, 2022
4658809
Merge branch 'master' into master
mrodriguezg1991 Aug 19, 2022
67146ed
Merge pull request #366 from JonasTriki/master
mrodriguezg1991 Aug 19, 2022
9e6cdac
removed hyphen between tens and units
Oct 5, 2022
720e3ca
corrected ordinal_num
Oct 5, 2022
f123eba
fixed NO currency
Oct 5, 2022
5b38879
removed comma from word form of large numbers
Oct 5, 2022
2d5b795
added Norwegian test cases
Oct 5, 2022
4596667
formatting
Oct 5, 2022
b6ebdac
further ordinal coverage
Oct 12, 2022
f58d954
new test linting
Oct 13, 2022
7bcb5ab
Merge pull request #484 from gealodge/feature/NO_tens_units
mrodriguezg1991 Oct 18, 2022
35bf927
Merge remote-tracking branch 'base/master'
Nov 8, 2022
6a26a0b
[FIX]flake8 for 3.10 line length fix
Nov 8, 2022
743c535
Merge pull request #439 from SkiBY/master
mrodriguezg1991 Nov 9, 2022
8e5b2dc
[ADD]PLN in ru
Nov 15, 2022
4d30031
changed ktiv haser to ktiv male (long form when not using diacritics)
eyaler Nov 25, 2022
36a025b
change hebrew spelling from biblical and short-form (ktiv haser) to m…
eyaler Dec 2, 2022
e617d26
remove duplicate test
eyaler Dec 2, 2022
16f2641
add definite ordinals; fix ordinal bugs; add more ordinal tests
eyaler Dec 2, 2022
f8776dd
allow to prefer singular forms
eyaler Dec 2, 2022
8f27e6a
support kwargs for old ordinal interface
eyaler Dec 2, 2022
04c0765
raised maxval to 1,000,000
eyaler Dec 2, 2022
b487f3e
raised maxval to 1e15; added construct forms
eyaler Dec 3, 2022
16468d3
do not allow singular form for plural negatives
eyaler Dec 3, 2022
52d7b02
do not allow singular form for plural negatives
eyaler Dec 3, 2022
23a9fd4
maxval=1e66
eyaler Dec 3, 2022
78c45c6
fixed bug in gender of TENS
eyaler Dec 3, 2022
1466c62
simplify code, add more tests, add makaf for cents_terse
eyaler Dec 3, 2022
2a3dad2
fixed maxval to be percise
eyaler Dec 3, 2022
a840c5a
factorize to allow memoization
eyaler Dec 3, 2022
c27ff99
simplify code;add makaf parameter (just for terse)
eyaler Dec 4, 2022
8b679c0
fixed errors in construct and ordinal above 11. added ordinal plural …
eyaler Dec 17, 2022
ba95d98
Change python3.6 to python3.11 because deprecation in ubuntu 22.04
Dec 26, 2022
4ae4fde
Merge pull request #494 from savoirfairelinux/Change_py36_for_py311
mrodriguezg1991 Dec 26, 2022
6f61e73
Merge branch 'master' into master
mrodriguezg1991 Dec 26, 2022
17dc4e0
add support for Azerbaijani language
elgin9507 Dec 28, 2022
1dc4912
Merge pull request #495 from elgin9507/lang-az
mrodriguezg1991 Dec 30, 2022
47565a3
Merge branch 'master' into master
mrodriguezg1991 Jan 4, 2023
be62f3b
fix flake8 issues
eyaler Jan 6, 2023
ee03933
Merge branch 'master' of https://github.com/eyaler/num2words
eyaler Jan 6, 2023
30aae73
fix typo + try to fix isort issue
eyaler Jan 6, 2023
7c2fc26
resrtored bin deleted accidently. tox passes (py3.10)
eyaler Jan 6, 2023
2b5dcd3
Merge branch 'master' into icelandic
mrodriguezg1991 Jan 13, 2023
3404faa
Update __init__.py
mrodriguezg1991 Jan 13, 2023
f510792
Merge pull request #380 from biggboss83/icelandic
mrodriguezg1991 Jan 13, 2023
e15b4f2
Merge branch 'master' into master
mrodriguezg1991 Jan 19, 2023
a47c485
improved coverage, improved custom currency seperator, fixed silent f…
eyaler Jan 20, 2023
e272daa
Merge branch 'master' of https://github.com/eyaler/num2words
eyaler Jan 20, 2023
3ef32f0
Merge pull request #490 from eyaler/master
mrodriguezg1991 Jan 22, 2023
0cb3a44
Adding genders (m, f, n)
Mar 7, 2023
8d0814d
Fix E501 - line too long warning
Mar 7, 2023
77fbe91
fix 15, 16, 17, 18, 19 issue
Mar 15, 2023
ab5c132
Lang BY Added
SkiBY Mar 21, 2023
5708ab3
Added support for the Nigerian Naira
nseetim Mar 21, 2023
0532aae
+ coverage test
SkiBY Mar 21, 2023
fc2ec75
Added tests and some changes to the keyword argument name from cents …
nseetim Mar 21, 2023
291951e
updated tests and code formatting
nseetim Mar 21, 2023
5bacc2b
Merge pull request #505 from Nika-Soltani-Tehrani/fix-numbers-issue
mrodriguezg1991 Mar 22, 2023
554c3d0
After Reviev Corrections
SkiBY Mar 24, 2023
5035348
corrected sorting using isort
nseetim Mar 24, 2023
00836e1
Guatemala currency
monroy95 Mar 28, 2023
6cfdf77
Adding Guatemala in README.rst
monroy95 Mar 28, 2023
afac78a
Fix missing space/and in numbers like 740
Jeronymous Mar 29, 2023
302052e
fix extra space. Resolves https://github.com/savoirfairelinux/num2wor…
Jeronymous Mar 29, 2023
030a76f
Resolves https://github.com/savoirfairelinux/num2words/issues/511 : f…
Jeronymous Mar 29, 2023
fd0516c
Resolves https://github.com/savoirfairelinux/num2words/issues/509 : f…
Jeronymous Mar 29, 2023
f55f7c8
uniform use of errmsg_toobig and MAXVAL
Jeronymous Mar 29, 2023
0f233c5
Resolves part of https://github.com/savoirfairelinux/num2words/issues…
Jeronymous Mar 29, 2023
8002ed4
Resolves https://github.com/savoirfairelinux/num2words/issues/394 : m…
Jeronymous Mar 30, 2023
99b21a5
Merge branch 'master' into by_language_added
SkiBY Mar 30, 2023
45a8d50
add big numbers until Quintinillion
hedhoud Mar 30, 2023
cfb12d2
Merge branch 'savoirfairelinux:master' into master
smilingDima Apr 2, 2023
55061d6
RU - adding cases, plural and animate
Apr 2, 2023
283d3ca
solve ar:
hedhoud Apr 3, 2023
c5c4c59
Fix error with ordinal 21000 ( https://russian.stackexchange.com/a/43…
Apr 3, 2023
7883b29
FIx
monroy95 Apr 3, 2023
4863fb1
solving ar issues:
hedhoud Apr 4, 2023
667723a
solve the one problem
hedhoud Apr 5, 2023
ff9385f
solve the 10000 currency problem
hedhoud Apr 5, 2023
02a04c9
fixes flake8
monroy95 Apr 6, 2023
373f642
Fix 100000 and 90000 ordinal exceptions
Apr 6, 2023
4a148c2
Merge branch 'master' into master
mrodriguezg1991 Apr 6, 2023
d098627
Merge pull request #507 from nseetim/master
mrodriguezg1991 Apr 6, 2023
d81f9be
Merge branch 'master' into gt-currency
monroy95 Apr 6, 2023
b9c6c63
format code
Jeronymous Apr 7, 2023
488eeea
code formatting to pass flake8
Jeronymous Apr 7, 2023
cc4b2cc
fix isort
monroy95 Apr 7, 2023
66ff495
split too long line
Jeronymous Apr 11, 2023
37dc16e
improve code test coverage
Jeronymous Apr 11, 2023
3e7d607
Merge branch 'master' into bugfix/arabic
Jeronymous Apr 11, 2023
be6b2df
Merge pull request #512 from linto-ai/bugfix/arabic
mrodriguezg1991 Apr 11, 2023
21e68f2
Merge branch 'master' into gt-currency
monroy95 Apr 12, 2023
0cdbc87
Merge branch 'master' into by_language_added
SkiBY Apr 12, 2023
da48a31
Merge pull request #510 from monroy95/gt-currency
mrodriguezg1991 Apr 12, 2023
6a2c673
Merge branch 'savoirfairelinux:master' into master
smilingDima Apr 13, 2023
30a8810
Fixes for PEP8 compatibility
Apr 18, 2023
0d197d3
Merge branch 'master' of https://github.com/smilingDima/num2words
Apr 18, 2023
859ddf5
Merge branch 'master' into by_language_added
SkiBY May 3, 2023
b0e9f6f
fix after conflicts resolved
SkiBY May 3, 2023
4f5aebd
Merge branch 'savoirfairelinux:master' into master
SkiBY May 3, 2023
94d6cd5
Merge remote-tracking branch 'origin/master' into by_language_added
SkiBY May 3, 2023
87def57
[it] Handle string inputs in `to_ordinal`
Quuxplusone May 1, 2023
872510d
Merge pull request #518 from Quuxplusone/issue-508
mrodriguezg1991 May 24, 2023
9362dfc
spellcheck
SkiBY Jun 21, 2023
7ad21ae
Merge remote-tracking branch 'origin/by_language_added' into by_langu…
SkiBY Jun 21, 2023
30ca1f2
coverage increased
SkiBY Jun 21, 2023
3d525b5
Merge branch 'master' into by_language_added
SkiBY Jun 21, 2023
802e23e
coverage increased
SkiBY Jun 21, 2023
5635a41
Add gender and morphological cases support for Ukrainian
kant2002 Jul 28, 2023
4b0b88e
Add Saudi Riyal
SalemCode8 Aug 12, 2023
2426f14
Add SAR Adjective
SalemCode8 Aug 12, 2023
ad42ffd
Reformat source code
kant2002 Aug 12, 2023
585778f
flake8 converted and pass
SkiBY Aug 17, 2023
d1229aa
increase of coverage
SkiBY Aug 18, 2023
6c8e66b
Fix style in tests
kant2002 Aug 18, 2023
2da1f92
Add Slovak language support
michal-juranyi Sep 3, 2023
038bb66
Merge pull request #533 from michal-juranyi/sklang
mrodriguezg1991 Sep 6, 2023
f11d48a
Merge branch 'master' into kant/add-cases
mrodriguezg1991 Sep 6, 2023
3e39091
Merge pull request #530 from kant2002/kant/add-cases
mrodriguezg1991 Sep 6, 2023
23b3788
Merge branch 'master' into master
mrodriguezg1991 Sep 6, 2023
305242f
Merge pull request #503 from smilingDima/master
mrodriguezg1991 Sep 6, 2023
138b155
Merge branch 'master' into by_language_added
SkiBY Sep 6, 2023
613dcbe
Merge branch 'master' into master
mrodriguezg1991 Sep 6, 2023
1251406
[FIX]isort and flake returned
SkiBY Oct 16, 2023
54b9701
touch
SkiBY Oct 17, 2023
d7d80f2
Merge pull request #506 from SkiBY/by_language_added
mrodriguezg1991 Oct 17, 2023
57ed2f5
Merge branch 'master' into master
mrodriguezg1991 Oct 17, 2023
c3f5e17
Merge pull request #531 from SalemCode8/master
mrodriguezg1991 Oct 17, 2023
aa81e80
Added changes for release 0.5.13
Oct 18, 2023
ab1a836
Merge pull request #542 from savoirfairelinux/new_release
mrodriguezg1991 Oct 18, 2023
3c057cb
Merge branch 'master' into master
mrodriguezg1991 Oct 18, 2023
921258d
Merge pull request #466 from mryndzionek/master
mrodriguezg1991 Oct 18, 2023
97668c0
added Welsh (cy) and Chechen (ce)
Nov 5, 2023
087e402
mini doc for new languages
Nov 5, 2023
7d9de8a
added Welsh (cy) and Chechen (ce)
Nov 5, 2023
7275bcd
pass tox tests (flake8, isort)
jheinecke Nov 9, 2023
f79af95
added support for "to_ordinal_num" and "year"
jheinecke Nov 9, 2023
d5bca21
improved floats, increased test coverage
jheinecke Nov 9, 2023
28e3f0e
coverage
jheinecke Nov 9, 2023
b0547a1
improved coverage
Nov 9, 2023
605b260
Run tests against Python 3.12
michael-k Nov 13, 2023
974f7a8
Merge pull request #544 from michael-k/python3.12
mrodriguezg1991 Nov 15, 2023
5622adf
Merge branch 'master' into master
mrodriguezg1991 Nov 15, 2023
4303029
[ADD] .gitignore: to exclude build artifacts and IDE files
randall-vx Mar 6, 2024
d63741d
[ADD] num2words: es_CR language added
randall-vx Mar 6, 2024
038e92d
Merge pull request #565 from randall-vx/master-dev-es-cr-randallvx
mrodriguezg1991 Mar 19, 2024
b833c69
Merge branch 'master' into master
jheinecke Mar 28, 2024
69dd3e8
reformated imports since isort complained
jheinecke Mar 28, 2024
5e6fa94
Merge pull request #543 from jheinecke/master
mrodriguezg1991 Mar 28, 2024
ffebd91
Add catalan language support (#581)
GemmaMassonisRecog Jul 24, 2024
e5aee87
Adding Tetum Language (#576)
PeteCoward Sep 20, 2024
8c712e9
[FIX] ISO code for Belarusian language is be, not by. + coverage (#574)
SkiBY Oct 2, 2024
2ab2667
Add test to improve coverage (#595)
mrodriguezg1991 Nov 19, 2024
f503d8c
Added Bangla language support to num2word for Bangladesh. (#589)
matrosdzmehedi Nov 19, 2024
0df2a0e
Czech language ISO 639-1 code fix (#587)
TrangOul Nov 20, 2024
282f72d
Added support for Tunisian Dinar (#593)
rochdi80tn Dec 16, 2024
6abe2c6
Change danish language code to DA (#596)
FredHaa Dec 16, 2024
2b4d0bb
New release (#606)
mrodriguezg1991 Dec 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions coveralls
pip install -r requirements-test.txt
- name: Test with tox
run: |
tox
- name: Upload coverage data to coveralls.io
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.python-version }}
COVERALLS_PARALLEL: true

coveralls:
name: Indicate completion to coveralls.io
needs: build
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Finished
run: |
pip3 install --upgrade coveralls
coveralls --service=github --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ dist
.idea/
*.egg-info
/.tox
.eggs/
/venv/
.venv/
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

104 changes: 102 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,106 @@
Changelog
=========

Version 0.5.14 -- 2024/12/16
----------------------------

* Fixed a typo in PL (#466)
* Run tests against Python 3.12 (#544)
* ADD num2words: es_CR language (#565)
* New languages: Welsh (Celtic) and Chechen (Nakho-Dagestanian) (#543)
* Add catalan language support (#581)
* Adding Tetum Language (#576)
* FIX ISO code for Belarusian language is be, not by. (#574)
* Add test to improve coverage (#595)
* Added Bangla language support to num2word for Bangladesh. (#589)
* Czech language ISO 639-1 code fix (#587)
* Added support for Tunisian Dinar (#593)
* Change danish language code to DA (#596)


Version 0.5.13 -- 2023/10/18
---------------------------

* Fix a problem in Brazilian Portuguese code referred to thousands when the hundreds are exact. (#421)
* Fix issue with the hundreds of millions, billions, ... when the hundreds of those are exact. (#436)
* Fix negative number problem (#477)
* Fix lang_DK issues (#366)
* Norwegian uplift (#484)
* BYN to EU and RU (#439)
* Change python3.6 to python3.11 because deprecation in ubuntu 22.04 (#494)
* Add support for Azerbaijani language (#495)
* Add Icelandic (#380)
* Hebrew long-form spelling, gender, ordinals, fractions, maxval=1e66, construct forms (#490)
* Fix 15, 16, 17, 18, 19 issue (#505)
* Added support for the Nigerian Naira (#507)
* Fix several issues with num2words in Arabic (#512)
* Guatemalan currency support (#510)
* Fix #508: Handle string inputs in Italian to_ordinal (#518)
* Add Slovak language support (#533)
* Add gender and morphological cases support for Ukrainian (#530)
* Adding genders for Russian language (#503)
* Lang By Added (#506)
* Add Saudi Riyal to english (#531)

Version 0.5.12 -- 2022/08/19
----------------------------

* Support Japanese Reiwa (令和/れいわ) era. (#412)
* Add basic farsi support (#354)
* Added Tajik language support (#406)
* Fix Amharic language support (#465)
* Fix Hebrew pluralize and implement to_currency (#330)
* Add support to translate some currencies in italian language (#434)
* Fix Polish twenties (#345)
* Add uzs for ru and en (#422)
* Added support for Esperanto numbers. (#387)
* [ADD] to ordinal number for Turkish (#468)
* Fix zeroth in Dutch to nulde fixing (#326)

Version 0.5.11 -- 2022/08/03
----------------------------

* Add KZT and UAH currencies to lang RU (#264)
* Add es_NI currency (#276)
* Update .gitignore to add .eggs/ directory (#280)
* Fix Hebrew support (#289)
* Update test_tr.py to increase coverage (#298)
* Add ordinal 12,345 to ES test suite to increase coverage (#287)
* Add simple tests for lang_DK.py (#286)
* Add testcase for lang_EN.py (#288)
* Add more tests to base.py (#283)
* Fixed misspelling of 21 (cardinal and ordinal number) in IT language (#270)
* Romanian issues 259 (#260)
* Adding Language Support for Telugu / Bug Fix in Kannada (#263)
* Add support of Kazakh language (KZ) (#306)
* Update README.rst (#307)
* Added support for Hungarian language (#310)
* [UPD] Readme file (#363)
* [ADD] num2words: add traslation to spanish of several currencies (#356)
* added swedish language including test cases (#352)
* Remove dupplicated line in lang_PT_BR (#355)
* Fix ordinal_num output for Dutch (NL) (#369)
* Polishordinals (#367)
* [tr] return Turkish 0 ordinal and cardinal (#347)
* Improve Ukrainian support and minor fixes in CZ, KZ, LT, LV, PL, RU, SR languages (#400)
* feat: ci: replace travis by github workflows (#448)
* [ES] Added missing accents ("dieciséis", "dólar", "dólares", "veintiún"), improved currency gender handling, fixed pound cent names (#443)

Version 0.5.10 -- 2019/05/12
----------------------------

* Add Kannada language localization (#243)
* Revert some copyrights changed by mistake (#254)
* Add indian rupee to the supported currencies (#248)
* Improve currency functions for German and French (#247)
* Improve Slovene localization (#246)
* Improve Spanish localization (#240)
* Fix typo 'seperator' on source code (#238)
* Convert string to decimal values (#223)
* Improve German localization and test coverage (#237)
* Improve Polish localization (#233)
* Fix ordinal number for French ending on 1 (#236)

Version 0.5.9 -- 2019/01/10
---------------------------

Expand Down Expand Up @@ -33,9 +133,9 @@ Version 0.5.7 -- 2018/06/27
* Add Finnish localization. (#170)
* Add Japanese localization. (#171)
* Add belgian-french localization. (#151)
* Add Czech localization. (#154)
* Add Czech localization. (#154)
* Add Thai localization. (#139)
* Improve English localization. (#144)
* Improve English localization. (#144)
* Improve Spanish localization. (#167)
* Improve Italian localization. (#143)
* Improve documentation. (#155, #145, #174)
Expand Down
43 changes: 31 additions & 12 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
num2words - Convert numbers to words in multiple languages
==========================================================
num2words library - Convert numbers to words in multiple languages
==================================================================

.. image:: https://img.shields.io/pypi/v/num2words.svg
:target: https://pypi.python.org/pypi/num2words
Expand Down Expand Up @@ -51,7 +51,7 @@ Command line::
$ num2words 24,120.10 -l es
veinticuatro mil ciento veinte punto uno
$num2words 2.14 -l es --to currency
dos euros con catorce centimos
dos euros con catorce céntimos

In code there's only one function to use::

Expand All @@ -63,7 +63,7 @@ In code there's only one function to use::
>>> num2words(42, lang='fr')
quarante-deux

Besides the numerical argument, there are two main optional arguments.
Besides the numerical argument, there are two main optional arguments, ``to:`` and ``lang:``

**to:** The converter to use. Supported values are:

Expand All @@ -76,42 +76,61 @@ Besides the numerical argument, there are two main optional arguments.
**lang:** The language in which to convert the number. Supported values are:

* ``en`` (English, default)
* ``am`` (Amharic)
* ``ar`` (Arabic)
* ``cz`` (Czech)
* ``az`` (Azerbaijani)
* ``be`` (Belarusian)
* ``bn`` (Bangladeshi)
* ``ca`` (Catalan)
* ``ce`` (Chechen)
* ``cs`` (Czech)
* ``cy`` (Welsh)
* ``da`` (Danish)
* ``de`` (German)
* ``dk`` (Danish)
* ``en_GB`` (English - Great Britain)
* ``en_IN`` (English - India)
* ``en_NG`` (English - Nigeria)
* ``es`` (Spanish)
* ``es_CO`` (Spanish - Colombia)
* ``es_CR`` (Spanish - Costa Rica)
* ``es_GT`` (Spanish - Guatemala)
* ``es_VE`` (Spanish - Venezuela)
* ``eu`` (EURO)
* ``fa`` (Farsi)
* ``fi`` (Finnish)
* ``fr`` (French)
* ``fr_CH`` (French - Switzerland)
* ``fr_BE`` (French - Belgium)
* ``fr_CH`` (French - Switzerland)
* ``fr_DZ`` (French - Algeria)
* ``he`` (Hebrew)
* ``hu`` (Hungarian)
* ``id`` (Indonesian)
* ``is`` (Icelandic)
* ``it`` (Italian)
* ``ja`` (Japanese)
* ``kn`` (Kannada)
* ``ko`` (Korean)
* ``kz`` (Kazakh)
* ``lt`` (Lithuanian)
* ``lv`` (Latvian)
* ``nl`` (Dutch)
* ``no`` (Norwegian)
* ``pl`` (Polish)
* ``pt`` (Portuguese)
* ``pt_BR`` (Portuguese - Brazilian)
* ``sl`` (Slovene)
* ``sr`` (Serbian)
* ``ro`` (Romanian)
* ``ru`` (Russian)
* ``sl`` (Slovene)
* ``sk`` (Slovak)
* ``sr`` (Serbian)
* ``sv`` (Swedish)
* ``te`` (Telugu)
* ``tet`` (Tetum)
* ``tg`` (Tajik)
* ``tr`` (Turkish)
* ``th`` (Thai)
* ``vi`` (Vietnamese)
* ``nl`` (Dutch)
* ``uk`` (Ukrainian)
* ``vi`` (Vietnamese)

You can supply values like ``fr_FR``; if the country doesn't exist but the
language does, the code will fall back to the base language (i.e. ``fr``). If
Expand Down Expand Up @@ -144,4 +163,4 @@ added Lithuanian support, but didn't take over maintenance of the project.
I am thus basing myself on Marius Grigaitis' improvements and re-publishing
``pynum2word`` as ``num2words``.

Virgil Dupras, Savoir-faire Linux
Virgil Dupras, Savoir-faire Linux
12 changes: 6 additions & 6 deletions bin/num2words
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Options:
-t --to=<to> Output converter [default: cardinal].
-h --help Show this message.
-v --version Show version.

Examples:
$ num2words 10001
ten thousand and one
Expand All @@ -46,7 +46,7 @@ Examples:
veinticuatro mil ciento veinte punto uno

$num2words 2.14 -l es --to currency
dos euros con catorce centimos
dos euros con catorce céntimos
"""

from __future__ import print_function, unicode_literals
Expand All @@ -55,7 +55,7 @@ import sys
from docopt import docopt
import num2words

__version__ = "0.5.9"
__version__ = "0.5.14"
__license__ = "LGPL"


Expand All @@ -76,13 +76,13 @@ def main():
sys.stdout.write(os.linesep)
sys.exit(0)
if args["--list-converters"]:
for lang in get_converters():
sys.stdout.write(lang)
for cvt in get_converters():
sys.stdout.write(cvt)
sys.stdout.write(os.linesep)
sys.exit(0)
try:
words = num2words.num2words(args['<number>'], lang=args['--lang'], to=args['--to'])
sys.stdout.write(words+os.linesep)
sys.stdout.write(words + os.linesep)
sys.exit(0)
except Exception as err:
sys.stderr.write(str(args['<number>']))
Expand Down
Loading
Loading