File: //usr/share/inkscape/extensions/dm2svg.pyc
�
��Yc @ s� d Z d d l Z d � Z d � Z d � Z d � Z e d k r� d d l Z e e j � d k rw e e j d � q� e j
d
e j d IJn d S( s�
dm2svg.py - import a DHW file from ACECAD DigiMemo
Copyright (C) 2009 Kevin Lindsey, https://github.com/thelonious/DM2SVG
Copyright (C) 2011 Nikita Kitaev, https://github.com/nikitakit/DM2SVG
Copyright (C) 2011 Chris Morgan, https://gist.github.com/1471691
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
i����Nc
C s� y t | d � } Wn+ t k
r@ } t j d | | f IJd SX| ��t | � } d } d } d | } xlt r�| j d � } | d k r� Pn t | � d k r�| d k r� t | � t d
� d t | j d � � d } d } d | } q�| d k r | t | j d � � d
7} q�t | � g } xO t r�| j t
| | � � t | j d � � d k rnPn | j d d � q3W| j t
| | � � d j d � | D� � } d | | f } qm t j d | IJqm Wd GHWd QXd S( Nt rbs Unable to open %s: %st layer1i s&