/inkscape/share/extensions/ |
H A D | empty_icon.py | 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.addNS('cy', 'inkscape'), str(size/2.0) ) 31 namedview.set(inkex.addNS('grid-bbox', 'inkscape'), "true" )
|
H A D | empty_generic.py | 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.addNS('cy', 'inkscape'), str(self.uutounit( height, 'px' )/2.0 ) ) 44 namedview.set(inkex.addNS('pageopacity', 'inkscape'), "1.0" ) 45 namedview.set(inkex.addNS('pageshadow', 'inkscape'), "0" ) 50 namedview.set(inkex.addNS('pageopacity', 'inkscape'), "1.0" ) 51 namedview.set(inkex.addNS('pageshado [all...] |
H A D | empty_page.py | 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.addNS('pageopacity', 'inkscape'), "1.0" ) 65 namedview.set(inkex.addNS('pageshadow', 'inkscape'), "0" ) 70 namedview.set(inkex.addNS('pageopacity', 'inkscape'), "1.0" ) 71 namedview.set(inkex.addNS('pageshadow', 'inkscape'), "0" ) 76 namedview.set(inkex.addNS('pageopacit [all...] |
H A D | empty_business_card.py | 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.addNS('cy', 'inkscape'), str(height_int/2.0) )
|
H A D | lorem_ipsum.py | 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'): 228 gattribs = {inkex.addNS('label','inkscape'):'lorem ipsum',inkex.addNS('groupmode','inkscape'):'layer'} 229 g=inkex.etree.SubElement(svg,inkex.addNS('g','svg'),gattribs) 230 flowRoot=inkex.etree.SubElement(g,inkex.addNS('flowRoot','svg'),{inkex.addNS('space','xml'):'preserve'}) 231 flowRegion=inkex.etree.SubElement(flowRoot,inkex.addNS('flowRegion','svg')) 233 rect=inkex.etree.SubElement(flowRegion,inkex.addNS('rec [all...] |
H A D | svgfont2layers.py | 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) 55 self.defs = self.svg.find(inkex.addNS('defs', 'svg')) 59 font = self.defs.find(inkex.addNS('font', 'svg')) 65 fontface = font.find(inkex.addNS('font-face', 'svg')) 85 glyphs = font.findall(inkex.addNS('glyph', 'svg')) 92 layer = inkex.etree.SubElement(self.svg, inkex.addNS('g', 'svg')) 93 layer.set(inkex.addNS('label', 'inkscape'), "GlyphLayer-" + unicode_char) 94 layer.set(inkex.addNS('groupmod [all...] |
H A D | empty_desktop.py | 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_video.py | 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 | next_glyph_layer.py | 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 | 31 groups = self.svg.findall(inkex.addNS('g', 'svg')) 36 if "GlyphLayer-" in g.get(inkex.addNS('label', 'inkscape')):
|
H A D | layers2svgfont.py | 29 namedview = self.svg.find(inkex.addNS('namedview', 'sodipodi')) 30 guides = namedview.findall(inkex.addNS('guide', 'sodipodi')) 32 l=guide.get(inkex.addNS('label', 'inkscape')) 44 glyphs = font.findall(inkex.addNS('glyph', 'svg')) 48 return inkex.etree.SubElement(font, inkex.addNS('glyph', 'svg')) 59 self.defs = self.get_or_create(self.svg, inkex.addNS('defs', 'svg')) 68 font = self.get_or_create(self.defs, inkex.addNS('font', 'svg')) 72 fontface = self.get_or_create(font, inkex.addNS('font-face', 'svg')) 80 groups = self.svg.findall(inkex.addNS('g', 'svg')) 82 label = group.get(inkex.addNS('labe [all...] |
H A D | empty_dvd_cover.py | 20 namedview = self.root.find(inkex.addNS('namedview', 'sodipodi')) 21 guide = inkex.etree.SubElement(namedview, inkex.addNS('guide', 'sodipodi')) 25 # guide.set(inkex.addNS('label', 'inkscape'), label) 46 namedview = self.root.find(inkex.addNS('namedview', 'sodipodi')) 48 namedview = inkex.etree.SubElement( self.root, inkex.addNS('namedview', 'sodipodi') ); 50 namedview.set(inkex.addNS('document-units', 'inkscape'), "mm") 53 namedview.set(inkex.addNS('cx', 'inkscape'), str(self.uutounit( width, 'px' )/2.0 ) ) 54 namedview.set(inkex.addNS('cy', 'inkscape'), str(self.uutounit( height, 'px' )/2.0 ) )
|
H A D | setup_typography_canvas.py | 54 namedview = self.svg.find(inkex.addNS('namedview', 'sodipodi')) 55 guide = inkex.etree.SubElement(namedview, inkex.addNS('guide', 'sodipodi')) 58 guide.set(inkex.addNS('label', 'inkscape'), label) 82 namedview = self.svg.find(inkex.addNS('namedview', 'sodipodi')) 83 namedview.set(inkex.addNS('document-units', 'inkscape'), 'px') 84 namedview.set(inkex.addNS('cx', 'inkscape'), str(emsize/2.0 )) 85 namedview.set(inkex.addNS('cy', 'inkscape'), str(emsize/2.0 ))
|
H A D | split.py | 45 if not (n.tag == inkex.addNS("flowPara", "svg") or n.tag == inkex.addNS("tspan", "svg")): 46 if n.tag == inkex.addNS("textPath", "svg"): 52 text = inkex.etree.Element(inkex.addNS("text", "svg"), node.attrib) 55 if node.tag == inkex.addNS("flowRoot", "svg"): 67 if flowref.tag == inkex.addNS("rect", "svg"): 76 tspan = inkex.etree.Element(inkex.addNS("tspan", "svg")) 77 tspan.set(inkex.addNS("role","sodipodi"), "line") 135 tspan = inkex.etree.Element(inkex.addNS("tspan", "svg")) 138 text = inkex.etree.Element(inkex.addNS("tex [all...] |
H A D | text_merge.py | 163 self.textRoot=inkex.etree.SubElement(parentnode,inkex.addNS(self.text_element,'svg'),{inkex.addNS('space','xml'):'preserve'}) 164 self.textRoot.set(inkex.addNS('style', ''), 'font-size:20px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;') 170 self.region=inkex.etree.SubElement(self.textRoot,inkex.addNS('flowRegion','svg'),{inkex.addNS('space','xml'):'preserve'}) 171 self.rect=inkex.etree.SubElement(self.region,inkex.addNS('rect','svg'),{inkex.addNS('space','xml'):'preserve'}) 172 self.rect.set(inkex.addNS('height', ''), '200') 173 self.rect.set(inkex.addNS('width', ''), '200') 179 newspan=inkex.etree.SubElement(span,inkex.addNS(sel [all...] |
H A D | hpgl_decoder.py | 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.addNS('label', 'inkscape'): self.textMovements, 'id': self.textMovements}) 96 {inkex.addNS('groupmode', 'inkscape'): 'layer', inkex.addNS('label', 'inkscape'): self.textPenNumber + str(layerNum - 1), 'id': self.textPenNumber + str(layerNum - 1)})
|
H A D | handles.py | 24 if node.tag == inkex.addNS('path','svg'): 51 inkex.etree.SubElement(node.getparent(), inkex.addNS('path','svg'), attribs)
|
H A D | inkscape_follow_link.py | 23 if node.tag == inkex.addNS('a','svg'): 24 self.url = node.get(inkex.addNS('href','xlink'))
|
H A D | new_glyph_layer.py | 48 layer.set(inkex.addNS('label', 'inkscape'), u'GlyphLayer-'+char) 49 layer.set(inkex.addNS('groupmode', 'inkscape'), 'layer')
|
H A D | webslicer_effect.py | 45 layer.set(inkex.addNS('label', 'inkscape'), 'Web Slicer') 46 layer.set(inkex.addNS('groupmode', 'inkscape'), 'layer')
|
H A D | jessyInk_mouseHandler.py | 56 scriptElm = inkex.etree.Element(inkex.addNS("script", "svg")) 58 groupElm = inkex.etree.Element(inkex.addNS("mousehandler", "jessyink")) 64 scriptElm = inkex.etree.Element(inkex.addNS("script", "svg")) 66 groupElm = inkex.etree.Element(inkex.addNS("mousehandler", "jessyink"))
|
H A D | extractimage.py | 50 if node.tag == inkex.addNS('image','svg'): 51 xlink = node.get(inkex.addNS('href','xlink')) 73 node.set(inkex.addNS('href','xlink'),os.path.realpath(path)) #absolute for making in-mem cycles work
|
H A D | wireframe_sphere.py | 73 inkex.addNS('cx','sodipodi') :str(cx), 74 inkex.addNS('cy','sodipodi') :str(cy), 75 inkex.addNS('rx','sodipodi') :str(rx), 76 inkex.addNS('ry','sodipodi') :str(ry), 77 inkex.addNS('start','sodipodi') :str(start_end[0]), 78 inkex.addNS('end','sodipodi') :str(start_end[1]), 79 inkex.addNS('open','sodipodi') :'true', #all ellipse sectors we will draw are open 80 inkex.addNS('type','sodipodi') :'arc', 84 circ = inkex.etree.SubElement(parent, inkex.addNS('path','svg'), circ_attribs ) 136 grp_attribs = {inkex.addNS('labe [all...] |
H A D | embedimage.py | 51 if node.tag == inkex.addNS('image','svg'): 61 xlink = node.get(inkex.addNS('href','xlink')) 63 absref=node.get(inkex.addNS('absref','sodipodi')) 107 node.set(inkex.addNS('href','xlink'), 'data:%s;base64,%s' % (type, base64.encodestring(file))) 109 del node.attrib[inkex.addNS('absref',u'sodipodi')]
|
/inkscape/share/filters/ |
H A D | samplify.py | 32 def addNS(tag, ns=None): function 39 a_href = addNS('href', 'xlink') 40 a_menu = addNS('menu', 'inkscape') 41 a_tooltip = addNS('menu-tooltip', 'inkscape') 42 a_label = addNS('label', 'inkscape') 43 e_text = addNS('text', 'svg') 44 e_tspan = addNS('tspan', 'svg') 45 e_flowRoot = addNS('flowRoot', 'svg') 46 e_flowPara = addNS('flowPara', 'svg') 47 e_flowSpan = addNS('flowSpa [all...] |