SourceForge has been redesigned. Learn more.
Close

Replace Special Characters V0.1

2012-07-06
2013-01-25
  • Stefan Petrovici

    !/usr/bin/python

    # -*- coding: UTF-8 -*-
    import os, sys
    # Script made by Stefan Petrovici - for more informations please email to petrovicistefan@gmail.com
    # Replace Special characters
    # Steps:
    # 1. Encode to UTF-8 without BOM
    # 2. Paste your text
    # 3. Play Python Script
    editor.beginUndoAction()
    editor.pyreplace(r"À",r"À")
    editor.pyreplace(r"à",r"à")
    editor.pyreplace(r"Á",r"Á")
    editor.pyreplace(r"á",r"á")
    editor.pyreplace(r"Â",r"Â")
    editor.pyreplace(r"â",r"â")
    editor.pyreplace(r"Ä",r"Ä")
    editor.pyreplace(r"ä",r"ä")
    editor.pyreplace(r"Ą",r"Ą")
    editor.pyreplace(r"ą",r"ą")
    editor.pyreplace(r"Æ",r"Æ")
    editor.pyreplace(r"æ",r"æ")
    editor.pyreplace(r"Ç",r"Ç")
    editor.pyreplace(r"ç",r"ç")
    editor.pyreplace(r"È",r"È")
    editor.pyreplace(r"è",r"è")
    editor.pyreplace(r"É",r"É")
    editor.pyreplace(r"é",r"é")
    editor.pyreplace(r"Ê",r"Ê")
    editor.pyreplace(r"ê",r"ê")
    editor.pyreplace(r"Ë",r"Ë")
    editor.pyreplace(r"Ě",r"Ě")
    editor.pyreplace(r"ě",r"ě")
    editor.pyreplace(r"Ę",r"Ę")
    editor.pyreplace(r"ę",r"ę")
    editor.pyreplace(r"ë",r"ë")
    editor.pyreplace(r"Î",r"Î")
    editor.pyreplace(r"î",r"î")
    editor.pyreplace(r"Ï",r"Ï")
    editor.pyreplace(r"ï",r"ï")
    editor.pyreplace(r"Ì",r"Ì")
    editor.pyreplace(r"ì",r"ì")
    editor.pyreplace(r"Í",r"Í")
    editor.pyreplace(r"í",r"í")
    editor.pyreplace(r"Ô",r"Ô")
    editor.pyreplace(r"ô",r"ô")
    editor.pyreplace(r"Ö",r"Ö")
    editor.pyreplace(r"ö",r"ö")
    editor.pyreplace(r"Ò",r"Ò")
    editor.pyreplace(r"ò",r"ò")
    editor.pyreplace(r"Ó",r"Ó")
    editor.pyreplace(r"ó",r"ó")
    editor.pyreplace(r"Œ",r"Œ")
    editor.pyreplace(r"œ",r"œ")
    editor.pyreplace(r"Ù",r"Ù")
    editor.pyreplace(r"ù",r"ù")
    editor.pyreplace(r"Û",r"Û")
    editor.pyreplace(r"û",r"û")
    editor.pyreplace(r"Ü",r"Ü")
    editor.pyreplace(r"ü",r"ü")
    editor.pyreplace(r"Ú",r"Ú")
    editor.pyreplace(r"ú",r"ú")
    editor.pyreplace(r"Ů",r"Ů")
    editor.pyreplace(r"ů",r"ů")
    editor.pyreplace(r"Ý",r"Ý")
    editor.pyreplace(r"ý",r"ý")
    editor.pyreplace(r"Č",r"Č")
    editor.pyreplace(r"č",r"č")
    editor.pyreplace(r"ď",r"ď")
    editor.pyreplace(r"ť",r"ť")
    editor.pyreplace(r"Ĺ",r"Ĺ")
    editor.pyreplace(r"ĺ",r"ĺ")
    editor.pyreplace(r"Ň",r"Ň")
    editor.pyreplace(r"ň",r"ň")
    editor.pyreplace(r"Ŕ",r"Ŕ")
    editor.pyreplace(r"ŕ",r"ŕ")
    editor.pyreplace(r"Ř",r"Ř")
    editor.pyreplace(r"ř",r"ř")
    editor.pyreplace(r"Š",r"Š")
    editor.pyreplace(r"š",r"š")
    editor.pyreplace(r"Ž",r"Ž")
    editor.pyreplace(r"ž",r"ž")
    editor.pyreplace(r"«",r"«")
    editor.pyreplace(r"»",r"»")
    editor.pyreplace(r"€",r"€")
    editor.pyreplace(r"?",r"₣")
    editor.pyreplace(r"ß",r"ß")
    editor.pyreplace(r"°",r"°")
    editor.pyreplace(r"£",r"£")
    editor.pyreplace(r"Ñ",r"Ñ")
    editor.pyreplace(r"ñ",r"ñ")
    editor.pyreplace(r"¿",r"¿")
    editor.pyreplace(r"¡",r"¡")
    editor.pyreplace(r"P",r"₧")
    editor.pyreplace(r"º",r"º")
    editor.pyreplace(r"ª",r"ª")
    editor.pyreplace(r"¢",r"¢")
    editor.pyreplace(r"¤",r"¤")
    editor.pyreplace(r"µ",r"µ")
    editor.pyreplace(r"©",r"©")
    editor.pyreplace(r"®",r"®")
    editor.endUndoAction()
    
     
  • Stefan Petrovici

    if you have more special characters please share here and notice me via email,
    Regards Stefan

     

Log in to post a comment.