Difference between revisions of "Template:Angle bracket/testcases"

From blackwiki
Jump to navigation Jump to search
blackwiki>Izkala
(rm Template:Unicode transclusions)
blackwiki>Unready
m (<source> → <syntaxhighlight lang="html5">)
Line 28: Line 28:
 
|-
 
|-
 
|rowspan=2|Mediawiki math markup
 
|rowspan=2|Mediawiki math markup
|<source><math>\langle</math>{{{1}}}<math>\rangle</math></source>
+
|<syntaxhighlight lang="html5"><math>\langle</math>{{{1}}}<math>\rangle</math></syntaxhighlight>
 
|<math>\langle</math>a<math>\rangle</math>
 
|<math>\langle</math>a<math>\rangle</math>
 
| 1
 
| 1
 
|-
 
|-
|<source><math>\langle\text{{{{1}}}}\rangle</math></source>
+
|<syntaxhighlight lang="html5"><math>\langle\text{{{{1}}}}\rangle</math></syntaxhighlight>
 
|<math>\langle\text{a}\rangle</math>
 
|<math>\langle\text{a}\rangle</math>
 
| 2
 
| 2
 
|-
 
|-
 
|rowspan=2|Named entity references (HTML)
 
|rowspan=2|Named entity references (HTML)
|<source>&lang;{{{1}}}&rang;</source>
+
|<syntaxhighlight lang="html5">&lang;{{{1}}}&rang;</syntaxhighlight>
 
|&lang;a&rang;
 
|&lang;a&rang;
 
| 3a
 
| 3a
 
|-
 
|-
|<source>&lang;{{{1}}}&rang;</source>
+
|<syntaxhighlight lang="html5">&lang;{{{1}}}&rang;</syntaxhighlight>
 
|&lang;a&rang;
 
|&lang;a&rang;
 
| 3b
 
| 3b
 
|-
 
|-
 
|rowspan=3|U+2329/A <br>“Left/Right-Pointing Angle Bracket”,<br> canonically equivalent to U+3008/9
 
|rowspan=3|U+2329/A <br>“Left/Right-Pointing Angle Bracket”,<br> canonically equivalent to U+3008/9
|<source>&#x2329;{{{1}}}&#x232A;</source>
+
|<syntaxhighlight lang="html5">&#x2329;{{{1}}}&#x232A;</syntaxhighlight>
 
|&#x2329;a&#x232A;
 
|&#x2329;a&#x232A;
 
| 4a
 
| 4a
 
|-
 
|-
|<source>&#x2329;{{{1}}}&#x232A;</source>
+
|<syntaxhighlight lang="html5">&#x2329;{{{1}}}&#x232A;</syntaxhighlight>
 
|&#x2329;a&#x232A;
 
|&#x2329;a&#x232A;
 
| 4b
 
| 4b
 
|-
 
|-
|<source>〈{{{1}}}〉</source>
+
|<syntaxhighlight lang="html5">〈{{{1}}}〉</syntaxhighlight>
 
|〈a〉
 
|〈a〉
 
| 4c
 
| 4c
 
|-
 
|-
 
|rowspan=3|U+3008/9 <br>“Left/Right Angle Bracket”<br> (fullwidth CJK)
 
|rowspan=3|U+3008/9 <br>“Left/Right Angle Bracket”<br> (fullwidth CJK)
|<source>&#x3008;{{{1}}}&#x3009;</source>
+
|<syntaxhighlight lang="html5">&#x3008;{{{1}}}&#x3009;</syntaxhighlight>
 
|&#x3008;a&#x3009;
 
|&#x3008;a&#x3009;
 
| 5a
 
| 5a
 
|-
 
|-
|<source>&#x3008;{{{1}}}&#x3009;</source>
+
|<syntaxhighlight lang="html5">&#x3008;{{{1}}}&#x3009;</syntaxhighlight>
 
|&#x3008;a&#x3009;
 
|&#x3008;a&#x3009;
 
| 5b
 
| 5b
 
|-
 
|-
|<source>〈{{{1}}}〉</source>
+
|<syntaxhighlight lang="html5">〈{{{1}}}〉</syntaxhighlight>
 
|〈a〉
 
|〈a〉
 
| 5c
 
| 5c
 
|-
 
|-
 
|rowspan=3|U+27E8/9 <br>“Mathematical Left/Right Angle Bracket”<br> (Math Symbols A block)
 
|rowspan=3|U+27E8/9 <br>“Mathematical Left/Right Angle Bracket”<br> (Math Symbols A block)
|<source>&#x27E8;{{{1}}}&#x27E9;</source>
+
|<syntaxhighlight lang="html5">&#x27E8;{{{1}}}&#x27E9;</syntaxhighlight>
 
