-
Notifications
You must be signed in to change notification settings - Fork 1.3k
add some more time idioms #2386
Conversation
Hello, @maxbachmann, thank you for helping with the Mycroft project! We welcome everyone To protect yourself, the project, and users of Mycroft technologies we require Please visit https://mycroft.ai/cla to initiate this one-time signing. Thank |
Thanks @maxbachmann It does look good. Could you add a couple of testcases for the english half past and quarter past (in Maybe @krisgesling or @chrisveilleux who are native english speakers can do the final review on the changes so they're all ok. (I'm unsure about using 12 for midnight for example but I'm used to 24 hour clocks) |
@forslund sure I can add testcases for the english part later. on the 12 hour times I was unsure aswell. however using 0 gets kind of weird when using am/pm |
For comparision: https://github.com/project-alice-powered-by-snips/ProjectAliceModules/blob/master/PublishedModules/Psychokiller1888/DateDayTimeYear/DateDayTimeYear.py is how I currently implemented this for ProjectAlice (without am/pm support right now) |
Haven't reviewed yet, but 12 is a normal way of talking about midnight including:
|
Thanks for verifying @krisgesling, always good to have the input of someone who speaks the language everyday. I don't quite trust my own skills with the language. @maxbachman I'll wait for the extra test cases, after that we can merge this. Many thanks for contributing! |
I added unittests however I am not sure on two things: |
since I already cleaned up the unicode strings and file encoding for the files I updated, I did this globally (should this be in the same PR?) |
It'd be better if it was in a separate PR but this is fine. doc/conf.py is not used as a main file so it doesn't really matter but it seems like it was a change we missed when upgrading to python 3. Or possibly the read the docs environment still uses python2 I'll need to verify that. Can you join your English tests with the rest of the english tests in |
should the same PR be created for lingua_franca? |
Thank you. Hmm, the number of places thing? from thinking about it briefly the english looks wrong...But reading the docstring in the format_en.py file says:
which makes the english version seem to follow the specification. On the other hand the entry function in We could raise a separate issue for that. I think this is a decent state now. I'll do a final look over tomorrow morning and merge it. |
I added an issue on the topic: https://github.com/MycroftAI/mycroft-core/issues/2397 |
Changes looks good! Thanks for rebasing and providing a nice clean update! Merging |
And yes, I think you should create the same PR for lingua franca, the intention is to switch over to using that instead of the internal utils in the future. |
Description
How to test
The changes to the german version are covered by unit tests.
For the english version there are no unit tests yet.
Contributor license agreement signed?
CLA [x] signed now