#!/usr/bin/python# -*- coding: UTF-8 -*-importos,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 Scripteditor.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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Replace Special characters HTML Codes for Russian (Cyrillic)
visit www.phottix.ro