1. #1
    Pit Lord Aeriedk's Avatar
    Join Date
    Mar 2011
    Location
    The Frozen Throne
    Posts
    2,292

    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?
    -=-=-=-=-=-=-=-Retired WoW Addict - Still play casual -=-=-=-=-=-=-=-=

  2. #2
    Mechagnome Darchow's Avatar
    Join Date
    Mar 2010
    Location
    The Netherlands
    Posts
    704
    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

  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
    Pit Lord Aeriedk's Avatar
    Join Date
    Mar 2011
    Location
    The Frozen Throne
    Posts
    2,292
    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
    -=-=-=-=-=-=-=-Retired WoW Addict - Still play casual -=-=-=-=-=-=-=-=

  5. #5
    The Patient Ketho's Avatar
    Join Date
    Jan 2011
    Location
    The Netherlands
    Posts
    263
    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
  •