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

no-kangxi-radicals ルールを追加する #69

Merged
merged 1 commit into from May 31, 2021

Conversation

hata6502
Copy link
Member

@hata6502 hata6502 commented May 30, 2021

textlint-rule-no-kangxi-radicals を追加しました。

PDF をコピーペーストしたときによく含まれる、康煕部首を見つけることができるルールです。
詳しくは、ルール作者が書かれた「PDF に謎の漢字が含まれるとき」を参照してください。

ルール作者:@xl1

動作確認

example/README.md に康煕部首を入れてみたときに、yarn test が失敗すること。

$ yarn test
yarn run v1.22.10
$ textlint README.md

/home/hata6502/textlint-rule-preset-japanese/example/README.md
  7:1  ✓ error  Found kangxi radical: ⾧  japanese/no-kangxi-radicals

✖ 1 problem (1 error, 0 warnings)
✓ 1 fixable problem.
Try to run: $ textlint --fix [file]

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

example/README.md をもとに戻したときに、yarn test が成功すること。

$ yarn test
yarn run v1.22.10
$ textlint README.md
Done in 1.00s.

康煕部首

@azu azu merged commit 4fa530d into textlint-ja:master May 31, 2021
@azu
Copy link
Member

azu commented May 31, 2021

#62 に追加しました

@hata6502 hata6502 deleted the add-no-kangxi-radicals branch May 31, 2021 05:50
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.

None yet

2 participants