|&#x27E8;a&#x27E9;
 
|&#x27E8;a&#x27E9;
 
| 6a
 
| 6a
 
|-
 
|-
|<source>&#x27E8;{{{1}}}&#x27E9;</source>
+
|<syntaxhighlight lang="html5">&#x27E8;{{{1}}}&#x27E9;</syntaxhighlight>
 
|&#x27E8;a&#x27E9;
 
|&#x27E8;a&#x27E9;
 
| 6b
 
| 6b
 
|-
 
|-
|<source>⟨{{{1}}}⟩</source>
+
|<syntaxhighlight lang="html5">⟨{{{1}}}⟩</syntaxhighlight>
 
|⟨a⟩
 
|⟨a⟩
 
| 6c
 
| 6c
 
|-
 
|-
 
|rowspan=3|U+2039/A <br>“Single Left/Right-Pointing Angle Quotation Mark”<br> (Punctuation Marks)
 
|rowspan=3|U+2039/A <br>“Single Left/Right-Pointing Angle Quotation Mark”<br> (Punctuation Marks)
|<source>&#x2039;{{{1}}}&#x203A;</source>
+
|<syntaxhighlight lang="html5">&#x2039;{{{1}}}&#x203A;</syntaxhighlight>
 
|&#x2039;a&#x203A;
 
|&#x2039;a&#x203A;
 
| 7a
 
| 7a
 
|-
 
|-
|<source>&#x2039;{{{1}}}&#x203A;</source>
+
|<syntaxhighlight lang="html5">&#x2039;{{{1}}}&#x203A;</syntaxhighlight>
 
|&#x2039;a&#x203A;
 
|&#x2039;a&#x203A;
 
| 7b
 
| 7b
 
|-
 
|-
|<source>‹{{{1}}}›</source>
+
|<syntaxhighlight lang="html5">‹{{{1}}}›</syntaxhighlight>
 
|‹a›
 
|‹a›
 
| 7c
 
| 7c
 
|-
 
|-
 
|rowspan=3|U+003C/E <br>“Less/Greater Than Sign”<br> (Basic Latin)
 
|rowspan=3|U+003C/E <br>“Less/Greater Than Sign”<br> (Basic Latin)
|<source>&#x003C;{{{1}}}&#x003E;</source>
+
|<syntaxhighlight lang="html5">&#x003C;{{{1}}}&#x003E;</syntaxhighlight>
 
|&#x003C;a&#x003E;
 
|&#x003C;a&#x003E;
 
| 8a
 
| 8a
 
|-
 
|-
|<source>&lt;{{{1}}}&gt;</source>
+
|<syntaxhighlight lang="html5">&lt;{{{1}}}&gt;</syntaxhighlight>
 
|&lt;a&gt;
 
|&lt;a&gt;
 
| 8b
 
| 8b
 
|-
 
|-
|<source>‹{{{1}}}›</source>
+
|<syntaxhighlight lang="html5">‹{{{1}}}›</syntaxhighlight>
 
|<a>
 
|<a>
 
| 8c
 
| 8c
 
|-
 
|-
 
|rowspan=3|U+227A/B <br>“Precedes/Succeeds”<br> (Math Symbols)
 
|rowspan=3|U+227A/B <br>“Precedes/Succeeds”<br> (Math Symbols)
|<source>&#x227A;{{{1}}}&#x227B;</source>
+
|<syntaxhighlight lang="html5">&#x227A;{{{1}}}&#x227B;</syntaxhighlight>
 
|&#x227A;a&#x227B;
 
|&#x227A;a&#x227B;
 
| 9a
 
| 9a
 
|-
 
|-
|<source>&#x227A;{{{1}}}&#x227B;</source>
+
|<syntaxhighlight lang="html5">&#x227A;{{{1}}}&#x227B;</syntaxhighlight>
 
|&#x227A;a&#x227B;
 
|&#x227A;a&#x227B;
 
| 9b
 
| 9b
 
|-
 
|-
|<source>≺{{{1}}}≻</source>
+
|<syntaxhighlight lang="html5">≺{{{1}}}≻</syntaxhighlight>
 
|≺a≻
 
|≺a≻
 
| 9c
 
| 9c
 
|-
 
|-
 
|rowspan=3|U+29FC/D <br>“Left/Right-Pointing Curved Angle Bracket”<br> (Math Symbols)
 
|rowspan=3|U+29FC/D <br>“Left/Right-Pointing Curved Angle Bracket”<br> (Math Symbols)
|<source>&#x29FC;{{{1}}}&#x29FD;</source>
+
|<syntaxhighlight lang="html5">&#x29FC;{{{1}}}&#x29FD;</syntaxhighlight>
 
|&#x29FC;a&#x29FD;
 
|&#x29FC;a&#x29FD;
 
