| /inkscape/share/extensions/ |
| H A D | jessyInk_autoTexts.py | 26 # We will use the inkex module with the predefined Effect base class. 27 import inkex namespace 28 inkex.localize() 30 class JessyInk_AutoTexts(inkex.Effect): 33 inkex.Effect.__init__(self) 38 inkex.NSS[u"jessyink"] = u"https://launchpad.net/jessyink" 42 scriptNodes = self.document.xpath("//svg:script[@jessyink:version='1.5.5']", namespaces=inkex.NSS) 45 inkex.errormsg(_("The JessyInk script is not installed in this SVG file or has a different version than the JessyInk extensions. Please select \"install/update...\" from the \"JessyInk\" sub-menu of the \"Extensions\" menu to install or update the JessyInk script.\n\n")) 48 inkex.errormsg(_("To assign an effect, please select an object.\n\n")) 51 nodes = node.xpath("./svg:tspan", namespaces=inkex [all...] |
| H A D | jessyInk_install.py | 28 # We will use the inkex module with the predefined Effect base class. 29 import inkex namespace 45 class JessyInk_Install(inkex.Effect): 48 inkex.Effect.__init__(self) 52 inkex.NSS[u"jessyink"] = u"https://launchpad.net/jessyink" 56 for node in self.document.xpath("//svg:script[@id='JessyInk']", namespaces=inkex.NSS): 60 scriptElm = inkex.etree.Element(inkex.addNS("script", "svg")) 63 scriptElm.set("{" + inkex.NSS["jessyink"] + "}version", '1.5.5') 83 for node in self.document.xpath("//*[@jessyInk_effectIn]", namespaces=inkex [all...] |
| H A D | jessyInk_mouseHandler.py | 28 # We will use the inkex module with the predefined Effect base class. 29 import inkex namespace 31 inkex.localize() 33 class JessyInk_CustomMouseHandler(inkex.Effect): 36 inkex.Effect.__init__(self) 41 inkex.NSS[u"jessyink"] = u"https://launchpad.net/jessyink" 45 scriptNodes = self.document.xpath("//svg:script[@jessyink:version='1.5.5']", namespaces=inkex.NSS) 48 inkex.errormsg(_("The JessyInk script is not installed in this SVG file or has a different version than the JessyInk extensions. Please select \"install/update...\" from the \"JessyInk\" sub-menu of the \"Extensions\" menu to install or update the JessyInk script.\n\n")) 51 for node in self.document.xpath("//jessyink:mousehandler", namespaces=inkex.NSS): 56 scriptElm = inkex [all...] |
| H A D | jessyInk_transitions.py | 26 # We will use the inkex module with the predefined Effect base class. 27 import inkex namespace 29 inkex.localize() 31 class JessyInk_Transitions(inkex.Effect): 34 inkex.Effect.__init__(self) 43 inkex.NSS[u"jessyink"] = u"https://launchpad.net/jessyink" 47 scriptNodes = self.document.xpath("//svg:script[@jessyink:version='1.5.5']", namespaces=inkex.NSS) 50 inkex.errormsg(_("The JessyInk script is not installed in this SVG file or has a different version than the JessyInk extensions. Please select \"install/update...\" from the \"JessyInk\" sub-menu of the \"Extensions\" menu to install or update the JessyInk script.\n\n")) 53 nodes = self.document.xpath(unicode("//*[@inkscape:groupmode='layer' and @inkscape:label='" + self.options.layerName + "']", 'utf-8'), namespaces=inkex.NSS) 55 inkex [all...] |
| H A D | jessyInk_masterSlide.py | 26 # We will use the inkex module with the predefined Effect base class. 27 import inkex namespace 29 inkex.localize() 31 class JessyInk_MasterSlide(inkex.Effect): 34 inkex.Effect.__init__(self) 39 inkex.NSS[u"jessyink"] = u"https://launchpad.net/jessyink" 43 scriptNodes = self.document.xpath("//svg:script[@jessyink:version='1.5.5']", namespaces=inkex.NSS) 46 inkex.errormsg(_("The JessyInk script is not installed in this SVG file or has a different version than the JessyInk extensions. Please select \"install/update...\" from the \"JessyInk\" sub-menu of the \"Extensions\" menu to install or update the JessyInk script.\n\n")) 49 for node in self.document.xpath("//*[@jessyink:masterSlide='masterSlide']", namespaces=inkex.NSS): 50 del node.attrib["{" + inkex [all...] |
| H A D | next_glyph_layer.py | 20 import inkex namespace 22 class NextLayer(inkex.Effect): 24 inkex.Effect.__init__(self) 31 groups = self.svg.findall(inkex.addNS('g', 'svg')) 36 if "GlyphLayer-" in g.get(inkex.addNS('label', 'inkscape')):
|
| H A D | previous_glyph_layer.py | 20 import inkex namespace 22 class PreviousLayer(inkex.Effect): 24 inkex.Effect.__init__(self) 31 groups = self.svg.findall(inkex.addNS('g', 'svg')) 36 if "GlyphLayer-" in g.get(inkex.addNS('label', 'inkscape')):
|
| H A D | empty_icon.py | 5 import inkex namespace 7 class C(inkex.Effect): 9 inkex.Effect.__init__(self) 22 namedview = root.find(inkex.addNS('namedview', 'sodipodi')) 24 namedview = inkex.etree.SubElement( root, inkex.addNS('namedview', 'sodipodi') ); 26 namedview.set(inkex.addNS('document-units', 'inkscape'), 'px') 28 namedview.set(inkex.addNS('zoom', 'inkscape'), str(256.0/size) ) 29 namedview.set(inkex.addNS('cx', 'inkscape'), str(size/2.0) ) 30 namedview.set(inkex [all...] |
| H A D | webslicer_effect.py | 20 import inkex namespace 30 class WebSlicer_Effect(inkex.Effect): 33 inkex.Effect.__init__(self) 39 namespaces=inkex.NSS) 43 layer = inkex.etree.SubElement(self.document.getroot(), 'g') 45 layer.set(inkex.addNS('label', 'inkscape'), 'Web Slicer') 46 layer.set(inkex.addNS('groupmode', 'inkscape'), 'layer')
|
| H A D | lorem_ipsum.py | 23 import inkex namespace 176 class MyEffect(inkex.Effect): 178 inkex.Effect.__init__(self) 214 para=inkex.etree.SubElement(node,inkex.addNS('flowPara','svg')) 216 inkex.etree.SubElement(node,inkex.addNS('flowPara','svg')) 221 if node.tag == inkex.addNS('flowRoot','svg'): 226 #inkex.debug('No "flowRoot" elements selected. Unable to add text.') 228 gattribs = {inkex [all...] |
| H A D | jessyInk_view.py | 26 # We will use the inkex module with the predefined Effect base class. 27 import inkex namespace 29 inkex.localize() 50 class JessyInk_Effects(inkex.Effect): 53 inkex.Effect.__init__(self) 60 inkex.NSS[u"jessyink"] = u"https://launchpad.net/jessyink" 64 scriptNodes = self.document.xpath("//svg:script[@jessyink:version='1.5.5']", namespaces=inkex.NSS) 67 inkex.errormsg(_("The JessyInk script is not installed in this SVG file or has a different version than the JessyInk extensions. Please select \"install/update...\" from the \"JessyInk\" sub-menu of the \"Extensions\" menu to install or update the JessyInk script.\n\n")) 75 inkex.errormsg(_("More than one object selected. Please select only one object.\n")) 79 inkex [all...] |
| H A D | jessyInk_effects.py | 26 # We will use the inkex module with the predefined Effect base class. 27 import inkex namespace 28 inkex.localize() 30 class JessyInk_Effects(inkex.Effect): 33 inkex.Effect.__init__(self) 43 inkex.NSS[u"jessyink"] = u"https://launchpad.net/jessyink" 47 scriptNodes = self.document.xpath("//svg:script[@jessyink:version='1.5.5']", namespaces=inkex.NSS) 50 inkex.errormsg(_("The JessyInk script is not installed in this SVG file or has a different version than the JessyInk extensions. Please select \"install/update...\" from the \"JessyInk\" sub-menu of the \"Extensions\" menu to install or update the JessyInk script.\n\n")) 53 inkex.errormsg(_("No object selected. Please select the object you want to assign an effect to and then press apply.\n")) 57 node.set("{" + inkex [all...] |
| H A D | empty_business_card.py | 5 import inkex namespace 8 class C(inkex.Effect): 10 inkex.Effect.__init__(self) 30 namedview = root.find(inkex.addNS('namedview', 'sodipodi')) 32 namedview = inkex.etree.SubElement( root, inkex.addNS('namedview', 'sodipodi') ); 34 namedview.set(inkex.addNS('document-units', 'inkscape'), width_unit) 39 namedview.set(inkex.addNS('zoom', 'inkscape'), str(2) ) 40 namedview.set(inkex.addNS('cx', 'inkscape'), str(width_int/2.0) ) 41 namedview.set(inkex [all...] |
| H A D | jessyInk_uninstall.py | 26 # We will use the inkex module with the predefined Effect base class. 27 import inkex namespace 43 class JessyInk_Uninstall(inkex.Effect): 46 inkex.Effect.__init__(self) 56 inkex.NSS[u"jessyink"] = u"https://launchpad.net/jessyink" 62 for node in self.document.xpath("//svg:script[@id='JessyInk']", namespaces=inkex.NSS): 83 for node in self.document.xpath("//*[@jessyink:effectIn]", namespaces=inkex.NSS): 84 del node.attrib["{" + inkex.NSS["jessyink"] + "}effectIn"] 86 for node in self.document.xpath("//*[@jessyink:effectOut]", namespaces=inkex.NSS): 87 del node.attrib["{" + inkex [all...] |
| H A D | new_glyph_layer.py | 20 import inkex namespace 25 class NewGlyphLayer(inkex.Effect): 27 inkex.Effect.__init__(self) 47 layer = inkex.etree.SubElement(svg, 'g') 48 layer.set(inkex.addNS('label', 'inkscape'), u'GlyphLayer-'+char) 49 layer.set(inkex.addNS('groupmode', 'inkscape'), 'layer')
|
| H A D | empty_desktop.py | 5 import inkex namespace 8 class C(inkex.Effect): 10 inkex.Effect.__init__(self) 35 namedview = root.find(inkex.addNS('namedview', 'sodipodi')) 37 namedview = inkex.etree.SubElement( root, inkex.addNS('namedview', 'sodipodi') ); 39 namedview.set(inkex.addNS('document-units', 'inkscape'), 'px') 41 namedview.set(inkex.addNS('cx', 'inkscape'), str(width/2.0) ) 42 namedview.set(inkex.addNS('cy', 'inkscape'), str(height/2.0) )
|
| H A D | empty_generic.py | 5 import inkex namespace 8 class C(inkex.Effect): 10 inkex.Effect.__init__(self) 30 namedview = root.find(inkex.addNS('namedview', 'sodipodi')) 32 namedview = inkex.etree.SubElement( root, inkex.addNS('namedview', 'sodipodi') ); 34 namedview.set(inkex.addNS('document-units', 'inkscape'), unit) 37 namedview.set(inkex.addNS('zoom', 'inkscape'), str(512.0/self.uutounit( width, 'px' )) ) 38 namedview.set(inkex.addNS('cx', 'inkscape'), str(self.uutounit( width, 'px' )/2.0 ) ) 39 namedview.set(inkex [all...] |
| H A D | empty_video.py | 5 import inkex namespace 8 class C(inkex.Effect): 10 inkex.Effect.__init__(self) 35 namedview = root.find(inkex.addNS('namedview', 'sodipodi')) 37 namedview = inkex.etree.SubElement( root, inkex.addNS('namedview', 'sodipodi') ); 39 namedview.set(inkex.addNS('document-units', 'inkscape'), 'px') 41 namedview.set(inkex.addNS('cx', 'inkscape'), str(width/2.0) ) 42 namedview.set(inkex.addNS('cy', 'inkscape'), str(height/2.0) )
|
| H A D | extractimage.py | 23 import inkex namespace 25 inkex.localize() 27 class MyEffect(inkex.Effect): 29 inkex.Effect.__init__(self) 50 if node.tag == inkex.addNS('image','svg'): 51 xlink = node.get(inkex.addNS('href','xlink')) 68 inkex.errormsg(_('Image extracted to: %s') % path) 73 node.set(inkex.addNS('href','xlink'),os.path.realpath(path)) #absolute for making in-mem cycles work 75 inkex.errormsg(_('Unable to find image data.'))
|
| H A D | jessyInk_summary.py | 26 # We will use the inkex module with the predefined Effect base class. 27 import inkex namespace 29 inkex.localize() 50 class JessyInk_Summary(inkex.Effect): 53 inkex.Effect.__init__(self) 57 inkex.NSS[u"jessyink"] = u"https://launchpad.net/jessyink" 61 scriptNodes = self.document.xpath("//svg:script[@jessyink:version='1.5.5']", namespaces=inkex.NSS) 64 inkex.errormsg(_("The JessyInk script is not installed in this SVG file or has a different version than the JessyInk extensions. Please select \"install/update...\" from the \"JessyInk\" sub-menu of the \"Extensions\" menu to install or update the JessyInk script.\n\n")) 67 for node in self.document.xpath("//svg:script[@id='JessyInk']", namespaces=inkex.NSS): 68 if node.get("{" + inkex [all...] |
| H A D | empty_page.py | 5 import inkex namespace 7 class C(inkex.Effect): 9 inkex.Effect.__init__(self) 50 namedview = root.find(inkex.addNS('namedview', 'sodipodi')) 52 namedview = inkex.etree.SubElement( root, inkex.addNS('namedview', 'sodipodi') ); 54 namedview.set(inkex.addNS('document-units', 'inkscape'), units) 57 namedview.set(inkex.addNS('cx', 'inkscape'), str(self.uutounit( width, 'px' )/2.0 ) ) 58 namedview.set(inkex.addNS('cy', 'inkscape'), str(self.uutounit( height, 'px' )/2.0 ) ) 64 namedview.set(inkex [all...] |
| H A D | svgfont2layers.py | 20 import inkex namespace 24 class SVGFont2Layers(inkex.Effect): 27 inkex.Effect.__init__(self) 34 namedview = self.svg.find(inkex.addNS('namedview', 'sodipodi')) 35 guide = inkex.etree.SubElement(namedview, inkex.addNS('guide', 'sodipodi')) 36 guide.set(inkex.addNS('label', 'inkscape'), label) 43 node = inkex.etree.SubElement(parentnode, nodetype) 55 self.defs = self.svg.find(inkex.addNS('defs', 'svg')) 59 font = self.defs.find(inkex [all...] |
| H A D | hpgl_input.py | 26 import inkex namespace 28 inkex.localize() 32 parser = inkex.optparse.OptionParser(usage='usage: %prog [options] HPGLfile', option_class=inkex.InkOption) 36 (options, args) = parser.parse_args(inkex.sys.argv[1:]) 58 inkex.errormsg(_("No HPGL data found.")) 66 inkex.errormsg(_("The HPGL data contained unknown (unsupported) commands, there is a possibility that the drawing is missing some content.")) 69 doc.write(inkex.sys.stdout)
|
| H A D | hpgl_decoder.py | 24 import inkex namespace 50 self.doc = inkex.etree.parse(StringIO('<svg xmlns:sodipodi="' + inkex.NSS['sodipodi'] + '" xmlns:inkscape="' + inkex.NSS['inkscape'] + '" width="%smm" height="%smm" viewBox="0 0 %s %s"></svg>' % 52 inkex.etree.SubElement(self.doc.getroot(), inkex.addNS('namedview', 'sodipodi'), {inkex.addNS('document-units', 'inkscape'): 'mm'}) 54 self.layers[0] = inkex.etree.SubElement(self.doc.getroot(), 'g', {inkex.addNS('groupmode', 'inkscape'): 'layer', inkex [all...] |
| H A D | handles.py | 19 import inkex, simplepath, simplestyle namespace 21 class Handles(inkex.Effect): 24 if node.tag == inkex.addNS('path','svg'): 51 inkex.etree.SubElement(node.getparent(), inkex.addNS('path','svg'), attribs)
|