Emoticons within .Text
Some days back I’ve started to implement support for emoticons in .Text. It was expected to replace any textual emoticons such as :) into the graphical representation such as .
However, today I notived that ScottW is already adding this into .Text. At least I found it when synchronizing my home installation with the published sources. Unfortunately, the file containing the replacement table is missing up to now. But since Scott uses the same algorithm as ASP.NET Forums do, I took their file (emoticons.txt, that is).
Anyway, the graphics Scott envisioned to use are not my favourites. Therefore, I’m using the same as CodeProject does. Finally, here’s my substitution table:
Input | Renders as |
---|---|
[:)] |
|
[:-D] |
|
[=:O] |
|
[P] |
|
[;)] |
|
[:(] |
|
[:~] |
|
[:|] |
|
[:'(] |
|
[:}] |
|
[8)] |
|
[>:<] |
|
[0:)] |
|
[X(] |
|
[doh] |
|
[eek] |
|
[omg] |
|
[sigh] |
|
[zzz] |
|
[wtf] |
|
[unsure] |
Update: Of course I asked Chris (heart and soul of CodeProject) for permission to use the depicted graphics. Therefore as promised: Credits for the emoticons go to Chris and CodeProject.
Comments
Scott Watermasysk
err…my bad. I will make sure the file shows up.
Also, those images are much better. As long as Chris is OK with it, I will use them instead (or inaddition to).
Also, is [:)] better than :) . I guess it is less likely to get in the way, but I like not having to remember it :) (<- See)
-Scott
Gary
Great idea but I can’t see how to add the emoticons to .Text. Could you point me in the right direction please.
Thanks in advance
Gary
Thomas Freudenberg
Hi Scott, nice to see you here. I mailed Chris directly to get his permission (chris AT codeproject DOT com) and already got his blessing. You should ask him too, since you have a broader audience than me ;-)
thomas
i really love u
Leave a Comment
Your email address will not be published. Required fields are marked *