Traduzir-paginas-web
Traduzir-paginas-web copied to clipboard
Replace newlines with spaces
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?
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.
This can be very useful. @FilipePS
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 :-)