translate-tools / linguist

Translate web pages, highlighted text, Netflix subtitles, private messages, speak the translated text, and save important translations to your personal dictionary to learn words even offline

Home Page:https://linguister.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Paragraph with bold text under it will break continuity

ptrstr opened this issue · comments

I've noticed that when HTML is formatted in such a way

<p>
    This sentence works until this HTML <b>broke</b>
</p>

The broke part will get translated on its own without context, which can lead to bad results.

I'm not too sure though how this could be tackled as sending all the text to a translator and knowing where the bold is will be kind of hard to figure out.

We have logic to batch a multiple texts into one translation request, the problem here is not all translators can translate multiple texts with a common context.

Thanks for your feedback, it is useful, i will research about how to handle such cases.

If it possible, would be nice to add couple examples with HTML and current (bad) translation + expected (good) translation.
Then i could test possible solutions on your cases.

/assign