international characters in revolution studio?

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
rezmus
Posts: 12
Joined: Fri Apr 04, 2008 11:20 am

international characters in revolution studio?

Post by rezmus » Mon Apr 07, 2008 8:36 am

i tried to search the forum, but haven't found good anwser. my prob is that i can't use international characters in revolution studio (polish one), even after setting the text field font to CE. the key combination i normally use in windows to type polish specific characters, crtl+alt+character or right alt+character simply don't work within revolution studio. maybe i miss something?

rezmus
Posts: 12
Joined: Fri Apr 04, 2008 11:20 am

Post by rezmus » Thu Apr 10, 2008 7:50 am

i can't belive nobody uses revolution products without using their own national characters like german, french, etc. does nobody have this problem with typing in these characters into revolution studio fields? the only thing that crossed my mind to solve it is to manualy transform characters using script when some special key is also pressed, but how to detect that for example ALT key is pressed (ALT+character). coz i don't have probs pasting in polish characters or putting them with numeric keypad (ALT+keycode trick). just i can't find a way to type in polish characters like i always do in any windows aplication (right alt + charater or left crtl + left alt + character). maybe revolution blocks this combinations some reason?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Thu Apr 10, 2008 9:37 am

Hi Rezmus,

A script like

set the textFont to CE

won't work, but you probably noticed that already. What have you tried so far to make this work, with regard to both your operating system and Revolution itself?

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

rezmus
Posts: 12
Joined: Fri Apr 04, 2008 11:20 am

Post by rezmus » Sat Apr 12, 2008 11:05 am

tx for replay mark,

i tried to make it work on several windows machines without results, the key combination that i usualy use for typing polish diacritical and umlaut characters simply doesn't work in rev studio. the only solution that crossed my mind is to manualy change charcters when typing under some special conditions (like alt pressed) but don't know how to do it. when i use numtochar(xxxx) after setting unicode to true i can get polish character (xxxx is unicode number of character).

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Sat Apr 12, 2008 11:18 am

Hi Rezmus,

It is not clear whether all settings are correct. Have you tried to make sure that the Polish keyboard/input method is selected when you enter text in a Rev field? If so, is there anything else that you have already tried? If not, could you try now and tell me the result?

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

rezmus
Posts: 12
Joined: Fri Apr 04, 2008 11:20 am

Post by rezmus » Sun Apr 13, 2008 3:44 pm

tx for the tip mark!

following what u said i've turned language bar on and saw that when i start revolution language and keyboard is switched from PL to EN... i've set some key combination to switch between them, and now i can turn PL on after revolution is running. one key combination that we use to type polish character doesn't work, but 2nd works (right alt+character). now, is there a way to do it automaticly when rev program starts? some script to switch language within revolution?

rezmus
Posts: 12
Joined: Fri Apr 04, 2008 11:20 am

Post by rezmus » Mon Apr 14, 2008 12:13 pm

yep mark, i definitly need the way to switch this language within rev studio, coz i have to use this 'switch EN -> PL' key combination on every field. when i leave that field language back to EN, so i need to switch on every visit... which makes it useless. so need to find a way to do it by rev itself ;)

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel » Mon Apr 14, 2008 5:20 pm

By default, Revolution assumes you're writing text in English. You could try setting the font and language of each field to something like Arial and 'pl'.

Code: Select all

set the textFont of field 1 to "Arial,pl"
Hope this helped,

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

rezmus
Posts: 12
Joined: Fri Apr 04, 2008 11:20 am

Post by rezmus » Tue Apr 15, 2008 9:12 am

tx for the tip jan, already triend that but doesn't work. font changes, but language remains EN.

finaly it works :) tx guys :)

channed it to set font ",Polish" and now works ;)

now i just need to handle mysql database charset conversion... coz when i set textfont property to ,Polish i get garbage from mysql database even on english and numeric characters... do i have to make some special conversion before it works? without ,Polish in textfont property data is displayed ok. any solution?

Post Reply