mIRC Homepage
Posted By: AivarasB grammar - 30/09/06 08:35 AM
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..
Posted By: routed Re: grammar - 30/09/06 01:13 PM
Code:
on *:INPUT:*: {
  msg $active $upper($left($1-,1)) $+ $mid($1-,2,$len($1-)) $+ .
  halt
}
Posted By: Riamus2 Re: grammar - 30/09/06 01:21 PM
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.
Posted By: DaveC Re: grammar - 30/09/06 10:58 PM
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.
Posted By: Scorpwanna Re: grammar - 30/09/06 11:17 PM
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
Posted By: AivarasB Re: grammar - 02/10/06 12:53 PM
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
Posted By: Lpfix5 Re: grammar - 02/10/06 01:05 PM
This dude seriously needs the script to be done. :S
Posted By: Riamus2 Re: grammar - 02/10/06 01:05 PM
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.
Posted By: Lpfix5 Re: grammar - 02/10/06 07:12 PM
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.
Posted By: Riamus2 Re: grammar - 02/10/06 10:06 PM
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.
Posted By: Lpfix5 Re: grammar - 02/10/06 11:50 PM
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
----------------------------------------
Posted By: Riamus2 Re: grammar - 03/10/06 01:13 PM
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.
Posted By: Doqnach Re: grammar - 03/10/06 02:49 PM
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
Posted By: Riamus2 Re: grammar - 03/10/06 07:12 PM
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.
© mIRC Discussion Forums