mirror of
https://github.com/erkin/ponysay.git
synced 2025-02-16 17:44:23 +01:00
Merge branch 'master' of http://github.com/erkin/ponysay
This commit is contained in:
commit
e06f67cafb
1 changed files with 4 additions and 0 deletions
|
@ -34,6 +34,8 @@ from balloon import *
|
||||||
from colourstack import *
|
from colourstack import *
|
||||||
from ucs import *
|
from ucs import *
|
||||||
|
|
||||||
|
import unicodedata
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class Backend():
|
class Backend():
|
||||||
|
@ -457,6 +459,8 @@ class Backend():
|
||||||
i += 1
|
i += 1
|
||||||
if not UCS.isCombining(c):
|
if not UCS.isCombining(c):
|
||||||
rc += 1
|
rc += 1
|
||||||
|
if unicodedata.east_asian_width(c) in ('F', 'W', 'A'):
|
||||||
|
rc += 1
|
||||||
return rc
|
return rc
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue