Skip to content

Added Perso Arabic and Khudabadi Sindhi keyboards - #862

Open
Siddharth-Talreja wants to merge 8 commits into
wikimedia:masterfrom
Siddharth-Talreja:master
Open

Added Perso Arabic and Khudabadi Sindhi keyboards#862
Siddharth-Talreja wants to merge 8 commits into
wikimedia:masterfrom
Siddharth-Talreja:master

Conversation

@Siddharth-Talreja

Copy link
Copy Markdown

This is connection to Phabricator Task https://phabricator.wikimedia.org/T428126

While, the task is only for Khudabadi script, I have also added perso arabic keyboard as it was missing

@srish srish left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks a lot @Siddharth-Talreja for this PR! I've left suggestions for minor code changes inline. The main thing is that we are missing test cases for the two layouts in jquery.ime.test.fixtures.js and registration of the layouts in jquery.ime.inputmethods.js.

Comment thread rules/sd/sd-sind-inscript.js Outdated
Comment thread rules/sd/sd-sind-inscript.js Outdated
Comment thread rules/sd/sd-sind-inscript.js Outdated
Comment thread rules/sd/sd-persoarabic.js Outdated
[ 's', 'س' ],
[ 'D', 'ڊ' ],
[ 'd', 'د' ],
[ 'F', 'ڦ' ],

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

[ 'P', 'ڦ' ] (L57) and [ 'F', 'ڦ' ] (L71) are the only duplicated output in the layout, while lowercase p→پ and f→ف are distinct.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This is based on the standard layout and duplicacies are also maintained as per the standard layout being used

Comment thread rules/sd/sd-sind-inscript.js Outdated
Comment thread rules/sd/sd-persoarabic.js Outdated
Comment thread rules/sd/sd-persoarabic.js Outdated
Comment thread rules/sd/sd-persoarabic.js Outdated
Comment thread rules/sd/sd-persoarabic.js Outdated

@srish srish left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@Siddharth-Talreja Thanks for making the suggested changes. I've left two more comments inline. Most importantly we need to add test cases for the two layouts in jquery.ime.test.fixtures.js and registration of the layouts in jquery.ime.inputmethods.js.

@@ -0,0 +1,110 @@
( function ( $ ) {
'use strict';
var sdpersoarabic = {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Variable name needs to be same as on line 109

[ 'd', 'د' ],
[ 'F', 'ڦ' ],
[ 'f', 'ف' ],
[ 'G', 'گه' ],

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

AI is flagging errors in these lines for me. It says:

Lines 73 and 77 use ه for the aspirated letters, but the h key on line 76 gives ھ.
That means g+h and shift+G produce different text that won't match in search.

Would it make sense to change گهگھ and جهجھ so they're consistent?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants