Translate util_yes_no, timer and telephone to French#71
Translate util_yes_no, timer and telephone to French#71Stypox merged 6 commits intoStypox:masterfrom
Conversation
|
This file should not be added into |
There was a problem hiding this comment.
@MXC48 I closed your two other pull requests, moved all changes here and moved the three files in the correct directory.
I reviewed the files, with the suggested changes everything builds fine. Please note that I do not know French, so if some of my suggestions do not make sense, be sure to tell me ;-)
A few notes:
- When writing or-groups, the
?should only be put at the end of the group. So if you want something that matches botha,bor nothing, you should writea|b?. And if you want something that matches eitherleor nothing you should write onlyle?, there is no need forle?|le. - Remember to close variations groups, i.e. those pieces of words inside
<> -are not allowed as pieces of words, since they are just considered as yet another word separator by Dicio android. Just replace them with a space, which is the way to separate words in dslf files.- If you want diacritics to be matched precisely, you should write e.g.
"à"instead of justà, since" "means diacritics sensitive. But most of the times it is better to not specify diacritics at all, since in general we want Dicio to match words even if their diacritics are different (since the TTS might have messed up diacritics, and also because in most cases diacritics are not needed to identify a word)
| @@ -0,0 +1,4 @@ | |||
| telephone: high | |||
| (r?appel<er?)|(sonne<r)|(téléphone<r|z?>(à?))|(compose<r|z?>)|(contacte<r|z?>)|(le? numéro de) .who.; | |||
There was a problem hiding this comment.
| (r?appel<er?)|(sonne<r)|(téléphone<r|z?>(à?))|(compose<r|z?>)|(contacte<r|z?>)|(le? numéro de) .who.; | |
| (r? appel<er?>)|(sonne<r?>)|(téléphone<r|z?> (à?))|(compose<r|z?>)|(contacte<r|z?>)|(le? numéro de) .who.; |
| @@ -0,0 +1,4 @@ | |||
| telephone: high | |||
| (r?appel<er?)|(sonne<r)|(téléphone<r|z?>(à?))|(compose<r|z?>)|(contacte<r|z?>)|(le? numéro de) .who.; | |||
| je veux (appeler) (contacter) .who.; | |||
There was a problem hiding this comment.
| je veux (appeler) (contacter) .who.; | |
| je veux appeler|contacter .who.; |
app/src/main/sentences/fr/timer.dslf
Outdated
| [set] (mettre un?)|configure|démarre|créer un? (.duration.? timer)|(timer pour|de .duration. (appelé|nommé|surnommé|(avec le nom) .name.)?); | ||
| [set] ajoute un timer (de|qui dure) .duration.; | ||
| [cancel] annule|arrête le?|stop (.name.? timer<s?>)|(timer<s?> appelé|nommé|surnommé|(avec le nom) .name.); | ||
| [query] combien de temps (est laissé? sur le?|reste-t-il sur le?) (.name.? timer<s?>)|(timer<s?> appelé|nommé|surnommé|(avec le nom) .name.); |
There was a problem hiding this comment.
| [query] combien de temps (est laissé? sur le?|reste-t-il sur le?) (.name.? timer<s?>)|(timer<s?> appelé|nommé|surnommé|(avec le nom) .name.); | |
| [query] combien de temps est laissé? (reste t il)? sur le? (.name.? timer<s?>)|(timer<s?> appelé|nommé|surnommé|(avec le nom) .name.); |
app/src/main/sentences/fr/timer.dslf
Outdated
| [set] ajoute un timer (de|qui dure) .duration.; | ||
| [cancel] annule|arrête le?|stop (.name.? timer<s?>)|(timer<s?> appelé|nommé|surnommé|(avec le nom) .name.); | ||
| [query] combien de temps (est laissé? sur le?|reste-t-il sur le?) (.name.? timer<s?>)|(timer<s?> appelé|nommé|surnommé|(avec le nom) .name.); | ||
| [query] quand est-ce que le?|le (.name.? timer<s?>)|(timer<s?> appelé|nommé|surnommé|(avec le nom) .name.) (va)? expire<r; |
There was a problem hiding this comment.
| [query] quand est-ce que le?|le (.name.? timer<s?>)|(timer<s?> appelé|nommé|surnommé|(avec le nom) .name.) (va)? expire<r; | |
| [query] quand est ce que le? (.name.? timer<s?>)|(timer<s?> appelé|nommé|surnommé|(avec le nom) .name.) va? expire<r?>; |
Your modifications are consistent in French, there is no problem on it. |
You can find out about the syntax here: https://github.com/Stypox/dicio-sentences-compiler#dicio-sentences-language |
There was a problem hiding this comment.
Thanks @MXC48 and @BrightDV! Note that the timer won't work yet because it depends on the French tranlsation of the number parsing&formatting library: Stypox/dicio-numbers#2
Check if it works before adding