Skip to content

Commit 5329649

Browse files
ultimatileCopilotkimushun1101
authored
/docs/reference/layout/colbreak/および/docs/reference/layout/columnsの翻訳 (typst-jp#182)
Co-authored-by: Copilot <[email protected]> Co-authored-by: Shunsuke Kimura <[email protected]>
1 parent 2fdc459 commit 5329649

File tree

2 files changed

+22
-30
lines changed

2 files changed

+22
-30
lines changed

crates/typst-library/src/layout/columns.rs

Lines changed: 20 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,21 @@ use crate::engine::Engine;
55
use crate::foundations::{elem, Content, NativeElement, Packed, Show, StyleChain};
66
use 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+
/// より詳しくは[ページのセットアップガイドの関連する項目]($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)]
4539
pub 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,12 @@ 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)と同じように振る舞います。
66+
/// それ以外の場合、段区切りの後のコンテンツは次の段に配置されます。
7467
///
75-
/// # Example
68+
/// #
7669
/// ```example
7770
/// #set page(columns: 2)
7871
/// Preliminary findings from our
@@ -91,8 +84,7 @@ impl Show for Packed<ColumnsElem> {
9184
/// ```
9285
#[elem(title = "Column Break")]
9386
pub struct ColbreakElem {
94-
/// If `{true}`, the column break is skipped if the current column is
95-
/// already empty.
87+
/// `{true}`の場合、現在の段がすでに空のとき段区切りが実行されません。
9688
#[default(false)]
9789
pub weak: bool,
9890
}

website/translation-status.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@
106106
"/docs/reference/layout/angle/": "translated",
107107
"/docs/reference/layout/block/": "translated",
108108
"/docs/reference/layout/box/": "translated",
109-
"/docs/reference/layout/colbreak/": "untranslated",
110-
"/docs/reference/layout/columns/": "untranslated",
109+
"/docs/reference/layout/colbreak/": "translated",
110+
"/docs/reference/layout/columns/": "translated",
111111
"/docs/reference/layout/direction/": "translated",
112112
"/docs/reference/layout/fraction/": "translated",
113113
"/docs/reference/layout/grid/": "untranslated",

0 commit comments

Comments
 (0)