[farsiweb]Re: FarsiWeb digest, Vol 1 #187 - 1 msg
Hi mohsen, Don't cry :) , use my simpletool for writing Unicode text. Bye, Hamid Title: Farsi Unicode Character set Homepage Text to HTML entity code Convertor Written by : Hamid Reza Nasiri , AEOI Data Processing Center. : Press Alt+Shift to change language input mode . Persian Segment of Unicode Character Set Table Reference : The Unicode Standard 3.0 CodeNesfMitra CodeNesfMitra Greek Coptic Segment of Unicode Character Set Table Reference : The Unicode Standard 3.0 Code Glif Code Glif
Re: [farsiweb]unicode fields in database
On Fri, 8 Nov 2002, Nasiri2 wrote: Do you use Persian unicode fields in any database? How do you sort these fields while the letters Gaf,Cheh,Peh, and Zheh are not in correct order? Your database or your programming language should provide the sorting mechanism, or you should implement sorting yourself (as a database engine plug-in if it supports it, or in the programming language if it doesn't). We already have solutions for C, PHP, and PostgreSQL, but all are Linux-only, or possibly Cygwin (port of GNU tools to Windows). How do you represent these fields in HTML or ASP pages (converting them to HTML entity code dynamically, saving their entity codes, or whatever else)? As far as I can tell, you HTML doesn't have any notion of fields. If you mean the letters Peh, Gaf, Farsi Yeh, etc, they can be referenced in HTML pages as #x+hexcode+;. Farsi Yeh becomes #x06cc;, for example. roozbeh ___ FarsiWeb mailing list [EMAIL PROTECTED] http://lists.sharif.edu/mailman/listinfo/farsiweb
Re: [farsiweb]SOS
On Fri, 8 Nov 2002, Mohsen Pahlevanzadeh wrote: But i don't know that how type farsi in KDE or GNOME. Use Red Hat 8.0's KDE and GNOME. GNOME's 'gedit' support Persian, and also some of the KDE text editors (I can't remember which do). The Persian keyboard layout is also included in Red Hat 8.0 if you install it, but you may need to install fonts of your own, which you may get from your Windows fonts directory, or download some from: http://corefonts.sourceforge.net/ I also have a post about enabling the Persian keyboard in Red Hat 7.3's KDE at: http://lists.sharif.edu/pipermail/farsikde/2002-June/000369.html But I don't know if exactly the same procedure will work with Red Hat 8.0. roozbeh ___ FarsiWeb mailing list [EMAIL PROTECTED] http://lists.sharif.edu/mailman/listinfo/farsiweb
Re: [farsiweb]unicode fields in database
Hamid Rezâye gerâmi: Man bâ "unicode" kâr nakardeam vali tavânestam bâ bekâr bordane: META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1256" dar safheye xod, bâ tâyp kardan be Pârsi az bânke "MYSQL" estefâde konam. In kâr besyâr sâde anjâm od. Mitavânid barâye mesâl be safheye zir negâh bekonid: http://iranianlanguages.com/dictionary.php?eng-per Sepâsmandam, Dr. Zurvân ILS
Re: [farsiweb]unicode fields in database
I guess for sorting you would just need to write a few lines of code. It would not be too difficult. - Original Message - From: Naqashzade, Sadeq To: Zurvan Sent: Thursday, November 07, 2002 5:27 PM Subject: Re: [farsiweb]unicode fields in database Salaam, What about persian sort? is it correct? I use Unicode. I can do search and show texts using MySQL but my problem in correct sort. You can see the example in www.YazdIndustry.com that is a directory of Yazd Industrials that is under construction now but some things is ready. Regards Sadeq - Original Message - From: Zurvan To: [EMAIL PROTECTED] ; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, November 09, 2002 10:56 PM Subject: Re: [farsiweb]unicode fields in database Hamid Rezâye gerâmi: Man bâ "unicode" kâr nakardeam vali tavânestam bâ bekâr bordane: META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1256" dar safheye xod, bâ tâyp kardan be Pârsi az bânke "MYSQL" estefâde konam. In kâr besyâr sâde anjâm od. Mitavânid barâye mesâl be safheye zir negâh bekonid: http://iranianlanguages.com/dictionary.php?eng-per Sepâsmandam, Dr. Zurvân ILS
Re: [farsiweb]unicode fields in database
I took a look at your site (YazdIndustry.com). Very impressive. Do you require sorting when displaying the results ofa search? I know MySQL does not sometimes, for example, distinguish between letters with diactritics and the ones without, like  and A or â and a.What I have doneto make sure MySQL does not makethese kinds of mistakes is to save the Persian words in 2 different ways. One using the 1256 format and the other using a regular font. This way when youdo asearch for a word you will have to check 2 entries if needed.Forsorting you could use the font entries since they aremostly inASCII characters. All these problems with the Arabic script makes mea believer in changing our alphabet to a Latin-based one and getting rid of all these unnecessary headaches :-) Dr. Z. - Original Message - From: Naqashzade, Sadeq To: FK Sent: Thursday, November 07, 2002 6:22 PM Subject: Re: [farsiweb]unicode fields in database No it is not. this is not PHP problem, I think it is MySQL problem that not support unicode. You can write a simple code to select the rows but never you will get soreted result in right order :-( I did not test it on Windows Server. But I test it with ARABIC and UNICODE encoding both. and failed to get what I want :(( Bests, Sadeq Naqashzade [EMAIL PROTECTED] - Original Message - From: FK To: Naqashzade, Sadeq ; [EMAIL PROTECTED] Sent: Sunday, November 10, 2002 8:20 AM Subject: Re: [farsiweb]unicode fields in database I guess for sorting you would just need to write a few lines of code. It would not be too difficult. - Original Message - From: Naqashzade, Sadeq To: Zurvan Sent: Thursday, November 07, 2002 5:27 PM Subject: Re: [farsiweb]unicode fields in database Salaam, What about persian sort? is it correct? I use Unicode. I can do search and show texts using MySQL but my problem in correct sort. You can see the example in www.YazdIndustry.com that is a directory of Yazd Industrials that is under construction now but some things is ready. Regards Sadeq - Original Message - From: Zurvan To: [EMAIL PROTECTED] ; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, November 09, 2002 10:56 PM Subject: Re: [farsiweb]unicode fields in database Hamid Rezâye gerâmi: Man bâ "unicode" kâr nakardeam vali tavânestam bâ bekâr bordane: META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1256" dar safheye xod, bâ tâyp kardan be Pârsi az bânke "MYSQL" estefâde konam. In kâr besyâr sâde anjâm od. Mitavânid barâye mesâl be safheye zir negâh bekonid: http://iranianlanguages.com/dictionary.php?eng-per Sepâsmandam, Dr. Zurvân ILS