What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] In / Out Text Replacer

[Request] In / Out Text Replacer
Author: Message:
markee
Veteran Member
*****

Avatar

Posts: 1621
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: [Request] In / Out Text Replacer
You also have to remember that changing to kanji is probably not the best to change it into as there are at least 2 ways that every kanji can be pronounced and there are many kanji that make the same sound and hence same romaji.  The only way to do a script that you were after by any means is a romaji to hiragana or a romaji to katakana script that could translate either way.

However there is one other possibility and that is to make sure that your friend uses a hiragana/katakana/kanji to romaji converter before sending a message to you and hence being able to have the longer message.

These are just some things to think about when making the script (whoever decides to devote their time to the project).


[off-topic]
quote:
Originally posted by CookieRevised
The next pseudo code is almost always used in scripts like this (you can verify this in the scripting database). But it will, in most cases, render wrong results:

(Post cut short.... sorry Cookie)

This is easily fixed by using a function in your replace method instead

code:
var oString = "abcd";
var eString = oString.replace(/a|b|c|d/g,function($1){
                    switch($1){
                        case "a":
                            return "b";
                        case "b":
                            return "c";
                        case "c":
                            return "d";
                        case "d"
                            return "a";
                    }
                });
return eString;
This will return "bcda".

[/off-topic]
[Image: markee.png]
06-26-2007 02:10 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Request] In / Out Text Replacer - by Yukai on 06-24-2007 at 06:01 PM
RE: [Request] In / Out Text Replacer - by toddy on 06-24-2007 at 06:07 PM
RE: [Request] In / Out Text Replacer - by Yukai on 06-24-2007 at 06:12 PM
RE: [Request] In / Out Text Replacer - by roflmao456 on 06-24-2007 at 07:32 PM
RE: RE: [Request] In / Out Text Replacer - by Yukai on 06-24-2007 at 07:47 PM
RE: RE: RE: [Request] In / Out Text Replacer - by Deco on 06-24-2007 at 09:46 PM
RE: [Request] In / Out Text Replacer - by Yukai on 06-24-2007 at 10:36 PM
RE: [Request] In / Out Text Replacer - by roflmao456 on 06-25-2007 at 02:46 AM
RE: RE: [Request] In / Out Text Replacer - by CookieRevised on 06-25-2007 at 03:24 AM
RE: [Request] In / Out Text Replacer - by Yukai on 06-25-2007 at 11:18 AM
RE: [Request] In / Out Text Replacer - by CookieRevised on 06-25-2007 at 11:32 AM
RE: [Request] In / Out Text Replacer - by Yukai on 06-25-2007 at 12:31 PM
RE: [Request] In / Out Text Replacer - by markee on 06-26-2007 at 02:10 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On