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

1.2.1, 4.1.3: 三点リーダを許容する #106

Open
massongit opened this issue Dec 8, 2022 · 2 comments
Open

1.2.1, 4.1.3: 三点リーダを許容する #106

massongit opened this issue Dec 8, 2022 · 2 comments
Labels
Status: PR Welcome Welcome to Pull Request Status: Proposal Request for comments

Comments

@massongit
Copy link
Contributor

massongit commented Dec 8, 2022

$ echo "乙女ゲームの破滅フラグしかない悪役令嬢に転生してしまった...。" | npx textlint --stdin

<text>
  1:29  ✓ error  句読点には全角の「、」と「。」を使います。和文の句読点としてピリオド(.)とカンマ(,)を使用しません。  jtf-style/1.2.1.句点(。)と読点(、)
  1:29  ✓ error  和文の句読点としてはピリオドを使用しません。                                                        jtf-style/4.1.3.ピリオド(.)、カンマ(,)

✖ 2 problems (2 errors, 0 warnings)
✓ 2 fixable problems.
Try to run: $ textlint --fix [file]

三点リーダ ( ... ) を使用した場合、 1.2.1.句点(。)と読点(、)4.1.3.ピリオド(.)、カンマ(,) に違反すると出てきます。
しかし、三点リーダは句読点には該当しないため、許容するのが適切と考えられます。

@azu
Copy link
Member

azu commented Dec 9, 2022

3点リーダは … (&#8230;)や ⋯ (&#x22EF;)のことですか?
それとも ...・・・ のことですか?

. はピリオドなので3点リーダではない気はします。
... みたいに並べた場合は、JTFにどういう扱いするべきかが書かれてなかったので、ちょっと判断難しいですね
https://www.jtf.jp/pdf/jtf_style_guide.pdf

句読点のルールからは ... を除外するのはアリだとは思います。(別のルールで取り扱うのが正しそう)
ただ ...... はエラー にするのかといった判断がちょっと難しい。
入力ミスの可能性もあるので、擬似3点リーダを許容するオプションを追加するとかが一番安全かな?

@azu azu added the Status: Need More Info Lacks enough info to make progress label Dec 9, 2022
@massongit
Copy link
Contributor Author

massongit commented Dec 9, 2022

... みたいに並べた場合

Issueの意図としてはこちらに該当します。

@azu azu added Status: PR Welcome Welcome to Pull Request Status: Proposal Request for comments and removed Status: Need More Info Lacks enough info to make progress labels Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: PR Welcome Welcome to Pull Request Status: Proposal Request for comments
Projects
None yet
Development

No branches or pull requests

2 participants