foreign languages in the script editor

ron rbarber at yhb.att.ne.jp
Wed Aug 30 20:35:44 EDT 2006


Hi Lars,

This is the one place where I can consistently make rev crash - using 
unicode in the script editor.


I use two approaches for my app using Japanese/Korean/Chinese and they 
work for me.  The first works with menus that don't have any submenus, 
the second approach is for those with submenus so you have to use the 
name.
1. put the menuhistory of me into pWhichItem
   switch pWhichItem
case 1
.....
case 2
.....
etc


2. I unidecode the pWhichItem before trying to switch the case.
put unidecode(pWhichItem,"japanese") into pWhichItem
   switch pWhichItem
   case "検索を保存..."


HTH. Note also Kenji's solution in a previous post.

Ron

On Aug 30, 2006, at 12:35 PM, Lars Brehmer wrote:

> A question for you pros out there.
>
> I couldn't find much on this in the archives, so I have to ask you all 
> now:
>
> Is there a way to use non Roman characters in the script editor?  I 
> have a pop-up menu button that gives two language choices for the 
> program interface language - Estonian and Russian.  All buttons and a 
> few other things have 2 profiles - Estonian and Russian with the 
> labels and text in the appropriate language.  The problem seems to be 
> that when I put the  Russian choices into the menuPick script it 
> doesn't respond. When I switch profiles with the message box, all is 
> well.  Is there a workaround for this?  Another way characterize the 
> menu choices that are in Russian in the button pop-up?
>
> on menuPick pWhichItem
>   switch pWhichItem
>   case "eesti keeles"
>     beep
>     exit menuPick
>     break
>   case "vene keeles"
>     revSetCardProfile "rus"
>     break
>   case "на эстонском языке"  -- could this be called something like 
> "line 1 of the menu items for profile rus" or something along those 
> lines?
>     revSetCardProfile "Master"
>     break
>   case " на русском языке"     --  same as above
>     beep
>     exit menuPick
>     break
>   end switch
> end menuPick
>
> If there is not a known way to do this, anybody have any ideas?  I 
> need to demonstrate this project at the Estonian Ministry for 
> Education and Research in a couple of weeks, so if I sound desperate, 
> I guess I am.  I have tired everything I can think of and I still hope 
> I have the right idea but am making some little mistake I can't see 
> myself.
>
> Cheers,
>
> Lars
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list