Revision: 7930 Author: xqt Date: 2010-02-14 19:54:38 +0000 (Sun, 14 Feb 2010)
Log Message: ----------- fixArabicLetters() on the end of a word
Modified Paths: -------------- trunk/pywikipedia/cosmetic_changes.py
Modified: trunk/pywikipedia/cosmetic_changes.py =================================================================== --- trunk/pywikipedia/cosmetic_changes.py 2010-02-14 17:16:25 UTC (rev 7929) +++ trunk/pywikipedia/cosmetic_changes.py 2010-02-14 19:54:38 UTC (rev 7930) @@ -698,7 +698,7 @@ 'startspace', ] text = pywikibot.replaceExcept(text, u',', u'،', exceptions) - text = pywikibot.replaceExcept(text, ur'ه([.، ])', ur'ە\1', exceptions) + text = pywikibot.replaceExcept(text, ur'ه([.،_<]\s])', ur'ە\1', exceptions) text = pywikibot.replaceExcept(text, u'ه', u'ە', exceptions) text = pywikibot.replaceExcept(text, u'ه', u'ھ', exceptions) text = pywikibot.replaceExcept(text, u'ك', u'ک', exceptions)