#1005315 telegram-desktop: Word-breaking in Telegram is broken since inception

Package:
telegram-desktop
Source:
telegram-desktop
Description:
fast and secure messaging application
Submitter:
Alexandre François Garreau
Date:
2022-02-11 05:51:03 UTC
Severity:
minor
#1005315#5
Date:
2022-02-11 05:47:13 UTC
From:
To:
Dear Maintainer,

Since inception, Telegram handles most of its rendering alone (so that I even wonder what actually still comes from Qt…).

The consequential situation is that word-breaking has been implemented by little aknowledgeable people in typography, and includes several severe and obvious issues (and many some other, less obvious issues).

The first one I noticed is that non-breakable space is not taken into account (this is specially annoying in languages with frenchspacing).  No break should ever happen near a such character.

Second one I noticed is that actually word-break is allowed even near a quote (with no space around), or before an exclamation or question mark.  Same applies: near such characters, only a space should justify a line-break.

Third is that no hyphenation, even optionally is possible.  However I believe Qt maybe implements a such feature.  It may already contains or link with some international set of hyphenation dictionnaries

I believe that should be upstreamed, but maybe the upstream totally doesn’t care because they too much value their independance and efficiency, given how they reimplemented everything.  So maybe that could be fixed only in Debian and if they don’t dare change the text rendering implementation again, it could keep working quite some time.

I know this is work, I don’t have illusions regarding its possible implementation, but I wanted to write at least this so it is done, published, and publicly known, and me and the personal contacts I complain to are not the only aware.

Thank you,

In the hope to stay relevant anyway, and not to cause useless bothering or loss of time