| Nombre del símbolo | Horizontal Bar |
| Versión Unicode | 1.1 |
| Unicode | U+2015 |
| Bloque Unicode | |
| Categoría general | Dash Punctuation (Pd) |
| Código CSS | \2015 |
| Código hexadecimal | 0x2015 |
| Código HTML | ― |
| LaTeX | \text{HORIZONTALBAR} |
| Símbolo | ― |
| Codificación URL (porcentaje UTF-8) | %E2%80%95 |
| Nombre oral / lector de pantalla | 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}Puedes escribir el símbolo horizontal bar en la mayoría de dispositivos modernos con los siguientes métodos:
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>La representación del símbolo Horizontal Bar en diferentes lenguajes de programación se muestra en la tabla:
| Lenguaje | Representación |
|---|---|
| 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}" |