如何使区域语言的输入过程更容易? [英] How to make input process easier in regional language?

查看:40
本文介绍了如何使区域语言的输入过程更容易?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

VB.NET Windows窗体应用程序中的问题。



问题:



古吉拉特语或任何其他地区语言输入字符的复杂程度。



我尝试过什么



尝试为文本框选择SARAL FONTS,但它说只支持True Type字体。然而,它支持除了输入之外的控件,例如标签。



我可以使用哪种字体轻松输入字符或任何其他具有区域语言输入功能的支持应用程序?



谢谢。

Problem In VB.NET Windows Form Application.

Problem :

Complexity in input characters in Gujarati or any other regional language.

What I have Tried

Tried to select "SARAL FONTS" for Text boxes, but It says "Only True Type Fonts are supported." However It is supported for controls other then input e.g. Labels.

Which fonts I can use to input characters easily OR any other supporting application which is having functionality of easier input in regional languages?

Thank you.

推荐答案

有两个不相关的问题:呈现某些Unicode子集的某些字符,并使用键盘。



让我们从子集及其演示开始。让我们来看看。维基百科告诉我们,古吉拉特语是Brāhmī家族的独立剧本,即相对于Devanāgarī的写作系统,并在几个语言,如古吉拉特语,古吉拉特语,梵语(我只记得在Devanāgarī写有梵语的变体),Kutchi,Avestan,Kutchi和Avestan。这个术语用于语言和书写系统,但不用于字母表,因为这个书写系统是 abugida ,一个分段系统。但对我们来说重要的是,它还指定了分配给该系统的Unicode子集:

http:/ /en.wikipedia.org/wiki/Gujarati_script#Unicode [ ^ ]。



让我们看看是否可以快速输入一些字符,如果我们能看到它们:અઆઇઈઉઊઋઍએઐઑઓઔકખગઘ... 0123456789。我们能看到正确的字符字形吗?我从来没有在我的电脑上安装任何与印度语言有关的东西,因为坦率地说,我无法理解其中任何一个字(不幸的是,我的坏),但我天真地相信如果我能打字并看到它们,你就可以也这样做。 :-)



当我发布这个答案时我终于看到了。



现在,怎么样我能看到什么需要支持这个写作系统的渲染。简单。我通常使用所有版本的Windows运行此应用程序包:charmap.exe(字符映射)。我用字符集:Unicode; 分组依据:Unicode子范围。当然我希望将Gujarati作为一个单独的子范围:我已经知道这个脚本非常流行,几乎所有现代操作系统都默认支持它。



In相同的应用程序,你可以看到哪些字体支持什么。与Windows捆绑在一起的标准字体。顺便说一下,我正在查看不是True Type的字体。这是OpenType:

http://en.wikipedia.org/wiki/OpenType [ ^ ]。



现在,我需要解释如何以方便的方式输入。但首先,我想看看字体是如何呈现的。所以,让我发布并看看。用键盘打字怎么样?稍后。



-SA
There are two unrelated problems: presentation of some characters of some Unicode subset, and typing those characters using the keyboard.

Let's start from the subset and its presentation. Let's see. Wikipedia tells us that Gujarati is a separate script of Brāhmī family, that is, a writing system, relative to Devanāgarī, and is used in several languages, such as Gujarati, Gujarati, Sanskrit (I just remember that there is a variant of Sanskrit written in Devanāgarī), Kutc Avestan, Kutchi and Avestan. This term is used for both language and a writing system, but not the alphabet, because this writing system is the abugida, a segmental system. But what's important to us, it also specifies the Unicode subset assigned to this system:
http://en.wikipedia.org/wiki/Gujarati_script#Unicode[^].

Let us see if I can quickly type some characters and if we can see them: "અઆઇઈઉઊઋઍએઐઑઓઔકખગઘ … ૦૧૨૩૪૫૬૭૮૯". Can we see the proper character glyph? I never installed anything related to any Indian languages on my computer, as I, quite frankly, cannot understand a word in any of them (unfortunately, my bad), but I quite naively believe that if I can type and see them, you can do it, too. :-)

I'll finally see it when I post this answer.

Now, how can I see what need to support the rendering of this writing system. Simple. I usually run this application bundles with all versions of Windows: charmap.exe (Character Map). I use "Character set: Unicode"; "Group by: Unicode subrange". Of course I expected to find Gujarati as a separate subrange: I already knew that this script is so popular that it is supported by default on nearly all modern OS.

In the same application, you can see which font supports what. A standard font bundled with Windows. By the way, I'm looking at the font which is not True Type. This is OpenType:
http://en.wikipedia.org/wiki/OpenType[^].

Now, I need to explain how to type if in a convenient way. But first, I want to see how the font is rendered. So, let me post it and see. How about typing using the keyboard? Later.

—SA


好吧,当然,Gujarati完美渲染。我没有指定字体,你可以使用CodeProject使用的默认字体来查看它的默认字体文本消息。无论如何,如果我能做到,你也可以做到。



现在,让我们看看如何以方便的方式输入它。通常,您转到控制面板小程序并选择区域和语言,然后选择键盘和语言选项卡,然后选择更改键盘按钮,然后选择添加按钮(可能因系统而异,我显示它适用于Windows 7)。不出意外的是,我找到了古吉拉特语(印度)。请注意,我正在使用英语(美国)语言环境的标准Windows 7。其中没有特别的印度人。



再次,我天真地假设,如果我可以在安装为英语(美国)的Windows上执行此操作,则可以执行此操作无论如何。



现在,问题是:这种方式安装的键盘布局,可能方便一个或另一类古吉拉特语的扬声器。我不知道,但我知道缺少一些重要的布局。



现在 - 鼓! - 终极解决方案



下载此应用程序:Microsoft Keyboard Layout Creator。这里:

http://msdn.microsoft.com/en-us/ goglobal / bb964665.aspx [ ^ ]。



运行它。你会看到键盘。在每个键上,放置您想要的字符。使用[主菜单] - >项目 - >构建DLL和安装程序包。它将创建一些MSI文件和setup.exe。安装它。现在,奇迹发生了:你会发现完全安装的替代键盘布局,古吉拉特语或其他任何东西。返回控制面板(如上所述),定义布局的切换方式。你完成了。正如我所说,最终的解决方案。



印度是一个拥有古老文化的美好国家,我对此深表敬意,并且有许多不同的文化和语言;对不起,我从来没有去过那里。



但与印度有关的最神秘的经历是许多印度软件开发人员,他们一直在问我如何使用一个或者另一种印度语是电脑上的。他们一次又一次地问我;我一直都知道怎么做。不幸的是,我已经学到了许多关于许多语言的事实,但仍然没有理解语言本身。但来自印度的CodeProject成员一直在问这些问题。怎么了?



-SA
OK, of course, Gujarati rendered perfectly. And I did not specify the font, you can see it using the default font utilized by CodeProject for the default font of text messages. Anyway, if I can do it, you can do it too.

Now, let's see how to type it in a convenient way. Usually, you go to the Control Panel applet and choose "Region and Languages", then the tab "Keyboard and Languages", then the button "Change Keyboard", then the button "Add" (may vary depending on the system, I show it for Windows 7). Not to big surprise, I found "Gujarati (India)". Mind you, I am using standard Windows 7 of the locale "English (US)". Nothing specifically Indian in it.

Again, I naively assume, that if I can do it on my Windows installed as "English (US)", you can do it anyway.

Now, the problem is: the keyboard layout installed this way, may be convenient for one or another category of Gujarati speakers or not. I don't know, but I know that some important layouts are missing.

And now — drums! — the ultimate solution:

Download this application: Microsoft Keyboard Layout Creator. Here:
http://msdn.microsoft.com/en-us/goglobal/bb964665.aspx[^].

Run it. You will see the keyboard. On each key, put the characters you want. Use [Main Menu] -> Project -> Build DLL and Setup Package. It will create some MSI files and "setup.exe". Install it. Now, miracles happen: you will find fully installed alternative keyboard layout, with Gujarati or anything else. Go back to Control Panel (described above), define how layout are switched. You are done. As I say, the ultimate solution.

India is a wonderful country with ancient culture which I deeply respect and very many different cultures and languages; I am sorry that I've never been there.

But the most mysteries experience related to India is many Indian software developers, who keep asking me how to use one or another Indian language on there computers. They ask me again and again; and I always know how to do it. I already learned so many facts about many of the languages, unfortunately, still without understanding the languages themselves. But CodeProject members from India keep asking those questions. What's wrong?

—SA


编码encoding = Encoding.GetEncoding(737); //(DOS)希腊语代码页

byte [] codePageValues = System.IO.File.ReadAllBytes(@greek.txt);



//相同内容现在编码为UTF-16

string unicodeValues = encoding.GetString(codePageValues);





Debug.Log(unicodeValues);



char euro ='\ u0AE7';

string test =અઆઇઈઉઊઋઍએઐઔકખગ;
Encoding encoding = Encoding.GetEncoding(737); //(DOS) Greek code page
byte[] codePageValues = System.IO.File.ReadAllBytes(@"greek.txt");

// Same content is now encoded as UTF-16
string unicodeValues = encoding.GetString(codePageValues);


Debug.Log(unicodeValues);

char euro = '\u0AE7';
string test = "અઆઇઈઉઊઋઍએઐઔકખગ";


这篇关于如何使区域语言的输入过程更容易?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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