Multiple byte languages and accelertaor keys

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Multiple byte languages and accelertaor keys

Post by alex.barylski »

I was thinking today, about how in Windows, etc you can use shortcut keys like CTRL+C to copy a selected portion of text...some programs go as far as letting you customize those accelorator keys.

What happens if your using a language like chinese where you do not use a keyboard? How do you custom assign the CTRL and some accelerator key?

I wish I could experiement with other languages as that would help clear alot of this stuff up for me, but unfortunately I am stuck with English :(

Can someone shed some light on this subject for me? :)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Since when does Chinese not use a keyboard?

Everything maps to a virtual key in Windows. When writing code to handle IME and international keyboards, it's relatively the same from what I've been told. There's always a limited number of keys the keyboard has.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

I recall a conversation with AC in which he told me you use something called a pinyin(???) that doesn't sound like a keyboard to me :P

I have no idea what one looks like, but again, going on what I remember reading (either from AC or articles) it's something of a mouse upside down where you spin the wheel??? Or I could have been dreaming about that, who knows :P

Anyways,

If I use HTML accesskey attribute and say assign it something like: accesskey="A" that works in QWERTY keyboards...

But if I translate into chinese (or other language) and the character is accesskey="&6366;&5625;"

Ignoring the fact those entities are likely totally wrong and/or meaningless...those two bytes map to a single virtual keystroke?

So it would be a simple matter of holding the CTRL key and clicking the pinyin character of choice?

basically i can pass that character code as it is converted, same as I would for English?
wei
Forum Contributor
Posts: 140
Joined: Wed Jul 12, 2006 12:18 am

Post by wei »

for Chinese character input there are multiple methods of software based input and most people use the standard US keyboard layout to create these input. The one that is used by many is http://en.wikipedia.org/wiki/Pinyin which is the standardised phonetics for Mandarin (the phonetics are usually denoted using latin characters and accents).

There are many other ways of input, also using the usual US keyboard layout, that are base on character strokes or composition (these are usually used by typists, it is harder to learn but much faster and accurate).

E.g. Input using Pinyin:

Image
Result:
你好吗


I typed "nihaoma" + space, which results in 3 characters, the input method uses statistics to predict the likelihood of phrases.

basically, the accelerator keys on a Chinese/English systems are almost identical
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

Awesome, thanks wei...that really helped :D

Thank again :)
Post Reply