Click here to Skip to main content
15,890,527 members
Articles / Web Development / ASP.NET
Tip/Trick

How to Add Hindi Inscript Keyboard Typing Functionality to Your Website

Rate me:
Please Sign up or sign in to vote.
4.20/5 (7 votes)
20 Mar 2015CPOL1 min read 20.1K   742   3   3
A tip to fulfill the requirement of getting the Hindi Inscript Typing on your website without using any external software

Introduction

With the help of this tip, you can add Hindi Inscript keyboard typing to your website without using any external software. Inscript keyboards are used by various government and other organizations in India. You will have to use the scripts provided in the demo attached to this tip. Mostly, Mangal fonts are used in Inscript typing. Mangal fonts are supposed to be Unicode. Aparajita fonts may also be an option.

Using the Code

For accomplishing our goal, first we add jquery minified version 1.7.2 and InscriptKeyBoard.js to our project.

ASP.NET
<script src="script/jquery-1.7.2.min.js"></script>
<script src="script/InscriptKeyBoard.js"></script>

Now, we call our function on JQuery document.ready event.

ASP.NET
   <script type="text/javascript">
    $(document).ready(function () {
        GetInscriptTyping();
    });

</script><script type="text/javascript">
$(document).ready(function () {
        GetInscriptTyping();
    });

</script>

Then, we add a textarea inside the body of the page.

ASP.NET
  <textarea id="txtInscript" style="height: 194px;
width: 1330px;" class="Inscript"></textarea>

A class named Inscript has been added to textarea to get Inscript keyboard to type Hindi. You can use Inscript typing on multiple elements in a Page.You can download the sample attached to this tip. The demo has been created in Visual Studio 2012.

Points of Interest

You can easily switch Hindi to English by pressing the Esc button.

Shift button+Any key to get full word.

Ctrl+Alt for Hindi numbers.

History

If anyone wishes to get a visible keyboard under the textarea, I will be updating the tip very soon. Thanks!

License

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


Written By
Software Developer
United States United States
Passionate for Coding,kind of geek ,creative way of thinking, R&D freak,New Web technologies's admirer,Cappuccino lover that's what simply define me.

Great lines by Steve Jobs that I follow
"Stay Hungry Stay Foolish"

Comments and Discussions

 
Questioncontenteditable divs Pin
Member 117277406-Jun-15 21:00
Member 117277406-Jun-15 21:00 
AnswerRe: contenteditable divs Pin
Amit Singh Baghel21-Jul-15 22:37
Amit Singh Baghel21-Jul-15 22:37 
GeneralMy vote of 5 Pin
Member 1066089120-Mar-15 19:47
Member 1066089120-Mar-15 19:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.