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.

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

Comment thread crates/typst-library/src/layout/layout.rs
@3w36zj6
3w36zj6 requested a review from ultimatile July 20, 2026 14:27
@ultimatile

Copy link
Copy Markdown
Contributor

対応ありがとうございます。確認にまだ時間がかかります、すみません。

/// これは独自の索引、参考文献、目次を作成する際に便利です。
///
/// bodyパラメーターの実体の間に空白が挿入される可能性があるため、[`justify`]($repeat.justify)パラメーターを正しく調整しているか確かめてください。
/// bodyパラメーターの実体の間に空白が挿入される可能性もあるため、[`justify`]($repeat.justify)パラメーターを正しく調整しているか確かめてください。

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.

「も」は他の可能性もあるように見えるため、言い換えた方が良さそうに見えます。

Suggested change
/// bodyパラメーターの実体の間に空白が挿入される可能性もあるため、[`justify`]($repeat.justify)パラメーターを正しく調整しているか確かめてください。
/// bodyパラメーターの実体の間に空白が挿入され得るため、[`justify`]($repeat.justify)パラメーターを正しく調整しているか確かめてください。

pub size: Rel<Length>,

/// 上付きのアクセント記号を追加する際に、小文字のiおよびjの上の点を取り除くかどうか
/// 上付きのアクセント記号を追加する際に、小文字の`i`および`j`の上の点を取り除くかどうか

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.

ここはバックチック不要ではないでしょうか

Comment thread crates/typst-library/src/model/figure.rs
///
/// [`where`]($function.where)セレクターを使うことで、このようなルールを特定の種類の図表に適用可能です。
/// 例えば、図表の種類が表の場合はキャプションを表の上に配置し、他の種類ではキャプションを下に配置するには、次のようなshow-setルールを記述します。
/// 例えば、図表の種類が表の場合はキャプションを表の上に配置し、他の種類ではキャプションを下に配置するなら、次のようなshow-setルールを記述します。

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.

「するなら」が口語的なのが気になります。to Vのパターンなので

Suggested change
/// 例えば、図表の種類が表の場合はキャプションを表の上に配置し、他の種類ではキャプションを下に配置するなら、次のようなshow-setルールを記述します
/// 例えば、次のようなshow-setルールを記述することで、図表の種類が表の場合はキャプションを表の上に、他の種類ではキャプションを下に配置できます

とするのはどうでしょうか。

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