@@ -5,27 +5,21 @@ use crate::engine::Engine;
55use crate :: foundations:: { elem, Content , NativeElement , Packed , Show , StyleChain } ;
66use crate :: layout:: { BlockElem , Length , Ratio , Rel } ;
77
8- /// Separates a region into multiple equally sized columns.
8+ /// 複数の同じ大きさを持つカラムへの領域の分割。
99///
10- /// The `column` function lets you separate the interior of any container into
11- /// multiple columns. It will currently not balance the height of the columns.
12- /// Instead, the columns will take up the height of their container or the
13- /// remaining height on the page. Support for balanced columns is planned for
14- /// the future.
10+ /// `column`関数を用いることで、あらゆるコンテナの内部を複数のカラムに分割することができます。
11+ /// 現在、カラムの高さのバランスは取れません。
12+ /// その代わり、カラムはコンテナの高さかページの残りの高さを占めます。
13+ /// バランスを取ったカラムは将来的にサポートされる予定です。
1514///
16- /// # Page-level columns { #page-level }
17- /// If you need to insert columns across your whole document, use the `{page}`
18- /// function's [`columns` parameter]($page.columns) instead. This will create
19- /// the columns directly at the page-level rather than wrapping all of your
20- /// content in a layout container. As a result, things like
21- /// [pagebreaks]($pagebreak), [footnotes]($footnote), and [line
22- /// numbers]($par.line) will continue to work as expected. For more information,
23- /// also read the [relevant part of the page setup
24- /// guide]($guides/page-setup-guide/#columns).
15+ /// # ページレベルのカラム { #page-level }
16+ /// ドキュメント全体を渡るカラムを挿入する必要がある場合は、代わりに`{page}`関数の[`columns`パラメーター]($page.columns)を使用してください。
17+ /// これは、レイアウトコンテナ内のコンテンツ全てをラップするのではなく、ページレベルのカラムを直接作成します。
18+ /// 結果として[ページ区切り]($pagebreak)、[脚注]($footnote)および[行番号]($par.line)のようなものが期待通りの動作をし続けます。
19+ /// より詳しくは[page setup guideの関連する項目]($guides/page-setup-guide/#columns)をご覧ください。
2520///
26- /// # Breaking out of columns { #breaking-out }
27- /// To temporarily break out of columns (e.g. for a paper's title), use
28- /// parent-scoped floating placement:
21+ /// # カラムの中断 { #breaking-out }
22+ /// (例えば、論文のタイトルのように)カラムを一時的に中断する場合は、親スコープでのフロート配置を使用してください。
2923///
3024/// ```example:single
3125/// #set page(columns: 2, height: 150pt)
@@ -43,17 +37,17 @@ use crate::layout::{BlockElem, Length, Ratio, Rel};
4337/// ```
4438#[ elem( Show ) ]
4539pub struct ColumnsElem {
46- /// The number of columns.
40+ /// カラムの数。
4741 #[ positional]
4842 #[ default( NonZeroUsize :: new( 2 ) . unwrap( ) ) ]
4943 pub count : NonZeroUsize ,
5044
51- /// The size of the gutter space between each column.
45+ /// 各カラム間の段間の大きさ。
5246 #[ resolve]
5347 #[ default( Ratio :: new( 0.04 ) . into( ) ) ]
5448 pub gutter : Rel < Length > ,
5549
56- /// The content that should be layouted into the columns.
50+ ///カラム内にレイアウトされるべき内容。
5751 #[ required]
5852 pub body : Content ,
5953}
@@ -66,13 +60,11 @@ impl Show for Packed<ColumnsElem> {
6660 }
6761}
6862
69- /// Forces a column break.
63+ /// 強制的なカラムの区切り。
7064///
71- /// The function will behave like a [page break]($pagebreak) when used in a
72- /// single column layout or the last column on a page. Otherwise, content after
73- /// the column break will be placed in the next column.
65+ /// この関数は、一段組かページ中の最後のカラムで使用されると、[ページ区切り]($pagebreak)と同じように振る舞います。それ以外の場合、カラム区切りの後のコンテンツは次のカラムに配置されます。
7466///
75- /// # Example
67+ /// # 例
7668/// ```example
7769/// #set page(columns: 2)
7870/// Preliminary findings from our
@@ -91,8 +83,7 @@ impl Show for Packed<ColumnsElem> {
9183/// ```
9284#[ elem( title = "Column Break" ) ]
9385pub struct ColbreakElem {
94- /// If `{true}`, the column break is skipped if the current column is
95- /// already empty.
86+ /// `{true}`の場合、現在のカラムがすでに空のとき、カラム区切りが実行されません。
9687 #[ default( false ) ]
9788 pub weak : bool ,
9889}
0 commit comments