Lines Matching refs:inkex
26 # We will use the inkex module with the predefined Effect base class.
27 import inkex
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.NSS)
54 inkex.errormsg(_("Node with id '{0}' is not a suitable text node and was therefore ignored.\n\n").format(str(id)))
57 nodes[0].set("{" + inkex.NSS["jessyink"] + "}autoText","slideTitle")
59 nodes[0].set("{" + inkex.NSS["jessyink"] + "}autoText","slideNumber")
61 nodes[0].set("{" + inkex.NSS["jessyink"] + "}autoText","numberOfSlides")
63 if nodes[0].attrib.has_key("{" + inkex.NSS["jessyink"] + "}autoText"):
64 del nodes[0].attrib["{" + inkex.NSS["jessyink"] + "}autoText"]