[JDEV] Emoticons: guidelines
Richard Dobson
richard at dobson-i.net
Wed Apr 24 20:02:17 CDT 2002
On 24/4/02 9:39 pm, "Dave" <dave at dave.tj> wrote:
> Hmm ... so we can have <img:emoticon src="smiley">, and <img:genicon
> src="beer"> ... interesting idea. . .
>
> Yeah, I think that will keep the implementation reasonably clean, while making
> people who want to treat emoticons differently happy.
That is much better, although it has to be made sure that these xhtml sub
elements are only sent to clients that support it (a matter of prior feature
negotiation), treating emoticons and genicons differently from normal images
is a good thing so they can be turned off if desired without effecting all
images.
Just remember to make this a correct bit of xml:
<img:emoticon src="smiley"/>
The xml required terminator was missing (very easy to do if you are thinking
in terms of html ;-) )
All that needs to be decided now is a list of the standard src's, and a how
to represent these emoticons in the plain text portion of the message (which
can also be used in the xhtml section instead of the xml element when
talking to clients that do not support this new element).
E.g.
<message to="friend at jabber.org" from="me at jabber.org" type="chat">
<body>This is my message to you ::thumbup:: :)</body>
<html>
<body>
This is my message to you <img:genicon src="thumbup"/>
<img:emoticon src="smiley"/>
</body>
</html>
</message>
More information about the JDev
mailing list