wtime
— Week Time¶
wtime
draws a weekly timetable.
Usage¶
usage: wtime [-kp] [-f F] [-g G] [-h H] [-r R] [-s S] [-w W] file
Week Time 0.2
positional arguments:
file TXT expanded to SVG rendered to PNG or PDF with Inkscape
optional arguments:
-f F, --font F font-family (default: LiberationSans)
-g G, --gap G max gap (default: 1, no reduction: 0)
-h H, --height H PNG height (implies -p)
-k, --keep keep SVG, do not run Inkscape
-p, --png render to PNG (default: PDF)
-r R, --round R rounded corner radius (default: 6)
-s S, --size S font-size (default: 11)
-w W, --width W PNG width (implies -p)
Exit status:
0: success 1: missing file 2: missing inkscape
The wtime
command calls the wtime()
function:
from wtime import *
wtime('file.txt')
The *.txt
file must be in UTF-8 but not necessarily signed.
Example¶
wtime meals.txt
renders meals.pdf
wtime -p meals.txt
renders PNG image:
Source code:
Social meals in Strasbourg
Monday Tuesday Wednesday Thursday Friday Saturday Sunday
T-W F
7:30 AS 8.. #d3312f
S
7:30 A Salut 8:30..
M-F
8 Car 8:30.. #00589f
S-Su
..9:30 Caritas 10:30
M-F
..9:30 Étage1€ 10:30 #a3c520
M-Su
8:30 Fringale 9:30 #e5007d
M W F
..13:30 Frg 14
M W
..19:30 Bus Cœur 21
T
..19:30 Ac Solidarité 21 #029bde
Th
..19:30 Abri G (20:25) #ef9500
S-Su
19 Abribus G (20:25)
Th S-Su
(20:30) Abribus E 22
M-F Su
..13 E2€ 13:30 #a3c520
M-F
..19 19:30
Su
11:30 Cmp Espoir 13 #80b030
T Th
..12:30 7P 13 #dc0000
M W F-S
12 7 Pains 13
M-S
18 19
T Th
11:45 Kiener 12:30 #31455d
Versions¶
0.2: | 26 mars 2019 — Rounded corners -r , overflow .. , shaded text |
---|---|
0.1: | 25 mars 2019 — First alpha release |