Menu

Replace Special characters Codes for Russian

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

    Replace Special characters HTML Codes for Russian (Cyrillic)

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    #!/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 HTML Codes for Russian (Cyrillic)
    # http://webdesign.about.com/od/localization/l/blhtmlcodes-ru.htm
    # Steps:
    # 1. Encode your file 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.endUndoAction()
    

    visit www.phottix.ro

     
  • nofun

    nofun - 2012-07-07
    editor.pyreplace(r"Ё",r"Ё")
    editor.pyreplace(r"ё",r"ё")
    
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.