Ron,
>>solution that they would be willing to share?
Below is jscript to :
1) replace imode emoji entities with the graphic from nttdocomo.com
emojiToImg ()
OR
2) replace with some text
emojiToText ()
You **must** have Windows Script 5.5 installed !! (from here
http://www.microsoft.com/msdownload/vbscript/scripting.asp )
You can call these functions from VBScript
cd
-----------------------------
<script language=jscript runat=server>
/*********************
* author: Craig Dunn
* date: 17-Jan-01
* desc: turn emoji into NTT icons
* assumpt:string contains emoji as 'entity' type chars
* of the form 𘚟
* May not be a great idea for limited bandwidth, but hey!
* disclaim: the emoji icons are (c) NTTDocomo
* you should create your OWN icons
*********************/
function emojiToImg (sIn) {
var RegEx = /\&\#(\d\d\d\d\d)\;/g;
var sOut = sIn.replace(RegEx, emojiImgj );
return sOut;
}
function emojiImgj (sMatchedString, dollar1) {
var sOut;
var iEmoji;
iEmoji = parseInt(dollar1)
//img format=<img src='http://www.nttdocomo.com/i/tag/emoji/images/5.gif
sOut = "<img src='http://www.nttdocomo.com/i/tag/emoji/images/"
if (iEmoji <= 63740 ) {
sOut = sOut + (iEmoji - 63646);
} else if (iEmoji <= 63817) {
sOut = sOut + (iEmoji - (63808 -95));
} else {
sOut = sOut + (iEmoji - (63858 -105));
}
sOut = sOut + ".gif'>"
return sOut;
}
/*********************
* author: Craig Dunn
* date: 17-Jan-01
* desc: turn emoji into text
* assumpt:string contains emoji as 'entity' type chars
* of the form 𘚟
* disclaim: the emoji icons are (c) NTTDocomo
* you should create your OWN descriptions
*********************/
function emojiToText (sIn) {
var RegEx = /\&\#(\d\d\d\d\d)\;/g;
var sOut = sIn.replace(RegEx, emojiLookupj );
return sOut;
}
function emojiLookupj (sMatchedString) {
var sOut;
switch (sMatchedString) {
case "" : sOut = "[Fine]"; break;
case "" : sOut = "[Cloudy]"; break;
case "" : sOut = "[Rain]"; break;
case "" : sOut = "[Snow]"; break;
case "" : sOut = "[Thunder]"; break;
case "" : sOut = "[Typhoon]"; break;
case "" : sOut = "[Fog]"; break;
case "" : sOut = "[Drizzle]"; break;
case "" : sOut = "[Aries]"; break;
case "" : sOut = "[Taurus]"; break;
case "" : sOut = "[Gemini]"; break;
case "" : sOut = "[Cancer]"; break;
case "" : sOut = "[Leo]"; break;
case "" : sOut = "[Virgo]"; break;
case "" : sOut = "[Libra]"; break;
case "" : sOut = "[Scorpio]"; break;
case "" : sOut = "[Sagittarius]"; break;
case "" : sOut = "[Capricorn]"; break;
case "" : sOut = "[Aquarius]"; break;
case "" : sOut = "[Pisces]"; break;
case "" : sOut = "[Sports]"; break;
case "" : sOut = "[Baseball]"; break;
case "" : sOut = "[Golf]"; break;
case "" : sOut = "[Tennis]"; break;
case "" : sOut = "[Soccer]"; break;
case "" : sOut = "[Ski]"; break;
case "" : sOut = "[Basketball]"; break;
case "" : sOut = "[Motor sports]"; break;
case "" : sOut = "[Pager]"; break;
case "" : sOut = "[Train]"; break;
case "" : sOut = "[Subway]"; break;
case "" : sOut = "[Bullet train]"; break;
case "" : sOut = "[Car (sedan)]"; break;
case "" : sOut = "[Car (RV)]"; break;
case "" : sOut = "[Bus]"; break;
case "" : sOut = "[Ship]"; break;
case "" : sOut = "[Airplane]"; break;
case "" : sOut = "[House]"; break;
case "" : sOut = "[Building]"; break;
case "" : sOut = "[Post office]"; break;
case "" : sOut = "[Hospital]"; break;
case "" : sOut = "[Bank]"; break;
case "" : sOut = "[ATM]"; break;
case "" : sOut = "[Hotel]"; break;
case "" : sOut = "[Convenience store]"; break;
case "" : sOut = "[Gas station]"; break;
case "" : sOut = "[Parking]"; break;
case "" : sOut = "[Traffic signal]"; break;
case "" : sOut = "[Toilet]"; break;
case "" : sOut = "[Restaurant]"; break;
case "" : sOut = "[Café]"; break;
case "" : sOut = "[Bar]"; break;
case "" : sOut = "[Beer]"; break;
case "" : sOut = "[Fast food]"; break;
case "" : sOut = "[Boutique]"; break;
case "" : sOut = "[Hairdresser]"; break;
case "" : sOut = "[Karaoke]"; break;
case "" : sOut = "[Movie]"; break;
case "" : sOut = "[Diagonally upward toward right]"; break;
case "" : sOut = "[Amusement park]"; break;
case "" : sOut = "[Music]"; break;
case "" : sOut = "[Art]"; break;
case "" : sOut = "[Drama]"; break;
case "" : sOut = "[Event]"; break;
case "" : sOut = "[Ticket]"; break;
case "" : sOut = "[Smoking]"; break;
case "" : sOut = "[Non-smoking]"; break;
case "" : sOut = "[Camera]"; break;
case "" : sOut = "[Bag]"; break;
case "" : sOut = "[Book]"; break;
case "" : sOut = "[Ribbon]"; break;
case "" : sOut = "[Present]"; break;
case "" : sOut = "[Birthday]"; break;
case "" : sOut = "[Phone]"; break;
case "" : sOut = "[Mobile phone]"; break;
case "" : sOut = "[Memo]"; break;
case "" : sOut = "[TV]"; break;
case "" : sOut = "[Game]"; break;
case "" : sOut = "[CD]"; break;
case "" : sOut = "[Heart]"; break;
case "" : sOut = "[Spade]"; break;
case "" : sOut = "[Diamond]"; break;
case "" : sOut = "[Club]"; break;
case "" : sOut = "[Eyes]"; break;
case "" : sOut = "[Ear]"; break;
case "" : sOut = "[Hand (rock)]"; break;
case "" : sOut = "[Hand (scissors)]"; break;
case "" : sOut = "[Hand (paper)]"; break;
case "" : sOut = "[Diagonally downward toward right]"; break;
case "" : sOut = "[Diagonally upward toward left]"; break;
case "" : sOut = "[Foot]"; break;
case "" : sOut = "[Shoe]"; break;
case "" : sOut = "[Eyeglasses]"; break;
case "" : sOut = "[Wheelchair]"; break;
case "鹿" : sOut = "[New moon]"; break;
case "論" : sOut = "[Waning moon]"; break;
case "壟" : sOut = "[Half moon]"; break;
case "弄" : sOut = "[Crescent moon]"; break;
case "籠" : sOut = "[Full moon]"; break;
case "聾" : sOut = "[Dog]"; break;
case "牢" : sOut = "[Cat]"; break;
case "磊" : sOut = "[Resort]"; break;
case "賂" : sOut = "[Christmas]"; break;
case "雷" : sOut = "[Diagonally downward toward left]"; break;
case "沈" : sOut = "[Phone to]"; break;
case "拾" : sOut = "[Mail to]"; break;
case "若" : sOut = "[Fax to]"; break;
case "掠" : sOut = "[i-mode]"; break;
case "略" : sOut = "[i-mode with frame]"; break;
case "亮" : sOut = "[Mail]"; break;
case "兩" : sOut = "[Provided by DoCoMo]"; break;
case "凉" : sOut = "[DoCoMo point]"; break;
case "梁" : sOut = "[Fee charging]"; break;
case "糧" : sOut = "[Free of charge]"; break;
case "良" : sOut = "[ID]"; break;
case "諒" : sOut = "[Password]"; break;
case "量" : sOut = "[Continuing]"; break;
case "呂" : sOut = "[Clear]"; break;
case "女" : sOut = "[Search]"; break;
case "廬" : sOut = "[New]"; break;
case "旅" : sOut = "[Location information]"; break;
case "濾" : sOut = "[Free dial]"; break;
case "礪" : sOut = "[Sharp dial]"; break;
case "閭" : sOut = "[MopaQ]"; break;
case "驪" : sOut = "[1]"; break;
case "麗" : sOut = "[2]"; break;
case "黎" : sOut = "[3]"; break;
case "力" : sOut = "[4]"; break;
case "曆" : sOut = "[5]"; break;
case "歷" : sOut = "[6]"; break;
case "轢" : sOut = "[7]"; break;
case "年" : sOut = "[8]"; break;
case "憐" : sOut = "[9]"; break;
case "戀" : sOut = "[0]"; break;
case "聆" : sOut = "[Accept]"; break;
case "撚" : sOut = "[Black heart]"; break;
case "漣" : sOut = "[Fluttering heart]"; break;
case "煉" : sOut = "[Heartbreak]"; break;
case "璉" : sOut = "[Hearts]"; break;
case "秊" : sOut = "[Happy face]"; break;
case "練" : sOut = "[Angry face]"; break;
case "聯" : sOut = "[Disappointed face]"; break;
case "輦" : sOut = "[Sad face]"; break;
case "蓮" : sOut = "[Dizzy]"; break;
case "連" : sOut = "[Good (upward arrow)]"; break;
case "鍊" : sOut = "[Cheerful]"; break;
case "列" : sOut = "[Comfort (thermal spring)]"; break;
case "劣" : sOut = "[Cute]"; break;
case "咽" : sOut = "[Kiss]"; break;
case "烈" : sOut = "[Shining new]"; break;
case "裂" : sOut = "[Good idea]"; break;
case "說" : sOut = "[Angry]"; break;
case "廉" : sOut = "[Punch]"; break;
case "念" : sOut = "[Bomb]"; break;
case "捻" : sOut = "[Mood]"; break;
case "殮" : sOut = "[Bad (downward arrow)]"; break;
case "簾" : sOut = "[Sleepy (sleep)]"; break;
case "獵" : sOut = "[Exclamation mark]"; break;
case "令" : sOut = "[Exclamation & question marks]"; break;
case "囹" : sOut = "[Two exclamation marks]"; break;
case "寧" : sOut = "[Bump (collision)]"; break;
case "嶺" : sOut = "[Sweat]"; break;
case "怜" : sOut = "[Cold sweat]"; break;
case "玲" : sOut = "[Dash (running dash)]"; break;
case "瑩" : sOut = "[Macron 1]"; break;
case "羚" : sOut = "[Macron 2]"; break;
default : sOut = "[?]";
}
return sOut;
}
</script>
[ Did you check the archives? http://www.appelsiini.net/keitai-l/ ]
Received on Wed Jan 17 03:58:05 2001