pre-7.0.0 Unicode question

Kenji Kojima index at kenjikojima.com
Mon Oct 27 15:10:51 EDT 2014


Richmond,
Sorry, I did not see the title well.

This is for version 6.
put “あいうえお” into fled 1 

on mouseUp
   set the useUnicode to true
   if charToNum(the unicodeText of char 2 of fld 1) is "12356" then
      put unicode (numToChar(12354)) into char 2 of fld 1
   end if
end mouseUp

the characters will be  “ああうえお”

--
Kenji Kojima / 小島健治
http://www.kenjikojima.com/



> On Oct 27, 2014, at 2:30 PM, Richmond <richmondmathewson at gmail.com> wrote:
> 
> On 27/10/14 00:03, Kenji Kojima wrote:
>> Richmond,
>> 
>> I don’t know the character “7637”.
>> But i thought you wanted to write like this.
>> 
>> on mouseUp
>>    if char 2 of fld 1 is numToCodepoint(12356) then
>>       put numToCodepoint(12354) into char 2 of fld 1
>>    end if
>> end mouseUp
>> 
>> the script changes “あいうえお” to “ああうえい”.
>> 
>> --
>> Kenji Kojima / 小島健治
>> http://www.kenjikojima.com/
> 
> Thanks, but my message was titled "pre-7.0.0 Unicode question" so an answer that uses
> post-7.0.0 unicode scripting is useless.
> 
> Richmond.
> 
>> 
>>> On Oct 26, 2014, at 3:45 PM, Richmond <richmondmathewson at gmail.com> wrote:
>>> 
>>> I wonder why this doesn't work:
>>> 
>>> on mouseUp
>>>   set the useUnicode to true
>>>   if char 2 of fld "ff" is numToChar(7637) then
>>>      set the unicodeText of char 2 of fld "ff" to numToChar(100)
>>>   end if
>>> end mouseUp
>>> 
>>> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list