home · contact · privacy
Use long form district names in HTML variant.
authorChristian Heller <c.heller@plomlompom.de>
Fri, 3 Jul 2020 18:59:04 +0000 (20:59 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 3 Jul 2020 18:59:04 +0000 (20:59 +0200)
enhance_table.py

index 0482bdfbffbf8fe0e89bb174454b04f561318a92..acbebc6b950905cab22a247a42010b69a15c166a 100755 (executable)
@@ -136,7 +136,9 @@ if output_type == 'html':
     print('<tr>')
     print('<th>date</th>')
     for district in sorted_districts:
-        print('<th>%s</th>' % district)
+        long_form = translate[district]
+        print('<th style="writing-mode: vertical-rl; '
+              'transform: rotate(180deg);">%s</th>' % long_form)
     print('</tr>')
     sorted_dates.reverse()
     for date in sorted_dates: