Skip to content

This javascript module is used to help web developers apply the functionality of typing Dari/Persian language without any need to change the system language.

Notifications You must be signed in to change notification settings

walid-mashal/Auto-Type-Dari-Persian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Type Dari/Persian

This javascript module is used to help web developers apply the functionality of typing Dari/Persian language without any need to change the system language.

To Use:

<input lang="dr" type="text"/>

<textarea lang="dr"></textarea>

<div contenteditable="true" lang="dr"></div>

and add a reference in your html file to the TypeDariPersian.js

<script type="text/javascript" src="path/to/folder/TypeDariPersian.js"></script>

For this module to work perfectly the input/textarea element needs to have an attribute of lang="dr".

This module will itself make the input box's text align right to left so that it is shown properly in the input box.

Demo:

Keyboard Structure

This module assumes that the keyboard structure of your computer is as of the following image.

keyboard layout

About

This javascript module is used to help web developers apply the functionality of typing Dari/Persian language without any need to change the system language.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published