From 98f76c5aca9745cd83a67e7d1d4c725c4929381b Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Mon, 01 Feb 2010 17:05:47 +0000 Subject: more cleaning up, bug chasing --- (limited to 'constants.py') diff --git a/constants.py b/constants.py index fee8364..e57968f 100644 --- a/constants.py +++ b/constants.py @@ -78,7 +78,6 @@ STANDARD_STROKE_WIDTH = 1.0 PALETTE_SCALE = {'template2x2':1.0, 'template1x2':1.0} - # # block style definitions # @@ -396,7 +395,19 @@ OLD_NAMES = {'product':'product2', 'storeinbox':'storein', 'descriptionoff':'description','template3':'list', 'template1':'template1x1', 'template2':'template2x1', 'template6':'template1x2', 'template7':'template2x2', - 'template8':'template1x1' } + 'template4':'template1x1', 'hres':'width', 'vres':'height' } + +# +# Define the relative size and postion of media objects +# (w, h, x, y, dx, dy) +# +TEMPLATES = {'t1x1': (0.5, 0.5, 0.0625, 0.125, 1.05, 0), + 't2z1': (0.5, 0.5, 0.0625, 0.125, 1.05, 1.05), + 't1x2': (0.45, 0.45, 0.0625, 0.125, 1.05, 1.05), + 't2x2': (0.45, 0.45, 0.0625, 0.125, 1.05, 1.05), + 't1x1a': (0.9, 0.9, 0.0625, 0.125, 0, 0), + 'bullet': (1, 1, 0.0625, 0.125, 0, 0.1), + 'insertimage': (0.333, 0.333)} # # 'dead key' Unicode dictionaries -- cgit v0.9.1