W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2007

[whatwg] Unicode mappings for ⟨ and ⟩

From: Řistein E. Andersen <html5@xn--istein-9xa.com>
Date: Sun, 01 Jul 2007 21:06:31 +0200
Message-ID: <E1I54kh-000HTa-Ej@node1-3.ouvaton.local>
HTML5 currently maps &lang; and &rang; to
    U+3008 LEFT ANGLE BRACKET,
    U+3009 RIGHT ANGLE BRACKET,
both belonging to `CJK angle brackets' in
    U+3000--U+303F CJK Symbols and Puntuation.

HTML 4.01 maps them to
    U+2329 LEFT-POINTING ANGLE BRACKET,
    U+232A RIGHT-POINTING ANGLE BRACKET
from `Angle brackets' in the range
    U+2300--U+23FF Miscellaneous Technical.

Unicode 5.0 notes:
> These are discouraged for mathematical use because of their
> canonical equivalence to CJK punctuation.

It would probably be better to use
    U+27E8 MATHEMATICAL LEFT ANGLE BRACKET,
    U+27E9 MATHEMATICAL RIGHT ANGLE BRACKET
from `Mathematical brackets' in
    U+27C0--U+27EF Miscellaneous Mathematical Symbols-A,
characters that did not yet exist when HTML 4.01 was published.

This approach is suggested by
http://unicode.org/Public/math/revision-09/MathMap-9.txt:
> 27E8;	lang;	ISOTECH;	**	# &#10216;	MATHEMATICAL LEFT ANGLE BRACKET
> 27E9;	rang;	ISOTECH;	**	# &#10217;	MATHEMATICAL RIGHT ANGLE BRACKET

Moreover, the (few) browsers I have tested render
&lang/&rang, &#x2329/&#x232a and &#x27e8/&#x27e9 identically
or simalarly (as "<"/">" in approximative ASCII), whereas
&#x3008/&#x3009 are rendered as full-width East-Asian
characters (" <"/" >").

-- 
?istein E. Andersen
Received on Sunday, 1 July 2007 12:06:31 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:36 UTC