On 16.05.2015 02:03, André Pirard wrote: > On 2015-05-15 10:09, Robin `ypid` Schneider wrote : >> On 14.05.2015 23:17, André Pirard wrote: >>> On 2015-05-13 16:49, Robin `ypid` Schneider wrote : >>>> Hi >>>> >>>> This can already be done, no problem. It is even described on the key page >>>> [1]. >>>> Just search for "on appointment". >>> Typical of that page, you discover "on appointment" by chance in an >>> example dealing with fallback. >>> I have read that page throughout 36 times, that's what one must do for >>> each question. >>> And you make me discover a very fundamental rule I didn't notice after >>> 36 readings: that the tokens can be literal strings. And I wonder how >>> software supposed to tell whether it's open can understand strings. >>> Thanks. >> Software is not supposed to evaluate comments in opening_hours (although >> there >> has been an discussion about this [2]). I just added an explanation for the >> use >> of comments [3]. I hope this helps. > The amazing is that I was told that opening_hours supports (just search) > "on appointment" and that after coding it I learn that what I have added > is a comment. And that the "fallback" '|| "on appointment" ' would in > fact be '||'.
They are supported as comments. I am not sure if there is a use case that goes beyond displaying "on appointment" to the user (see below) that would require this to be directly supported by the syntax. If there is, here is a discussion about it: https://wiki.openstreetmap.org/wiki/Talk:Key:opening_hours#women.2Fmen-only_days >> About the complexity: >> https://www.openstreetmap.org/user/mvexel/diary/23332#comment27468 >> You are welcome to write good documentation/tutorials for normal mappers. > It's far from the first time that I read "if you don't understand, write > the documentation". > On the other hand, I did write a simplified syntax > <https://wiki.openstreetmap.org/wiki/Key:opening_hours#Simplified_syntax> of > what I think I understand and which was applauded by the "normal > mappers" but someone had removed it and almost insulted me for doing that. When it helps the average mappers why not. I (un)fortunate am too much involved in the opening_hours syntax to speak for the average mapper in that regard. https://wiki.openstreetmap.org/wiki/Talk:Key:opening_hours#.22Some_people_don.27t_fully_agree_with_the_following_simplified_diagram.22_-_what_is_the_problem.3F >> The thing which really helped me to understand opening_hours in OSM was the >> syntax specification [4]. I would recommend everyone to try to wrap your head >> around it. >> >> [2]: >> https://wiki.openstreetmap.org/wiki/Talk:Key:opening_hours#women.2Fmen-only_days >> [3]: >> https://wiki.openstreetmap.org/wiki/Key:opening_hours/specification#explain:comment >> [4]: https://wiki.openstreetmap.org/wiki/Key:opening_hours/specification > Thanks for any improvement. > I suggest (generally) that documentation said something like "anything > in quotes is a comment that can be considered as removed from the tag" > and only then gave examples. > This is because explaining syntax almost only with comments like the > opening_hours page does may have the reader believe that comments mean: > the text in quotes may be displayed on the user screen if the preceding > part of the rule is true or something like that. > > Cheers > > André. I always understood comments in opening_hours as comments intended for the end users. It is true that currently most services or programs that evaluate opening_hours do not display them but I consider that as a bug of that service or program which eventually gets fixed. http://openingh.openstreetmap.de/ does display comments to the end user for example. -- Live long and prosper Robin Schneider
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Tagging mailing list [email protected] https://lists.openstreetmap.org/listinfo/tagging
