HEX
Server: Apache
System: Linux opal14.opalstack.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User: curbgloabal_opal (1234)
PHP: 8.1.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/share/inkscape/extensions/perfectboundcover.pyo
�
��Yc@sxdZddlZddlZd�Zd�Zd�Zdejfd��YZedkrte�Z	e	j
�ndS(	s�
Copyright (C) 2007 John Bintz, jcoswell@cosellproductions.org

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����NcCsd|S(Ni((tcaliper((s3/usr/share/inkscape/extensions/perfectboundcover.pytcaliper_to_ppiscCst|d�S(Ng-C��6*?(R(tbond_weight((s3/usr/share/inkscape/extensions/perfectboundcover.pytbond_weight_to_ppiscCst|d�S(Ng@�@(R(tpoints((s3/usr/share/inkscape/extensions/perfectboundcover.pyt
points_to_ppistPerfectBoundCovercBseZd�Zd�ZRS(cCsjtjj|�|jjddddddddd	d
d�|jjddddddd
ddd
d�|jjdddddddddd
d�|jjdddddddddd
d�|jjdddddddddd
d�|jjdddddddddd
d �|jjd!dddddd"ddd
d#�|jjd$dddddd%dd&d
d'�|jjd(dddd)dd*dtd
d+�|jjd,dddddd-dtd
d.�|jjd/dddddd0dtd
d.�|jjd1dddddd2dtd
d.�|jjd3dddddd4dtd
d.�dS(5Ns--widthtactiontstorettypetfloattdesttwidthtdefaultg@thelpscover width (in)s--heighttheightg"@scover height (in)s--pagestinttpagesi@snumber of pagess--paperthicknessmeasurementtstringtpaperthicknessmeasurementgY@spaper thickness measurements--paperthicknesstpaperthicknessgspaper thicknesss--coverthicknessmeasurementtcoverthicknessmeasurementscover thickness measurements--coverthicknesstcoverthicknessscover thicknesss--bleedtbleedg�?scover bleed (in)s--removeguidestinkbooltremoveguidess
remove guidess--booktbooktdummys--covertcovers--papertpapers	--warningtwarning(tinkextEffectt__init__tOptionParsert
add_optiontFalse(tself((s3/usr/share/inkscape/extensions/perfectboundcover.pyR!sjcCsid�d6d�d6d�d6d�d6d	�d
6}|jjdkr�|jjd
krk|jj}q�|jj||jj|jj�}nd}|jjdkr�|jjd
kr�|jj}q�d||jj|jj�}nd}||}|jj|jjd
|}|jjd
|jj}|j	j
�}|jd
d|�|jdd|�g}|jd|jjg�|jd||jjg�|jd|jjg�|jd||jjg�|jd|d
|d
g�|jd|d
|d
g�|j	j
ddtj�}	|	r|jjtkr�x?|j	j
ddtj�D]}
|
j�}|j|
�qnWnxp|D]e}tjjtjdd��}
|
jd|d�|
jdd|dd�|	dj|
�q�WndS(NcSs|S(N((tx((s3/usr/share/inkscape/extensions/perfectboundcover.pyt<lambda>WstppicSs
t|�S(N(R(R&((s3/usr/share/inkscape/extensions/perfectboundcover.pyR'XsRcSs
t|�S(N(R(R&((s3/usr/share/inkscape/extensions/perfectboundcover.pyR'YsRcSs
t|�S(N(R(R&((s3/usr/share/inkscape/extensions/perfectboundcover.pyR'ZsRcSs|S(N((R&((s3/usr/share/inkscape/extensions/perfectboundcover.pyR'[sRig@is%sinRt
horizontaltverticals/svg:svg/sodipodi:namedviewt
namespacess*/svg:svg/sodipodi:namedview/sodipodi:guidetguidetsodipoditorientationtpositions%fii`(toptionsRRRRRRRRtdocumenttgetroottsettappendtxpathRtNSSRtTruet	getparenttremovetetreetElementtaddNS(R%tswitchtpaper_spinetcover_spinetspine_widthtdocument_widthtdocument_heighttroottguidest	namedviewtnodetparentR,tnewguide((s3/usr/share/inkscape/extensions/perfectboundcover.pyteffectUsR




)#
"
(t__name__t
__module__R!RI(((s3/usr/share/inkscape/extensions/perfectboundcover.pyRs	6t__main__(t__doc__tsysRRRRR RRJtetaffect(((s3/usr/share/inkscape/extensions/perfectboundcover.pyt<module>s			