Add use <tunit> instead of <span> for Deepl translation

To avoid getting results like "... bla.&quot;</span>" ->
"... bla</span>.&quot;" from Deepl we need to set set splitting_tags
option to an element name (that's not as common as span).
This commit is contained in:
Thelonius Kort
2023-01-14 21:59:57 +01:00
parent 3b1c1d04a1
commit d7325d64c5
3 changed files with 14 additions and 7 deletions

View File

@ -26,6 +26,8 @@ defmodule Outlook.Translators.Deepl do
[
{"source_lang", options.source_lang},
{"target_lang", options.target_lang},
{"tag_handling", "xml"},
{"splitting_tags", "tunit"},
{"file", content, {"form-data", [{:name, "file"}, {:filename, "datei.html"}]}, []}
]
)