[farsiweb]Re: FarsiWeb digest, Vol 1 #189 - 1 msg

2002-11-10 Thread Nasiri2



Hi,

 All these problems with the Arabic script 
makes me a believer in changing our alphabet to a Latin-based one and 
getting rid of all these unnecessary headaches :-) ...
-FariborzThere may be some 
other better ways for easy life :)

bye,
Hamid


Re: [farsiweb]unicode fields in database

2002-11-10 Thread Roozbeh Pournader
On Sat, 9 Nov 2002, FK wrote:

 All these problems with the Arabic script makes me a believer in
 changing our alphabet to a Latin-based one and getting rid of all these
 unnecessary headaches :-)

The whole point is: all other languages have similiar problems, including
those written in Latin. The main difference, is usually that there is not 
enough market for Persian abilities in software.

Just some examples: Swedish sorts 'v' and 'w' as one letter. Turkish and
Azeri have different capitalization rules than the other languages, since
they have two different 'i's. Slovak treats 'ch' as a single letter sorted
between 'c' and 'd'. Hungarian sorts 'czz' as it were 'czcz'. French needs
a ligated 'oe' letter, which does not even exist in ISO-8859-1, ...

IMHO, the Latin script will not solve the problems, it just adds another 
complexity dimension.

roozbeh

___
FarsiWeb mailing list
[EMAIL PROTECTED]
http://lists.sharif.edu/mailman/listinfo/farsiweb



Re: [farsiweb]unicode fields in database

2002-11-10 Thread Skip Tavakkolian
ON SAT NOVEMBER  9 2002  [EMAIL PROTECTED] WROTE:
 Still, I'm curious. How come everyone on this discussion board is using the
 Latin alphabet? :-)


Well, most discussions here are also in English.  Should everyone in
Iran switch over to English?

Going back to the original point, would you explain how switching to
the Latin alphabet solves the Farsi text sorting problem in a database?

___
FarsiWeb mailing list
[EMAIL PROTECTED]
http://lists.sharif.edu/mailman/listinfo/farsiweb



Re: [farsiweb]unicode fields in database

2002-11-10 Thread Jalal Abedinejad








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.OK I knew this, but I want to know 
  when we want to represent a database  unicode field in an ASP 
  page(finally an HTML formatted page) is any more  efficient 
  way than converting them dynamically from Unicode to HTML  
  entity code. I'm sorry I don't know ASP. But you can also 
  use UTF-8 in your HTML page and encode the Persian letters as two 
  bytes. Farsi Yeh becomes 0xDB 0x8C, for example. 
  roozbeh
  ASP works very well while using unicode fields in SQL Server.
  Use following style for your asp page to make your page in UTF-8 . No 
  conversion is needed to use. The most important part is the first line.The 
  output of this ASP page will be like as Roozbeh said . It will not use 
  "#x"+hexcode+";" style. 
  
  %@LANGUAGE="VBSCRIPT" 
  CODEPAGE="65001"%html lang="fa" dir="rtl"
  headmeta http-equiv="Content-Type" content="text/html; 
  charset=utf-8"/head
  % Response.Write(put your database field here) %
  body
  /body/html
  
  Best Regards
  Jalal Abedinejad





	
	
	
	
	
	
	








[farsiweb]Persian Unicode Combobox in HTML

2002-11-10 Thread Jalal Abedinejad








  Dear all,
  
   As you know when we use a combobox in a HTML, if 
  it contains English content , when we type on the combobox the selected 
  option of the combo changes to the nearest option we have typed . For 
  example when we want to search for our country in a country combobox we 
  type "i","r","a" , then the combo box will select Iran for us. 
  
   My problem is that when I use a combobox with 
  persian content (UTF-8 content-type) this feature is no longer available. 
  I have used the http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/farsitools/php/date/scripts/farsi.js?rev=1.1.1.1content-type=text/vnd.viewcvs-markupjavascript 
  file in my html to overright the keyboardmap but it did not work.
  
   I'll be happy if anybody here had encountered this 
  problem and solved the problem. I think I must use some javascript code to 
  change selected field of the combobox when something is typed on the 
  combo. 
  
  Thanks 
  Jalal Abedinejad