[Tagging] Follow-up on Time Domains

Brad Neuhauser brad.neuhauser at gmail.com
Wed Jan 23 15:47:43 GMT 2013


I don't think three letters is quite as universal as you think.  It's also
really common in English to use M,T,W,T,F,S,S (in context) or
M,Tu,W,Th,F,Sa,Su or variations.  Since we have a defacto OSM standard with
two letters (the opening_hours key has over 100K uses), and it's
unambiguous, this seems like a case of "if it ain't broke, don't fix it"

On Wed, Jan 23, 2013 at 8:59 AM, Serge Wroclawski <emacsen at gmail.com> wrote:

> On Wed, Jan 23, 2013 at 4:32 AM, Janko Mihelić <janjko at gmail.com> wrote:
> > It shouldn't be too hard to make a JOSM add-on that converts 3 letters
> into
> > 2. So that's no problem.
>
> You seem to be not seeing the point.
>
> Two letter days of the week (DOW) may be standard in German, and
> that's fine. But the tags we use in OSM are in English. They aren't in
> an abstracted system which we then render- we use English and then
> codify from there. It's what many software projects do, and it's what
> we do.
>
> So then we must ask "What is the standard way of representing a day of
> the week in English?". The way is to look at a standard, such as the
> locale (http://en.wikipedia.org/wiki/Locale)
>
> So if you look at your locale from a *nix system- you will see the
> abday, and you will see unicode encoded strings that show the day of
> the week.
>
> Since that is a pain to look at, we can use Python to help us:
>
> >>> import time
> >>> time.strftime("%a")
> 'Wed'
>
> If you aren't familiar with Python (or the C it borrows from),
> strftime prints out the time, and I've given it the parameter to
> display the shortened day of the week, according the locale (in my
> case, en_US).
>
> I'm not about to say that whether we use three letters or two is the
> end of the world, but I will say that we should strive to use things
> that are standard- things that are defined elsewhere. Doing so will
> make it easier for folks to use the software, but also easier for
> programmers to have something they expect.
>
> - Serge
>
> _______________________________________________
> Tagging mailing list
> Tagging at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/tagging
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tagging/attachments/20130123/62aa2162/attachment.html>


More information about the Tagging mailing list