From 5f3448f352cfb7b77890a35e17cd19d0fcb72df7 Mon Sep 17 00:00:00 2001 From: Nicolas Dufour Date: Fri, 20 Jul 2012 07:50:22 +0200 Subject: Extensions. Removing the Replace Text extension (replaced with the new Find dialog). (bzr r11557) --- share/extensions/text_replace.py | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100755 share/extensions/text_replace.py (limited to 'share/extensions/text_replace.py') diff --git a/share/extensions/text_replace.py b/share/extensions/text_replace.py deleted file mode 100755 index b5d960430..000000000 --- a/share/extensions/text_replace.py +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env python -import chardataeffect, inkex, string - -class C(chardataeffect.CharDataEffect): - def __init__(self): - chardataeffect.CharDataEffect.__init__(self) - self.OptionParser.add_option("-f", "--from_text", action="store", type="string", dest="from_text", default="", help="Replace") - self.OptionParser.add_option("-t", "--to_text", action="store", type="string", dest="to_text", default="", help="by") - - def process_chardata(self,text, line, par): - fr = self.options.from_text.strip('"').replace('\$','$') - to = self.options.to_text.strip('"').replace('\$','$') - - return (text.replace(unicode(fr,"utf-8"), unicode(to,"utf-8"))) - -c = C() -c.affect() -- cgit v1.2.3