-
Notifications
You must be signed in to change notification settings - Fork 4
Add symbols in Katakana block #190
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
Conversation
src/index.ts
Outdated
@@ -23,6 +23,7 @@ const cjkPunctuations = unicode({ | |||
'Kanbun', | |||
'CJK_Strokes', | |||
'Enclosed_CJK_Letters_And_Months', | |||
'Katakana', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @tats-u, I just got access to this repo, I'll take care of this PR.
There seems more than just U+30FB and U+30A0, are you sure there should all treat as punctuations?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As you may suspect, many of them are just letters. I have to modify the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fisker I remembered I've thought all of the non-punctuation characters in the Katakana block are included in cjkLetters
because of .subtract(cjkLetters)
. I don't think I have to remove this line. I don't think I have to remove this line now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All right, I'll take a look tomorrow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Snapshot was taken as intended.
# Conflicts: # tests/__snapshots__/index.test.ts.snap
I checked the new diff too. LGTM. Thank you for the merging. |
I'll improve the snapshot a little bit, and release a new version. |
Released v3.3.0, would you like to upgrade it in Prettier? |
Fixes #189
Also, han with Ideographic Variation Sequence (U+E0100–U+E01EF) is now treated as CJK.E.g. 竈門禰󠄀(U+79B0 U+E0100)豆子