Skip to content

Commit

Permalink
feat: add open yaiya characters (#164)
Browse files Browse the repository at this point in the history
#Minor release

Fixes #135
  • Loading branch information
sarabveer authored Jun 6, 2020
1 parent e2bb085 commit 5452ef2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/toEnglish.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ const transliterationMap = {
Æ: 'kaar',
Í: 'v',
Î: 'y',
î: 'y',
Ï: 'y',
ï: 'y',
Ò: '|',
Ú: ':',
å: 'oankaar',
Expand Down
2 changes: 2 additions & 0 deletions lib/unicodeMappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"†": "੍ਟ",
"˜": "੍ਨ",
"Î": "੍ਯ",
"î": "੍ਯ",
"ç": "੍ਚ",
"œ": "੍ਤ",
"M": "",
Expand Down Expand Up @@ -101,6 +102,7 @@
"]": "",
"Ò": "",
"\\": "",
"ï": "",
"Ç": "",
"¡": "",
"æ": "",
Expand Down
1 change: 1 addition & 0 deletions test/toUnicode.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const words = [
[ 'durlBM eyk Bgvwn nwmh nwnk lbiD´M swDsMig ik®pw pRBM ]35]', 'ਦੁਰਲਭੰ ਏਕ ਭਗਵਾਨ ਨਾਮਹ ਨਾਨਕ ਲਬਧੵਿੰ ਸਾਧਸੰਗਿ ਕ੍ਰਿਪਾ ਪ੍ਰਭੰ ॥੩੫॥' ],
[ 'jyn klw sis sUr nK´qR joiq´M swsM srIr DwrxM ]', 'ਜੇਨ ਕਲਾ ਸਸਿ ਸੂਰ ਨਖੵਤ੍ਰ ਜੋਤੵਿੰ ਸਾਸੰ ਸਰੀਰ ਧਾਰਣੰ ॥' ],
[ 'bis´Mq iriKAM iqAwig mwnµ ]', 'ਬਸੵਿੰਤ ਰਿਖਿਅੰ ਤਿਆਗਿ ਮਾਨੰ ॥' ],
[ 'pRwq Bey inRp bIc sBw, kib sïwm khY ieh BWiq aucwrîo ]', 'ਪ੍ਰਾਤ ਭਏ ਨ੍ਰਿਪ ਬੀਚ ਸਭਾ, ਕਬਿ ਸਯਾਮ ਕਹੈ ਇਹ ਭਾਂਤਿ ਉਚਾਰ੍ਯੋ ॥' ],
]

describe( 'toUnicode()', () => {
Expand Down

0 comments on commit 5452ef2

Please sign in to comment.