This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 methane
收信人 ezio.melotti, fgallaire, georg.brandl, mdk, methane, r.david.murray, serhiy.storchaka, vstinner, yan12125
日期 2018-07-08.18:25:55
SpamBayes Score -1.0
Marked as misclassified
Message-id <1531074355.4.0.56676864532.issue24665@psf.upfronthosting.co.za>
In-reply-to
内容
I'm not expert of this area, but Korean support is still totally broken:

>>> import unicodedata
>>> s = "\u1100\u1161\u11a8"
>>> unicodedata.east_asian_width(s[0])
'W'
>>> unicodedata.east_asian_width(s[1])
'N'
>>> unicodedata.east_asian_width(s[2])
'N'
>>> s
'각'
>>> s[:2]
'가'
>>> print(s[:2] + '\n' + s[2:])
가
ᆨ
>>> print(s[:1] + '\n' + s[1:])
ᄀ
ᅡᆨ


I think "CJK support" is not nice naming for just using east_asian_width.
PR-5649 doesn't use "CJK" word in APIs, but uses in commit log (PR title)
and NEWS entry.

Maybe, it should be "Textwrap now uses ``unicodedata.east_asian_width()``
to calculate text width when unicodedata is available."
历史
日期 用户 动作 参数
2018-07-08 18:25:55methane修改recipients: + methane, georg.brandl, vstinner, ezio.melotti, r.david.murray, fgallaire, serhiy.storchaka, yan12125, mdk
2018-07-08 18:25:55methane修改messageid: <1531074355.4.0.56676864532.issue24665@psf.upfronthosting.co.za>
2018-07-08 18:25:55methane链接issue24665 messages
2018-07-08 18:25:55methane创建