Skip to content

Commit e1ba807

Browse files
ultimatileCopilot
andauthored
/docs/reference/math/sizesの翻訳 (#244)
Co-authored-by: Copilot <[email protected]>
1 parent 6138a8d commit e1ba807

File tree

3 files changed

+33
-39
lines changed

3 files changed

+33
-39
lines changed

crates/typst-library/src/math/style.rs

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -140,19 +140,18 @@ pub fn bb(
140140
body.styled(EquationElem::set_variant(MathVariant::Bb))
141141
}
142142

143-
/// Forced display style in math.
144-
///
145-
/// This is the normal size for block equations.
143+
/// 数式中でディスプレイスタイルを強制します。
146144
///
145+
/// これはブロック数式における標準サイズです。
146+
147147
/// ```example
148148
/// $sum_i x_i/2 = display(sum_i x_i/2)$
149149
/// ```
150150
#[func(title = "Display Size", keywords = ["displaystyle"])]
151151
pub fn display(
152-
/// The content to size.
152+
/// 大きさを指定したいコンテンツ。
153153
body: Content,
154-
/// Whether to impose a height restriction for exponents, like regular sub-
155-
/// and superscripts do.
154+
/// 通常の下付き文字や上付き文字のように、指数に高さ制限を課すかどうか。
156155
#[named]
157156
#[default(false)]
158157
cramped: bool,
@@ -161,20 +160,19 @@ pub fn display(
161160
.styled(EquationElem::set_cramped(cramped))
162161
}
163162

164-
/// Forced inline (text) style in math.
163+
/// 数式中でインライン(テキスト)スタイルを強制します。
165164
///
166-
/// This is the normal size for inline equations.
165+
/// これはインライン数式における標準サイズです。
167166
///
168167
/// ```example
169168
/// $ sum_i x_i/2
170169
/// = inline(sum_i x_i/2) $
171170
/// ```
172171
#[func(title = "Inline Size", keywords = ["textstyle"])]
173172
pub fn inline(
174-
/// The content to size.
173+
/// 大きさを指定したいコンテンツ。
175174
body: Content,
176-
/// Whether to impose a height restriction for exponents, like regular sub-
177-
/// and superscripts do.
175+
/// 通常の下付き文字や上付き文字のように、指数に高さ制限を課すかどうか。
178176
#[named]
179177
#[default(false)]
180178
cramped: bool,
@@ -183,19 +181,18 @@ pub fn inline(
183181
.styled(EquationElem::set_cramped(cramped))
184182
}
185183

186-
/// Forced script style in math.
184+
/// 数式中でスクリプトスタイルを強制します。
187185
///
188-
/// This is the smaller size used in powers or sub- or superscripts.
186+
/// これは、冪乗、下付き文字、上付き文字で使用される小さいサイズです。
189187
///
190188
/// ```example
191189
/// $sum_i x_i/2 = script(sum_i x_i/2)$
192190
/// ```
193191
#[func(title = "Script Size", keywords = ["scriptstyle"])]
194192
pub fn script(
195-
/// The content to size.
193+
/// 大きさを指定したいコンテンツ。
196194
body: Content,
197-
/// Whether to impose a height restriction for exponents, like regular sub-
198-
/// and superscripts do.
195+
/// 通常の下付き文字や上付き文字のように、指数に高さ制限を課すかどうか。
199196
#[named]
200197
#[default(true)]
201198
cramped: bool,
@@ -204,20 +201,18 @@ pub fn script(
204201
.styled(EquationElem::set_cramped(cramped))
205202
}
206203

207-
/// Forced second script style in math.
204+
/// 数式中で第2スクリプトスタイルを強制します。
208205
///
209-
/// This is the smallest size, used in second-level sub- and superscripts
210-
/// (script of the script).
206+
/// これは、第2レベルの下付き文字や上付き文字(添え字の添え字)で使用される最も小さいサイズです。
211207
///
212208
/// ```example
213209
/// $sum_i x_i/2 = sscript(sum_i x_i/2)$
214210
/// ```
215211
#[func(title = "Script-Script Size", keywords = ["scriptscriptstyle"])]
216212
pub fn sscript(
217-
/// The content to size.
213+
/// 大きさを指定したいコンテンツ。
218214
body: Content,
219-
/// Whether to impose a height restriction for exponents, like regular sub-
220-
/// and superscripts do.
215+
/// 通常の下付き文字や上付き文字のように、指数に高さ制限を課すかどうか。
221216
#[named]
222217
#[default(true)]
223218
cramped: bool,

docs/reference/groups.yml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,28 +29,27 @@
2929
path: ["math"]
3030
filter: ["display", "inline", "script", "sscript"]
3131
details: |
32-
Forced size styles for expressions within formulas.
32+
数式中の式に大きさに関するスタイルを強制します。
3333
34-
These functions allow manual configuration of the size of equation elements
35-
to make them look as in a display/inline equation or as if used in a root or
36-
sub/superscripts.
34+
これらの関数を用いると、数式要素の大きさを、ブロック/インライン数式中や、根号、下付き文字、上付き文字の中で使われているかのようなものに手動で設定できます。
3735
3836
- name: underover
3937
title: Under/Over
4038
category: math
4139
path: ["math"]
42-
filter: [
43-
"underline",
44-
"overline",
45-
"underbrace",
46-
"overbrace",
47-
"underbracket",
48-
"overbracket",
49-
"underparen",
50-
"overparen",
51-
"undershell",
52-
"overshell",
53-
]
40+
filter:
41+
[
42+
"underline",
43+
"overline",
44+
"underbrace",
45+
"overbrace",
46+
"underbracket",
47+
"overbracket",
48+
"underparen",
49+
"overparen",
50+
"undershell",
51+
"overshell",
52+
]
5453
details: |
5554
Delimiters above or below parts of an equation.
5655

website/translation-status.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
"/docs/reference/math/mat/": "translated",
9191
"/docs/reference/math/primes/": "translated",
9292
"/docs/reference/math/roots/": "translated",
93-
"/docs/reference/math/sizes/": "untranslated",
93+
"/docs/reference/math/sizes/": "translated",
9494
"/docs/reference/math/stretch/": "untranslated",
9595
"/docs/reference/math/styles/": "untranslated",
9696
"/docs/reference/math/op/": "untranslated",

0 commit comments

Comments
 (0)