Skip to content

Commit 3a100cd

Browse files
committed
Add comment on mbstring East Asian Width table
1 parent 7eddcab commit 3a100cd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ext/mbstring/libmbfl/mbfl/eaw_table.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
/* East Asian Width table
2+
*
3+
* Some characters in East Asian languages are intended to be displayed in a space
4+
* which is roughly square. (This contrasts with others such as the Latin alphabet,
5+
* which are taller than they are wide.) To display these East Asian characters
6+
* properly, twice the horizontal space is used. This must be taken into account
7+
* when doing things like wrapping text to a specific width.
8+
*
9+
* Each pair of numbers in the below table is a range of Unicode codepoints
10+
* which should be displayed as double-width. */
11+
112
static const struct {
213
int begin;
314
int end;

0 commit comments

Comments
 (0)