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

feat: make the rule fixable #4

Merged
merged 1 commit into from
Jun 6, 2023
Merged

Conversation

takenspc
Copy link
Contributor

@takenspc takenspc commented Jun 6, 2023

Unicode assigns corresponding full-width characters to the characters covered by this rule, so they can be converted to full-width using NFKC or NFKD normalization.

https://unicode.org/charts/PDF/UFF00.pdf

The figure shows that U+FF61 is narrow version of U+3002 i.e. corresponding full-width character for U+FF61 is U+3002.

In this pull request, I have implemented a fixer using NFKC.

Due to the mechanism of NFKC, voiced and semi-voiced marks that can be expressed in NFC are represented in NFC, while those that cannot be expressed in NFC become NFD.

@azu azu added the Type: Feature New Feature label Jun 6, 2023
@azu azu merged commit cc63a52 into textlint-ja:master Jun 6, 2023
@azu
Copy link
Member

azu commented Jun 6, 2023

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

Successfully merging this pull request may close these issues.

2 participants