{"action":"opened","issue":{"url":"https://api.github.com/repos/jquast/wcwidth/issues/13","labels_url":"https://api.github.com/repos/jquast/wcwidth/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/jquast/wcwidth/issues/13/comments","events_url":"https://api.github.com/repos/jquast/wcwidth/issues/13/events","html_url":"https://github.com/jquast/wcwidth/issues/13","id":106394250,"number":13,"title":"Wrong width for some Cyrillic characters","user":{"login":"dveeden","id":1272980,"avatar_url":"https://avatars.githubusercontent.com/u/1272980?v=3","gravatar_id":"","url":"https://api.github.com/users/dveeden","html_url":"https://github.com/dveeden","followers_url":"https://api.github.com/users/dveeden/followers","following_url":"https://api.github.com/users/dveeden/following{/other_user}","gists_url":"https://api.github.com/users/dveeden/gists{/gist_id}","starred_url":"https://api.github.com/users/dveeden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dveeden/subscriptions","organizations_url":"https://api.github.com/users/dveeden/orgs","repos_url":"https://api.github.com/users/dveeden/repos","events_url":"https://api.github.com/users/dveeden/events{/privacy}","received_events_url":"https://api.github.com/users/dveeden/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-14T17:49:42Z","updated_at":"2015-09-14T17:49:42Z","closed_at":null,"body":"The width for these are not correct:\r\n* COMBINING CYRILLIC HUNDRED THOUSANDS SIGN\r\n* COMBINING CYRILLIC HUNDRED MILLIONS SIGN\r\n\r\nTest case:\r\n```python\r\nimport unicodedata\r\nimport math\r\nimport wcwidth\r\n\r\ncharnames = [u'COMBINING CYRILLIC HUNDRED THOUSANDS SIGN',\r\n             u'COMBINING CYRILLIC HUNDRED MILLIONS SIGN',\r\n             u'CIRCLED LATIN CAPITAL LETTER A',\r\n             u'KANGXI RADICAL BIRD']\r\n\r\nfor charname in charnames:\r\n    print(u'Character: {}'.format(charname))\r\n    c = unicodedata.lookup(charname)\r\n    cwidth = wcwidth.wcwidth(c)\r\n    spacing = int(math.floor(2 - cwidth)) * u' '\r\n    print(u\"123456789\")\r\n    print(u\"123{}{}6789\".format(c, spacing))\r\n    print(u\"Char width: {}\".format(cwidth, spacing))\r\n```\r\nThis is printed with Python 2.7 and wcwidth 0.1.4:\r\n```\r\nCharacter: COMBINING CYRILLIC HUNDRED THOUSANDS SIGN\r\n123456789\r\n123҈ 6789\r\nChar width: 1\r\nCharacter: COMBINING CYRILLIC HUNDRED MILLIONS SIGN\r\n123456789\r\n123꙱ 6789\r\nChar width: 1\r\nCharacter: CIRCLED LATIN CAPITAL LETTER A\r\n123456789\r\n123Ⓐ 6789\r\nChar width: 1\r\nCharacter: KANGXI RADICAL BIRD\r\n123456789\r\n123⿃6789\r\nChar width: 2\r\n```\r\nRelated: https://github.com/dbcli/mycli/issues/149"}}