1. #1
    Herald of the Titans Aeriedk's Avatar
    10+ Year Old Account
    Join Date
    Mar 2011
    Location
    The Frozen Throne
    Posts
    2,909

    Foreign language- Chat blocker.

    Anyone know of a mod that will block foreign chat from your chat automatically. My server is extremely over-populated and nearly half the chat is 国家, etc etc. I'm sick of it, has no relevance to me.

    Anyone?

    -=-=-=-=-=-=-=-=-=-Signature by Winter Blossom-=-=-=-=-=-=-=-=-=-=-

  2. #2
    Dreadlord Darchow's Avatar
    10+ Year Old Account
    Join Date
    Mar 2010
    Location
    The Netherlands
    Posts
    907
    I don't think there is, atleast I have never heard of it.

    ''En ik zou ook in mijn eigen taal kunnen gaan spreken'' (I could start talking in my own language as well). Dutch (for example) does not use weird characters so I think it wouldn't even solve all of your ''Foreign language'' problems.

    Then again I just looked as your sig and noticed you play on the US realms.. never knew Americans used 国家 =P
    Faith Alone is Not Enough to Stop all the Enemies of the Light!
    - Retribution Paladin since 2007.

    Burning Blade EU

    Quote Originally Posted by DarkAmbient View Post
    Jesus christ, I just agreed with Jaylock. I need to go and have a shower.

  3. #3
    Quote Originally Posted by Darchow View Post
    I don't think there is, atleast I have never heard of it.

    ''En ik zou ook in mijn eigen taal kunnen gaan spreken'' (I could start talking in my own language as well). Dutch (for example) does not use weird characters so I think it wouldn't even solve all of your ''Foreign language'' problems.

    Then again I just looked as your sig and noticed you play on the US realms.. never knew Americans used 国家 =P
    He's on Illidan. About half the population is Chinese there.

  4. #4
    Herald of the Titans Aeriedk's Avatar
    10+ Year Old Account
    Join Date
    Mar 2011
    Location
    The Frozen Throne
    Posts
    2,909
    Quote Originally Posted by Pikatrap View Post
    He's on Illidan. About half the population is Chinese there.
    yea it is the most annoying thing to see half my chat filled with bold ?s

    -=-=-=-=-=-=-=-=-=-Signature by Winter Blossom-=-=-=-=-=-=-=-=-=-=-

  5. #5
    Using ChatFrame_AddMessageEventFilter might work for filtering chinese/japanese/korean/asian characters

    I wrote a test script for this, and did some quick testing against myself (I'm Chinese so that's even better, lol)

    what it does: the filter func checks the first control character of the ASCII code, and filters it if it starts in the 228 to 233 range
    Code:
    local events = {
    	"CHAT_MSG_SAY",
    	"CHAT_MSG_YELL",
    	"CHAT_MSG_CHANNEL",
    }
    
    local function filter(self, event, msg, ...)
    	if strfind(msg, "[\228-\233]") then
    		return true
    	end
    end
    
    for _, v in ipairs(events) do
    	ChatFrame_AddMessageEventFilter(v, filter)
    end
    -- [HowTo] Make a code snippet into an addon in twelve easy steps


    and in macro form if you want to test it out ingame:
    /run for _,v in ipairs({"CHAT_MSG_SAY","CHAT_MSG_YELL","CHAT_MSG_CHANNEL"})do ChatFrame_AddMessageEventFilter(v,function(_,_,msg)if strfind(msg,"[\228-\233]")then return true end end)end

    asian character examples
    "あ" = "\227\129\130"
    "が" = "\227\129\140"
    "の" = "\227\129\174"
    "私" = "\231\167\129"

    "一" = "\228\184\128"
    "国" = "\229\155\189"
    "家" = "\229\174\182"
    "我" = "\230\136\145"
    "爱" = "\231\136\177"
    "要" = "\232\166\129"
    "體" = "\233\171\148"

    "국" = "\234\181\173"
    "말" = "\235\167\144"
    "어" = "\236\150\180"
    "한" = "\237\149\156"
    • afaik Japanese katakana / hiragana are on 227
    • Chinese characters and Japanese kanji are around the 228 - 233 range
    • and Korean characters are around the 234 - 237 range
    Last edited by Ketho; 2013-06-04 at 05:11 AM.

  6. #6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •