summaryrefslogtreecommitdiff
path: root/support/inkscape/inkscape.py
diff options
context:
space:
mode:
authorMichael Schwarz <michi.schwarz@gmail.com>2015-08-06 17:32:53 +0200
committerMichael Schwarz <michi.schwarz@gmail.com>2015-08-07 02:03:28 +0200
commit6bce36b6ede16d28626d40a0b4d60954a35ad48f (patch)
treeb2224d57fad10567da7a322d5b8843a13fe5b2e6 /support/inkscape/inkscape.py
parent0b1113d5036c2f2ac4bceedfd907fcbbfea6f08e (diff)
downloadpogojig-6bce36b6ede16d28626d40a0b4d60954a35ad48f.tar.gz
pogojig-6bce36b6ede16d28626d40a0b4d60954a35ad48f.tar.bz2
pogojig-6bce36b6ede16d28626d40a0b4d60954a35ad48f.zip
Inkscape export: Fix wrong units in Asymptote export.
The generate asymptote file would use the Inkscape document coordinates but Asymptote always uses PostScript points.
Diffstat (limited to 'support/inkscape/inkscape.py')
-rw-r--r--support/inkscape/inkscape.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/support/inkscape/inkscape.py b/support/inkscape/inkscape.py
index 09e7a7b..876b0a7 100644
--- a/support/inkscape/inkscape.py
+++ b/support/inkscape/inkscape.py
@@ -14,17 +14,17 @@ def get_inkscape_layers(svg_path):
inkscape_name = i.get('{http://www.inkscape.org/namespaces/inkscape}label').strip()
if inkscape_name.endswith(']'):
- dxf_name, args = inkscape_name[:-1].rsplit('[', 1)
+ export_name, args = inkscape_name[:-1].rsplit('[', 1)
- dxf_name = dxf_name.strip()
+ export_name = export_name.strip()
args = args.strip()
use_paths = 'p' in args
else:
use_paths = False
- dxf_name = inkscape_name
+ export_name = inkscape_name
- yield Layer(inkscape_name, dxf_name, use_paths = use_paths)
+ yield Layer(inkscape_name, export_name, use_paths)
return list(iter_layers())