Text Font problem - Turkish letters aren't displayed?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
maguzel
Posts: 1
Joined: Mon May 05, 2014 7:34 pm

Text Font problem - Turkish letters aren't displayed?

Post by maguzel » Mon May 05, 2014 8:35 pm

Text Character Problems in my Script
Postby maguzel » May 5th, '14, 22:54

Hi all,

I am conducting a psych experiment and wish to present some words on the screen (which are needed to flash for 4 sec with 1 sec inter-stimulus interval).
All works fine with my scripts however the words are in Turkish (therefore, there exist some letters like ç, ğ, ı, ö, ş, ü) in my .cvs file. The words are paired shown on fields Test1 and Test2 with a dash in between (e.g., KAĞIT - KOYUN). However, I reckon due to the script I have, the program displays them weirdly such as changing those Turkish letters to some weird symbols. When I open the .cvs file, I can see the words correctly (I mean with Turkish letters). However, the displaying of them is not so! On application browser, I selected the necessary card and on the right side of the dialog I changed the properties of these fields (Test1 and Test2) to such as Arial TUR, Segoe UI etc. but it didn't help. Could anyone help me setting the textFont of these fields proper to Turkish letters?


My script is as below:

lobal gOrderCondition, gUserPath, gPartNumber
Local sWords, sTotalLines, tLine

on preopencard
hide field "Test1"
hide field "Test2"
hide field "dash"
end preopencard

on opencard
wait 1 seconds
PresentationStart
wait 4 seconds
PresentationNext
end opencard

on PresentationStart

put systemGetBasePath() & "Trial3" & ".csv" into gUserPath

put URL ("file:" & gUserPath) into sWords
sort lines of sWords by random(the number of lines of sWords)
put 1 into sTotalLines
PresentationPop
show field "Test1"
show field "Test2"
show field "dash"

end PresentationStart

on PresentationPop
put line sTotalLines of sWords into tLine
put item 1 of tLine into field "Test1"
put item 2 of tLine into field "Test2"
end PresentationPop

on PresentationNext
hide field "Test1"
hide field "Test2"
hide field "dash"
add 1 to sTotalLines
PresentationPop
if tLine is empty then
go to next card
else
wait 1 seconds
show field "Test1"
show field "Test2"
show field "dash"
wait 4 seconds
PresentationNext
end if
end PresentationNext

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Text Font problem - Turkish letters aren't displayed?

Post by Simon » Mon May 05, 2014 11:07 pm

Hi maguzel,
Welcome to the forum!

liveCode 7 has(will have) full unicode support which I hope will allow you just to use your csv file to import text.

If you are using a version of liveCode earlier than 7 here is the lesson on unicode
http://lessons.runrev.com/s/lessons/m/4 ... 41-unicode

I'd very much like to know if ver. 7 unicode works as easy as I hope so please write back if you are successful.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply