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

Add Unicode properties of East Asian Width #102

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aycabta
Copy link
Contributor

@aycabta aycabta commented Mar 18, 2018

This Pull Request adds Unicode properties about East Asian Width. Supports only full name because some aliases are duplicated, such as N.

In Unicode 10.0.0, this adds below:

  • Ambiguous
  • Fullwidth
  • Halfwidth
  • Neutral
  • Narrow
  • Wide

This Pull Request doesn't contain update files because those files depend on #101.

For reference, Perl's regular expression supports East_Asian_Width: * type Unicode property like General_Category: *.

ref. https://bugs.ruby-lang.org/issues/14618

This commit adds Unicode properties about East Asian Width.
http://unicode.org/reports/tr11/
Supports only full name because some aliases are duplicated, such as N.
In Unicode 10.0.0, this adds below:

- Ambiguous
- Fullwidth
- Halfwidth
- Neutral
- Narrow
- Wide

For reference, Perl's regular expression supports "East_Asian_Width: *"
type Unicode property like "General_Category: *".
https://perldoc.perl.org/perluniprops.html
@codecov-io
Copy link

Codecov Report

Merging #102 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #102   +/-   ##
=======================================
  Coverage   82.86%   82.86%           
=======================================
  Files          62       62           
  Lines       12827    12827           
=======================================
  Hits        10629    10629           
  Misses       2198     2198

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b8c3321...ddaaadd. Read the comment docs.

@aycabta
Copy link
Contributor Author

aycabta commented May 5, 2018

@k-takata How is this?

@nurse
Copy link
Contributor

nurse commented Jul 18, 2018

I object this because width information is not useful in real world.
For example recently added emojis are specified as "Narrow", but they are expected to be showed as fullwidth on Japanese environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants