[Bf-translations-svn] SVN commit: /data/svn/bf-translations [102] branches/fa/persian_to_utf.py: Changed "yeeee" to Farsi Yeh instaed of Arabic.

bf-translations at blender.org bf-translations at blender.org
Mon Oct 17 09:54:15 CEST 2011


Revision: 102
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-translations&revision=102
Author:   leomoon
Date:     2011-10-17 07:54:14 +0000 (Mon, 17 Oct 2011)
Log Message:
-----------
Changed "yeeee" to Farsi Yeh instaed of Arabic.
Fixed all "elif x[g]=="..."" to correct characters.

Modified Paths:
--------------
    branches/fa/persian_to_utf.py

Modified: branches/fa/persian_to_utf.py
===================================================================
--- branches/fa/persian_to_utf.py	2011-10-17 07:43:02 UTC (rev 101)
+++ branches/fa/persian_to_utf.py	2011-10-17 07:54:14 UTC (rev 102)
@@ -37,7 +37,8 @@
 noonn = ["ﻥ","ﻧ","ﻨ","ﻦ"]
 vaavv = ["ﻭ","ﻭ","ﻮ","ﻮ"]
 hehhh = ["ﻩ","ﻫ","ﻬ","ﻪ"]
-yeeee = ["ی","ﻳ","ﻴ","ﻰ"]
+yeeee = ["ﯼ","ﯾ","ﯿ","ﯽ"]
+
 yehmz = ["ﺉ","ﺋ","ﺌ","ﺊ"]
 laaad = ["ﻻ","ﻻ","ﻼ","ﻼ"]
 
@@ -108,34 +109,34 @@
 
 		# dealing with letters, output each
 		# letter with its right position
-		elif x[g]=="ﺁ": chr=alefa[pos]
-		elif x[g]=="ﺍ": chr=alefd[pos]
-		elif x[g]=="ﺏ": chr=beeee[pos]
-		elif x[g]=="ﭖ": chr=peeee[pos]
-		elif x[g]=="ﺕ": chr=teeee[pos]
-		elif x[g]=="ﺙ": chr=seeee[pos]
-		elif x[g]=="ﺝ": chr=jimmm[pos]
-		elif x[g]=="ﭺ": chr=cheee[pos]
-		elif x[g]=="ﺡ": chr=heeee[pos]
-		elif x[g]=="ﺥ": chr=kheee[pos]
-		elif x[g]=="ﺩ": chr=daall[pos]
-		elif x[g]=="ﺫ": chr=zaall[pos]
-		elif x[g]=="ﺭ": chr=reeee[pos]
-		elif x[g]=="ﺯ": chr=zeeee[pos]
-		elif x[g]=="ﮊ": chr=zheee[pos]
-		elif x[g]=="ﺱ": chr=sinnn[pos]
-		elif x[g]=="ﺵ": chr=shinn[pos]
-		elif x[g]=="ﺹ": chr=saddd[pos]
-		elif x[g]=="ﺽ": chr=zaddd[pos]
-		elif x[g]=="ﻁ": chr=taaaa[pos]
-		elif x[g]=="ﻅ": chr=zaaaa[pos]
-		elif x[g]=="ﻉ": chr=eynnn[pos]
-		elif x[g]=="ﻍ": chr=gheyn[pos]
-		elif x[g]=="ﻑ": chr=feeee[pos]
-		elif x[g]=="ﻕ": chr=ghaaf[pos]
+		elif x[g]=="آ": chr=alefa[pos]
+		elif x[g]=="ا": chr=alefd[pos]
+		elif x[g]=="ب": chr=beeee[pos]
+		elif x[g]=="پ": chr=peeee[pos]
+		elif x[g]=="ت": chr=teeee[pos]
+		elif x[g]=="ث": chr=seeee[pos]
+		elif x[g]=="ج": chr=jimmm[pos]
+		elif x[g]=="چ": chr=cheee[pos]
+		elif x[g]=="ح": chr=heeee[pos]
+		elif x[g]=="خ": chr=kheee[pos]
+		elif x[g]=="د": chr=daall[pos]
+		elif x[g]=="ذ": chr=zaall[pos]
+		elif x[g]=="ر": chr=reeee[pos]
+		elif x[g]=="ز": chr=zeeee[pos]
+		elif x[g]=="ژ": chr=zheee[pos]
+		elif x[g]=="س": chr=sinnn[pos]
+		elif x[g]=="ش": chr=shinn[pos]
+		elif x[g]=="ص": chr=saddd[pos]
+		elif x[g]=="ض": chr=zaddd[pos]
+		elif x[g]=="ط": chr=taaaa[pos]
+		elif x[g]=="ظ": chr=zaaaa[pos]
+		elif x[g]=="ع": chr=eynnn[pos]
+		elif x[g]=="غ": chr=gheyn[pos]
+		elif x[g]=="ف": chr=feeee[pos]
+		elif x[g]=="ق": chr=ghaaf[pos]
 		elif x[g]=="ک": chr=kaaff[pos]
-		elif x[g]=="ﮒ": chr=gaaff[pos]
-		elif x[g]=="ﻝ":
+		elif x[g]=="گ": chr=gaaff[pos]
+		elif x[g]=="ل":
 		# dealing with (la combination)
 		# in this case the char has two chars in one
 		# so we should increment the counter (g)
@@ -150,11 +151,12 @@
 			else:
 				g = g-1
 				chr=laamm[pos]
-		elif x[g]=="ﻡ": chr=mimmm[pos]
-		elif x[g]=="ﻥ": chr=noonn[pos]
-		elif x[g]=="ﻭ": chr=vaavv[pos]
-		elif x[g]=="ی": chr=hehhh[pos]
-		elif x[g]=="ﺉ": chr=yehmz[pos]
+		elif x[g]=="م": chr=mimmm[pos]
+		elif x[g]=="ن": chr=noonn[pos]
+		elif x[g]=="و": chr=vaavv[pos]
+		elif x[g]=="ه": chr=hehhh[pos]
+		elif x[g]=="ی": chr=yeeee[pos]
+		elif x[g]=="ئ": chr=yehmz[pos]
 		elif x[g]=="لا": chr=laaaa[pos]
 		#if the char is a symbol, add it
 		elif x[g] in sym: chr=x[g]



More information about the Bf-translations-svn mailing list