[vim/vim] Switch Hindu-Arabic to Arabic numerals (PR #13430)

33 views
Skip to first unread message

avidseeker

unread,
Oct 27, 2023, 4:10:06 AM10/27/23
to vim/vim, Subscribed

Current standard Arabic keyboards and layout no longer use Hindu-Arabic numerals (٠ ١ ٢ ٣ ٤ ٥ ٦ ٧ ٨ ٩) and use the ordinary Arabic numerals (9 8 7 6 5 4 3 2 1 0).


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/13430

Commit Summary

  • 800acb9 Switch Hindu-Arabic to Arabic numerals

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/13430@github.com>

Tony Mechelynck

unread,
Oct 27, 2023, 5:40:54 AM10/27/23
to vim/vim, Subscribed

Is this universal ? I mean, do all countries using an Arabic or Arabic-derived script, no matter the language, use so-called Arabic (Latin) digits (U+0030–U+0039) and none of them either Western Arabic-Indic (U+0660–U+0669) or Eastern Arabic-Indic (U+06F0–U+06F9) ? For example, IIRC I've seen Moroccan (or maybe Algerian?) cars with (Western, I suppose) Arabic-Indic digits on their license plates.

Best regards,
Tony.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/13430/c1782612320@github.com>

Tony Mechelynck

unread,
Oct 27, 2023, 5:45:01 AM10/27/23
to vim/vim, Subscribed

P.S. I also own a Qur'an where all verses are numbered by means of (Eastern) Arabic-Indic digits.

Best regards,
Tony.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/13430/c1782618275@github.com>

avidseeker

unread,
Oct 27, 2023, 3:48:14 PM10/27/23
to vim/vim, Subscribed

Of course Hindu-Arabic numerals are still widely used in many Arab countries. But as the keymap is specified in the file description:

This is for a standard Microsoft Arabic keyboard layout.

and current keyboard layouts on Windows and also some of Android keyboards use Arabic numerals.

The use case for ( ٥ ٦ ٧ ٨ ٩) is stylistic more than semantic (Compare to usage of Roman numerals in English). For example, Microsoft Word has an option to convert all Hindu-Arabic to Arabic numerals before exporting or printing. That's why books and printed paper may differ from computer text.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/13430/c1783425316@github.com>

Christian Brabandt

unread,
Nov 4, 2023, 5:14:48 AM11/4/23
to vim/vim, Subscribed

are you intending to work more on that? Or do you think this is ready to include? Then please switch the PR from draft mode into Ready for Review


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/13430/c1793391413@github.com>

Christian Brabandt

unread,
Nov 5, 2023, 12:00:03 PM11/5/23
to vim/vim, Subscribed

Merged #13430 into master.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/13430/issue_event/10865401500@github.com>

Christian Clason

unread,
Nov 5, 2023, 12:31:30 PM11/5/23
to vim/vim, Subscribed

missing test update:

Found errors in Test_arabic_toggle_keymap():
command line..script /Users/clason/build/neovim_fork/test/old/testdir/runtest.vim[539]..function RunTheTest[55]..Test_arabic_toggle_keymap line 4: Pattern '^ *٢�١�21٢�١�$' does not match '\[  occurs 74 times]212121'
command line..script /Users/clason/build/neovim_fork/test/old/testdir/runtest.vim[539]..function RunTheTest[55]..Test_arabic_toggle_keymap line 5: Expected '١�٢�12١�٢�' but got '121212'
make[1]: *** [test_arabic] Error 1


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/13430/c1793798388@github.com>

Christian Brabandt

unread,
Nov 5, 2023, 12:54:06 PM11/5/23
to vim/vim, Subscribed

oh great, I wasn't aware that this keymap is part of a test...


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/13430/c1793803246@github.com>

Reply all
Reply to author
Forward
0 new messages