2012-07-17 20:44:12 +00:00
|
|
|
# callirhoe - high quality calendar rendering
|
|
|
|
# Copyright (C) 2012 George M. Tzoumas
|
|
|
|
|
|
|
|
# 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 3 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, see http://www.gnu.org/licenses/
|
|
|
|
|
|
|
|
# --- geom.default ---
|
|
|
|
|
2014-09-03 12:56:19 +00:00
|
|
|
"""module defining the default geometry"""
|
|
|
|
|
2012-07-17 20:44:12 +00:00
|
|
|
class dom:
|
2014-09-03 12:56:19 +00:00
|
|
|
"""day of month geometry"""
|
2012-07-30 01:18:01 +00:00
|
|
|
size = (0.5,0.5,0.8,0.5) # short 0-1, long 2-3
|
2012-08-03 12:00:30 +00:00
|
|
|
mw_split = (0.7,0.2)
|
2012-07-30 01:18:01 +00:00
|
|
|
|
2012-07-17 20:44:12 +00:00
|
|
|
header_size = footer_size = (0.8,0.1)
|
2012-12-07 16:28:45 +00:00
|
|
|
header_align = 0.15
|
2012-07-28 16:35:48 +00:00
|
|
|
footer_align = 0.15
|
2012-07-30 01:18:01 +00:00
|
|
|
hf_hsplit = (0.33,0.1)
|
|
|
|
hf_vsplit = (0.5,0.4)
|
2012-07-17 20:44:12 +00:00
|
|
|
|
|
|
|
class month:
|
2014-09-03 12:56:19 +00:00
|
|
|
"""month geometry"""
|
2012-08-06 10:50:18 +00:00
|
|
|
symmetric = False
|
2012-07-17 22:11:45 +00:00
|
|
|
sloppy_rot = 0
|
|
|
|
sloppy_dx = 0
|
|
|
|
sloppy_dy = 0
|
2012-08-06 10:50:18 +00:00
|
|
|
padding = 1.5
|
|
|
|
|
2012-12-07 16:28:45 +00:00
|
|
|
#class page:
|