LyoSU/quote-bot

[Bug] Reverse order of words in RTL languages

Aliforati opened this issue · 3 comments

In RTL languages (Persian,Arabic,...) The order of words in the line is reversed.
There's an example of the issue:
IMG_20210615_015037

LyoSU commented

I know about it, but I don't have time for it. you can send a pull request and I will accept it

Instead of checking you can also add a RTL flag to the /q command to just reverse it manually

I think the way telegram itself handles RTL languages is that it check the first letter of the message. If it's from an RTL language it changes the whole message to RTL

LyoSU commented

now there is no such thing, this is his proposal. But I would be glad if someone would implement this.