Title: XML translation - character moves into inline element · Issue #142 · DeepL/deepl-python · GitHub
Open Graph Title: XML translation - character moves into inline element · Issue #142 · DeepL/deepl-python
X Title: XML translation - character moves into inline element · Issue #142 · DeepL/deepl-python
Description: 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: Problemet är att bokstaven före superScript elementet ...
Open Graph Description: 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: Problemet är a...
X Description: 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: Problemet är a...
Opengraph URL: https://github.com/DeepL/deepl-python/issues/142
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"XML translation - character moves into inline element","articleBody":"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.\n\nInput:\n\n\u003cpara\u003eProblemet är att bokstaven före superScript elementet flyttas in i inline elementet: tank rymmer 48 m\u003csuperScript\u003e3\u003c/superScript\u003e och tanken rymmer 43 m\u003csuperScript\u003e3\u003c/superScript\u003e. Lite mer text här.\u003c/para\u003e\n\nTranslated output:\n\n\u003cpara\u003eThe problem is that the letter preceding the superScript element is being moved into the inline element: tank holds 48\u003csuperScript\u003em3\u003c/superScript\u003e and the tank holds 43\u003csuperScript\u003em3\u003c/superScript\u003e. A little more text here.\u003c/para\u003e\n\n result = deepl_client.translate_text(\n text,\n tag_handling=\"xml\",\n source_lang=\"SV\",\n target_lang=\"EN-GB\",\n model_type=\"prefer_quality_optimized\",\n split_sentences=\"nonewlines\"\n )\n\nI 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.","author":{"url":"https://github.com/matsbert","@type":"Person","name":"matsbert"},"datePublished":"2025-09-01T11:20:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/142/deepl-python/issues/142"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b19b79a4-baec-153f-e4cc-d9c92b3de2b7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A0EA:1A7762:4353E6:5B7F8A:6A4C752B |
| html-safe-nonce | 9fed2ba333cb5961a2e8de2ab2c18b4af1f8dc9df7190dbd3192c09a7cea509f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMEVBOjFBNzc2Mjo0MzUzRTY6NUI3RjhBOjZBNEM3NTJCIiwidmlzaXRvcl9pZCI6IjE1NzY5NDE2ODg4MzEzNzQ2MzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cb20a8e8985c8fb6d1afb4976d81131c49f18615e532f41b7cf7bbaf0b7c59d8 |
| hovercard-subject-tag | issue:3372296235 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/DeepL/deepl-python/142/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6a316659c7fb7cd9b611b054afaf3e263edfa4a819ceecb88f10f4da12716e6c/DeepL/deepl-python/issues/142 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6a316659c7fb7cd9b611b054afaf3e263edfa4a819ceecb88f10f4da12716e6c/DeepL/deepl-python/issues/142 |
| og:image:alt | 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: Problemet är a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | matsbert |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/DeepL/deepl-python git https://github.com/DeepL/deepl-python.git |
| octolytics-dimension-user_id | 83310993 |
| octolytics-dimension-user_login | DeepL |
| octolytics-dimension-repository_id | 387469387 |
| octolytics-dimension-repository_nwo | DeepL/deepl-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 387469387 |
| octolytics-dimension-repository_network_root_nwo | DeepL/deepl-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56ac743bebb13694b888673bb7257f4b97a4b7fd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width