Skip to content

Translate util_yes_no, timer and telephone to French#71

Merged
Stypox merged 6 commits intoStypox:masterfrom
MXC48-zz:patch-2
Dec 20, 2022
Merged

Translate util_yes_no, timer and telephone to French#71
Stypox merged 6 commits intoStypox:masterfrom
MXC48-zz:patch-2

Conversation

@MXC48-zz
Copy link
Contributor

Check if it works before adding

@Stypox
Copy link
Owner

Stypox commented Apr 28, 2022

This file should not be added into application/src/principal/phrases/fr/ but rather in app/src/main/sentences/fr/ where other French files are. Paths should not be translated ;-)
Also, I think it is ok for now to create a single PR that adds multiple files, otherwise there would be too many PRs.

Copy link
Owner

@Stypox Stypox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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 both a, b or nothing, you should write a|b?. And if you want something that matches either le or nothing you should write only le?, there is no need for le?|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.;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
(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.;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
je veux (appeler) (contacter) .who.;
je veux appeler|contacter .who.;

[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.);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[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.);

[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;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[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?>;

@Stypox Stypox changed the title Create util_yes_no.dslf Translate util_yes_no, timer and telephone to French Apr 28, 2022
@Stypox Stypox mentioned this pull request Apr 28, 2022
@MXC48-zz
Copy link
Contributor Author

MXC48-zz commented May 1, 2022

@ MXC48 J'ai fermé vos deux autres demandes de tirage, déplacé toutes les modifications ici et déplacé les trois fichiers dans le répertoire correct.

J'ai examiné les fichiers, avec les modifications suggérées, tout se passe bien. Veuillez noter que je ne connais pas le français, donc si certaines de mes suggestions n'ont pas de sens, assurez-vous de me le dire ;-)Quelques notes:

  • Lors de l'écriture ou des groupes, le ? should only be put at the end of the group. So if you want something that matches both a, b or nothing, you should write a|b?. And if you want something that matches either le or nothing you should write only le?, there is no need for le?|le.
  • N'oubliez pas de fermer les groupes de variantes, c'est-à-dire. ces mots à l'intérieur <>
  • - 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.
  • Si vous voulez que les signes diacritiques soient appariés avec précision, vous devez écrire par exemple. "à" instead of just à, since " " means sensible aux signes diacritiques. Mais la plupart du temps, il est préférable de ne pas spécifier du tout les signes diacritiques. car en général, nous voulons que Dicio corresponde aux mots même si leurs signes diacritiques sont différents ,puisque le TTS aurait pu gâcher les signes diacritiques( et aussi parce que dans la plupart des cas, les signes diacritiques ne sont pas nécessaires pour identifier un mot,

Your modifications are consistent in French, there is no problem on it.
I tried to participate as I could in this project, because not knowing how to program I had to deduce the syntax of the other files in French and other languages. I will keep your advice for the next files that will come :)

Copy link
Contributor

@BrightDV BrightDV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello,
I have made a review for the French part using Stypox's suggestions, I hope that there isn't any mistakes.
Everything else looks good to me!

@Stypox
Copy link
Owner

Stypox commented May 1, 2022

I tried to participate as I could in this project, because not knowing how to program I had to deduce the syntax of the other files in French and other languages. I will keep your advice for the next files that will come :)

You can find out about the syntax here: https://github.com/Stypox/dicio-sentences-compiler#dicio-sentences-language

Copy link
Owner

@Stypox Stypox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@Stypox Stypox merged commit c0fe62b into Stypox:master Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants