Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: VB.NET
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.
Posted 11-Jan-13 17:42pm
Edited 11-Jan-13 18:16pm
Sergey Alexandrovich Kryukov at 11-Jan-13 22:50pm
Not clear. Set where. By the way, many fonts support Gujarati, they don't have to be "Gujarati fonts". And not only true type fonts are supported. You do something you do not explain...
Kuthuparakkal at 11-Jan-13 22:57pm
Unclear to answer
jenitshah at 11-Jan-13 23:17pm
OK. Now I have improved the question.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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ī), Kutchi, 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:[^].
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. Smile | :)
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:[^].
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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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:[^].
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?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 381
1 Sergey Alexandrovich Kryukov 245
2 Marcin Kozub 225
3 Praneet Nadkar 217
4 /\jmot 189
0 OriginalGriff 8,284
1 Sergey Alexandrovich Kryukov 7,407
2 DamithSL 5,614
3 Maciej Los 4,989
4 Manas Bhardwaj 4,986

Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 12 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100