Yes it does mean that the client has to support this x element, it means that it works fine with clients that dont support it, this method also allows the message sender complete control of where and when the emoticons are displayed, so the message will be displayed as the sender intended, and not as happens in msn messenger certain strings getting replaced when you didnt want them to, and not relying on the recipient client to determine if a particular string should be changed into an emoticon or not. Also as jabber users will not all be using a single particular client it allows better cross-client compatibility. Also the problem of it creating lots of overhead, well the syntax of the x element could be cut down, I did it long and readable so it was easier to understand for people here when reading my example.
My 2p Richard ----- Original Message ----- From: "Mattias Campe" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 18, 2002 6:44 PM Subject: Re: [JDEV] Emoticons: guidelines > Richard Dobson wrote: > > Well what about creating a new x element for message which allows people to > > define emoticon text replacements e.g. > > > > <message type="chat" to="[EMAIL PROTECTED]" from="[EMAIL PROTECTED]"> > > <body>This is a emoticon containing message :) (L) ;) :D</body> > > <x xmlns="jabber:x:emoticon"> > > <emoticon text="(L)" icon="love"/> > > <emoticon text=":)" icon="smile"/> > > <emoticon text=";)" icon="wink"/> > > <emoticon text=":D" icon="grin"/> > > </x> > > </message> > > > > [...] > > I'm not sure if I understand it, but doesn't this mean that the client > has to support this x element? So if the client doesn't want to support > that element, people using that client will get "This is a emoticon > containing message :) (L) ;) :D" I'll understand the ":) (L) ;) :D" > part, but what about (L)? > > And won't this cause to much overhead? In the example you gave me the > body itself contains less characters than the x-element. > > Just my thoughts... > > ..m. > > _______________________________________________ > jdev mailing list > [EMAIL PROTECTED] > http://mailman.jabber.org/listinfo/jdev > _______________________________________________ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
