Skip to content

chore: textlint-rule-preset-ja-technical-writingを追加#412

Open
3w36zj6 wants to merge 24 commits into
mainfrom
feature/add-textlint-rule-preset-ja-technical-writing
Open

chore: textlint-rule-preset-ja-technical-writingを追加#412
3w36zj6 wants to merge 24 commits into
mainfrom
feature/add-textlint-rule-preset-ja-technical-writing

Conversation

@3w36zj6

@3w36zj6 3w36zj6 commented Jul 10, 2026

Copy link
Copy Markdown
Member

close #372

変更点

  • textlint-rule-preset-ja-technical-writingを追加した
    • ルールの設定はデフォルトの設定を基準に原文に依存する表現を検知しないように緩くしています
  • textlintの自動修正を適用した
  • textlintの自動修正に対応していないエラーをLLM (gpt-5.5)で修正した

@3w36zj6
3w36zj6 marked this pull request as ready for review July 17, 2026 17:54
Comment thread docs/tutorial/3-advanced.md
Comment thread crates/typst-library/src/visualize/image/mod.rs Outdated
Comment thread crates/typst-library/src/model/footnote.rs Outdated
Comment thread crates/typst-library/src/foundations/func.rs Outdated
Comment thread crates/typst-library/src/layout/align.rs Outdated
Comment thread crates/typst-library/src/layout/dir.rs Outdated
Comment thread crates/typst-library/src/layout/layout.rs Outdated
Comment thread crates/typst-library/src/model/heading.rs Outdated
Comment thread crates/typst-library/src/text/lorem.rs Outdated
Comment thread crates/typst-library/src/layout/container.rs Outdated
@kimushun1101

Copy link
Copy Markdown
Member

個人的な感覚でひとまずコメントしてみました。採否はお任せいたします。

Comment thread crates/typst-library/src/foundations/calc.rs Outdated
Comment thread crates/typst-library/src/foundations/calc.rs Outdated
3w36zj6 and others added 9 commits July 18, 2026 22:47
Co-authored-by: ultimatile <18307308+ultimatile@users.noreply.github.com>
Co-authored-by: 3w36zj6 <52315048+3w36zj6@users.noreply.github.com>
Co-authored-by: 3w36zj6 <52315048+3w36zj6@users.noreply.github.com>
Co-authored-by: 3w36zj6 <52315048+3w36zj6@users.noreply.github.com>
Co-authored-by: kimushun1101 <13430937+kimushun1101@users.noreply.github.com>
Co-authored-by: 3w36zj6 <52315048+3w36zj6@users.noreply.github.com>
Co-authored-by: 3w36zj6 <52315048+3w36zj6@users.noreply.github.com>
kimushun1101 and others added 2 commits July 20, 2026 06:28
Co-authored-by: 3w36zj6 <52315048+3w36zj6@users.noreply.github.com>
Co-authored-by: 3w36zj6 <52315048+3w36zj6@users.noreply.github.com>

@kimushun1101 kimushun1101 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ご対応ありがとうございました!

/// ```
///
/// `layout`が提供する幅と高さは、対象ページの寸法が`{auto}`に設定されていると無限大になりうることに注意してください
/// `layout`が提供する幅と高さは、対象ページの寸法が`{auto}`に設定されていると無限大となりうることに注意してください

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.

これに〜に〜に反応しているっぽいですが、修正後はと〜と〜になっているように見えるのですが、それはいいんですかね?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

no-doubled-joshiは助詞の表記だけでなく、kuromojiによる品詞細分類も含めて比較しています。

修正前は「無限大に」の「に」と「なりうることに」の「に」がどちらも格助詞として連続するため違反となりますが、修正後の「設定されていると」の「と」は接続助詞、「無限大となりうる」の「と」は格助詞として解析されるため、同じ助詞の連続とは判定されません。

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.

textlint-rule-preset-ja-technical-writingの導入

3 participants