summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6decd83)
raw | patch | inline | side by side (parent: 6decd83)
author | johncoswell <johncoswell@users.sourceforge.net> | |
Sun, 10 Feb 2008 16:13:36 +0000 (16:13 +0000) | ||
committer | johncoswell <johncoswell@users.sourceforge.net> | |
Sun, 10 Feb 2008 16:13:36 +0000 (16:13 +0000) |
share/extensions/perfectboundcover.inx | patch | blob | history | |
share/extensions/perfectboundcover.py | patch | blob | history |
index 422c329644b48ab77c855b88a28b1bee6264dbf2..f3bb95299188a07191887342c6ecd064a0f9d84d 100644 (file)
<param name="removeguides" type="boolean" _gui-text="Remove existing guides">true</param>
<_param name="paper" type="description">Interior Pages</_param>
<param name="paperthicknessmeasurement" _gui-text="Paper Thickness Measurement" type="optiongroup">
- <option>Pages Per Inch (PPI)</option>
- <option>Caliper (inches)</option>
- <option>Points</option>
- <option>Bond Weight #</option>
- <option>Specify Width</option>
+ <_option value="ppi">Pages Per Inch (PPI)</_option>
+ <_option value="caliper">Caliper (inches)</_option>
+ <_option value="points">Points</_option>
+ <_option value="bond_weight">Bond Weight #</_option>
+ <_option value="width">Specify Width</_option>
</param>
<param precision="4" name="paperthickness" type="float" min="0.000" max="1000.000" _gui-text="Value">0</param>
<_param name="cover" type="description">Cover</_param>
<param name="coverthicknessmeasurement" _gui-text="Cover Thickness Measurement" type="optiongroup">
- <option>Pages Per Inch (PPI)</option>
- <option>Caliper (inches)</option>
- <option>Points</option>
- <option>Bond Weight #</option>
- <option>Specify Width</option>
+ <_option value="ppi">Pages Per Inch (PPI)</_option>
+ <_option value="caliper">Caliper (inches)</_option>
+ <_option value="points">Points</_option>
+ <_option value="bond_weight">Bond Weight #</_option>
+ <_option value="width">Specify Width</_option>
</param>
<param precision="4" name="coverthickness" type="float" min="0.000" max="1000.000" _gui-text="Value">0</param>
<param precision="3" name="bleed" type="float" min="0.000" max="1.000" _gui-text="Bleed (in)">.25</param>
index d4e53dba1b7485baf1a9b64ba7ec2fd955eecc7a..0482feb87428c1554c8da75e7b458e724321cfad 100644 (file)
help="dummy")
def effect(self):
switch = {
- "Pages Per Inch (PPI)": lambda x: x,
- "Caliper (inches)": lambda x: caliper_to_ppi(x),
- "Bond Weight #": lambda x: bond_weight_to_ppi(x),
- "Points": lambda x: points_to_ppi(x),
- "Specify Width": lambda x: x
+ "ppi": lambda x: x,
+ "caliper": lambda x: caliper_to_ppi(x),
+ "bond_weight": lambda x: bond_weight_to_ppi(x),
+ "points": lambda x: points_to_ppi(x),
+ "width": lambda x: x
}
if self.options.paperthickness > 0:
- if self.options.paperthicknessmeasurement == "Specify Width":
+ if self.options.paperthicknessmeasurement == "width":
paper_spine = self.options.paperthickness
else:
paper_spine = self.options.pages / switch[self.options.paperthicknessmeasurement](self.options.paperthickness)
paper_spine = 0
if self.options.coverthickness > 0:
- if self.options.coverthicknessmeasurement == "Specify Width":
+ if self.options.coverthicknessmeasurement == "width":
cover_spine = self.options.coverthickness
else:
cover_spine = 4.0 / switch[self.options.coverthicknessmeasurement](self.options.coverthickness)