Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add translit ipa #31

Merged
merged 17 commits into from
Feb 5, 2019
Merged

Add translit ipa #31

merged 17 commits into from
Feb 5, 2019

Conversation

ManjotS
Copy link
Collaborator

@ManjotS ManjotS commented Sep 13, 2018

No description provided.

@coveralls
Copy link

coveralls commented Sep 13, 2018

Pull Request Test Coverage Report for Build 126

  • 36 of 41 (87.8%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.04%) to 92.703%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/translit_modules/ipa.js 35 40 87.5%
Totals Coverage Status
Change from base Build 122: -0.04%
Covered Lines: 196
Relevant Lines: 207

💛 - Coveralls

@tarunsingh5
Copy link
Collaborator

@ManjotS @navdeepsinghkhalsa can we merge & close this out

@ManjotS
Copy link
Collaborator Author

ManjotS commented Jan 25, 2019

@navdeepsinghkhalsa I am confident enough in it (it will need adjustments in the future just as english does)

can we merge?

.eslintignore Outdated Show resolved Hide resolved
@@ -1,7 +1,7 @@
{
"name": "anvaad-js",
"version": "1.0.9",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be done by npm version when releasing

src/translit_modules/ipa.js Outdated Show resolved Hide resolved
src/translit_modules/ipa.js Outdated Show resolved Hide resolved
@navdeepsinghkhalsa
Copy link
Contributor

Could you also please resolve conflicts?

@@ -3,6 +3,9 @@ const translit = require('../translit');
describe('translit', () => {
it('Should return transliteration of Gurmukhi', () => {
expect(JSON.stringify(translit('CMqu ] ijau jwnhu iqau rwKu hir pRB qyirAw ] kyqy gnau AsMK Avgx myirAw ] AsMK Avgx Kqy Pyry inqpRiq sd BUlIAY ] moh mgn ibkrwl mwieAw qau pRswdI GUlIAY ] lUk krq ibkwr ibKVy pRB nyr hU qy nyirAw ] ibnvMiq nwnk dieAw Dwrhu kwiF Bvjl PyirAw ]1]', 'all')))
.toBe(JSON.stringify({ english: 'chha(n)t || jiau jaanahu tiau raakh har prabh teriaa || kete ganau asa(n)kh avagan meriaa || asa(n)kh avagan khate fere nitaprat sadh bhooleeaai || moh magan bikaraal maiaa tau prasaadhee ghooleeaai || look karat bikaar bikhaRe prabh ner hoo te neriaa || binava(n)t naanak dhiaa dhaarahu kaadd bhavajal feriaa ||1||' }));
.toBe(JSON.stringify({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is one test enough?

@tarunsingh5
Copy link
Collaborator

@ManjotS please follow up here

Gauravjeetsingh and others added 2 commits February 5, 2019 05:25
* English updates (#30)

* Added rules for english cleanup, remove extra vowels in specific words
guramukh, gurabani, guradhev, gurasikh, manamukh

* words that start with ooRa like updesh should be updesh not aupdesh

* [WIP] Hindi Translit (#19)

* Initial Commit

* Add better support

* register hindi in translit.js

* Add some more fixes to hindi

* rename to devnagri

* updated to add all characters required

Some still need devnagri equivalent

* Update devnagri.js

* Update devnagri.js

* Update devnagri.js

* Update tests

* remove prettier

* ignore broken tests

* Update LICENSE.md (#32)

* Update package.json

* Adds more tests for translit function; corrects output in comments of code

* Removes changes from .eslintignore and .gitignore
@navdeepsinghkhalsa navdeepsinghkhalsa merged commit d7a6e4e into master Feb 5, 2019
@navdeepsinghkhalsa navdeepsinghkhalsa deleted the add-translit-ipa branch February 5, 2019 13:33
@ManjotS
Copy link
Collaborator Author

ManjotS commented Feb 5, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants