No, we don't want to s/-/‑/g for everybody, as some people have environments where that character doesn't render properly (the Wii browser for one, it seems).

Frankly, most people don't have this problem because they are used to the age of CSS when at least a near majority of web pages are at least inconvenient to read if you don't maximize your browser and also have a fairly modern-sized monitor.

I find that most computer users I meet either only use maximized windows or hardly ever use maximized windows. The latter group is in the minority but counts me as a member. So I find myself constantly disabling CSS just so I can frickin' read the dang text on a stupid web page.

So I likely have my browser window about 1/2 the width of the majority of people and so I see wrapped text in tables at PerlMonks more than most.

So, the few of us who actually still make use of a windowing system should be enabled to set our 'shorttimeformat' to "%Y&#8209;%m&#8209;%d&nbsp;%H:%M" or "<nobr>%Y-%m-%d %H:%M</nobr>" but then have that transformed into something for the non-HTML contexts (like 'title' attributes), perhaps via things like s/&#8209;/-/g and s/&nbsp;/ /g and s/<[^>]+>//g. So we need to teach the code to ask for an HTML compact date or a text compact date.

But probably better would be to allow for each time format to specify separate formats for HTML vs. text. I'd probably just stuff that into the existing format settings. I'd be tempted to use "</html>" as the separator so we don't have allow for escaping the separator. For example, "<nobr>%Y-%m-%d&#x1F551;%H:%M</nobr></html>%Y-%m-%d %H:%M".

- tye        


In reply to Re^3: Not using "non-breaking hyphen" U+8209 in timestamps (future) by tye
in thread Not using "non-breaking hyphen" U+8209 in timestamps by jdporter

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.