Sunday, April 9, 2017

Re: Anybody using the Farsi feature?

On Sun, Apr 9, 2017 at 2:47 PM, Bram Moolenaar <Bram@moolenaar.net> wrote:
>
> Vim includes Farsi support. This implementation is quite old and uses
> an encoding standard that is not widely used: ISIR-3342. In fact,
> searching for that standard has the first 9 matches in Vim code.
> It does not work with Unicode.

Farsi code is quite old indeed, possibly older than Vim support for Unicode.

The Arabic subsystem is newer, makes use of Unicode, and ought to work
for Farsi in Unicode, even the additional letters added to the Arabic
alphabet to support the Persian language. "Farsi Yeh" (an Arabic
letter yeh which loses its two dots below when it is wriiten in
zig-zag shape, i.e. final or isolated) may or may not be one of them,
it is used in Classical Arabic in the Mashrek (the Eastern part of the
Arabic-language domain).
>
> Is anobody actually using this code? If not, I think we can remove it.
> It would be best if it can be replaced by a Unicode implementation. But
> it requires someone understanding the language to do this.

Someone understanding Farsi (not me) should check if setting 'arabic',
and setting a 'guifont' with the proper glyphs for Farsi, are enough
to write Farsi in Unicode in gvim 8.0. I'm attaching a "phonetic
Arabic" keymap which ought to be usable (after some getting used to)
for writing Farsi on a European keyboard, possibly with a few obvious
additions (obvious to someone knowing Persian). Of course anyone with
a Persian keyboard won't need mine.

If the letters added to the Arabic alphabet to support the Farsi
language don't shape correctly in gvim, then IMHO it should be
possible to add the necessary shaping rules to our Arabic subsystem.
These letters are "Arabic letters" in the wide sense of the word after
all, just like Scandinavian øæå, German äöüß, French àâçéêèëîïùŷÿœ,
Icelandic ðþ, etc. are "Latin letters" in the wide sense of the word.
>
>
> --
> DINGO: And after the spanking ... the oral sex.
> GALAHAD: Oh, dear! Well, I...
> GIRLS: The oral sex ... The oral sex.
> GALAHAD: Well, I suppose I could stay a BIT longer.
> "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

Best regards,
Tony.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment