Asian Characters Chinese, Korean

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
scotttyang
Posts: 125
Joined: Sat Jan 31, 2009 12:01 am

Asian Characters Chinese, Korean

Post by scotttyang » Mon Sep 24, 2012 1:24 am

I guess it just occurred to me, I just can't do a

put line 1 of fld "asiancharacters" into fld "container"

I really just need to put a line with eg. Korean Characters and put it into another field. I can copy korean characters into a field from, eg. Microsoft Word or from Macs TextEdit app, but moving between fields, I am stuck...

any easy solutions?
Scott

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10330
Joined: Wed May 06, 2009 2:28 pm

Re: Asian Characters Chinese, Korean

Post by dunbarx » Mon Sep 24, 2012 4:03 am

I am no expert on this, but can't you use the unicodeText?

set the unicodeText of fld "yourField" to the unicodeText of fld "yourOtherField"

Craig Newman

scotttyang
Posts: 125
Joined: Sat Jan 31, 2009 12:01 am

Re: Asian Characters Chinese, Korean, Unicode

Post by scotttyang » Mon Sep 24, 2012 5:45 am

That actually worked pretty well! each line has three item with itemdelimiter to tab. I was able to isolate the 2 Korean characters to a separate field on a separate line.

woman 여 자 yuh-ja

on mousedown
set the itemdelimiter to tab
set the unicodetext of line 1 of field "def" to the unicodetext item 2 of line 1 of fld scrollfield
end mousedown

results in

여 자


thanks! I'm sure someone find it useful

Post Reply