/docs/tutorial/making-a-template/の再翻訳#410
Open
ultimatile wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
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`のようなカスタム関数でドキュメント全体をラップすることで機能します。しかし、文書全体を巨大な関数呼び出しでラップするのは面倒でしょう!代わりに、「everything」showルールを使用して、より洗練されたコードで同じことを実現できます。そのようなshowルールを書くには、showキーワードの直後にコロンを置き、関数を提供します。この関数にはドキュメントの残りの部分がパラメーターとして渡されます。関数はこのコンテンツに対して何でも行うことができます。`amazed`関数は単一のコンテンツ引数で呼び出せるので、showルールに名前で渡すだけで良いのです。試してみましょう。 | ||
| テンプレートは`amazed`のようなカスタム関数で文書全体をラップすることで機能します。しかし、文書全体を巨大な関数呼び出しでラップするのは面倒でしょう!代わりに、"everything" showルールを使用して、より洗練されたコードで同じことが実現できます。そのようなshowルールを書くには、showキーワードの直後にコロンを置き、関数を提供します。この関数には文書の残りの部分がパラメーターとして渡されます。関数はこのコンテンツに対して任意の処理が可能です。`amazed`関数は単一のコンテンツ引数で呼び出せるので、showルールに名前で渡すだけで良いのです。試してみましょう。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes: #362
いくつか既存の翻訳も修正しています。
関連して「everythingのshowルール」が不自然だったので「everything showルール」として用語集にも追加しました。
なお、reference/syntaxでは「show-everythingルール」と書かれており、原文レベルでの表記揺れが存在します。