summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 410da1a)
raw | patch | inline | side by side (parent: 410da1a)
author | alvinpenner <alvinpenner@users.sourceforge.net> | |
Sat, 2 May 2009 00:27:30 +0000 (00:27 +0000) | ||
committer | alvinpenner <alvinpenner@users.sourceforge.net> | |
Sat, 2 May 2009 00:27:30 +0000 (00:27 +0000) |
share/extensions/dxf_input.py | patch | blob | history |
index 6ae5e625533d3e432e5f44696007a56202052069..8305ae14932b755602194746b9aa8ce22479f7cd 100644 (file)
val = inkex.re.sub( '\\\\S.*;', '', val)
val = inkex.re.sub( '\\\\W.*;', '', val)
val = unicode(val, "iso-8859-1")
+ val = val.encode('unicode_escape')
+ val = inkex.re.sub( '\\\\\\\\U\+([0-9A-Fa-f]{4})', '\\u\\1', val)
+ val = val.decode('unicode_escape')
elif line[0] == '62' or line[0] == '70' or line[0] == '93':
val = int(line[1])
elif line[0] == '10' or line[0] == '13' or line[0] == '14': # scaled float x value