Commit Graph

14 Commits

Author SHA1 Message Date
potapov.s
86b9a00a67 - add uzs for ru and en 2021-11-02 12:59:24 +03:00
btharper
b82bf457d4 Fill out coverage for lang_EN.py 2019-10-26 23:39:24 -04:00
Ernesto Rodriguez Ortiz
2eee037648 Fix typo 'seperator' on source code 2019-01-19 17:00:26 -05:00
Ernesto Rodriguez Ortiz
53b4518afb Issue 229: Add explicit encoding, license and unix line separators.
Some maintainers for different linux distribution are having some
problems with the encoding on different python versions. This change
intents to make all python files define explicitly the encoding, license
and unix line separators. Remove one example of the README.rst file
where a possible non UTF-8 character is used.
2018-12-23 12:10:24 -05:00
Temoctzin
424cf9fda8 feat(Num2Word_EU): add MX to CURRENCY_FORMS (#187)
* lang_EU: add MX to CURRENCY_FORMS and CURRENCY_ADJETIVES
2018-10-13 19:25:58 -04:00
CrazyMerlyn
f09ad9afdf Add tests for lang_EN ordinal coversion 2018-09-25 11:03:53 -04:00
Mārtiņš Šulcs
2a99ff1061 Cleanup (#194)
* Remove some dead code.

* Overloadable _cents_terse

* One setup should be enough

* Move gen_high_numwords up

* Cards are optional.

* Line length

* DRY set_hight_numwords for EU base.

* Remove unused error message. It has to be an exception anyway.
2018-09-17 09:30:36 -04:00
Antonio Gurgel
1a2b783d31 lang_EN.to_year(): render correct pronunciations (#144)
* Add tests

Starting work on #141, which points out that 2017 should come out
"twenty seventeen"; it currently comes out "two thousand seventeen".

* Handle English years properly.

Resolves #141.

* Whoops -- didn't PEP-8 my tests

* Handle years MORE properly...with suffixes!

- Rendering years between 10-99 was bugged (e.g. "zero fifty").
Fixed that by thinking outside the high/low text box I had made.
- Added suffixes: default none if positive, 'BC' if negative.
User-overrideable.
2017-12-18 10:56:38 -05:00
Mārtiņš Šulcs
1e954c909b Attempt at refactoring to_currency into base (#135)
* Attempt at refactoring lv to base

* Remove dead files.

* Use static props.

* Convert doctests, move utils out.

* Refactor lt

* Update and move ru doctests.

* Refactor ru.

* Refactor pl.

* Move uk doctests.

* Refactor uk.

* DRY

* Cleanup.
2017-11-09 10:13:01 -05:00
Ernesto Rodriguez Ortiz
1c699d1bb4 Fix bugs in the float precision and the currency, increase test coverage (#134)
* Fix some bugs in the float precision and the currency, increase test coverage.

Ref: issue #112 #113

* Update README.rst
2017-11-06 20:19:26 -05:00
Mārtiņš Šulcs
5a131fedc6 Long form for currency name is optional. Currency name rendering in e… (#133)
* Long form for currency name is optional. Currency name rendering in english.

* Missing encoding header.
2017-11-05 17:59:25 -05:00
Ernesto Rodriguez Ortiz
3da0c54f3b Activate flake8, isort and coveralls in the configuration of tox (#105)
* Activate flake8, isort and coveralls in the configuration of tox

* Update code to respect PEP8

* Fix bug in the lang_IT for python 3

* Update the README to include the new converters.
2017-10-30 14:06:46 -04:00
isnani
073925b1d4 address issue 24: floating point spelling 2016-01-13 16:06:16 +01:00
Virgil Dupras
b1b5803c20 Fixed bogus word merge in english
Also, added a first unit test. Gotta start somewhere.

Fixes #8.
2014-03-14 10:25:25 -04:00