/yauk

Yet Another Urdu Keyboard - A jQuery plugin for typing in Urdu with an English keyboard.

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Yet Another Urdu Keyboard

A jQuery plugin for typing in Urdu using an English keyboard.

There are too many controls out there which convert English to Urdu.
Some of them are phonetic, some not.
Some are open-source, some not.
Some have keys that you can press, some don't.
Some work on mobile phones, some don't.
I couldn't find one with all the features so I made one.

This is a phonetic open-source mobile enabled jQuery plugin which enables typing in Urdu using an English keyboard.

Instructions to use

  • Download/clone this repository and get yauk.min.js or yauk.js
  • Place it in your assets and include it with<script src="path/to/yauk.min.js"></script> after including jQuery
  • Set Urdu input for the input field or textarea with an id e.g.
     $('#q').setUrduInput();
  • By default numerals are English. For urdu, pass urduNumerals: true in options
     $('#q').setUrduInput({urduNumerals: true});

The keyboard mapping is given in the file kb.png

A demo can be seen here as well as on urduthesaurus.com

Yes, this is a quick hack. Yes, it has bugs. It may not work perfectly. Please contribute: I accept pull requests.