Title: XML translation - character moves into inline element · Issue #142 · DeepLcom/deepl-python · GitHub
Open Graph Title: XML translation - character moves into inline element · Issue #142 · DeepLcom/deepl-python
X Title: XML translation - character moves into inline element · Issue #142 · DeepLcom/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/DeepLcom/deepl-python/issues/142
X: @github
Domain: patch-diff.githubusercontent.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:27975c8a-0ae6-a32c-accd-c5bc5c7d96aa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D6E6:1B8AF8:24C557A:32FA73F:69729600 |
| html-safe-nonce | 67b0d75a821d64dc8167c16337f877566b8635412094353fd83127bdae45f3d2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkU2OjFCOEFGODoyNEM1NTdBOjMyRkE3M0Y6Njk3Mjk2MDAiLCJ2aXNpdG9yX2lkIjoiMTA0NTY5NDQzMDkwMDgxOTQ1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9118d0d7258dfe6dcc4e2fcb66f03f1ff00c234d0c0742702b647fab01395dca |
| 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/DeepLcom/deepl-python/142/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6a316659c7fb7cd9b611b054afaf3e263edfa4a819ceecb88f10f4da12716e6c/DeepLcom/deepl-python/issues/142 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6a316659c7fb7cd9b611b054afaf3e263edfa4a819ceecb88f10f4da12716e6c/DeepLcom/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 | 72bb1c46bb1ebdc0dc83a0a57b64c3b4d668c125d1125d94898213a4c9db8da2 |
| turbo-cache-control | no-preview |
| go-import | github.com/DeepLcom/deepl-python git https://github.com/DeepLcom/deepl-python.git |
| octolytics-dimension-user_id | 83310993 |
| octolytics-dimension-user_login | DeepLcom |
| octolytics-dimension-repository_id | 387469387 |
| octolytics-dimension-repository_nwo | DeepLcom/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 | DeepLcom/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 | 7b2326416cb9f2fa4ab7b6ede33ad46d0dd431a1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width