dxf import: encoding problem
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hello,
I have inkscape 0.46 from debian unstable but with the newest dxf_import script (dxf_import.py - Version21453). I had an problem by importing an dxf-file from qcad. I found out that there is a problem with BLOCK-Names that have spaces ore special letters like äöü... I've written a patch for that bug, that encodes the names. By the way it'd be grat if you use the Id tag in files so everyone can see what version is newer or older...
---dxf_
+++ 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, <email address hidden>
@@ -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[
y = vals[groups[
- attribs = {'x': '%f' % x, 'y': '%f' % y, inkex.addNS(
+ attribs = {'x': '%f' % x, 'y': '%f' % y, inkex.addNS(
def export_BLOCK():
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
tags: | added: importing |
thanks hefee, this has been tested and committed to rev 21782.