-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RTL marks in displaynames affect following text #1712
Comments
->
|
FWIW, |
We need a solution not involving markup for this, because the messages also end up in pop-up notifications, which are plain text. As per my question at https://stackoverflow.com/questions/41487035/handling-right-to-left-left-to-right-override-characters-in-user-input, the right thing to do is probably to strip out RLO and LRO characters. |
This is particularly bad where it affects collapsed joins/parts (MELS). |
Also affects email notifications. |
Please look at my comment here: The only downside is minimum browsers support (they will show as squares if the browser doesn't support those characters). |
@SafaAlfulaij please also note that riot-android has been deprecated and replaced by https://github.com/vector-im/element-android |
@ShadowJonathan Fully aware, and using Element for Android |
I've had a look at this and I think I agree with rich & his stackoverflow that stripping out RLO and LRO is the correct solution. This should still allow for either ltr/rtl display names and even displaynames with one embedded in the other. The only alternative I can see would be to add PDF characters to the end, but that also means counting how many you'd need. |
Strip RLO and LRO characters from name and rawDisplayName so they can safely be embedded into other text without messing up the text ordering. Fixes element-hq/element-web#1712
Strip RLO and LRO characters from name and rawDisplayName so they can safely be embedded into other text without messing up the text ordering. Fixes element-hq/element-web#1712
* Mark old verification methods as deprecated ([\matrix-org#1994](matrix-org#1994)). * Try to set a sender on search result events if possible ([\matrix-org#2004](matrix-org#2004)). * Port some changes from group calls branch to develop ([\matrix-org#2001](matrix-org#2001)). Contributed by @SimonBrandner. * Fetch room membership from server rather than relying on stored data ([\matrix-org#1998](matrix-org#1998)). * Add method to fetch the MSC3266 Room Summary of a Room ([\matrix-org#1988](matrix-org#1988)). * Don't show `Unable to access microphone` when cancelling screensharing dialog ([\matrix-org#2005](matrix-org#2005)). Fixes element-hq/element-web#19533 and element-hq/element-web#19533. Contributed by @SimonBrandner. * Strip direction override characters from display names ([\matrix-org#1992](matrix-org#1992)). Fixes element-hq/element-web#1712 and element-hq/element-web#1712.
Created by @ richvdh:sw1v.org.
Do we need to wrap them with
<span dir=auto>
or something?The text was updated successfully, but these errors were encountered: