fixes['errori-comuni-wb'] = {
'regex': True,
'msg': {
'_default':u'[[wb:Bot|Bot]]: Correggo errori comuni (tramite [[Wb:Bot/Sostituzioni/Errori comuni|La lista degli errori comuni]] V 1.1) ',
},
'replacements': [
# SEZIONE RELATIVA AGLI INTERLINK
##################################################################
# Correzione link alle versioni italiane dei progetti fratelli
(r'\[https?:\/\/it\.wikipedia\.org\/wiki\/(.*?)( )(.*?)\]', r"[[w:\1|\3]]"),
(r'\[https?:\/\/it\.wiktionary\.org\/wiki\/(.*?)( )(.*?)\]', r"[[wikt:\1|\3]]"),
(r'\[https?:\/\/it\.wikinews\.org\/wiki\/(.*?)( )(.*?)\]', r"[[n:\1|\3]]"),
(r'\[https?:\/\/it\.wikivoyage\.org\/wiki\/(.*?)( )(.*?)\]', r"[[voy:\1|\3]]"),
(r'\[https?:\/\/it\.wikisource\.org\/wiki\/(.*?)( )(.*?)\]', r"[[s:\1|\3]]"),
(r'\[https?:\/\/it\.wikiquote\.org\/wiki\/(.*?)( )(.*?)\]', r"[[q:\1|\3]]"),
(r'\[https?:\/\/it\.wikiversity\.org\/wiki\/(.*?)( )(.*?)\]', r"[[v:\1|\3]]"),
# Correzione link alle versioni straniere dei progetti fratelli
(r'\[https?:\/\/(\w+(-\w+)?[^it])\.wiktionary\.org\/wiki\/(.*?)( )(.*?)\]', r"[[wikt:\1:\3\|\4]]"),
(r'\[https?:\/\/(\w+(-\w+)?[^it])\.wikinews\.org\/wiki\/(.*?)( )(.*?)\]', r"[[n:\1:\3|\4]]"),
(r'\[https?:\/\/(\w+(-\w+)?[^it])\.wikivoyage\.org\/wiki\/(.*?)( )(.*?)\]', r"[[voy:\1:\3|\4]]"),
(r'\[https?:\/\/(\w+(-\w+)?[^it])\.wikisource\.org\/wiki\/(.*?)( )(.*?)\]', r"[[s:\1:\3|\4]]"),
(r'\[https?:\/\/(\w+(-\w+)?[^it])\.wikiquote\.org\/wiki\/(.*?)( )(.*?)\]', r"[[q:\1:\3|\4]]"),
(r'\[https?:\/\/(\w+(-\w+)?[^it])\.wikiversity\.org\/wiki\/(.*?)( )(.*?)\]', r"[[v:\1:\3|\4]]"),
# Correzione link verso gli altri Wikibooks
(r'\[https?:\/\/(\w+(-\w+)?[^it])\.wikibooks\.org\/wiki\/(.*?)( )(.*?)\]', r"[[:\1:\3|\4]]"),
# SEZIONE RELATIVA AGLI ERRORI COMUNI
##################################################################
#A
(r'(A|a)rcer([eia])' , r"\1rcier\2"),
(r'(A|a)ereo([a-z]+)', r"\1ero\2"),
#B
(r'(B|b)racer([ei])' , r"\1racier\2"),
(r'(B|b)ienno' , r"\1iennio"),
#C
(r'(C|c)rocer([ae])' , r"\1rocier\2"),
(r'(C|c)osidett([oiae])' , r"\1osiddett\2"),
#D
#E
#F
#G
#H
#I
#L
#M
#N
#O
#P
(r'(P|p)erchè', r"\1erché"),
(r'(P|p)oichè' , r"\1oiché"),
#Q
(r"(Q|q)ual'è" , r"\1ual è"),
#R
#S
(r"(S|s)scenz([ae])" , r"\1cienz\2"),
(r"(S|s)scenziat([oiae])" , r"\1cienziat\2"),
(r"(S|s)opratutto" , r"\1oprattutto"),
#T
#U
(r'(U|u)n altra' , r"\1n'altra"),
#V
#Z
# ("U'[^\']" , "Ù"),
# ("I'[^\']" , "Ì"),
# ("A'[^\']" , "À"),
# ("O'[^\']" , "Ò"),
# PUNTEGGIATURA ERRATA
# #(r'(\w ?)(,|;|\?|\!)(\w)', r"\1\2 \3"),
# (r'([^:\w][^\[\[((C|c)ategoria|wb|WB|wb|(A|a)iuto|(T|t)emplate|w|q|v|wikt|voy|n|s)\]\]]) ?:(\w)', r"\1: \2"),
# (r'\. a', ". A"),
# (r'\. b', ". B"),
# (r'\. c', ". C"),
# (r'\. d', ". D"),
# (r'\. e', ". E"),
# (r'\. f', ". F"),
# (r'\. g', ". G"),
# (r'\. h', ". H"),
# (r'\. i', ". I"),
# (r'\. j', ". J"),
# (r'\. k', ". K"),
# (r'\. l', ". L"),
# (r'\. m', ". M"),
# (r'\. n', ". N"),
# (r'\. o', ". O"),
# (r'\. p', ". P"),
# (r'\. q', ". Q"),
# (r'\. r', ". R"),
# (r'\. s', ". S"),
# (r'\. t', ". T"),
# (r'\. u', ". U"),
# (r'\. v', ". V"),
# (r'\. w', ". W"),
# (r'\. x', ". X"),
# (r'\. y', ". Y"),
# (r'\. z', ". Z"),
# SEZIONE RELATIVA ALLE IMMAGINI
##################################################################
# doppio pipe
# (r'\[\[([Ff]ile|[Ii]mmagine|[Ii]mage)\:([^\t\n\r\f\v]+)(\|\|)([^\t\n\r\f\v]*)\]\]', r"[[File:\2|\4]]"),
# parametro "PX" messo a caso
# (r'\[\[([Ff]ile|[Ii]mmagine|[Ii]mage)\:([^\t\r\f\v]+)(\|(px[^0-9]*)*([0-9]+)\|)([^\t\n\r\f\v]*)\]\]', r"[[File:\2|\5px|\6]]"),
# e per ultimo corregge un eventuale "|" attaccato alle doppie quadre chiuse
(r'\[\[([Ff]ile|[Ii]mmagine|[Ii]mage)\:([^\t\r\f\v!\]\]]+)\|\]\]', r"[[File:\2]]"),
# cancella il parametro inventato "none"
(r'\| ?none ?\|', r"|"),
]
}