Skip to content

/docs/tutorial/making-a-template/の再翻訳#410

Open
ultimatile wants to merge 1 commit into
typst-jp:mainfrom
ultimatile:retranslate-tutorial-making-a-template
Open

/docs/tutorial/making-a-template/の再翻訳#410
ultimatile wants to merge 1 commit into
typst-jp:mainfrom
ultimatile:retranslate-tutorial-making-a-template

Conversation

@ultimatile

Copy link
Copy Markdown
Contributor

Closes: #362

いくつか既存の翻訳も修正しています。
関連して「everythingのshowルール」が不自然だったので「everything showルール」として用語集にも追加しました。
なお、reference/syntaxでは「show-everythingルール」と書かれており、原文レベルでの表記揺れが存在します。

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

Typst v0.14.0 更新に伴い、/docs/tutorial/making-a-template/(チュートリアル「テンプレートを作成する」)の日本語訳を再翻訳し、関連する用語整備と翻訳ステータス更新を行うPRです。

Changes:

  • docs/tutorial/4-template.md の冒頭セクションを中心に翻訳を全面的に見直し、記述を更新
  • 「everything showルール」を用語集に追加
  • 翻訳完了に合わせて website/translation-status.json のステータスを更新

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
website/translation-status.json /docs/tutorial/making-a-template/translated に更新
docs/tutorial/4-template.md 「テンプレートを作成する」章の翻訳を再翻訳・表現更新
docs/glossary.md 「everything show rule / everything showルール」を用語集に追加

```

テンプレートは`amazed`のようなカスタム関数でドキュメント全体をラップすることで機能します。しかし、文書全体を巨大な関数呼び出しでラップするのは面倒でしょう!代わりに、everythingshowルールを使用して、より洗練されたコードで同じことを実現できます。そのようなshowルールを書くには、showキーワードの直後にコロンを置き、関数を提供します。この関数にはドキュメントの残りの部分がパラメーターとして渡されます。関数はこのコンテンツに対して何でも行うことができます。`amazed`関数は単一のコンテンツ引数で呼び出せるので、showルールに名前で渡すだけで良いのです。試してみましょう。
テンプレートは`amazed`のようなカスタム関数で文書全体をラップすることで機能します。しかし、文書全体を巨大な関数呼び出しでラップするのは面倒でしょう!代わりに、"everything" showルールを使用して、より洗練されたコードで同じことが実現できます。そのようなshowルールを書くには、showキーワードの直後にコロンを置き、関数を提供します。この関数には文書の残りの部分がパラメーターとして渡されます。関数はこのコンテンツに対して任意の処理が可能です。`amazed`関数は単一のコンテンツ引数で呼び出せるので、showルールに名前で渡すだけで良いのです。試してみましょう。
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.

v0.14.0への更新に伴う/docs/tutorial/making-a-template/の再翻訳

2 participants