LiveCode 7 codepoint question
Dar Scott
dsc at swcp.com
Fri Apr 18 18:57:09 EDT 2014
Al,
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.
Dar
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.
>
> Dar
>
>
>
>
> On Apr 18, 2014, at 4:27 PM, Alejandro Tejada <capellan2000 at gmail.com> wrote:
>
>> Dar Scott wrote
>>> [snip]
>>> 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
>>> [snip]
>>
>> Does this means that the only way to write Japanese
>> in a field is using a script (or pasting the characters
>> from the clipboard)?
>>
>> Al
>>
>>
>>
>> --
>> 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:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> 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