Skip to content

Commit

Permalink
feat: simplify transliteration of multiple vowel sounds
Browse files Browse the repository at this point in the history
close #123
  • Loading branch information
bhajneet committed Feb 18, 2020
1 parent ce8322b commit 0234b2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/toEnglish.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ const finalReplacements = Object.entries( {
nn: 'n',
eeaa: 'eea',
eiaa: 'eaa',
eio: 'eo',
anm: 'am',
[ `ahi${spaceCharsRegex}` ]: 'eh$1',
[ `yhi${spaceCharsRegex}` ]: 'yeh$1',
Expand Down
1 change: 1 addition & 0 deletions test/toEnglish.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const transliterations = [
[ 'ਹਰਿ ਹਰਿ ਹਰਿ ਗੁਨ ਗਾਵਹੁ ॥', 'har har har gun gaavahu |' ],
[ 'ਹੁਕਮੈ ਅੰਦਰਿ. ਸਭੁ ਕੋ; ਬਾਹਰਿ ਹੁਕਮ. ਨ ਕੋਇ ॥', 'hukamai andar. sabh ko; baahar hukam. na koe |' ],
[ 'ਸਹਜ; ਸਸਹਜ ਅਨਹਦ ਰਹਤ ਕਹਤ ਪਹਰ, ਸਹਸ ਮਹਲ ਟਹਲ ਕਹਨਨ ਕਹਨ', 'sehaj; sasahaj anahad rehat kehat pehar, sehas mehal ttehal kahanan kehan' ],
[ 'ਸਭ ਭਇਓ ਪਰਾਇਓ', 'sabh bheo paraaeo' ],
]

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

0 comments on commit 0234b2b

Please sign in to comment.