XML translation - character moves into inline element
I am translating large amounts of XML text. Every time when I translate text, a character that preceeds an inline element (superScript) is being moved into the inline element.
Input:
Translated output:
result = deepl_client.translate_text( text, tag_handling="xml", source_lang="SV", target_lang="EN-GB", model_type="prefer_quality_optimized", split_sentences="nonewlines" )
I have noticed that adding the superScript element to the 'ignore_tags' attribute will help. The unfortunate thing is that the superScript element can also contain other text that must be translated.