Commit Graph

162 Commits

Author SHA1 Message Date
William Moreno
d65f5b10db Merge branch 'master' into master 2017-10-23 18:15:55 -06:00
William Moreno Reyes
94c73d277e Fix as many pep8 issues as posible
Signed-off-by: William Moreno Reyes <williamjmorenor@gmail.com>
2017-10-23 18:12:36 -06:00
William Moreno Reyes
e2ce7c2562 Many PEP8 fixes
Signed-off-by: William Moreno Reyes <williamjmorenor@gmail.com>
2017-10-23 15:58:00 -06:00
William Moreno Reyes
55cb0ea3e9 Fix a py3 issue with print like a funtion
Signed-off-by: William Moreno Reyes <williamjmorenor@gmail.com>
2017-10-23 14:33:25 -06:00
William Moreno Reyes
d73acaa985 Fix missing print funtion for py3
Signed-off-by: William Moreno Reyes <williamjmorenor@gmail.com>
2017-10-23 14:25:37 -06:00
Ernesto Rodriguez Ortiz
096cb45ad9 Merge pull request #97 from bblaz/master
Added Slovene (sl) languange
2017-10-23 16:19:30 -04:00
Ernesto Rodriguez Ortiz
931d7063db Merge pull request #95 from savoirfairelinux/allow_call_to_other_converters
Allow call to other convertes as to_currency, to_year
2017-10-23 16:18:14 -04:00
William Moreno Reyes
d9aee6934f Fix some pep8 issues
W291:
 pycodestyle-3.6 num2words | grep W291
 num2words/lang_NL.py:64:40: W291 trailing whitespace
 num2words/lang_NL.py:97:38: W291 trailing whitespace

Signed-off-by: William Moreno Reyes <williamjmorenor@gmail.com>
2017-10-23 14:16:46 -06:00
William Moreno Reyes
34de8f7f87 Fix some pep8 issues
W293:
 pycodestyle-3.6 num2words | grep W293
 num2words/lang_EN_EUR.py:19:1: W293 blank line contains whitespace
 num2words/lang_EN_EUR.py:43:1: W293 blank line contains whitespace
 num2words/lang_EN_IN.py:19:1: W293 blank line contains whitespace
 num2words/lang_EU.py:28:1: W293 blank line contains whitespace
 num2words/lang_RU.py:236:1: W293 blank line contains whitespace
 num2words/lang_UK.py:218:1: W293 blank line contains whitespace
 num2words/lang_UK.py:238:1: W293 blank line contains whitespace
 num2words/lang_UK.py:248:1: W293 blank line contains whitespace
 num2words/orderedmapping.py:22:1: W293 blank line contains whitespace

Signed-off-by: William Moreno Reyes <williamjmorenor@gmail.com>
2017-10-23 14:10:29 -06:00
Blaž Bregar
2ee0e49a8b Added Slovene 2017-10-22 18:06:49 +02:00
Blaž Bregar
1176539b62 Merge branch 'master' of https://github.com/savoirfairelinux/num2words
Conflicts:
	num2words/__init__.py
