---dxf_input.py-v21453 2009-07-10 11:23:26.000000000 +0200 +++ dxf_input.py 2009-07-10 13:00:44.000000000 +0200 @@ -1,5 +1,6 @@ #!/usr/bin/env python ''' +#$id:$ dxf_input.py - input a DXF file >= (AutoCAD Release 13 == AC1012) Copyright (C) 2008, 2009 Alvin Penner, penner@vaxxine.com @@ -24,6 +25,7 @@ import inkex, simplestyle, math from StringIO import StringIO +from urllib import quote def export_MTEXT(): # mandatory group codes : (1 or 3, 10, 20) (text, x, y) @@ -238,7 +240,7 @@ if vals[groups['2']] and vals[groups['10']] and vals[groups['20']]: x = vals[groups['10']][0] y = vals[groups['20']][0] - scale*ymax - attribs = {'x': '%f' % x, 'y': '%f' % y, inkex.addNS('href','xlink'): '#' + vals[groups['2']][0]} + attribs = {'x': '%f' % x, 'y': '%f' % y, inkex.addNS('href','xlink'): '#' + quote(vals[groups['2']][0].encode("utf-8"))} inkex.etree.SubElement(layer, 'use', attribs) def export_BLOCK():