wtime — Week Time¶
                wtime dessine un emploi du temps hebdomadaire.
Utilisation¶
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)
                    État de sortie :
0: succès 1: fichier manquant 2: inkscape manquant
La commande wtime appelle la fonction wtime():
from wtime import *
wtime('fichier.txt')
                    Le fichier *.txt doit être en UTF-8 mais pas nécessairement signé.
Exemple¶
wtime repas.txt génère repas.pdf
wtime -p repas.txt génère l’image PNG :
 
                  Code source :
Repas sociaux à Strasbourg
Lundi Mardi Mercredi Jeudi Vendredi Samedi Dimanche
M-Me V
7:30 AS 8.. #d3312f
S
7:30 A Salut 8:30..
L-V
8 Car 8:30.. #00589f
S-D
..9:30 Caritas 10:30
L-V
..9:30 Étage1€ 10:30 #a3c520
L-D
8:30 Fringale 9:30 #e5007d
L Me V
..13:30 Frg 14
L Me
..19:30 Bus Cœur 21
M
..19:30 Ac Solidarité 21 #029bde
J
..19:30 Abri G (20:25) #ef9500
S-D
19 Abribus G (20:25)
J S-D
(20:30) Abribus E 22
L-V D
..13 E2€ 13:30 #a3c520
L-V
..19 19:30
D
11:30 Cmp Espoir 13 #80b030
M J
..12:30 7P 13 #dc0000
L Me V-S
12 7 Pains 13
L-S
18 19
M J
11:45 Kiener 12:30 #31455d
                    Versions¶
| 0.2: | 26 mars 2019 — Coins arrondis -r, débordement.., texte ombré | 
|---|---|
| 0.1: | 25 mars 2019 — Première version alpha |