Re: nobr tag

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Scripsit Andreas Prilop:

Quoted text here. Click to load it

EN 28601 has been withdrawn. (I can't check the exact date, but it was
in 2006 or earlier.)

Quoted text here. Click to load it

This is a tricky issue, and actually HTML related too.

Checking ISO 8601:2004, available via
we can find that the standard does not quite exactly define the
characters used in notations, but fairly well. It clearly distinguishes
"hyphen", "minus", and "hyphen-minus" (i.e., the ASCII hyphen) as
different characters. The character to be used in a notation like
2008-01-20 is called hyphen, so in conjunction with the distinction I
mentioned, we can conclude that character is U+2010 HYPHEN, though it
may be replaced by U+002D HYPHEN-MINUS. The standard allow the
replacement "in an environment where use is made of a character
repertoire based on ISO/IEC 646", which is standardese for "ASCII-based
contexts", but I think we can interpret the "based on" part liberally so
that the replacement is allowed whenever MINUS cannot be used (e.g.,
when a document's encoding is ISO 8859).

Thus, I think we can conclude that U+2011 NON-BREAKING HYPHEN is not
permitted by the ISO 8601 standard. It is compatibility equivalent to
U+2010, but this does not mean identity. Thus, to prevent line breaks in
an ISO 8601 date notation, you would need to use higher-level protocols,
such as markup (<nobr>...</nobr>) or markup with CSS, i.e.
<span class="date">2008-01-20</span>
.date { white-space: nowrap; }

This isn't really as surprising as it may sound. ISO 8601 notations are
primarily meant for use in data interchange and as coded representations
rather than normal text (plain or marked-up), though they surely have
their usefulness in a multilingual context where any other notation
would be ambiguous or non-neutral.

Jukka K. Korpela ("Yucca")

Site Timeline