From df7f9ca089b520c8eba709dbbea8e80fb0887ca4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= <skunk@xover.mud.at>
Date: Sat, 26 Sep 2020 11:31:04 +0200
Subject: [PATCH] culture: include sundial and orthodox clocks

---
 culture.json | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/culture.json b/culture.json
index 226b774..0a0cd94 100644
--- a/culture.json
+++ b/culture.json
@@ -30,13 +30,16 @@
             "node[tourism~\"^(artwork|gallery|museum|theme_park)$\"];",
             "way[tourism~\"^(artwork|gallery|museum|theme_park)$\"];",
             "relation[tourism~\"^(artwork|gallery|museum|theme_park)$\"];",
+            "nwr[amenity=clock][display~\"^(sundial|unorthodox)$\"];",
+            "nwr[amenity=clock][\"display:sundial\"];",
+            "nwr[amenity=clock][\"display:unorthodox\"];",
             "nwr[shop~\"^(art)$\"];",
             ")"
         ]
     },
     "feature": {
         "pre": [
-            "{% if tags.amenity in [ 'arts_centre', 'cinema', 'community_centre', 'fountain', 'studio', 'theatre' ] %}",
+            "{% if tags.amenity in [ 'arts_centre', 'cinema', 'community_centre', 'fountain', 'studio', 'theatre', 'clock' ] %}",
             "{% set key = 'amenity' %}",
             "{% set value = tags.amenity %}",
             "{% elseif tags.tourism %}",
@@ -50,6 +53,9 @@
         "description": [
             "{% if key == 'shop' %}",
             "  {{ keyTrans(key) }} ({{ tagTrans(key, value) }})",
+            "{% elseif tags.amenity == 'clock' %}",
+            "  {% if tags.display == 'sundial' or attribute(tags, 'display:sundial') %}{{ tagTrans('amenity', 'clock display=sundial') }}{% endif %}",
+            "  {% if tags.display == 'unorthodox' or attribute(tags, 'display:unorthodox') %}{{ tagTrans('amenity', 'clock display=unorthodox') }}{% endif %}",
             "{% else %}",
             "  {{ tagTrans(key, value) }}",
             "{% endif %}",
@@ -102,6 +108,7 @@
     "const": {
         "amenity=arts_centre": "🎨",
         "amenity=cinema": "🎦",
+        "amenity=clock": "<i class=\"fas fa-clock\"></i>",
         "amenity=community_centre": "<i class=\"fas fa-users\" aria-hidden=\"true\"></i>",
         "amenity=fountain": "⛲",
         "amenity=studio": "<i class=\"fas fa-microphone\"></i>",