ویکی‌پدیا:درخواست‌های ربات/زیباسازی ویکی‌پدیا فارسی: تفاوت میان نسخه‌ها

محتوای حذف‌شده محتوای افزوده‌شده
بدون خلاصۀ ویرایش
خط ۱۱۳:
'category': re.compile(ur'\[\[رده\:.*?\]\]'),
'ref': re.compile(r'(?ism)<ref[ >].*?</ref>'),
'URL': re.compile(r'\[\.*?\]'),
'startspace': re.compile(r'(?m)^ (.*?)$'),
'table': re.compile(r'(?ims)^{\|.*?^\|}|<table>.*?</table>'),
سطر ۲۸۶ ⟵ ۲۸۷:
def arabic_to_farsi(text):
exceptions = ['gallery', 'hyperlink', 'interwiki', 'math', 'pre', 'template', 'timeline', 'ref', 'source', 'startspace', 'inputbox','file','URL']
text = fa_replaceExcept(text, ur'[كﮑﮐﮏﮎﻜﻛﻚﻙ]', ur'ک', exceptions)
text = fa_replaceExcept(text, ur'[ىىىﻴﻳﻲﻱﻰىىﻯي]', ur'ی', exceptions)