Title: XML Tags Misplaced in Translated Output · Issue #136 · DeepLcom/deepl-python · GitHub
Open Graph Title: XML Tags Misplaced in Translated Output · Issue #136 · DeepLcom/deepl-python
X Title: XML Tags Misplaced in Translated Output · Issue #136 · DeepLcom/deepl-python
Description: Hi, I'm testing the API for integrating our web services, but I’ve encountered an issue. Example: Input Target (EN):
Open Graph Description: Hi, I'm testing the API for integrating our web services, but I’ve encountered an issue. Example: Input Target (EN):
X Description: Hi, I'm testing the API for integrating our web services, but I’ve encountered an issue. Example: Input Target (EN): <claim id="CLM-00004" num="00004"><claim-text&g...
Opengraph URL: https://github.com/DeepLcom/deepl-python/issues/136
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"XML Tags Misplaced in Translated Output","articleBody":"Hi,\n\nI'm testing the API for integrating our web services, but I’ve encountered an issue.\n\nExample:\nInput Target (EN):\n`\u003cclaim id=\"CLM-00004\" num=\"00004\"\u003e\u003cclaim-text\u003e4. An optical fiber coupling part comprising:\u003cclaim-text\u003ean optical fiber having a numerical aperture **NA\u003csub\u003ef\u003c/sub\u003e**;\u003c/claim-text\u003e\u003cclaim-text\u003ea first GRIN lens having a numerical aperture **NA\u003csub\u003e1\u003c/sub\u003e**, said first GRIN lens having an unattached first end; and\u003c/claim-text\u003e\u003cclaim-text\u003ea second GRIN lens having a numerical aperture **NA\u003csub\u003e2\u003c/sub\u003e**, wherein a first end of said second GRIN lens is fusion spliced with a second end of said first GRIN lens and a second end of said second GRIN lens is fusion spliced with an end of said optical fiber,\u003c/claim-text\u003e\u003cclaim-text\u003ewherein a tip part of said unattached first end of said first GRIN lens is flat, and wherein the numerical aperture NA\u003csub\u003ef \u003c/sub\u003eof the optical fiber, the numerical aperture NA\u003csub\u003e1 \u003c/sub\u003eof the first GRIN lens, the numerical aperture NA\u003csub\u003e2 \u003c/sub\u003eof the second GRIN lens, and a numerical aperture NA\u003csub\u003es \u003c/sub\u003eof a light emitting source are selected to satisfy the formula expressed by:\u003cclaim-text\u003e\u003cbr/\u003e\u003c?in-line-formulae description=\"In-line Formulae\" end=\"lead\"?\u003e**NA\u003csub\u003ef\u003c/sub\u003e≦NA\u003csub\u003e2\u003c/sub\u003e\u0026lt;NA\u003csub\u003es\u003c/sub\u003e≦NA\u003csub\u003e1\u003c/sub\u003e**,\u003c?in-line-formulae description=\"In-line Formulae\" end=\"tail\"?\u003e\u003c/claim-text\u003e\u003c/claim-text\u003e\u003cclaim-text\u003ewherein said light emitting source comprises a semiconductor laser.\u003c/claim-text\u003e\u003c/claim-text\u003e\u003c/claim\u003e`\n\nOutput Target (KO):\n`\u003cclaim id=\"CLM-00004\" num=\"00004\"\u003e\u003cclaim-text\u003e4. 다음을 포함하는 광섬유 결합부:\u003cclaim-text\u003e수치 조리개 **\u003csub\u003eNAf를\u003c/sub\u003e** 갖는 광섬유;\u003c/claim-text\u003e\u003cclaim-text\u003e수치 조리개 **\u003csub\u003eNA1을\u003c/sub\u003e** 갖는 제1 GRIN 렌즈, 상기 제1 GRIN 렌즈는 제1 단부가 부착되지 않은 제1 단부를 갖는다; 및\u003c/claim-text\u003e\u003cclaim-text\u003e수치 조리개 **\u003csub\u003eNA2를\u003c/sub\u003e** 갖는 제2 GRIN 렌즈, 상기 제2 GRIN 렌즈의 제1 단부는 상기 제1 GRIN 렌즈의 제2 단부와 융합 접합되고 상기 제2 GRIN 렌즈의 제2 단부는 상기 광섬유의 단부와 융합 접합되며\u003c/claim-text\u003e\u003cclaim-text\u003e, 상기 제1 GRIN 렌즈의 부착되지 않은 제1 단부의 팁 부분은 평평한 것을 특징으로\u003c/claim-text\u003e\u003cclaim-text\u003e하는 제2 GRIN 렌즈\u003c/claim-text\u003e\u003cclaim-text\u003e, 및 상기\u003csub\u003e광섬유의 \u003c/sub\u003e수치 조리개 NAf, 상기 제1 GRIN\u003csub\u003e렌즈의 \u003c/sub\u003e수치 조리개 NA1, 상기 제2 GRIN\u003csub\u003e렌즈의 \u003c/sub\u003e수치 조리개 NA2 및 발광원의 수치 조리개 NS가 식 (1)로 표현되는 공식을 만족하도록 선택되는 것을 특징으로 하는 광섬유를 포함한다:\u003cclaim-text\u003e\u003cbr/\u003e\u003c?in-line-formulae description=\"In-line Formulae\" end=\"lead\"?\u003e**\u003csub\u003eNAf≦NA2\u0026lt;NAs≦NA1\u003c/sub\u003e**,\u003c?in-line-formulae description=\"In-line Formulae\" end=\"tail\"?\u003e\u003c/claim-text\u003e\u003c/claim-text\u003e\u003cclaim-text\u003e, 여기서 상기 발광원은 반도체 레이저를 포함합니다.\u003c/claim-text\u003e\u003c/claim-text\u003e\u003c/claim\u003e`\n\nIn this case, the `\u003csub\u003e `tags are not placed in the correct positions in the output. This causes incorrect rendering and affects the intended meaning of the content.\n\nHow can I resolve this issue?\n\nFor reference, here is my current API setup:\n```\ndef get_deepl_params(text: str, source_lang: str, target_lang: str) -\u003e Dict[str, Any]:\n \"\"\"Creat DeepL API Parameter\"\"\"\n return {\n 'auth_key': DEEPL_API_KEY,\n 'text': text,\n 'source_lang': source_lang.upper(),\n 'target_lang': target_lang.upper(),\n 'tag_handling': 'xml',\n # 'outline_detection': 0,\n }\n```\n\nThank you.","author":{"url":"https://github.com/sunghowoo-kr","@type":"Person","name":"sunghowoo-kr"},"datePublished":"2025-07-16T10:26:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/136/deepl-python/issues/136"}
| 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:671d6e29-467d-66d4-804f-9da2599d34e2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8E5E:E29BE:57659:74407:6972711A |
| html-safe-nonce | b87c951382a21dde06a1be183d3e1fc8e829691ead1141f629b877e301f3090e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTVFOkUyOUJFOjU3NjU5Ojc0NDA3OjY5NzI3MTFBIiwidmlzaXRvcl9pZCI6IjEyNDM4OTExOTQzMzI4Njg4OTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | faf3dc1c3c64972bd4b342aa4bdbd34b8d71d15d9c93fc5c03fbce5e53540948 |
| hovercard-subject-tag | issue:3235359447 |
| 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/136/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e500163524df8f4829f339999d06b5ede3483638f840d64cc5732df165009645/DeepLcom/deepl-python/issues/136 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e500163524df8f4829f339999d06b5ede3483638f840d64cc5732df165009645/DeepLcom/deepl-python/issues/136 |
| og:image:alt | Hi, I'm testing the API for integrating our web services, but I’ve encountered an issue. Example: Input Target (EN): |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sunghowoo-kr |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3be355d8ea7ca74c4edec03a70ecaa8211862649e90886d88a4db13e6778e4c3 |
| 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 | 4ae5b6c1e16519c3e3ad37a388f7cca2192a79a8 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width