-
-
Notifications
You must be signed in to change notification settings - Fork 179
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
Profanity is sometimes highlighting a mention wrong. #1220
Comments
Another example: Gajim output:
XML console:
|
It seems these <200e> are coming from Gajim. This excerpt is from the Gajim MUC:
|
In Gajim one needs to copy with right click and then selecting |
So the question is, should we have some general filtering of incoming messages for certain sequences and remove them. |
Is there a way to filter nonvisible sequences?
|
After reading https://en.wikipedia.org/wiki/ANSI_escape_code I'm still not sure. Can I just look for |
Seems this is hard/impossible to do. We have various unicode stuff and escape stuff and we don't know what is what. mcabber and poezio also seem not to do manipulate this. |
I created an issue at the Gajim tracker: https://dev.gajim.org/gajim/gajim/issues/9881 |
Just replace \u200E and \u200F before you send it to display. these are 2 unicode chars and not disallowed by xmpp or xml standard, so you have to deal with them someway you can not depend on other clients sending you only unicode chars you can display |
Gajim sends \u200E and \u200F for RTL. It is planned that Gajim stops doing this and uses some GTK feature to get the same result. However users expressed the whish that we filter out such characters in incoming messages before displaying them to make Profanity more robust. I'm still not sure whether I like the solution because it means a lot of allocating/deallocating upon every new message. Fix profanity-im#1220
Profanity is configured to highlight my Nickname for mentions but sometimes it highlights something wrong.
Expected Behavior
In this example it should highlight "Martin"
Current Behavior
It highlights other stuff and also mixes in the username "debacle" maybe caused by the <200e>.
Context
Environment
Version 0.7.1dev.master.f71de61b
Debian Bullseye (testing)
The text was updated successfully, but these errors were encountered: