[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-cvs
Subject:    [PHP-CVS] com php-src: Add comment on mbstring East Asian Width table: =?UTF-8?Q?ext/mbstring/libmbf
From:       Alex Dowad <alexdowad () php ! net>
Date:       2020-08-31 21:18:45
Message-ID: php-mail-3e5258c1a2abaf4468575ffce4ab41271944400331 () git ! php ! net
[Download RAW message or body]

Commit:    3a100cd7ac0ebedc3b8c5f57583ea7b5a13d250b
Author:    Alex Dowad <alexinbeijing@gmail.com>         Sat, 11 Jul 2020 22:36:58 +0200
Parents:   7eddcabe2b63a9834f6bde1f01b96503612e9e4a
Branches:  master

Link:       http://git.php.net/?p=php-src.git;a=commitdiff;h=3a100cd7ac0ebedc3b8c5f57583ea7b5a13d250b

Log:
Add comment on mbstring East Asian Width table

Changed paths:
  M  ext/mbstring/libmbfl/mbfl/eaw_table.h


Diff:
diff --git a/ext/mbstring/libmbfl/mbfl/eaw_table.h b/ext/mbstring/libmbfl/mbfl/eaw_table.h
index 834b134dd40..49594544511 100644
--- a/ext/mbstring/libmbfl/mbfl/eaw_table.h
+++ b/ext/mbstring/libmbfl/mbfl/eaw_table.h
@@ -1,3 +1,14 @@
+/* East Asian Width table
+ *
+ * Some characters in East Asian languages are intended to be displayed in a space
+ * which is roughly square. (This contrasts with others such as the Latin alphabet,
+ * which are taller than they are wide.) To display these East Asian characters
+ * properly, twice the horizontal space is used. This must be taken into account
+ * when doing things like wrapping text to a specific width.
+ *
+ * Each pair of numbers in the below table is a range of Unicode codepoints
+ * which should be displayed as double-width. */
+
 static const struct {
 	int begin;
 	int end;


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic