Dear Robert,
In "shaping.c" in your arabic patch:
{0x6CC, 0xFEF1,4},
should be
{0x6CC, 0xFBFC,4},
BTW, I can give away a program for creating the shaping tables
automatically from Unicode.org's data files, so these won't occur
anymore.
Also, when I move another window over the xterm, the glyph shapes
change! It seems that it forgets some things when it's getting redrawn!
For example, take a look at the attached files. The original file is
"001.utf8". When I first cat it, I get "hafez1.png", when I move another
window over it for a while, it changes to "hafez2.png" (pay attention to
the last two lines). You can also see the wrong ZWNJ behaviour from the
first example, e.g. in second line from below.
Also, something weird occurs when I first start the xterm. When I start it
using "xterm -u8 -fn 10x20&", it starts with some boxes at the right
margin, and the prompt has also turned black. See the attached
"start.png". It gets ok after I commit "ls" etc.
I have added lacking Persian characters to Markus's ucs-fonts.
The examples I'm attaching were done using these. It's available from:
http://sina.sharif.ac.ir/~roozbeh/farsiweb/10x20.bdf.gz
Sorry for bombardings,
Roozbeh.
hafez1.png
hafez2.png
الا يا ايها الساقی ادر کاسا و ناولها
که عشق آسان نمود اول ولی افتاد مشکلها
به بوی نافهای کاخر صبا زان طره بگشايد
ز تاب جعد مشکينش چه خون افتاد در دلها
مرا در منزل جانان چه امن عيش چون هر دم
جرس فرياد میدارد که بربنديد محملها
به می سجاده رنگين کن گرت پير مغان گويد
که سالک بیخبر نبود ز راه و رسم منزلها
شب تاريک و بيم موج و گردابی چنين هايل
کجا دانند حال ما سبکباران ساحلها
همه کارم ز خود کامی به بدنامی کشيد آخر
نهان کی ماند آن رازی کز او سازند محفلها
حضوری گر همیخواهی از او غايب مشو حافظ
متی ما تلق من تهوی دع الدنيا و اهملها
start.png