LiveCode 7 codepoint question
dsc at swcp.com
Sat Apr 19 00:57:09 CEST 2014
I just quickly added a Japanese keyboard option to my OS X keyboard menu. I selected to Katakana keyboard and typed in DO in a LiveCode field. It was one codepoint and one character. I don’t know how to type the voicing mark separately.
On Apr 18, 2014, at 4:42 PM, Dar Scott <dsc at swcp.com> wrote:
> Oh, no, not at all. You can type in Japanese. Well, I’m pretty sure.
> My daughter does it all the time in other applications. She types in romaji (western letters). I think that gets combined to katakana (phonetic) and then she can choose one of may choices of Kanji (Chinese looking). Something like that.
> I don’t have a Japanese keyboard enabled on my computer, so I didn’t bother.
> The reason for the script was to illustrate that the Katakana DO can be written as to basic symbols, the TO plus a voicing mark. Notice the sounds are similar; one is unvoiced and one is voiced. The TO and the voicing mark are two code points in LiveCode, but one character in LiveCode. I wanted to make sure I got exactly those code points, so I could show that a string with two code points can contain one character.
> Notice that in Unicode the combining mark comes after the character it combines with.
> Now, I can type in Japanese in a crude way because I usually use the U+ keyboard on OS X. I hold down option and type in the hex code.
> So… ト ド
> That would not be the way for someone entering Japanese text to do it. But, for a Unicode learner like me, it works.
> On Apr 18, 2014, at 4:27 PM, Alejandro Tejada <capellan2000 at gmail.com> wrote:
>> Dar Scott wrote
>>> put numToCodepoint( 0x30C8 ) into kto
>>> put numToCodepoint( 0x30C9 ) into kdo
>>> put numToCodepoint( 0x3099 ) into kVoiceMark
>>> put numToCodepoint( 0xFF9E ) into kHalfVoiceMark
>>> put kto & kVoiceMark into kdoAlt1
>>> put length(kdoAlt1) into kdoAlt1N
>>> put kto & kHalfVoiceMark into kdoAlt2
>>> put length(kdoAlt2) into kdoAlt2N
>>> put kto & tab & kdo & tab & kdoAlt1 & tab & kdoAlt1N & tab & kdoAlt2 &
>>> tab & kdoAlt2N
>> Does this means that the only way to write Japanese
>> in a field is using a script (or pasting the characters
>> from the clipboard)?
>> View this message in context: http://runtime-revolution.278305.n4.nabble.com/LiveCode-7-codepoint-question-tp4678428p4678438.html
>> Sent from the Revolution - User mailing list archive at Nabble.com.
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode