|
Joined: Feb 2005
Posts: 74
Babel fish
|
OP
Babel fish
Joined: Feb 2005
Posts: 74 |
Hey.. I need a script which makes words with lengthening mark.. For example i wrote "Janels" and i need to put it in channel with lengthening mark..
Sorry for english!
[color:red]m[color:blue]IRC[color:green] for EvEr
|
|
|
|
Joined: Feb 2005
Posts: 344
Fjord artisan
|
Fjord artisan
Joined: Feb 2005
Posts: 344 |
be more precies. explain more of what you want
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
What is a lengthening mark?
You write "Janels" You write "Fred" You write "BobThemagicDragon"
Show us what should appear in channel for each one
|
|
|
|
Joined: Aug 2004
Posts: 423
Fjord artisan
|
Fjord artisan
Joined: Aug 2004
Posts: 423 |
do you mean like a acronym type script? and "Janels" is short for somthing else?
EXAMPLE of an acronym LOL = Laugh Out Loud
|
|
|
|
Joined: Feb 2005
Posts: 74
Babel fish
|
OP
Babel fish
Joined: Feb 2005
Posts: 74 |
Okey, other example.. I wrote "Jeska" or something else.. And .. i need that not shows Jeska but Jeshkja .. i need script with INPUT event..
Sorry for english again!
[color:red]m[color:blue]IRC[color:green] for EvEr
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
Is there some standard format to how that is done? Like if you have "ska", it is always "shkja"? If there isn't any standard way this is done, then you would need to supply a list of all words you want changed from one way to another.
I've never heard of "lengthening marks" before and it appears no one else here has either, so you'd need to explain how and why they are used so we can find a way to make a script to do what you need.
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
Well, I looked up some on lengthening marks and I see they have something to do with clarifying pronunciation of words (often vowel sounds).
Like I mentioned above, you'd need to either give us a list of words as you would type them along with how they should be displayed, or else give us a standard method of determining how the lengthening marks are used.
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Feb 2005
Posts: 74
Babel fish
|
OP
Babel fish
Joined: Feb 2005
Posts: 74 |
I don't need word list, i need to translate some letters in word.. "k" will be translate for "kj", "L" will be translate for "Lj"... This code i don't need --> on *:INPUT:#:{ if ($1 == k) { say kj } }
I need something like this:
on *:INPUT:#:{ if ($1 == kakis) { say kakjis } }
... but it isnt that i need.. I need script which translate every word i say...
[color:red]m[color:blue]IRC[color:green] for EvEr
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
on *:INPUT:#:{
if (!$istok(/ $readini($mircini, text, commandchar), $left($1, 1), 32)) && (!$ctrlenter) && (!$inpaste) {
var %text
var %i = $0
while (%i) {
var %text = $+($left($($+($,%i),2),1),$replacexcs($mid($($+($,%i),2),2), [color:blue]k,kj, K,Kj, l,lj, L,Lj[/color] )) %text
dec %i
}
msg $chan %text
haltdef
}
} See the blue section , add what ever ones you need in there. NB: you said k does not become kj, so i assumed the first letter of a word doesnt get done.
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
Nice script. I started working on it, but got called away to work on something at work, so couldn't finish. ![smile smile](/images/graemlins/mirc/smile.gif)
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
Thanks , funny thing is im working in the dark abit, since he doesnt give many examples and there hard to follow "k becomes kj, but if i say k it should not be kj" errrr what?
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
Well, from what I saw with looking up what lengthening marks are for, your script is correct... it should change k to kj only if it not the first letter in a word. The only thing that may be incorrect is that if k is the last letter in a word, it may also not need to be changed to kj. I'm not sure about that, tho.
Invision Support #Invision on irc.irchighway.net
|
|
|
|
|