Skip to content

Commit f50318b

Browse files
committed
/docs/reference/math/sizesの翻訳
1 parent c8ba304 commit f50318b

File tree

3 files changed

+33
-38
lines changed

3 files changed

+33
-38
lines changed

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

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

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

164-
/// Forced inline (text) style in math.
164+
/// 数式中でインライン(テキスト)スタイルを強制します。
165165
///
166-
/// This is the normal size for inline equations.
166+
/// これはインライン数式における標準サイズです。
167167
///
168168
/// ```example
169169
/// $ sum_i x_i/2
170170
/// = inline(sum_i x_i/2) $
171171
/// ```
172172
#[func(title = "Inline Size", keywords = ["textstyle"])]
173173
pub fn inline(
174-
/// The content to size.
174+
/// 大きさを指定したいコンテンツ。
175175
body: Content,
176-
/// Whether to impose a height restriction for exponents, like regular sub-
177-
/// and superscripts do.
176+
/// 通常の下付き文字や上付き文字のように、指数に高さ制限を課すかどうか。
178177
#[named]
179178
#[default(false)]
180179
cramped: bool,
@@ -183,19 +182,18 @@ pub fn inline(
183182
.styled(EquationElem::set_cramped(cramped))
184183
}
185184

186-
/// Forced script style in math.
185+
/// 数式中でスクリプトスタイルを強制します。
187186
///
188-
/// This is the smaller size used in powers or sub- or superscripts.
187+
/// これは、冪乗、下付き文字、上付き文字で使用される小さいサイズです。
189188
///
190189
/// ```example
191190
/// $sum_i x_i/2 = script(sum_i x_i/2)$
192191
/// ```
193192
#[func(title = "Script Size", keywords = ["scriptstyle"])]
194193
pub fn script(
195-
/// The content to size.
194+
/// 大きさを指定したいコンテンツ。
196195
body: Content,
197-
/// Whether to impose a height restriction for exponents, like regular sub-
198-
/// and superscripts do.
196+
/// 通常の下付き文字や上付き文字のように、指数に高さ制限を課すかどうか。
199197
#[named]
200198
#[default(true)]
201199
cramped: bool,
@@ -204,20 +202,18 @@ pub fn script(
204202
.styled(EquationElem::set_cramped(cramped))
205203
}
206204

207-
/// Forced second script style in math.
205+
/// 数式中で第2スクリプトスタイルを強制します。
208206
///
209-
/// This is the smallest size, used in second-level sub- and superscripts
210-
/// (script of the script).
207+
/// これは、第2レベルの下付き文字や上付き文字(添え字の添え字)で使用される最も小さいサイズです。
211208
///
212209
/// ```example
213210
/// $sum_i x_i/2 = sscript(sum_i x_i/2)$
214211
/// ```
215212
#[func(title = "Script-Script Size", keywords = ["scriptscriptstyle"])]
216213
pub fn sscript(
217-
/// The content to size.
214+
/// 大きさを指定したいコンテンツ。
218215
body: Content,
219-
/// Whether to impose a height restriction for exponents, like regular sub-
220-
/// and superscripts do.
216+
/// 通常の下付き文字や上付き文字のように、指数に高さ制限を課すかどうか。
221217
#[named]
222218
#[default(true)]
223219
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/": "untranslated",
9191
"/docs/reference/math/primes/": "untranslated",
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)