Skip to content

Add Unicode properties of East Asian Width#102

Open
aycabta wants to merge 1 commit intok-takata:masterfrom
aycabta:add-east-asian-width
Open

Add Unicode properties of East Asian Width#102
aycabta wants to merge 1 commit intok-takata:masterfrom
aycabta:add-east-asian-width

Conversation

@aycabta
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
Contributor Author

aycabta commented May 5, 2018

@k-takata How is this?

@nurse
Copy link
Copy Markdown
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