[Gambas-user] (no subject)
Simonart Dominique
simonart.dominique at ...11...
Fri Apr 3 13:53:50 CEST 2009
Hi,
vlahonick vlahonick a écrit :
> thanks to all of you (special thanks to dominique tha solved the previous problem) the project going on :D
> but now another problem appears...
> THE DIFTHONGS and the finishing greek sigma...
> the code below is about the sigma but in greek is one more "ς" tha goes only if a word ENDS with SIGMA (Σ/σ/ς)
>
> IF sInChar = "σ" THEN sRetChar = "s"
>
> so how i can write tha if the last letter in the textbox1.text is "s" that textbox2.text have to write "ς" ???
>
> this is the first problem of the part...
IF sInChar = "yourSigmaHere" THEN
sRetChar = "s"
IF nI=TheLastPositionHere THEN sRetChar = "ç"
ENDIF
>
> and now how i can write that if in the textbox1.text the user writes "ου" it should appear "u" ????
> because is different if the tou letters "ο" and "υ" are the one after other and other if they dont.
> example : ουγκάντα->ugada , πουλημένος->pulimenos | υψηλότατος->ipsolotatos
> so u see tha in ugada and pulimenos example if the two leters (ο,υ) are one after other the pronoced like "u"
> so how i can do that?
> because i already had write :
>
> IF sInChar = "υ" THEN sRetChar = "i"
> IF sInChar = "ο" THEN sRetChar = "o"
>
> so at this moment the program understand them different
>
> example :
>
> if i wrote ουγκάντα program gives oigada but the correct is UGADA
>
> (ugada is how Uganda(the country) is pronaunced in greek)
>
> so now somehow i have to write that if these two letter are together (one after other|ο,υ|) they should give the
> result "u".
> of course doesnt matter if a word stars or ends or if these two letters are in the middle of the word.
> their result is always "u".
>
> ANY HELP???
before to enter in the FOR .. NEXT loop you have to replace
the "ou" group by a one-character wich give "u" in the
Gconverter routine. Do not do that in TextBox1.Text because
the user would not be happy to see his text changed! :)
>
> ty in advance...
>
> VLAHONICK (www.vlahonick.freehost.gr) :D
>
DDominique Simonart
More information about the User
mailing list