Skip to content

Should wcwidth have "Treat ambiguos-width as wide" option? #123

@keatonLiu

Description

@keatonLiu
import wcwidth

if __name__ == '__main__':
    print(wcwidth.wcswidth("①你好"))
    print(wcwidth.wcswidth("你好啊"))

results in:
image
But it displays 2 character width in monospace font:
image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions