Skip to content

chore: prhの「のち」→「後」の誤判定を防ぐマッチの緩和を追加#411

Merged
ultimatile merged 1 commit into
typst-jp:mainfrom
ultimatile:fix-prh-rule-nochi
Jul 1, 2026
Merged

chore: prhの「のち」→「後」の誤判定を防ぐマッチの緩和を追加#411
ultimatile merged 1 commit into
typst-jp:mainfrom
ultimatile:fix-prh-rule-nochi

Conversation

@ultimatile

@ultimatile ultimatile commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

#361/docs/tutorial/advanced-styling/の翻訳作業中なのですが、翻訳で出てきた「フォントサイズのちょうど1.2倍」が「のち」に反応してしまったので、のちの後に拗音が続く場合にマッチしないように修正しました。

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

prh(表記ゆれ/用語統一)ルールで、助詞「の」+「ちょ…」等の並びが「のち」→「後」ルールに誤マッチするケースを防ぐため、マッチ条件を緩和する変更です。翻訳作業中に発生した誤検知を抑制し、textlint/prh の指摘精度を改善します。

Changes:

  • 「のち」→「後」ルールを文字列マッチから正規表現に変更し、直後が拗音(ゃゅょ)の場合はマッチしないように調整
  • 意図を補足するコメントを追加

Comment thread prh.yaml
@ultimatile ultimatile force-pushed the fix-prh-rule-nochi branch from a4dbfca to f543c00 Compare June 30, 2026 05:25
@ultimatile ultimatile merged commit 67acf8c into typst-jp:main Jul 1, 2026
4 checks passed
@ultimatile ultimatile deleted the fix-prh-rule-nochi branch July 1, 2026 16:13
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.

5 participants