自定义键盘布局无法正常工作 [英] Custom keyboard layout does not work as intended

查看:72
本文介绍了自定义键盘布局无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为一种语言(现在称为LangX)创建一种键盘布局,该语言目前没有标准的键盘布局. LangX基于带有扩展名的阿拉伯字符集.所有字母都有其Unicode定义.这 语言是从右到左书写的.

I'm trying to create a keyboard layout for a language (lets call it LangX) which at the current moment does not have a standard keyboard layout. LangX is based on the Arabic character set with some extensions. All the letters has their Unicode defined. The language is written from right to left.

我尝试使用Microsoft键盘布局生物(MKLC)来创建所需的布局,但是由于Windows或.Net在受支持的官方语言中都没有使用此语言,因此我不得不使用以下方法创建自定义文化(语言环境) C#和我 已在自定义区域性中启用IsRightToLeft属性并将其安装在我的Windows中.我使用这种自定义文化作为键盘布局的基础,并创建了我想要的布局.

I tried to use Microsoft Keyboard Layout Creature (MKLC) to create the layout I was looking for but since nor Windows or .Net have this language among its supported official languages I had to create a custom culture (locale) using C# and  I have enabled the IsRightToLeft property in the custom culture and installed it in my windows. I used this custom culture as the base of my keyboard layout and created the layout I was looking for.

在安装它并在一些文本编辑器中进行测试后,我发现了一些奇怪的行为,特别是在单词上.我的布局将所有字母正确打印到屏幕上,但标记没有从右移到左.它被卡在右侧并打印 阿拉伯语字符,因为它是从左到右的语言.

After installing it and testing in some text editor I found some strange behavior and specially in word. My layout prints all the letters correctly to the screen but the marker does not move from right to left. It is stuck at the right side and prints the Arabic based characters as it was a left to right language.

我们的分析表明,键盘布局向窗口发送了正确的代码,但它缺少一些东西告诉单词(和其他程序),该布局是从右到左基于阿拉伯语的布局,因此应予以相应对待.

Our analysis shows that the keyboard layout sends the correct codes to windows but it is missing something which tell word (and other programs) that this layout is a right to left Arabic based layout and hence should be treated accordingly.

PS!布局在Excel中虽然可以正常工作

PS! The layout works fine in Excel though

我无法找出问题所在.请帮忙.

I have not been able to find out what the problem is. Please help .

推荐答案


这篇关于自定义键盘布局无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