I do not know for sure but this is possibly a problem with MacVim. It
is know that MacVim has problems with certain nonspacing marks to
which set Arabic diacritics may belong. If you could post a sample of
some problematic text we could confirm whether or not this is a MacVim
specific problem.
Björn
A screenshot would do, but a short text file containing the
problematic characters would be even better.
Nico
> Sorry guys, but it is my first time here, I've got two comparative
> screenshots and a sample text file. How do I post them?
you could use the "upload file" button at http://groups.google.com/group/vim_mac
, post them to rapidshare, or append them to a mail if the files are
not too big.
Nico
Hmmm....
- Is your Vim version compiled with +arabic ?
- It could be a problem with your console if you weren't using gvim
- I'm attaching a _small_ text file in UTF-8, which contains one line in
vocalized Arabic. My gvim (in 'rightleft' mode of course) displays it
correctly, with the vowels above or below the proper consonants and the
latters properly joined where appropriate. Do you see it correctly in
GUI mode? The text is a commonly "polite" form of salutation,
"as-salaamu `alaykum wa-rahmatu 'llaahi wa-barakaatuhu", or in English,
"Peace upon you and God's benevolence and His blessings"; if your mailer
displays the text attachment inline, that ought to give you a point of
comparison.
Best regards,
Tony.
--
The bureaucracy is expanding to meet the needs of an expanding
bureaucracy.
Judging from how Tony's example renders in TextEdit and in MacVim.app
I'd say this is a problem with MacVim. Unfortunately, I think this
kind of problem is going to be tremendously hard to fix with the
current renderer but it might be possible with the ATSUI based
renderer. In any case, I don't think I can do much about it in MacVim
right now. Sorry. :-(
Jiang (if you are reading this), do you think you can get Tony's file
to render with ATSUI?
Björn
To see if it is compiled with +arabic enabled, look at the output of
":version". On the first line after "Features enabled [+] or not [-]:",
the first item is usually either "+arabic" (feature enabled) or
"-arabic" (feature disabled). If it is disabled, your version of Vim
probably knows nothing about how to shape Arabic letters within words or
about how to place harakat (i.e., short vowels with or without tanueen,
as well as shadda and sukuun) on top of consonants (or under them as the
case may be).
>
> Note that the images I've sent are using the most decent fonts that
> MacVim would display. I've been through more bad fonts at display,
> e.g. some fonts would eat up the first character on the line. Not to
> mention that when "arabic" is set and display becomes RTL the line
> numbering would get messed up.
If setting 'arabic' makes the display RTL, your version is probably
compiled with Arabic script support.
>
> Should I compile MacVim with gvim support, maybe that would solve the
> problem?
Compiling Vim with GUI support (be it the X11 GUI or the native-Mac GUI)
would at least eliminate any problems due to running Vim inside
Terminal.app. Or are you already running in GUI mode but with some
dark-background colorscheme?
Best regards,
Tony.
--
BEDEVERE: And that, my lord, is how we know the Earth to be banana-shaped.
"Monty Python and the Holy Grail" PYTHON (MONTY)
PICTURES LTD
(beginning)
0x0643 (kaaf)
0x064F (Damma)
0x062A (taa')
0x0650 (kasra)
0x0628 (baa')
0x064E (fatHa)
0x062A (taa')
0x0652 (sukuun)
(end)
and explain what is not being rendered correctly. (Here the kaaf-taa'-
baa'-taa' should
be displayed properly connected, right-to-left; the Damma should
appear above the (initial-form) kaaf, the kasra should appear below
the (medial-form) taa', the fatHa should appear above the (medial-
form) baa', and the sukuun should appear above the (final-form) taa'.
Please specify which font you are using.
Best,
Ken
******************************
Kenneth R. Beesley, D.Phil.
P.O. Box 540475
North Salt Lake, UT
84054 USA
Well, so much the better for you.
FWIW, in Bitstream Vera Sans Mono I see the harakat (Arabic short vowels
etc.) one cell left of where they should be, but in Courier New I see
them just where they belong -- using the same text file and the same
gvim binary.
Best regards,
Tony.
--
Philogyny recapitulates erogeny; erogeny recapitulates philogyny.
On Thu, Jun 12, 2008 at 6:56 AM, björn <bjorn.w...@gmail.com> wrote:
> Judging from how Tony's example renders in TextEdit and in MacVim.app
> I'd say this is a problem with MacVim. Unfortunately, I think this
> kind of problem is going to be tremendously hard to fix with the
> current renderer but it might be possible with the ATSUI based
> renderer. In any case, I don't think I can do much about it in MacVim
> right now. Sorry. :-(
>
> Jiang (if you are reading this), do you think you can get Tony's file
> to render with ATSUI?
Sorry for the delayed reply. I don't think it will work properly like
TextEdit did.
At least not for now, but I'll try to investigate this (Just as I told
Ben in my last
mail on vim_mac list).
- Jiang