Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API incorrectly handle tag_handling=xml with ignore_tags #25

Open
Ahmed-Aboud opened this issue Aug 7, 2024 · 1 comment
Open

API incorrectly handle tag_handling=xml with ignore_tags #25

Ahmed-Aboud opened this issue Aug 7, 2024 · 1 comment

Comments

@Ahmed-Aboud
Copy link

Ahmed-Aboud commented Aug 7, 2024

Update: same issue happens with tag_handling=html too

When calling the endpoint
https://api.deepl.com/v2/translate?tag_handling=xml&ignore_tags=x

German
Wo befindet sich das <x>Event</x>

Translated IT response
Dove si trova il <x>Event</x>

but when it is followed by any character the ignored_tag is moved before the sentence for example
German
Wo befindet sich das <x>Event</x> ?

Translated IT response
<x>Event</x> Dove si trova la sede?

@Ahmed-Aboud
Copy link
Author

wrapping the ignored tag by another tag makes it work
Wo befindet sich das <wrap><x>Event</x></wrap>

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

No branches or pull requests

1 participant