Figure Dash vs Horizontal Bar
VS
Property Comparison
| Property | ‒ 2012 | ― 2015 |
|---|---|---|
| Name | Figure Dash | Horizontal Bar |
| Category | Dashes & Hyphens | Dashes & Hyphens |
| Block | General Punctuation | General Punctuation |
| Script | Zyyy | Zyyy |
| General Category | Dash Punctuation (Pd) | Dash Punctuation (Pd) |
| Bidirectional | ON | ON |
Encoding Comparison
| Format | 2012 | 2015 |
|---|---|---|
| Unicode | U+2012 | U+2015 |
| HTML Decimal | ‒ | ― |
| HTML Hex | ‒ | ― |
| CSS | \2012 | \2015 |
| JavaScript | \u{2012} | \u{2015} |
| Python | \u2012 | \u2015 |
| UTF-8 | e2 80 92 | e2 80 95 |
How to Distinguish
Both Figure Dash and Horizontal Bar belong to the Dashes & Hyphens category and the General Punctuation block. Compare their codepoints and visual rendering to distinguish them.
Tip: Paste the character into a hex editor or use
charCodeAt()
in JavaScript to check the actual codepoint.