| 10a
 
| 10a
 
|-
 
|-
|<source>&#x29FC;{{{1}}}&#x29FD;</source>
+
|<syntaxhighlight lang="html5">&#x29FC;{{{1}}}&#x29FD;</syntaxhighlight>
 
|&#x29FC;a&#x29FD;
 
|&#x29FC;a&#x29FD;
 
| 10b
 
| 10b
 
|-
 
|-
|<source>⧼{{{1}}}⧽</source>
+
|<syntaxhighlight lang="html5">⧼{{{1}}}⧽</syntaxhighlight>
 
|⧼a⧽
 
|⧼a⧽
 
| 10c
 
| 10c

Revision as of 22:40, 25 November 2016

Newer Microsoft fonts
Typeface U+2329/A U+3008/9 U+27E8/9
Calibri 〈a〉 〈a〉 ⟨a⟩
Cambria 〈a〉 〈a〉 ⟨a⟩
Candara 〈a〉 〈a〉 ⟨a⟩
Consolas 〈a〉 〈a〉 ⟨a⟩
Constantia 〈a〉 〈a〉 ⟨a⟩
Corbel 〈a〉 〈a〉 ⟨a⟩
Available options for angle brackets in Unicode 8.0
Mediawiki math markup
<math>\langle</math>{{{1}}}<math>\rangle</math>
<math>\langle</math>a<math>\rangle</math> 1
<math>\langle\text{{{{1}}}}\rangle</math>
<math>\langle\text{a}\rangle</math> 2
Named entity references (HTML)
&lang;{{{1}}}&rang;
〈a〉 3a
&lang;{{{1}}}&rang;
〈a〉 3b
U+2329/A
“Left/Right-Pointing Angle Bracket”,
canonically equivalent to U+3008/9
&#x2329;{{{1}}}&#x232A;
〈a〉 4a
&#x2329;{{{1}}}&#x232A;
〈a〉 4b
〈{{{1}}}〉
〈a〉 4c
U+3008/9
“Left/Right Angle Bracket”
(fullwidth CJK)
&#x3008;{{{1}}}&#x3009;
〈a〉 5a
&#x3008;{{{1}}}&#x3009;
〈a〉 5b
〈{{{1}}}〉
〈a〉 5c
U+27E8/9
“Mathematical Left/Right Angle Bracket”
(Math Symbols A block)
&#x27E8;{{{1}}}&#x27E9;
⟨a⟩ 6a
&#x27E8;{{{1}}}&#x27E9;
⟨a⟩ 6b
⟨{{{1}}}⟩
⟨a⟩ 6c
U+2039/A
“Single Left/Right-Pointing Angle Quotation Mark”
(Punctuation Marks)
&#x2039;{{{1}}}&#x203A;
‹a› 7a
&#x2039;{{{1}}}&#x203A;
‹a› 7b
‹{{{1}}}›
‹a› 7c
U+003C/E
“Less/Greater Than Sign”
(Basic Latin)
&#x003C;{{{1}}}&#x003E;
<a> 8a
&lt;{{{1}}}&gt;
<a> 8b
‹{{{1}}}›
<a> 8c
U+227A/B
“Precedes/Succeeds”
(Math Symbols)
&#x227A;{{{1}}}&#x227B;
≺a≻ 9a
&#x227A;{{{1}}}&#x227B;
≺a≻ 9b
≺{{{1}}}≻
≺a≻ 9c
U+29FC/D
“Left/Right-Pointing Curved Angle Bracket”
(Math Symbols)
&#x29FC;{{{1}}}&#x29FD;
⧼a⧽ 10a
&#x29FC;{{{1}}}&#x29FD;
⧼a⧽ 10b
⧼{{{1}}}⧽
⧼a⧽ 10c
  1. Output for <math> depends on user settings: may render as PNG image or text (MathML or MathJax), the latter uses U+27E8/9.
  2. This should only differ from option 1 in the treatment of enclosed text.
  3. The HTML entities are realized either as U+2329/A according to XHTML 1.0 or as U+27E8/9 according to HTML5. See XML Entity Definitions for Characters. Actual browser implementation varies.
  4. Unicode: “These characters are deprecated and are strongly discouraged for mathematical use because of their canonical equivalence to CJK punctuation.”(page 3 of 7) The U+3008/9 angles are defined fullwidth in Chinese script. U+2329/A are not defined “halfwidth” (that is, not half a fixed-width character)
  5. Like most sinograms these usually occupy a whole em square.
  6. Recommended for technical/mathematical use according to Unicode documentation.
  7. The chevron or guillemot quotation marks are too small.
  8. Size relation signs are both not tall enough and too wide.
  9. Succession signs are not appropriate for the intended use.
  10. Not really appropriate.