{"action":"created","issue":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/12474","labels_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/12474/labels{/name}","comments_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/12474/comments","events_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/12474/events","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/issues/12474","id":81210912,"number":12474,"title":"[FeatureRequest] Provide an in-game option for ambiguous-width characters.","user":{"login":"jakwings","id":1451509,"avatar_url":"https://avatars.githubusercontent.com/u/1451509?v=3","gravatar_id":"","url":"https://api.github.com/users/jakwings","html_url":"https://github.com/jakwings","followers_url":"https://api.github.com/users/jakwings/followers","following_url":"https://api.github.com/users/jakwings/following{/other_user}","gists_url":"https://api.github.com/users/jakwings/gists{/gist_id}","starred_url":"https://api.github.com/users/jakwings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakwings/subscriptions","organizations_url":"https://api.github.com/users/jakwings/orgs","repos_url":"https://api.github.com/users/jakwings/repos","events_url":"https://api.github.com/users/jakwings/events{/privacy}","received_events_url":"https://api.github.com/users/jakwings/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-27T01:10:13Z","updated_at":"2015-05-27T08:00:42Z","closed_at":null,"body":"Related issue: #11387\r\n\r\nProblem: Ambiguous-width characters are not handled properly for various fonts, leaving some rubbish after the erasure of text or making some characters overlaped with other characters.\r\n\r\nAlthough iTerm2.app on Mac provides a toggle to treat ambiguous-width characters as single-ascii-char width, users still need to find a suitable CJK font for the game. And the translators must be very careful when translating.\r\n\r\nThe core function to deal with the ambiguous-width characters from iTerm2.app: https://github.com/gnachman/iTerm2/blob/35bfdc1d2e2e2aed05a6add20a9edb528a7748bf/sources/NSCharacterSet%2BiTerm.m\r\n\r\nCommon ambiguous-width characters:\r\n```\r\n“…”(ellipsis) “—”(em dash) “─│┐┘┌└┤┬├┴┃━┏┛┓┗┫┳┣┻…”\r\n```\r\n\r\nAnd a screenshot for text in a dialog from the game:\r\n```\r\n123456789012345678901234567890123\r\n┌───────────────┐\r\n│ a使用         │\r\n│ R読む         │\r\n│ E食べる       │\r\n│ W着る         │\r\n│ w装備         │\r\n│ t投げる       │\r\n│ T脱ぐ         │\r\n│ d置く         │\r\n│ U取り外す     │\r\n│ r再装填       │\r\n│ D分解         │\r\n│ =キー割り当て │\r\n│ +自動取得     │\r\n│               │\r\n│               │\r\n│               │\r\n│               │\r\n└───────────────┘\r\n123456789012345678901234567890123\r\n```\r\n![ambiguous-width characters](https://cloud.githubusercontent.com/assets/1451509/7826651/e99fc9e0-044f-11e5-953a-f8104136141c.png)\r\n\r\n---\r\n\r\nSome screenshots from #11387:\r\n\r\nWhen “Treat ambiguous-width character as double width” is off:\r\n(“…” overlaps with “│”)\r\n![OFF](https://cloud.githubusercontent.com/assets/1451509/7825458/b0cd60d8-043f-11e5-804b-31391b6d5553.png)\r\n\r\nWhen “Treat ambiguous-width character as double width” is on:\r\n(“…” still overlaps with “│”)\r\n![ON](https://cloud.githubusercontent.com/assets/1451509/7825463/b969b548-043f-11e5-874d-b70cd296f564.png)\r\n\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/17999784-featurerequest-provide-an-in-game-option-for-ambiguous-width-characters?utm_campaign=plugin&utm_content=tracker%2F146201&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F146201&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/comments/105809279","html_url":"https://github.com/CleverRaven/Cataclysm-DDA/issues/12474#issuecomment-105809279","issue_url":"https://api.github.com/repos/CleverRaven/Cataclysm-DDA/issues/12474","id":105809279,"user":{"login":"narc0tiq","id":591573,"avatar_url":"https://avatars.githubusercontent.com/u/591573?v=3","gravatar_id":"","url":"https://api.github.com/users/narc0tiq","html_url":"https://github.com/narc0tiq","followers_url":"https://api.github.com/users/narc0tiq/followers","following_url":"https://api.github.com/users/narc0tiq/following{/other_user}","gists_url":"https://api.github.com/users/narc0tiq/gists{/gist_id}","starred_url":"https://api.github.com/users/narc0tiq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/narc0tiq/subscriptions","organizations_url":"https://api.github.com/users/narc0tiq/orgs","repos_url":"https://api.github.com/users/narc0tiq/repos","events_url":"https://api.github.com/users/narc0tiq/events{/privacy}","received_events_url":"https://api.github.com/users/narc0tiq/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T08:00:42Z","updated_at":"2015-05-27T08:00:42Z","body":"Thanks for the clarification. Yeah, I see that your font does look very nice indeed.\r\n\r\nBeyond that, I'm not sure what we, as the application running inside the terminal, can do to help. Print spaces with the CJK characters to force them to take up two characters? Would that do it, or just break things?"}}