Skip to content

Commit f8cd1fc

Browse files
committed
0.20181227 "A4"
format A4
1 parent 338255b commit f8cd1fc

File tree

4 files changed

+26
-26
lines changed

4 files changed

+26
-26
lines changed

2017.svg

-1
This file was deleted.

2019.svg

+1
Loading

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ SVG year calendar of python.
66

77
Usage:
88

9-
python svgcal.py -o 2017.svg 2017
9+
python svgcal.py -o 2019.svg 2019
1010

11-
bash svgcal-i18n-ru.sh 2017.svg
11+
bash svgcal-i18n-ru.sh 2019.svg
1212

13-
inkscape 2017.svg
13+
inkscape 2019.svg
1414

15-
![2017.svg](https://github.com/zvezdochiot/svgcal.py/blob/master/2017.svg)
15+
![2019.svg](./2019.svg)
1616

1717
[... add background ... print ]
1818

19-
2017 zvezdochiot.
19+
2018 zvezdochiot.

svgcal.py

+20-20
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33
# svg year calendar, based calendargen.py [Copyright (c) 2015 Vlad Emelyanov, The MIT License (MIT)]
44
from __future__ import unicode_literals
55

66
__author__ = "Vlad Emelyanov ([email protected])"
77
__modify__ = "zvezdochiot ([email protected])"
8-
__version__ = "0.20170412"
9-
__date__ = "2017-04-12"
8+
__version__ = "0.20181227"
9+
__date__ = "2018-12-27"
1010
__license__ = "CC-BY"
1111

1212
import datetime
@@ -62,41 +62,41 @@ def __init__(self, year):
6262
self.style = {
6363
'units': 'pt',
6464

65-
'width': 674,
66-
'height': 476,
65+
'width': 842,
66+
'height': 595,
6767

6868
'border-color': '#ccc',
6969

7070
'year-color': '#666666',
71-
'year-padding-top': 36,
72-
'year-padding-left': 14,
71+
'year-padding-top': 45,
72+
'year-padding-left': 18,
7373
'year-font-family': font,
74-
'year-font-size': 36,
74+
'year-font-size': 45,
7575

76-
'month-width': 164,
77-
'month-width-rect': 154,
78-
'month-height': 144,
76+
'month-width': 204,
77+
'month-width-rect': 192,
78+
'month-height': 180,
7979

80-
'day-width': 151 / 7.0,
81-
'day-height': 80 / 5.0,
80+
'day-width': 188 / 7.0,
81+
'day-height': 100 / 5.0,
8282

8383
'month-margin-right': 0,
8484
'month-margin-bottom': 0,
8585

8686
'month-font-family': font,
87-
'month-font-size': 22,
87+
'month-font-size': 28,
8888
'month-color': '#FF9525',
89-
'month-padding-top': 22,
89+
'month-padding-top': 26,
9090

91-
'month-offset-top': 36,
91+
'month-offset-top': 45,
9292

93-
'week-padding-top': 43,
93+
'week-padding-top': 54,
9494
'week-font-family': font,
95-
'week-font-size': 11,
95+
'week-font-size': 14,
9696

97-
'day-padding-top': 43,
97+
'day-padding-top': 54,
9898
'day-font-family': font,
99-
'day-font-size': 12,
99+
'day-font-size': 15,
100100

101101
'day-color': '#000000',
102102
'day-holiday-color': '#FF0000',

0 commit comments

Comments
 (0)