ZWNJ (Zero Width Non-Joiner) in Persian

223 views
Skip to first unread message

Hamidreza Jafari

unread,
Oct 23, 2017, 12:22:19 PM10/23/17
to vim_use
Hello,

Vim with mlterm is able to process Farsi input except with (some) special characters such as zero width non-joiner which is becoming a concern. I observe:

- if I set keymap to persian-iranian then text entry in Farsi and driving Vim with commands are seamless because there is no need to change keyboard language at OS level for commands. Keyboard language is fix in English. Whenever I start to type for text it automatically changes to Persian. Problem is I don't find a way to insert the famous ZWNJ, coincidentally a much used character in Persian and Arabic.

- if I do not change keymap to Persian, I can achieve similar text entry capability with the benefit that ZWNJ input is as easy as the usual: shift + space. It actually shows the codepoint in blue (<c200>) but viewing from other editor-aware (such as mlterm's cat) it shows all well done. Now the problem is I should change keyboard language to English at OS level every time I escape to drive, that is use Vim's commands for text manipulation, navigation etc. It breaks (or brakes!) Vim's major usability.

I checked mlterm's font options (in configuration) but didn't notice a difference when changing font name etc.

How do I introduce ZWNJ to the first scenario?

ZWNJ reference: https://codepoints.net/U+200C

Bram Moolenaar

unread,
Oct 23, 2017, 3:18:10 PM10/23/17
to vim...@googlegroups.com, Hamidreza Jafari
There hasn't been much work on Farsi support lately. The Farsi mapping
is outdated, doesn't work with utf-8. What I heard was that it's
probably best to do something similar to what Arabic support is doing.

Anyway, can you type this character with CTRL-V u 200c?
If not, maybe we can make CTRL-V switch the input to English, since
that makes most sense.


--
ARTHUR: Shut up! Will you shut up!
DENNIS: Ah, now we see the violence inherent in the system.
ARTHUR: Shut up!
DENNIS: Oh! Come and see the violence inherent in the system!
HELP! HELP! I'm being repressed!
The Quest for the Holy Grail (Monty Python)

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

Hamidreza Jafari

unread,
Oct 24, 2017, 2:08:41 PM10/24/17
to vim_use
در دوشنبه 23 اکتبر 2017، ساعت 22:48:10 (UTC+3:30)، Bram Moolenaar نوشته:
The signal is reject. It seems not the right tool for now. It will perfect with time when there are more people turning to Linux in Persian for the prime (and sub-prime) computing. Is there a way to have an overview of Vim's development, e.g. subscribe to specific topics?

Hamidreza Jafari

unread,
Oct 25, 2017, 5:30:44 PM10/25/17
to vim_use
در سه‌شنبه 24 اکتبر 2017، ساعت 21:38:41 (UTC+3:30)، Hamidreza Jafari نوشته:
Subscribed to vim_announce. By vim_use.
Reply all
Reply to author
Forward
0 new messages