<div dir="ltr">Wow. Quality of discussion here.<div><br></div><div>> <span style="font-size:12.8000001907349px">I even find the second example more difficult to visualize. It's just worse </span><span style="font-size:12.8000001907349px">than the first in every respect</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">payment=efectivo;visa;mastercard;american␣express</span><br></div><div><span style="font-size:12.8000001907349px">payment=</span><span style="font-size:12.8000001907349px">mastercard;</span><span style="font-size:12.8000001907349px">visa;</span><span style="font-size:12.8000001907349px">efectivo</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">Now try to find <b>efectivo </b>with your regexes.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">If you want to tell me something about /.*</span><b style="font-size:12.8000001907349px">efectivo</b><span style="font-size:12.8000001907349px">.*/ you have no idea what OSM about and how regexes work. Say hello to</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">payment=</span><span style="font-size:12.8000001907349px">mastercard;</span><span style="font-size:12.8000001907349px">visa;</span><span style="font-size:12.8000001907349px">efectivonotinspain</span><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">There programmers out there but I'm an idiot and cannot teach how to write REGEX to casual user. They are true heros OSM need: <a href="http://xkcd.com/208/">http://xkcd.com/208/</a>.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">How to query for "payment:</span><span style="font-size:12.8000001907349px">efectivo"="yes"? I definitely need regex here. Please, help me!</span></div><div><span style="font-size:12.8000001907349px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-21 4:58 GMT+03:00 Friedrich Volkmann <span dir="ltr"><<a href="mailto:bsd@volki.at" target="_blank">bsd@volki.at</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 19.01.2015 12:34, jgpacker wrote:<br>
> I understand that the main tags of an object should avoid using semicolons to<br>
> make map renderer's life easier, but I don't think only exceptional tags<br>
> should use it and think most lists of values should be separated by<br>
> semicolon.<br>
><br>
> Particularly, I don't see how the example given in the page is better.<br>
><br>
> I.e. How is this:<br>
>> amenity=library<br>
>> library:stock=books;newspapers;recorded_music<br>
><br>
> better than this?:<br>
>> amenity=library<br>
>> library:stock:books=yes<br>
>> library:stock:newspapers=yes<br>
>> library:stock:recorded_music=yes<br>
><br>
> As a programmer, I find the first alternative to be easier to handle by a<br>
> data consumer. And while it could be slightly easier for a mapper to<br>
> visualize the second alternative (and this is debatable), it would take<br>
> longer to write it down.<br>
<br>
</span>I even find the second example more difficult to visualize. It's just worse<br>
than the first in every respect.<br>
<span class=""><br>
> So I definitely disagree with "In general avoid ';' separated values<br>
> whenever possible." (as it's said in the wiki right now).<br>
> I only agree with avoiding semicolons in "main" tags or in tags that<br>
> logically shouldn't have multiple values.<br>
<br>
</span>I don't see why semicolons should be avoided in main tags. Let's take the<br>
amenity=cafe;bar example given on the wiki page. A renderer (which must be<br>
aware of semicolon notation anyway!) only needs to take the first value,<br>
while a search engine may take both. Say, if you are searching for the<br>
nearest bar, you want it to return that establishment as the first item. But<br>
it's fine if it's titled as a cafe.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Friedrich K. Volkmann <a href="http://www.volki.at/" target="_blank">http://www.volki.at/</a><br>
Adr.: Davidgasse 76-80/14/10, 1100 Wien, Austria<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Tagging mailing list<br>
<a href="mailto:Tagging@openstreetmap.org">Tagging@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/tagging" target="_blank">https://lists.openstreetmap.org/listinfo/tagging</a><br>
</div></div></blockquote></div><br></div>