I'm building an Urdu language website which, let's say, is similar to a blogging website. I want to enforce users to make posts in no language other than Urdu.
One solution I have in my mind is to manually capture each key pressed in Javascript and display its alternate in Urdu in the textbox. Something like this:
'A'-> 'ا' , 'B' -> 'ب'
I dont find it an efficient solution at all and would like to know if there is some sort of plug-in that I could use that sets the input language of a textbox? Or even if I must write a code of my own, do you have a solution other than one above?