| View previous topic :: View next topic |
| Author |
Message |
JOE Voice
Joined: 24 Nov 2003 Posts: 34
|
Posted: Sun Nov 27, 2005 1:38 am Post subject: English only kick |
|
|
Trying to fine a tcl script that will warn a nick that the channel is english only and if they speak another language again the script will kick them from the channel.Is it possible to have a tcl script that will do that and if so can someone please help me or tell me where i may fined it.Thanks for any help anyone may be able to give me.  |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sun Nov 27, 2005 3:19 am Post subject: |
|
|
is it just me or are people who have been registered here for years really too ignorant about things they should have known far better by now?
wrong forum dude
and no, there is no such script, and it's very hard to write one - for the simple reason that you can't programmatically distinguish your language from all others with sufficient certainty, given only one sentence or phrase
think before posting _________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
Posted: Sun Nov 27, 2005 8:16 am Post subject: |
|
|
you should at least specify the languages you want to be kicked. There is noone who will ever write a general script to kick these 50 languages or many we have all over the world.
Not to mention that you need to take care about the input encodig, about what language is supposed to be allowed. some common phrases might be avaible in more than one language. if you want to ban both, you can use them, if you dont, you cant. Not to mention someone might wanted to write an english word like "fine" but only wrote "fin", or he misstyped "were" for "wer" which is again another language . _________________ De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens... |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun Nov 27, 2005 10:45 am Post subject: |
|
|
I guess he meant kicking on none-english fonts not words, but still that's tricky and like demond said it might not be 100% ceratin. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
Posted: Mon Nov 28, 2005 9:14 am Post subject: |
|
|
you cannot kick "fonts" in IRC, because there is no encoding description...
a shift_js byte combination, might be a regular special character in utf-8... unless you enforce an encoding by channel rules, you cannot determine what is what . _________________ De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens... |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Mon Nov 28, 2005 9:02 pm Post subject: |
|
|
Sir_Fz meant non-English characters like é, ü etc etc.
One thing for sure, you'd be there all day trying to figure it out. LOL
English being as flexible as it is (it also uses accented characters) it is impossible for any script to determine what is or is not a certain language.
@ JOE: Your request is impossible as the parameters are too ambiguous. _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Tue Nov 29, 2005 12:44 am Post subject: |
|
|
well, actually I had something similar in mind a while ago, and even did some research on existing language recognition algorithms - however, my idea was to apply fuzzy logic with phonetic and syntax rules on a whole buffer of phrases/sentences, not just one line
eventually I decided it'd be too much time wasted for achieving relatively insignificant goal and passed on the idea _________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Tue Nov 29, 2005 6:37 pm Post subject: |
|
|
| Alchera wrote: | | Sir_Fz meant non-English characters like é, ü etc etc. |
lol yes, I meant characters*** not fonts sorry. Aside from non-english characters used for accents, some people simply like to decorate their text by using strange characters, for example "that" -- laming processing to --> "†hД†"  _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
|