Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

properties: add "ambiwidth" property for ambiguous East Asian Width #270

Merged
merged 1 commit into from
Aug 30, 2024

Commits on Aug 30, 2024

  1. properties: add "ambiguous_width" property for ambiguous East Asian W…

    …idth
    
    Some characters have their width defined as "Ambiguous" in UAX#11.
    These are typically rendered as single-width by modern monospace fonts,
    and utf8proc correctly returns charwidth==1 for these.
    
    However some applications might need to support older CJK fonts where
    characters which where two-byte in legacy encodings were rendered as
    double-width. An example of this is the 'ambiwidth' option of vim
    and neovim which supports rendering in terminals using such wideness
    rules.
    
    Add an 'ambiguous_width' property to utf8proc_property_t for such characters.
    bfredl committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    8c97229 View commit details
    Browse the repository at this point in the history