[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Arabic joining patch
From:       Behdad Esfahbod <behdad () bamdad ! org>
Date:       2002-02-14 2:51:47
[Download RAW message or body]

Hi,

The patch I promised is attached, I produced the joining table
automatically from Unicode tables, also considered the 
exceptions, and added the code to remove ZWJ and ZWNJ.

Test it with the attached html, it fixes the problem with ARABIC
LETTER FARSI YEH U+06CC and some other chars, and if your font
has glyphs for ZWJ and ZWNJ (like gnuunifont), you will find what
I mean.

Note: the patch is for qt-libs/src/kernel/qcomplextext.cpp, the 
other copy of this file should be patched too.

Yours,
-- 
Behdad Esfahbod				25 Bahman 1380, 2002 Feb 14 
<behdad at bamdad dot org>		[Finger for Geek Code]

...very few phenomena can pull someone out of Deep Hack Mode, with two
noted exceptions: being struck by lightning, or worse, your *computer*
being struck by lightning.
	-- Matt Welsh

["qcomplextext.cpp.diff.gz" (APPLICATION/x-gzip)]
["hafez.html" (TEXT/html)]

<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<body style="font-size: lare;">
<pre>
الا يا ايها الساقی ادر کاسا و ناولها
که عشق آسان نمود اول ولی افتاد مشکل‌ها
به بوی نافه‌ای کاخر صبا زان طره بگشايد
ز تاب جعد مشکينش چه خون افتاد در دل‌ها
مرا در منزل جانان چه امن عيش چون هر دم
جرس فرياد می‌دارد که بربنديد محمل‌ها
به می سجاده رنگين کن گرت پير مغان گويد
که سالک بی‌خبر نبود ز راه و رسم منزل‌ها
شب تاريک و بيم موج و گردابی چنين هايل
کجا دانند حال ما سبکباران ساحل‌ها
همه کارم ز خود کامی به بدنامی کشيد آخر
نهان کی ماند آن رازی کز او سازند محفل‌ها
حضوری گر همی‌خواهی از او غايب مشو حافظ
متی ما تلق من تهوی دع الدنيا و اهملها

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic