Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: WindowsVB.NET
Hi I am not sure whether this is a crazy question or not but .......
 

This is my question I am creating a transliteration software which automatically converts English to Malayalam only I have to type the Malayalam word in english pronunciation
 
eg. to get അങ്ങനെ I have to type it in english pronunciation as angane
 
As I type it in a text field in a website it would be automatically converted into corresponding malayalam with the usage of many compound statements and over 300 rulings .
 

Now I was successful in writing its javascript as regular expressions are much easier in it. But I am a newbie to VB.net So is there any way in which I can create RTF which acts upon the rulings on these JS.
What I mean is I need a RTF in which as I type automatically Malayalam would come.
Posted 27-Jun-12 1:49am
Edited 3-Feb-13 4:43am
v3
Comments
ryanb31 at 27-Jun-12 8:16am
   
EDIT: removed crazy slashes for better readability.
Sergey Alexandrovich Kryukov at 27-Jun-12 13:00pm
   
"type in English pronunciation"... Why not pronounce in English spelling? :-) --SA
Member 8620581 at 3-Feb-13 10:40am
   
bcoz for some people their mother tongue is more valuable :):)
Sergey Alexandrovich Kryukov at 3-Feb-13 13:10pm
   
You did not get my irony... Why not using Malayalam in all its feature: keyboard, language, spelling, without transliteration and any participation of English?! —SA
Member 8620581 at 24-Feb-13 11:58am
   
In english we have only 26 leeters to worry about on building a keyboard in simplified malayalam it's more than 100 ....
Sergey Alexandrovich Kryukov at 24-Feb-13 12:48pm
   
Thank you. Now it I'm getting to understand the problem. Are there standard Malayalam keyboard layouts bases on Western keyboards? Standard mark-ups on keys (I would not say it totally impossible)? Is the software supporting Malayalam input a common place? More then 100 characters presents a solvable problem I think, but isn't it already solved? I am using the alphabet with 33 letters (66 with upper cases) and some 4 extra punctuation characters which is already more then a keyboard can hold, so key combinations can be used, and I also had to solve this problem by myself but by a specific problem: Windows supply only one layout which is not convenience to my and many other people. Linux, for example, offers a number of acceptable variants. With more letters, of course, the approach should be somewhat different. —SA —SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Thank you for clarification of the problem. Sorry I am not familiar if the traditional methods of Malayalam input exist and what are they. Please see my comment to the question.
 
So, I can only explain how the problem looks from the technical point of view, as if no input method existed and you had a problem of creating some.
 
Of course, to provide a comprehensive input method, you need to augment the whole system, not separate application. Imagine what happens if different applications provide somewhat different input methods (I am afraid if you are already familiar with such messy situation).
 
Usually, Windows provides a special input method for the input languages with too many characters. It can be a virtual keyboard and some system of keyboard combination.
 
When you setup additional keyboard for additional culture, you can setup a switch (using special key combination or taskbar) used to switch keyboard input language. You can define keyboard layout for some culture by yourself. To do so, you can download Microsoft Keyboard Layout Creator:
http://msdn.microsoft.com/en-us/goglobal/bb964665.aspx[^].
 
You can actually define many more then 100 characters in one keyboard layout. One approach is using dead key characters. In this approach, one characters is entered used either by one of two keys. With one key, it's done as usual. Say, a single hit on a key 'z' is entered as one single Malayalam character. But you can also define one or more keys as dead key. For example, I use apostrophe key as a dead key, but you will need several dead keys. In English keyboard layout, all the characters are as US English (or whatever you choose), but in other layout, I type apostrophe, and nothing is entered; I need to hit one more character, so 'z or '= combinations give me a single extra character each. To enter apostrophe itself, I can hit '' or "' " (apostrophe followed by blank space). In principle, having several dead keys, you can leave existing Western punctuation characters on there places and leave the way to enter them, and still define many more extra characters. Of course, you don't need any English letter characters in your layout, because you can also switch between layouts.
 
When you create your layout, you can "compile" it. It will create installation directories (for different processor instruction-set architectures) with one common setup.exe, so the appropriate DLLs will be installed and register will be modified accordingly for your current system.
 
As to the virtual keyboards, this is also a doable input method. Please see my past answers:
Application focus getting and losing[^],
Programming on BACKSPACE button[^],
Creating a Virtual Keyboard[^],
Application focus getting and losing[^],
A software Virtual Keyboard for your WPF apps[^].
 
[EDIT]
 
I do understand that you are doing a different thing. I am trying to convince you that it's most important to solve the problem on the OS level, in a unified way.
 
However, in a Web application, the appropriate solution can be the on-line virtual keyboard. (not transliteration; but again, I am unfamiliar with the tradition, see my comments again.)
 
This is also quite doable. The best quality of the virtual on-line keyboard I ever saw is delivered here: http://winrus.com/index_en.htm[^].
 
As all the on-line solutions are in JavaScript, you can simply learn those scripts. But you can also write to the author, Paul Gorodyansky. He promised to send the full keyboard implementation to interested people. And you can learn how it works and modify the code to support Malayalam or anything else.
 
—SA
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

As I know every ASP content have a event called OnClientClick. You can invoke your javascript functions on this event. See below:
 
 
<asp:textarea id="TextArea1" xmlns:asp="#unknown">
       text="Open Web site"
       onclientclick="YourJSFunc()"
       runat=Server />
</asp:textarea>
  Permalink  
Comments
Member 8620581 at 30-Jun-12 11:04am
   
Sorry but not web based application VB.net
Member 8620581 at 3-Feb-13 10:42am
   
Thanks but I am doing this in VB.net 2010 not asp or is it possible if I create a custom WPF control

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Guruprasad.K.Basavaraju 490
1 Sergey Alexandrovich Kryukov 316
2 Shai Vashdi 264
3 OriginalGriff 250
4 praveen_07 115
0 Sergey Alexandrovich Kryukov 9,185
1 OriginalGriff 5,315
2 Peter Leow 4,040
3 Maciej Los 3,535
4 Abhinav S 3,308


Advertise | Privacy | Mobile
Web04 | 2.8.140415.2 | Last Updated 24 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid