EionRobb / skype4pidgin

Skype Plugin for Pidgin, libpurple and more
https://github.com/EionRobb/skype4pidgin/tree/master/skypeweb#skypeweb-plugin-for-pidgin
625 stars 88 forks source link

Feature request: Translate highlighting tag #690

Open heeplr opened 2 years ago

heeplr commented 2 years ago

Skype uses @username translated to <at id="n:username"> to highlight a certain user in a Groupchat. Most other chat systems use some regex like ^username:.*$ or ^.*username.*$ to do client-side highlighting.

It would be awesome, if pidgin-skypeweb could translate highlights in both directions as currently it's not possible to highlight users, who use the official client. It sometimes works the other way, if the receiving client doesn't insist on the former type of regex (name at beginning of line, followed by colon). A translation to username: ... (instead of forwarding the raw XML), would solve that.

EionRobb commented 2 years ago

We do something similar in the discord plugin. I might be able to port that over to the skype and teams plugins :)

heeplr commented 2 years ago

btw, the same is true for Quoting:

<quote author="username" authorname="display_name" timestamp="timestamp" conversation="conversation_id@thread.skype" messageid="message_id" cuid="wtfisthis?">
<legacyquote>[timestamp] Quoted text<legacyquote>

<<< Text under quote

I'm putting this here for now. (Please tell me if I should create a separate issue for this.)