Created
March 9, 2017 13:58
-
-
Save rachitralli/ac772f292942f8f5b317e5fcbef698b0 to your computer and use it in GitHub Desktop.
khw-phonetic.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( function ( $ ) { | |
'use strict'; | |
var khwPhonetic = { | |
id: 'khw-phonetic', | |
name: 'کھوار فونیٹک کیبورڈ', | |
description: 'Phonetic keyboard for Khowar script', | |
date: '2012-04-25', | |
URL: 'http://www.branah.com/khowar', | |
author: 'Rehmat Aziz Khan Chitrali rachitrali@yahoo.com', | |
license: 'GPLv3', | |
version: '1.0', | |
patterns: [ | |
[ '!', '!' ], | |
[ '\\#', '/' ], | |
/* Yeh with hamza above */ [ '\\$', 'ئ' ], | |
[ '\\(', ')' ], | |
[ '\\)', '(' ], | |
[ '\\_" "ّ' ], | |
/* Alef with hamza above */ [ '\\-', 'أ' ], | |
/* Alef with madda above */ [ '\\+', 'آ' ], | |
/* Waw with hamza above */ [ '\\=', 'ؤ' ], | |
[ 'Q', 'ْ' ], | |
[ 'q', 'ق' ], | |
[ 'W', 'ﷺ' ], | |
[ 'w', 'و' ], | |
[ 'E', 'څ' ], | |
[ 'e', 'ع' ], | |
[ 'R', 'ڑ' ], | |
[ 'r', 'ر' ], | |
[ 'T', 'ٹ' ], | |
[ 't', 'ت' ], | |
[ 'Y', '\u0601' ], | |
[ 'y', 'ے' ], | |
[ 'U', '،' ], | |
[ 'u', 'ء' ], | |
[ 'I', 'ٰ' ], | |
[ 'i', 'ی' ], | |
/* Teh marbuta goal */ [ 'O', 'ۃ' ], | |
[ 'o', 'ہ' ], | |
[ 'P', 'ُ' ], | |
[ 'p', 'پ' ], | |
[ '\\{', 'ٰ' ], | |
[ '\\[', ']' ], | |
[ '\\}', 'ٰٰ' ], | |
[ '\\]', '[' ], | |
[ 'A', 'ٓ' ], | |
[ 'a', 'ا' ], | |
[ 'S', 'ص' ], | |
[ 's', 'س' ], | |
[ 'D', 'ڈ' ], | |
[ 'd', 'د' ], | |
[ 'F', 'ݱ' ], | |
[ 'f', 'ف' ], | |
[ 'G', 'غ' ], | |
[ 'g', 'گ' ], | |
[ 'H', 'ح' ], | |
[ 'h', 'ھ' ], | |
[ 'J', 'ض' ], | |
[ 'j', 'ج' ], | |
[ 'K', 'خ' ], | |
[ 'k', 'ک' ], | |
[ 'L', '\u0613' ], | |
[ 'l', 'ل' ], | |
[ ':', ':' ], | |
/* Arabic semicolon */ [ ';', '؛' ], | |
[ '\"', 'ځ' ], | |
[ '\'', 'ٰ' ], | |
[ '\\|', 'ݯ' ], | |
[ '\\', 'ݰ' ], | |
[ '\\~', 'ً' ], | |
[ '\\`', 'ٍ' ], | |
[ 'Z', 'ذ' ], | |
[ 'z', 'ز' ], | |
[ 'X', 'ژ' ], | |
[ 'x', 'ش' ], | |
[ 'C', 'ث' ], | |
[ 'c', 'چ' ], | |
[ 'V', 'ظ' ], | |
[ 'v', 'ط' ], | |
[ 'B', 'ؒ' ], | |
[ 'b', 'ب' ], | |
[ 'N', 'ں' ], | |
[ 'n', 'ن' ], | |
[ 'M', '' ], | |
[ 'm', 'م' ], | |
[ '\\<', 'ِ' ], | |
[ ',', '،' ], | |
[ '\\>', 'َ' ], | |
/* Arabic full stop */ [ '\\.', '۔' ], | |
/* Arabic question mark */ [ '\\?', '؟' ], | |
[ '\\^', 'ݮ' ], | |
[ '\\&', 'ٔ' ], | |
[ '\\*', 'ٌ' ] ] | |
}; | |
$.ime.register( khwPhonetic ); | |
}( jQuery ) ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment