Skip to content

[#450] Replace urdu numerals to use standard numerals#451

Merged
kartikm merged 1 commit intowikimedia:masterfrom
tonythomas01:normal-numerals
Aug 14, 2016
Merged

[#450] Replace urdu numerals to use standard numerals#451
kartikm merged 1 commit intowikimedia:masterfrom
tonythomas01:normal-numerals

Conversation

@tonythomas01
Copy link
Contributor

@tonythomas01 tonythomas01 commented Aug 6, 2016

Convention on urwiki is to use Latin numerals, which is not possible with their favoured (phonetic) IME.

https://github.com/wikimedia/jquery.ime/blob/HEAD/rules/ur/ur-phonetic.js is the definition with [ '1', '۱' ]rather than [ '1', '1' ]

(Reported in person by @hindustanilanguage.) in https://phabricator.wikimedia.org/T138399

@kartikm
Copy link
Member

kartikm commented Aug 6, 2016

Patch looks good to me. It would be nice if you add 2 or 3 tests at, test/jquery.ime.test.fixtures.js Look at similar tests from other languages.

[ '!', '!' ],
[ '1', '۱' ],
[ '2', '۲' ],
[ '1', '1' ],
Copy link
Member

Choose a reason for hiding this comment

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

You can just remove the mapping for the numeral. [ '1', '1' ] has no effect(it means when you type 1, produce 1, which anyway is the default behavior

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thats right. Dont know why I did that in the first place. Removing now

@tonythomas01
Copy link
Contributor Author

I have pushed in a test too, which I am ashamed to admit that I couldn't test personally :(

@kartikm kartikm merged commit 10ae4c0 into wikimedia:master Aug 14, 2016
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