Jump to content

Category talk:Templates that can be substituted

Page contents not supported in other languages.
Add topic
From Wikisource
Pywikipedia regex replacement list - update as needed to reflect the list of templates.
# substitute out diacritic templates
fixes['diacritics'] = {
    'regex': True,
    'msg': {
        '_default':u'Substituting out diacritic templates for the actual diacritic. [[WS:DIACRITICS]]',
    },
    'replacements': [
        (ur'{{[Ll]igature Latin AE uppercase}}', ur'Æ'),
        (ur'{{[Ll]igature Latin OE uppercase}}', ur'Œ'),
        (ur'{{[Ll]igature Latin ae lowercase}}', ur'æ'),
        (ur'{{[Ll]igature Latin oe lowercase}}', ur'œ'),

        (ur'{{AE}}', ur'Æ'),
        (ur'{{OE}}', ur'Œ'),
        (ur'{{[aA]e}}', ur'æ'),
        (ur'{{[Oo]e}}', ur'œ'),

        (ur'{{\+a:}}', ur'Ä'),
        (ur"{{0'}}", ur'ǿ'),
        (ur"{{[Aa]'}}", ur"á"),
        (ur"{{[Aa]-}}", ur"ā"),
        (ur"{{[Aa]:}}", ur"ä"),
        (ur"{{[Aa]\^}}", ur"â"),
        (ur"{{[Aa]`}}", ur"à"),
        (ur"{{[Aa]~}}", ur"ã"),
        (ur"{{[Cc]'}}", ur"ć"),
        (ur"{{[Cc]\^}}", ur"ĉ"),

        (ur"{{[Cc],}}", ur"ç"),

        (ur"{{[Ee]'}}", ur"é"),
        (ur"{{[Ee]-}}", ur"ē"),
        (ur"{{[Ee]:}}", ur"ë"),
        (ur"{{[Ee]\^}}", ur"ê"),
        (ur"{{[Ee]`}}", ur"è"),
        (ur"{{[Gg]'}}", ur"ģ"),
        (ur"{{[Gg]\^}}", ur"ĝ"),
        (ur"{{[Hh]\^}}", ur"ĥ"),
        (ur"{{[Ii]'}}", ur"í"),
        (ur"{{[Ii]-}}", ur"ī"),
        (ur"{{[Ii]:}}", ur"ï"),
        (ur"{{[Ii]\^}}", ur"î"),
        (ur"{{[Ii]`}}", ur"ì"),
        (ur"{{[Jj]\^}}", ur"ĵ"),
        (ur"{{[Nn]'}}", ur"ń"),
        (ur"{{[Nn]~}}", ur"ñ"),
        (ur"{{[Oo]'}}", ur"ó"),
        (ur"{{[Oo]-}}", ur"ō"),
        (ur"{{[Oo]:}}", ur"ö"),
        (ur"{{[Oo]\^}}", ur"ô"),
        (ur"{{[Oo]`}}", ur"ò"),
        (ur"{{[Oo]~}}", ur"õ"),
        (ur"{{[Rr]'}}", ur"ŕ"),
        (ur"{{[Ss]'}}", ur"ś"),
        (ur"{{[Ss]\^}}", ur"ŝ"),
        (ur"{{[Uu]'}}", ur"ú"),
        (ur"{{[Uu]-}}", ur"ū"),
        (ur"{{[Uu]:}}", ur"ü"),
        (ur"{{[Uu]\^}}", ur"û"),
        (ur"{{[Uu]`}}", ur"ù"),
        (ur"{{[Ww]\^}}", ur"ŵ"),
        (ur"{{[Yy]'}}", ur"ý"),
        (ur"{{[Yy]-}}", ur"ȳ"),
        (ur"{{[Yy]:}}", ur"ÿ"),
        (ur"{{[Yy]\^}}", ur"ŷ"),
        (ur"{{[Zz]'}}", ur"ź"),
        (ur"{{--}}", ur"—"),
        (ur"{{[mM]dash}}", ur"—"),
    ]
}


List as per 20140713

  1. Template:Ligature Latin AE uppercase
  2. Template:Ligature Latin OE uppercase
  3. Template:Ligature Latin ae lowercase
  4. Template:Ligature Latin oe lowercase
  5. Template:+a:
  6. Template:,
  7. Template:0'
  8. Template:A'
  9. Template:A-
  10. Template:A:
  11. Template:A^
  12. Template:A`
  13. Template:A~
  14. Template:C'
  15. Template:C^
  16. Template:C,
  17. Template:E'
  18. Template:E-
  19. Template:E:
  20. Template:E^
  21. Template:E`
  22. Template:G'
  23. Template:G^
  24. Template:H^
  25. Template:I'
  26. Template:I-
  27. Template:I:
  28. Template:I^
  29. Template:I`
  30. Template:J^
  31. Template:N'
  32. Template:N~
  33. Template:O'
  34. Template:O-
  35. Template:O:
  36. Template:O^
  37. Template:O`
  38. Template:O~
  39. Template:R'
  40. Template:S'
  41. Template:S^
  42. Template:U'
  43. Template:U-
  44. Template:U:
  45. Template:U^
  46. Template:U`
  47. Template:W^
  48. Template:Y'
  49. Template:Y-
  50. Template:Y:
  51. Template:Y^
  52. Template:Z'
  53. Template:--

Start a discussion about Category:Templates that can be substituted

Start a discussion