Telegram Desktop messaging app
Go to file
Beni Cherniavsky-Paskin f8c631ed24 Export CSS: per-line automatic bidi direction
Fixes #16120.
`unicode-bidi: plaintext` makes browser auto-detect base bidi direction according to bidi algorithm heuristics, on each line separately.
https://drafts.csswg.org/css-writing-modes/#bidi-algo
AFAICT this matches both Android and Desktop behaviors, and is the friendly behavior for mixed-direction users.
Purely LTR users should not be affected — the heuristics return LTR even on "neutral" lines that contain no letters, only punctuation/emojis/digits.
(http://www.unicode.org/reports/tr9/#P2 — rule P3 defaults to level 0, which is LTR.)
Whereas all RTL language users in practice need to deal with mixed-direction texts, and the ability to split lines to prevent LTR/RTL mixups is extremely handy...

The `text-align: start` ensures LTR-detected lines are displayed left-aligned, and RTL-detected lines right-aligned.
Which again matches both Android and Desktop behaviors.
This is redundant — it seems already the default with current CSS — but is important for mixed-language users, so I wanted to ensure it in case somebody sets alignment on bigger parts of the document in the future.
2021-09-07 12:20:44 +03:00
.github Replace GTK integration with xsettings + XDP 2021-09-06 15:43:28 +03:00
cmake@95ee188c7b Replace GTK integration with xsettings + XDP 2021-09-06 15:43:28 +03:00
docs Try to a fix crash after lost OpenGL context. 2021-09-01 18:38:12 +03:00
lib/xdg Add tag launchable into linux appdata 2020-03-13 11:01:54 +04:00
snap Update tg_owt revision. 2021-07-07 16:39:26 +03:00
Telegram Export CSS: per-line automatic bidi direction 2021-09-07 12:20:44 +03:00
.gitattributes Update lottie icons in voice chats. 2021-04-12 10:48:16 +04:00
.gitignore added CLion-generated files to .gitignore 2021-04-14 08:50:32 +03:00
.gitmodules Version 2.9: Fix build on Linux. 2021-07-30 21:03:49 +03:00
changelog.txt Version 3.0.1. 2021-09-01 19:41:57 +03:00
CMakeLists.txt Add loading of custom shipped d3dcompiler_47.dll. 2021-07-20 15:41:49 +03:00
LEGAL Update copyright year to 2021. 2021-01-04 11:24:32 +04:00
LICENSE
README.md Remove old instructions & patches they referred to 2021-07-20 09:50:57 +03:00

Telegram Desktop Official Messenger

This is the complete source code and the build instructions for the alpha version of the official desktop client for the Telegram messenger, based on the Telegram API and the MTProto secure protocol.

Version Build Status Build Status Build Status

Preview of Telegram Desktop

The source code is published under GPLv3 with OpenSSL exception, the license is available here.

Supported systems

The latest version is available for

Old system versions

Version 2.4.4 was the last that supports older systems

Version 1.8.15 was the last that supports older systems

Third-party

Build instructions