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

List:       kde-commits
Subject:    l10n-support/pology/l10n/sr/hook
From:       Chusslove Illich <caslav.ilic () gmx ! net>
Date:       2010-02-28 21:26:54
Message-ID: 1267392414.652754.5200.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1097303 by ilic:

Fix to hybridization algorithm.

 M  +3 -1      wconv.py  


--- trunk/l10n-support/pology/l10n/sr/hook/wconv.py #1097302:1097303
@@ -585,7 +585,9 @@
             # Hybridization by difference marks not possible.
             # Use alternatives directive, or pure Ijekavian.
             i1b = i1; i2b = i2
-            while i1b >= i1p and text1[i1b].isalpha(): # same as *2*
+            while (    i1b >= i1p and i2b >= i2p
+                   and (text1[i1b].isalpha() or text2[i2b].isalpha())
+            ):
                 i1b -= 1; i2b -= 1
             i1b += 1; i2b += 1
             segs.append(text1[i1p:i1b])
[prev in list] [next in list] [prev in thread] [next in thread] 

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