Lines Matching refs:inkex

26 # We will use the inkex module with the predefined Effect base class.
27 import inkex
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.NSS["jessyink"] + "}version"):
69 inkex.errormsg(_("JessyInk script version {0} installed.").format(node.get("{" + inkex.NSS["jessyink"] + "}version")))
71 inkex.errormsg(_("JessyInk script installed."))
76 for node in self.document.xpath("//svg:g[@inkscape:groupmode='layer']", namespaces=inkex.NSS):
77 if node.get("{" + inkex.NSS["jessyink"] + "}masterSlide"):
83 inkex.errormsg(_("\nMaster slide:"))
89 inkex.errormsg(_("\nSlide {0!s}:").format(slideCounter))
90 self.describeNode(slide, "\t", str(slideCounter), str(len(slides)), slide.get("{" + inkex.NSS["inkscape"] + "}label"))
94 inkex.errormsg(_(u"{0}Layer name: {1}").format(prefix, node.get("{" + inkex.NSS["inkscape"] + "}label")))
97 transitionInAttribute = node.get("{" + inkex.NSS["jessyink"] + "}transitionIn")
102 inkex.errormsg(_("{0}Transition in: {1} ({2!s} s)").format(prefix, transInDict["name"], int(transInDict["length"]) / 1000.0))
104 inkex.errormsg(_("{0}Transition in: {1}").format(prefix, transInDict["name"]))
106 transitionOutAttribute = node.get("{" + inkex.NSS["jessyink"] + "}transitionOut")
111 inkex.errormsg(_("{0}Transition out: {1} ({2!s} s)").format(prefix, transOutDict["name"], int(transOutDict["length"]) / 1000.0))
113 inkex.errormsg(_("{0}Transition out: {1}").format(prefix, transOutDict["name"]))
117 autoTextNodes = node.xpath(".//*[@jessyink:autoText]", namespaces=inkex.NSS)
120 inkex.errormsg(_("\n{0}Auto-texts:").format(prefix))
123 inkex.errormsg(_("{0}\t\"{1}\" (object id \"{2}\") will be replaced by \"{3}\".").format(prefix, atNode.text, atNode.getparent().get("id"), autoTexts[atNode.get("{" + inkex.NSS["jessyink"] + "}autoText")]))
128 for effectNode in node.xpath(".//*[@jessyink:effectIn]", namespaces=inkex.NSS):
129 dictio = propListToDict(propStrToList(effectNode.get("{" + inkex.NSS["jessyink"] + "}effectIn")))
139 for effectNode in node.xpath(".//*[@jessyink:effectOut]", namespaces=inkex.NSS):
140 dictio = propListToDict(propStrToList(effectNode.get("{" + inkex.NSS["jessyink"] + "}effectOut")))
150 for viewNode in node.xpath(".//*[@jessyink:view]", namespaces=inkex.NSS):
151 dictio = propListToDict(propStrToList(viewNode.get("{" + inkex.NSS["jessyink"] + "}view")))
189 inkex.errormsg(tmpStr + ".\n")