mIRC Home    About    Download    Register    News    Help

Print Thread
grammar #160754 30/09/06 08:35 AM
Joined: Aug 2006
Posts: 24
A
AivarasB Offline OP
Ameglian cow
OP Offline
Ameglian cow
A
Joined: Aug 2006
Posts: 24
I need a script which when I write text he starts to write with the big first letter like this: i write: hello, but my script writes: Hello and I need a script who write after word dot like this: i write hello, script writes: Hello.
p.s sorry for bad english..

Re: grammar #160755 30/09/06 01:13 PM
Joined: Sep 2006
Posts: 12
R
routed Offline
Pikka bird
Offline
Pikka bird
R
Joined: Sep 2006
Posts: 12
Code:
on *:INPUT:*: {
  msg $active $upper($left($1-,1)) $+ $mid($1-,2,$len($1-)) $+ .
  halt
}

Re: grammar #160756 30/09/06 01:21 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
You know... it is always better to learn to type properly rather than use a script to do it for you. Anyhow, here:

Code:
on &*:input:*: {
  msg $target $upper($left($1,1)) $+ $right($1-,-1) $+ .
  halt
}


Just as a note... if you already have a script that halts an on ^*:input:*: event, this will fail... you'd have to include it within that original script.


Invision Support
#Invision on irc.irchighway.net
Re: grammar #160757 30/09/06 10:58 PM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
If he loads this into the first remote (at the start) it should function regardless of what other scripts are present.

on &*:input:*: { if ($islower($1-)) { haltdef | editbox -an $+($upper($left($1,1)),$mid($1-,2)) } }

Unless possably there not accounting for halted events, which is there failure.

Re: grammar #160758 30/09/06 11:17 PM
Joined: Sep 2003
Posts: 261
S
Scorpwanna Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2003
Posts: 261
True Riamus, a person doesn't need a grammer script if they aren't lazy about typing a message properly. smile Though I'm sure a person could script one huge arse crazy coded up script that could do just that. But why bother scripting something like that? frown


We don't just write the scripts, we put them to the test! (ScriptBusters)
Re: grammar #160759 02/10/06 12:53 PM
Joined: Aug 2006
Posts: 24
A
AivarasB Offline OP
Ameglian cow
OP Offline
Ameglian cow
A
Joined: Aug 2006
Posts: 24
coud u edit this script i need when i write symbol: ! or :
script dont write a dot.
Now is:
!ban lol.
it mus to be like this
!ban lol
or smile
Now:
laugh.
must be:
laugh

Re: grammar #160760 02/10/06 01:05 PM
Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
This dude seriously needs the script to be done. :S


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Re: grammar #160761 02/10/06 01:05 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Code:
on &*:input:*: {
  if ($left($1,1) isalpha) {
    msg $target $upper($left($1,1)) $+ $right($1-,-1) $+ .
    halt
  }
}


This will now only convert the text if the first character is a letter.


Invision Support
#Invision on irc.irchighway.net
Re: grammar #160762 02/10/06 07:12 PM
Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
You know looking at all of this i was thinking of making a spell checker like checking the word with google and bringing up result "DID YOU MEAN: WORD" but then if your text is real bad the check is next to impossible.


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Re: grammar #160763 02/10/06 10:06 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
There are spell checkers out there that you could look at to see how they handle it. Most likely, they just warn you that certain words are misspelled, but not give you suggestions for spelling it properly. I'm not sure as I've never used them.


Invision Support
#Invision on irc.irchighway.net
Re: grammar #160764 02/10/06 11:50 PM
Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
That's why I would do a check with googles which is easy sending search data to google and have it return "DID YOU MEAN: xwordhere"

just return the xword otherwise google doesnt return DID YOU MEAN: kind of thing.

but really IRC is for chatting and not for grammar or spelling lessons. Who needs to spell with your brain can understand most unformulated words for example

----------------------------------------
eevn toguhh tihs is not bneig sllepd crrecltoy yuor mnid slitl has the ailbtiy to raed tihs
----------------------------------------


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Re: grammar #160765 03/10/06 01:13 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
You can actually remove vowels in words in English and still read what was written without even being slowed down. The main thing is that the first and last letters cannot be changed. I read an entire paragraph written that way and it was very easy to read.


Invision Support
#Invision on irc.irchighway.net
Re: grammar #160766 03/10/06 02:49 PM
Joined: Jan 2003
Posts: 1,063
D
Doqnach Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
yeah, too bad it's a hoax because it absolutely does not always apply :-P

they just happen to put together a part of text where it's easy to read still... pick any random text from a book or website and do the same thing and you will see it's not as easy as it looks, specially if the words get longer


If it ain't broken, don't fix it!
Re: grammar #160767 03/10/06 07:12 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Fr mny pple, it ds. Sme pple jst hve trble rdng it tht wy, bt mny pple do fne wtht the vwls. It's the sme as if yu spll wrds incrrctly... pple cn uslly stll rd wht yu wrte.

That's just what I wrote below, but I removed the vowels from the text (except the first/last vowel in a word because you can't change the first and last letters). This wasn't something tested ahead of time... I wrote it, then I removed the vowels. That's pretty easy to read, if you ask me. laugh

For many people, it does. Some people just have trouble reading it that way, but many people do fine without the vowels. It's the same as if you spell words incorrectly... people can usually still read what you wrote.


Invision Support
#Invision on irc.irchighway.net