Lines Matching refs:text
47 inkex.debug("This type of text element isn't supported. First remove text from path.")
52 text = inkex.etree.Element(inkex.addNS("text", "svg"), node.attrib)
54 #handling flowed text nodes
68 text.set("x", flowref.get("x"))
69 text.set("y", str(float(flowref.get("y")) + fs * count))
72 inkex.debug("This type of text element isn't supported. First unflow text.")
78 tspan.text = n.text
79 text.append(tspan)
86 text.set("x", x)
87 text.set("y", y)
88 text.append(copy(n))
90 lines.append(text)
100 #Function to recursively extract text
103 if elem.text:
104 words.append(elem.text)
111 #if text has more than one line, iterates through elements
117 #gets the position of text node
133 #creates new text nodes for each string in words_list
136 tspan.text = word
138 text = inkex.etree.Element(inkex.addNS("text", "svg"), line.attrib)
141 #positioning new text elements
144 text.set("x", str(x))
145 text.set("y", str(y))
147 text.append(tspan)
148 words.append(text)
176 for letter in word[0].text:
178 tspan.text = letter
180 text = inkex.etree.Element(inkex.addNS("text", "svg"), node.attrib)
181 text.set("x", str(x))
182 text.set("y", str(y))
185 text.append(tspan)
186 letters.append(text)
196 #checks if the selected elements are text nodes
198 if not (node.tag == inkex.addNS("text", "svg") or node.tag == inkex.addNS("flowRoot", "svg")):
199 inkex.debug("Please select only text elements.")