East Asian Width
Unicode property (UAX#11) classifying characters as Narrow, Wide, Fullwidth, Halfwidth, Ambiguous, or Neutral. Wide characters (CJK ideographs, katakana) occupy two columns in terminal emulators.
What is East Asian Width?
East Asian Width is a Unicode character property defined in UAX #11 — East Asian Width that classifies characters according to the display width they should occupy in fixed-width (monospaced) rendering environments, particularly traditional East Asian terminals and text layouts. The property answers the question: "Does this character occupy one column or two columns when displayed in a terminal or monospaced layout?"
The property was introduced because East Asian scripts — Chinese, Japanese, Korean — were historically displayed at twice the width of ASCII characters on fixed-pitch terminals. Mixing ASCII and CJK text in a single terminal line required a consistent model for how much horizontal space each character would consume.
The Six Width Categories
| Category | Property Value | Description | Examples |
|---|---|---|---|
| Narrow | N | ASCII and most Latin/Greek/Cyrillic — one column | A, a, 1, @ |
| Wide | W | Most CJK ideographs, Hangul syllables — two columns | 漢, 가, ア |
| Fullwidth | F | ASCII-range characters in their fullwidth CJK form — two columns | A, 1, ! |
| Halfwidth | H | Katakana and Hangul in their halfwidth (legacy) form — one column | ア, ヲ |
| Ambiguous | A | Characters that are narrow in Western contexts but wide in some East Asian contexts | © , ☆, α |
| Neutral | N | Non-East-Asian-specific characters with no width ambiguity, typically narrow | Arrows, math operators |
Terminal Implications
In a terminal emulator, the renderer must know the East Asian Width of every character to correctly advance the cursor. If a Wide or Fullwidth character is assumed to be narrow, subsequent characters will overwrite existing content, causing display corruption.
The POSIX standard function wcwidth() (from <wchar.h>) returns 0 for combining characters, 1 for narrow characters, and 2 for wide characters. Modern terminal emulators implement wcwidth() based on UAX #11 data.
# Python: get East Asian Width property
import unicodedata
def display_width(char: str) -> int:
# Return terminal display width of a single character.
eaw = unicodedata.east_asian_width(char)
return 2 if eaw in ("W", "F") else 1
# Examples
display_width("A") # → 1 (Narrow)
display_width("漢") # → 2 (Wide)
display_width("A") # → 2 (Fullwidth)
display_width("ア") # → 1 (Halfwidth)
The wcwidth Python package provides a conformant implementation updated with each Unicode release.
The Ambiguous Category
Characters with Ambiguous (A) width are the most problematic in practice. Their width is context-dependent:
- In an East Asian context (a terminal set to a CJK locale), they display as Wide (2 columns)
- In a Western context, they display as Narrow (1 column)
This affects many common symbols: degree sign (°), copyright symbol (©), Greek letters (α, β), and many box-drawing characters. Terminal emulators that serve mixed-locale user bases must make a policy choice, and mismatches between the application and terminal settings cause visible misalignment.
Quick Facts
| Property | Value |
|---|---|
| Defined in | UAX #11 — East Asian Width |
| Number of categories | 6 (Narrow, Wide, Fullwidth, Halfwidth, Ambiguous, Neutral) |
| Two-column characters | Wide (W) and Fullwidth (F) |
| Most problematic category | Ambiguous (A) — context-dependent |
| POSIX function | wcwidth() — returns 0, 1, or 2 |
| Python stdlib | unicodedata.east_asian_width(char) |
| Python package | wcwidth (conformant, kept updated) |
관련 용어
속성의 더 많은 용어
Unicode property controlling how Arabic and Syriac characters connect to adjacent characters. …
Unicode property listing all scripts that use a character, broader than the …
정규 분해 과정에서 결합 기호의 순서를 제어하는 수치 값(0~254)으로, 어떤 결합 기호를 …
마침표, 쉼표, 대시, 따옴표 등 문어를 구성하고 명료하게 하는 데 사용되는 문자. …
지원하지 않는 프로세스에서 눈에 보이는 효과 없이 무시할 수 있는 문자로, 이형 …
문자가 처음 할당된 유니코드 버전. 시스템 및 소프트웨어 버전 간의 문자 지원 …
문자를 대문자, 소문자, 제목 대문자로 변환하는 규칙. 로케일에 따라 달라질 수 있으며(터키어 …
RTL 문맥에서 글리프를 수평으로 반전해야 하는 문자. 예: ( → ), [ …
문자가 속한 문자 체계(예: 라틴, 키릴, 한자). Unicode 16.0은 168개의 문자 체계를 …
문자를 구성 요소로 분해하는 매핑. 정규 분해는 의미를 보존(é → e + …