diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2012-07-20 05:50:22 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2012-07-20 05:50:22 +0000 |
| commit | 5f3448f352cfb7b77890a35e17cd19d0fcb72df7 (patch) | |
| tree | 49adc84a93ea485c5cc3f9a7840bef2f8898cf0f /share | |
| parent | Fix for Bug #1022719 (Inkscape fails to open file from the web (via URL) on t... (diff) | |
| download | inkscape-5f3448f352cfb7b77890a35e17cd19d0fcb72df7.tar.gz inkscape-5f3448f352cfb7b77890a35e17cd19d0fcb72df7.zip | |
Extensions. Removing the Replace Text extension (replaced with the new Find dialog).
(bzr r11557)
Diffstat (limited to 'share')
| -rw-r--r-- | share/extensions/Makefile.am | 2 | ||||
| -rw-r--r-- | share/extensions/text_replace.inx | 18 | ||||
| -rwxr-xr-x | share/extensions/text_replace.py | 17 |
3 files changed, 0 insertions, 37 deletions
diff --git a/share/extensions/Makefile.am b/share/extensions/Makefile.am index 238653b9a..74d8d2fd8 100644 --- a/share/extensions/Makefile.am +++ b/share/extensions/Makefile.am @@ -159,7 +159,6 @@ extensions = \ text_titlecase.py \ text_flipcase.py \ text_randomcase.py \ - text_replace.py \ text_braille.py \ triangle.py \ txt2svg.pl \ @@ -337,7 +336,6 @@ modules = \ text_titlecase.inx \ text_flipcase.inx \ text_randomcase.inx \ - text_replace.inx \ text_braille.inx \ triangle.inx \ txt2svg.inx \ diff --git a/share/extensions/text_replace.inx b/share/extensions/text_replace.inx deleted file mode 100644 index 407b1a56d..000000000 --- a/share/extensions/text_replace.inx +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> - <_name>Replace text</_name> - <id>org.inkscape.text.replacetext</id> - <dependency type="executable" location="extensions">chardataeffect.py</dependency> - <dependency type="executable" location="extensions">text_replace.py</dependency> - <param name="from_text" type="string" _gui-text="Replace:"></param> - <param name="to_text" type="string" _gui-text="By:"></param> - <effect> - <object-type>all</object-type> - <effects-menu> - <submenu _name="Text"/> - </effects-menu> - </effect> - <script> - <command reldir="extensions" interpreter="python">text_replace.py</command> - </script> -</inkscape-extension> 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() |
