The Daily Click ::. Forums ::. Klik Coding Help ::. Edit object > Advanced Conditions help
 

Post Reply  Post Oekaki 
 

Posted By Message

Weston L



Registered
  16/12/2002
Points
  1603
9th November, 2003 at 20:51:12 -

For MMF or TGF, I need help...

I want to make a program that will translate a whole sentences (but one word at a time) to another language. In order to do this I would need some kind of special condition for an Edit Object, getting one word at a time and then converting to another language and adding it to the second Edit Object. Is there any way of doing this?

 
n/a

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
9th November, 2003 at 21:01:47 -

Hell no. That is to say yes, it's possible, you just have to loop and look for spaces, but you really wouldn't want to do it in a klik product. They aren't friendly to string manipulation.

Anyway, what are you going to do about syntax in different languages? Unless of course you're using an imaginary language...
Anyway, if I were doing it, I'd write something simple in BASIC and use the MMF BASIC extension, rather than sweating over it in klik. The problem you have is storing the words for conversion, although you could equate them manually in an INI, I suppose.

 
n/a

ShadowCaster

Possibly Insane

Registered
  02/01/2002
Points
  2203
9th November, 2003 at 21:51:52 -

As Radix said, it's possible in TGF/MMF out-of-the-box, but it requires a bit of work.

I'm pretty sure the String Parser object (from 3EE) can get words seperated by tokens (i.e. a space, newline, etc), you might like to try that. It's downloadable from their website, or from the Clickteam website.

Mike ¿

 
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert

Shen

Possibly Insane

Registered
  14/05/2002
Points
  3497
10th November, 2003 at 01:41:48 -

String Parser object can delimit, from 3EE.

 
gone fishin'

Daniel[Crazy_Productions]

Possibly Insane

Registered
  29/12/2002
Points
  2505
11th November, 2003 at 00:38:11 -

and its good at it too

 
Beware of life ...so far noone have survived it.......

Weston L



Registered
  16/12/2002
Points
  1603
11th November, 2003 at 01:07:48 -

Ok, the structure of the language wont really matter, I'm not that picky about it, but your right, that would be a problem.

I will look into the String Parser object. Thanks.

 
n/a

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
11th November, 2003 at 08:53:26 -

Dictionary object will also be useful, if only because it comes with a massive premade list of real english words. You can write the foreign ones yourself.

 
191 / 9999 * 7 + 191 * 7

Weston L



Registered
  16/12/2002
Points
  1603
11th November, 2003 at 17:28:14 -

Whoa, crazy. I've never heard of a dictionary object.

 
n/a

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
11th November, 2003 at 23:14:21 -

Actually it wouldn't be that hard, the hard part would be typing in all the words and thier translations! -_-'! Go to tig's website and look on his example of string parsing, also look for his example on script making. Those both use string parsing and they can recognize letters/words.

-Andy

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
11th November, 2003 at 23:14:42 -

Actually it wouldn't be that hard, the hard part would be typing in all the words and thier translations! -_-'! Go to tig's website and look on his example of string parsing, also look for his example on script making. Those both use string parsing and they can recognize letters/words.

Btw Weston L - Nice avatar.

-Andy

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Weston L



Registered
  16/12/2002
Points
  1603
11th November, 2003 at 23:29:09 -

Thanks Andy, yours is good as well

 
n/a
   

Post Reply



 



Advertisement

Worth A Click