Traduzir-paginas-web icon indicating copy to clipboard operation
Traduzir-paginas-web copied to clipboard

Replace newlines with spaces

Open qianxi0410 opened this issue 1 year ago • 3 comments

Hi, thank you very much for your contribution. A question, when I am translating a long English sentence that spans lines, the appearance of line breaks seems to interfere with the accuracy of the translation. I am thinking, can you provide the user with an option to automatically replace line breaks with spaces?

qianxi0410 avatar Oct 26 '22 13:10 qianxi0410

Now it's possible to edit the source text to remove line breaks manually, but I agree that it would be much better to have an option to remove them automatically. And probably multiple sequential spaces could be detected and replaced with a single one.

SerVB avatar Nov 30 '22 21:11 SerVB

This can be very useful. @FilipePS

semihptr avatar Apr 23 '23 22:04 semihptr

I also think there are use cases (certain HTML structures) where this would be incredibly useful. In my experience Google can ignore line breaks on its own (at least in the popup translation mode), but Bing, Yandex and DeepL don't, and when you remove them manually inside the popup, the translation quality is enhanced immensely, specially if you translate between very different languages like Japanese -> English. I would like to see this somewhere in the release roadmap :-)

crisalis2 avatar Oct 02 '23 07:10 crisalis2