File: //usr/share/inkscape/extensions/new_glyph_layer.pyo
�
��Yc @ si d Z d d l Z d d l Z d d l Z d e j f d � � YZ e d k re e � Z e j � n d S( s�
Copyright (C) 2011 Felipe Correa da Silva Sanches
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����Nt
NewGlyphLayerc B s e Z d � Z d � Z RS( c
C s� t j j | � | j j d d d d d d d d d d
d d �t j j | _ | j d
k sn | j d k r� t j
� | _ n d S( Ns -us --unicodecharst actiont storet typet stringt destt unicodecharst defaultt t helps
Unicode charst cp0( t inkext Effectt __init__t OptionParsert
add_optiont syst stdint encodingt Nonet localet getpreferredencoding( t self( ( s1 /usr/share/inkscape/extensions/new_glyph_layer.pyR
s c C s� | j j j | j � } | j j � } x� | D]� } t j j | d � } | j t j
d d � d | � | j t j
d d � d � | j d d � x* | j j � D] \ } } | j
| � q� Wq. Wd S( Nt gt labelt inkscapeu GlyphLayer-t groupmodet layert styles display:none( t optionsR t decodeR t documentt getrootR t etreet
SubElementt sett addNSt selectedt iteritemst append( R t
unicode_charst svgt charR t idt node( ( s1 /usr/share/inkscape/extensions/new_glyph_layer.pyt effect$ s
( t __name__t
__module__R
R- ( ( ( s1 /usr/share/inkscape/extensions/new_glyph_layer.pyR s
t __main__( t __doc__R R R R R R. t et affect( ( ( s1 /usr/share/inkscape/extensions/new_glyph_layer.pyt <module> s