@@ -172,18 +172,15 @@ pub enum InlineItem {
172172 Frame ( Frame ) ,
173173}
174174
175- /// A block-level container.
175+ /// ブロックレベルのコンテナ。
176176///
177- /// Such a container can be used to separate content, size it, and give it a
178- /// background or border.
177+ ///このようなコンテナは、コンテンツを区切り、その大きさを調整し、背景や枠線を付与するために使用できます。
179178///
180- /// Blocks are also the primary way to control whether text becomes part of a
181- /// paragraph or not. See [the paragraph documentation]($par/#what-becomes-a-paragraph)
182- /// for more details.
179+ /// ブロックは、テキストが段落の一部となるかどうかを制御する主要な方法でもあります。
180+ /// 詳細は[段落のドキュメント]($par/#what-becomes-a-paragraph)を参照してください。
183181///
184- /// # Examples
185- /// With a block, you can give a background to content while still allowing it
186- /// to break across multiple pages.
182+ /// # 例
183+ /// ブロックを使用すると、複数のページに渡って分割されるコンテンツに背景を与えることができます。
187184/// ```example
188185/// #set page(height: 100pt)
189186/// #block(
@@ -194,8 +191,7 @@ pub enum InlineItem {
194191/// )
195192/// ```
196193///
197- /// Blocks are also useful to force elements that would otherwise be inline to
198- /// become block-level, especially when writing show rules.
194+ ///ブロックは、特に show ルールを記述する際、本来インラインとなる要素を強制的にブロックレベルとして扱う場合にも有用です。
199195/// ```example
200196/// #show heading: it => it.body
201197/// = Blockless
@@ -207,7 +203,7 @@ pub enum InlineItem {
207203/// ```
208204#[ elem]
209205pub struct BlockElem {
210- /// The block's width.
206+ /// ブロックの幅。
211207 ///
212208 /// ```example
213209 /// #set align(center)
@@ -220,9 +216,8 @@ pub struct BlockElem {
220216 /// ```
221217 pub width : Smart < Rel < Length > > ,
222218
223- /// The block's height. When the height is larger than the remaining space
224- /// on a page and [`breakable`]($block.breakable) is `{true}`, the
225- /// block will continue on the next page with the remaining height.
219+ /// ブロックの高さ。
220+ /// 高さがページに残された余白より大きく、[`breakable`]($block.breakable)が`{true}`の場合、 ブロックは残りの高さで次のページに続きます。
226221 ///
227222 /// ```example
228223 /// #set page(height: 80pt)
@@ -235,7 +230,7 @@ pub struct BlockElem {
235230 /// ```
236231 pub height : Sizing ,
237232
238- /// Whether the block can be broken and continue on the next page.
233+ /// ブロックが分割可能で次のページに継続するかどうか。
239234 ///
240235 /// ```example
241236 /// #set page(height: 80pt)
@@ -249,48 +244,43 @@ pub struct BlockElem {
249244 #[ default( true ) ]
250245 pub breakable : bool ,
251246
252- /// The block's background color. See the
253- /// [rectangle's documentation ]($rect.fill) for more details.
247+ /// ブロックの背景色。
248+ /// 詳細は[rectangleのドキュメント ]($rect.fill)を参照してください。
254249 pub fill : Option < Paint > ,
255250
256- /// The block's border color. See the
257- /// [rectangle's documentation ]($rect.stroke) for more details.
251+ /// ブロックの境界線の色。
252+ /// 詳細は[rectangleのドキュメント ]($rect.stroke)を参照してください。
258253 #[ resolve]
259254 #[ fold]
260255 pub stroke : Sides < Option < Option < Stroke > > > ,
261256
262- /// How much to round the block's corners. See the
263- /// [rectangle's documentation ]($rect.radius) for more details.
257+ /// ブロックの角の丸めの大きさ。
258+ /// 詳細は[rectangleのドキュメント ]($rect.radius)を参照してください。
264259 #[ resolve]
265260 #[ fold]
266261 pub radius : Corners < Option < Rel < Length > > > ,
267262
268- /// How much to pad the block's content. See the
269- /// [box's documentation ]($box.inset) for more details.
263+ /// ブロックのコンテンツのパディング量。
264+ /// 詳細は[boxのドキュメント ]($box.inset)を参照してください。
270265 #[ resolve]
271266 #[ fold]
272267 pub inset : Sides < Option < Rel < Length > > > ,
273268
274- /// How much to expand the block's size without affecting the layout. See
275- /// the [box's documentation ]($box.outset) for more details.
269+ /// レイアウトに影響を与えずにブロックの大きさを拡大する量。
270+ /// 詳細は[boxのドキュメント ]($box.outset)を参照してください。
276271 #[ resolve]
277272 #[ fold]
278273 pub outset : Sides < Option < Rel < Length > > > ,
279274
280- /// The spacing around the block. When `{auto}`, inherits the paragraph
281- /// [`spacing`]($par.spacing).
275+ /// ブロック周りの間隔。`{auto}`の場合、段落の[`spacing`]($par.spacing)を継承します。
282276 ///
283- /// For two adjacent blocks, the larger of the first block's `above` and the
284- /// second block's `below` spacing wins. Moreover, block spacing takes
285- /// precedence over paragraph [`spacing`]($par.spacing).
277+ /// 隣接する2つのブロックについては、最初のブロックの`above`と2番目のブロックの`below`のうち、 大きい方の間隔が優先されます。
278+ /// また、ブロックの間隔は段落の[`spacing`]($par.spacing)よりも優先されます。
286279 ///
287- /// Note that this is only a shorthand to set `above` and `below` to the
288- /// same value. Since the values for `above` and `below` might differ, a
289- /// [context] block only provides access to `{block.above}` and
290- /// `{block.below}`, not to `{block.spacing}` directly.
280+ /// これは`above`と`below`を同じ値に設定するための短縮記法にすぎないことに注意してください。
281+ /// `above`と`below`の値は異なる可能性があるため、[context]ブロックでは`{block.above}`と `{block.below}`にのみアクセスでき、`{block.spacing}`に直接アクセスすることはできません。
291282 ///
292- /// This property can be used in combination with a show rule to adjust the
293- /// spacing around arbitrary block-level elements.
283+ /// このプロパティはshow ruleと組み合わせて使用することで、 任意のブロックレベル要素の周りの間隔を調整できます。
294284 ///
295285 /// ```example
296286 /// #set align(center)
@@ -304,21 +294,20 @@ pub struct BlockElem {
304294 #[ default( Em :: new( 1.2 ) . into( ) ) ]
305295 pub spacing : Spacing ,
306296
307- /// The spacing between this block and its predecessor.
297+ /// このブロックとその前のブロックとの間隔。
308298 #[ parse(
309299 let spacing = args. named( "spacing" ) ?;
310300 args. named( "above" ) ?. or( spacing)
311301 ) ]
312302 pub above : Smart < Spacing > ,
313303
314- /// The spacing between this block and its successor.
304+ /// このブロックとその後のブロックとの間隔。
315305 #[ parse( args. named( "below" ) ?. or( spacing) ) ]
316306 pub below : Smart < Spacing > ,
317307
318- /// Whether to clip the content inside the block.
308+ /// ブロックの内側のコンテンツのクリッピングを行うか否か。
319309 ///
320- /// Clipping is useful when the block's content is larger than the block itself,
321- /// as any content that exceeds the block's bounds will be hidden.
310+ /// クリッピングは、ブロックの境界を超えたコンテンツを隠すため、ブロックのコンテンツがブロック本体よりも大きい場合に便利です。
322311 ///
323312 /// ```example
324313 /// #block(
@@ -331,11 +320,9 @@ pub struct BlockElem {
331320 #[ default( false ) ]
332321 pub clip : bool ,
333322
334- /// Whether this block must stick to the following one, with no break in
335- /// between.
323+ /// このブロックが、次のブロックとの間に区切りを入れることなく続ける必要があるかどうか。
336324 ///
337- /// This is, by default, set on heading blocks to prevent orphaned headings
338- /// at the bottom of the page.
325+ /// この設定は、ページの下部で見出しが孤立することを防ぐために、見出しブロックに対してデフォルトで適用されています。
339326 ///
340327 /// ```example
341328 /// >>> #set page(height: 140pt)
@@ -349,7 +336,7 @@ pub struct BlockElem {
349336 #[ default( false ) ]
350337 pub sticky : bool ,
351338
352- /// The contents of the block.
339+ /// ブロックの内容。
353340 #[ positional]
354341 #[ borrowed]
355342 pub body : Option < BlockBody > ,
0 commit comments