| 記号名 | Horizontal Bar |
| Unicodeバージョン | 1.1 |
| Unicode | U+2015 |
| Unicodeブロック | |
| 一般カテゴリ | Dash Punctuation (Pd) |
| CSSコード | \2015 |
| 16進コード | 0x2015 |
| HTMLコード | ― |
| LaTeX | \text{HORIZONTALBAR} |
| 記号 | ― |
| URLエンコード(UTF-8パーセント) | %E2%80%95 |
| 読み上げ名 / スクリーンリーダー | Horizontal Bar |
| UTF-8 | E2 80 95 |
| UTF-16 | 2015 |
| UTF-32 | 00002015 |
1\documentclass{article}2\usepackage{pifont}3\text{HORIZONTALBAR}4\end{document}以下の方法でほとんどの最新デバイスでhorizontal bar記号を入力できます:
Alt + 8213 on Windows (numeric keypad with Num Lock), or insert via Character Map.
Edit → Emoji & Symbols, search "horizontal bar", or use Unicode Hex Input with 2015.
Ctrl + Shift + U, type 2015, then Enter (layout-dependent).
Paste from this page, use text replacement, or pick from the symbol keyboard.
Paste from this page or use a keyboard with geometric symbol support.
1span.horizontal-bar::before { content: "\2015"; }1<span>―</span>各プログラミング言語におけるHorizontal Bar記号の表現は以下の表の通りです:
| 言語 | 表現 |
|---|---|
| JavaScript / TypeScript | '\u2015' or String.fromCodePoint(8213) |
| Python | '\N{HORIZONTAL BAR}' or chr(8213) |
| Rust | '\u{2015}' |
| C / C++ | UTF-8 source or wchar_t with U+2015 |
| Go | string(rune(0x2015)) |
| Ruby | "\u{2015}" |