Niels Mündler
a01f11f30a
Fix large numbers in short and long scale, include tests
2018-10-09 00:08:14 +02:00
Niels Mündler
0f8c6d118d
Simplify script, remove redundancies
2018-10-08 23:43:51 +02:00
Åke Forslund
1e27cff708
Fix exception in exception handler
...
The exception handler in pronounce_number_en would in turn raise an
exception. This fixes that case.
2018-08-30 00:06:19 +02:00
Michael Nguyen
7b69fb8d46
better pronounciation for 4 digit numbers
2018-08-15 00:31:34 -05:00
Michael Nguyen
7b54149bcd
Merge pull request #1653 from JarbasAl/feature/pronounce_scientific
...
Feature/pronounce scientific
2018-07-31 13:04:14 -05:00
penrods
9bce9557cc
Improve pronunciation for nice_time_en()
...
Switched from "AM" to "a.m.", and "PM" to "p.m". These are pronounced better
in Mimic, and are also the more normally accepted ways of writing the
abbreviations for ante meridiem and post meridiem (at least according to the
AP and Chicago Style guides).
2018-07-18 13:46:27 +02:00
jarbasal
57a86a7fe6
pep8
2018-06-22 01:03:32 +01:00
jarbasal
1710803bb0
pronounce scientific notation
2018-06-22 01:03:32 +01:00
jarbasal
2f05b0b820
fix extra zero
2018-06-22 01:01:59 +01:00
jarbasal
8637236490
codacy
2018-06-21 19:15:11 +01:00
jarbasal
f95c7cf805
py3.4 compatibility
2018-06-21 17:19:54 +01:00
jarbasal
ae8e241ffc
long scale
2018-06-19 02:37:13 +01:00
jarbasal
5c424fecc1
long scale
2018-06-19 02:18:27 +01:00
jarbasal
f83b4f97bb
pronounce big numbers
2018-06-19 02:18:27 +01:00
jarbasal
b329de593b
up
2018-06-19 02:18:25 +01:00
jarbasal
07a5e463d9
long scale and short scale
2018-06-19 02:18:25 +01:00
jarbasal
7e1fb80cb4
improve extract_number_en
...
- Support higher numbers, almost unreasonably high!
- Support long scale and short scale
2018-06-18 15:45:14 +02:00
Cakeh
7f733bdf75
Update nice_number_fr, en, pt, it docstring
2018-02-15 12:16:58 +01:00
Cakeh
c45d228d91
Issue-1411 - Leave all nice_number formatting to language
2018-02-12 12:02:04 +01:00
penrods
420b21e40e
Fix bug in nice_time() for times before noon
...
Bonehead copy/paste and testing gap left a bug that reported things
like "negative 11 o'clock"
2018-02-08 01:29:05 -06:00
Åke Forslund
044c4c3c0f
Fix broken test and codacy warning
...
- Restore nice_number_it
- Fix codacy warning about overriding str
- Fix octal representation of times in convert_time test
2018-01-31 14:09:06 +01:00
penrods
6dbf1e72d7
Add formater for numbers and time
...
Add support for:
* mycroft.util.format.nice_time()
* mycroft.util.format.prounce_number()
* implemented unittests for above
Also renamed the helper method convert_number() to
_convert_to_mixed_fraction()
2018-01-31 05:30:01 -06:00
Åke Forslund
0114ce473e
Split format.py and parse.py per language
...
Move the language specific functions and constants into separate files.
This will avoid many unnecessary conflicts due to involuntary encoding
changes.
2018-01-08 17:08:31 -06:00