2017-10-22 15:59:04 +02:00
Blaž Bregar
5d7697a85e resolved merge 2017-10-22 15:50:55 +02:00
Marc Ducobu
2f3acee36f lang_DK do not depends on num2words 2017-10-19 11:57:37 +02:00
Ernesto Rodriguez Ortiz
49a39fc253 Allow call to other convertes as to_currency, to_year
There are at least to issues related with questions about how to use other convertes.
This changes should allow the use of this converters
2017-09-29 15:29:25 -04:00
Armin Oliya
d96175b58e Merge branch 'master' into master 2017-09-20 14:35:27 +02:00
Sergio Zholudov
71419ffa0e update lang_uk.py 2017-09-11 13:43:39 +03:00
Armin
7fe315eb64 fixed bug with 12 and 11 2017-09-08 17:54:25 +02:00
Armin
294d350fb9 added NL test cases 2017-09-08 17:42:30 +02:00
Sergio Zholudov
8b12fa7dc3 Updated __init__.py, added Ukrainian 2017-09-08 17:44:27 +03:00
Sergio Zholudov
77df034a70 Ukrainian language 2017-09-08 17:37:38 +03:00
Armin
d7378f310e Merge branch 'master' of https://github.com/olix20/num2words 2017-09-08 13:40:51 +02:00
Armin
4047d6526a added support for Dutch (NL) language 2017-09-08 13:17:14 +02:00
Jesús Leganés-Combarro 'piranna
97e1464550 Minor fix to make code Python 3 compatible 2017-09-06 09:13:14 +02:00
Jesús Leganés-Combarro 'piranna
614255bbde Add fr_DZ locale 2017-09-05 22:43:21 +02:00
Jesús Leganés-Combarro 'piranna
8ecd10f055 [fix] Allow to pass floats to Num2Word_Base.to_splitnum() 2017-09-05 22:42:45 +02:00
Jesús Leganés-Combarro 'piranna
873a3cc840 Use lang_FR as base class for lang_FR_CH & clean-up linting for french 2017-09-05 17:35:30 +02:00
Tufan Kaynak
935d95a87f removed ineffective splitnum function 2017-09-05 14:53:42 +03:00
Tufan Kaynak
c3cec93c4d correction of 0.0n reading 2017-09-05 14:50:32 +03:00
Tufan Kaynak
5ff8e343a0 unused elements stripped 2017-09-05 08:10:42 +03:00
Tufan Kaynak
bdc9b8e8ea remove the last comma in dictionary 2017-09-04 23:11:39 +03:00
Tufan Kaynak
a235058ba6 refactoring data elements 2017-09-02 14:22:50 +03:00
Tufan Kaynak
969c5daf9b var names changed to English 2017-09-01 00:46:23 +03:00
Tufan Kaynak
a659e63eb5 TR translation
TR translation of num2word reading all cardinals and ordinals up to 10**21-1
2017-08-30 19:36:29 +03:00
Dhaifallah Alwadani
21db1b32c3 Set currencies and fix strings 2017-06-28 16:33:17 +03:00
Dhaifallah Alwadani
6c3e75d4c8 fix missing words 2017-06-22 23:48:44 +03:00
Dhaifallah Alwadani
eea901734a fix encoding 2017-06-22 23:22:33 +03:00
Dhaifallah Alwadani
f423a9398f add support for Arabic 2017-06-21 22:20:22 +03:00
José Moreno
bccd3c0508 [MERGE]Conflicts resolved. 2017-04-04 10:48:09 -05:00
dazre
4225663bd2 Merge branch 'master' into master 2017-04-04 17:34:26 +03:00
Ernesto Rodriguez Ortiz
9028a5e90b Made to_ordinal() implementation python3 compatible for lang es
Ref: issue # 10537
2017-04-03 17:43:07 -04:00
Ernesto Rodriguez Ortiz
76fd9d905f Fix the tests after the changes proposed by @10537
Ref: issuer # 10537
2017-04-03 17:29:03 -04:00
Diep Huu Hoang
c200d97bd7 [IMP] Improve convert number method and add unittest for Vietnam lang 2017-04-01 12:39:26 +07:00
Ernesto Rodriguez Ortiz
dac18f8928 Merge branch 'master' of git://github.com/10537/num2words into 10537-master 2017-03-31 17:49:24 -04:00
José Moreno
fb2911deea [FIX]Fixed typo errors and PEP8 errors.
[DEL]Deleted test_case currency.
2017-03-31 10:53:55 -05:00
José Moreno
91f3dc6854 [IMP]Adds new languages in init file. 2017-03-30 14:59:48 -05:00
dazre
ba8db25898 add leading Ones
It's more more correctly in Russian:
num2words(1135, lang='ru') -> одна тысяча сто тридцать пять
num2words(1000139, lang='ru') -> один миллион сто тридцать девять
2017-03-30 15:37:42 +03:00
dazre
321dfd3bca remove middle THOUSANDS in case of zero digits
Error:
num2words(1000139, lang='ru') -> миллион *тысяч* сто тридцать девять
Fix:
num2words(1000139, lang='ru') -> миллион сто тридцать девять
2017-03-30 15:33:37 +03:00
José Moreno
02b73fd444 [IMP]Deleted unnecessary super return. 2017-03-27 10:30:13 -05:00
José Moreno
aff876c4a6 [IMP]Reworked the files ES_CO and ES_VE. 2017-03-27 10:23:34 -05:00
Diep Huu Hoang
c2148d15ef [ADD] support VietNam 2017-03-19 22:41:41 +07:00