From a5b4a2d925294217906a6a96ae604b7b888d8062 Mon Sep 17 00:00:00 2001 From: Shunsuke Kimura Date: Mon, 5 May 2025 20:29:08 +0000 Subject: [PATCH] Add: translation of figure Signed-off-by: Shunsuke Kimura --- crates/typst-library/src/layout/place.rs | 4 ++-- crates/typst-library/src/model/figure.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/typst-library/src/layout/place.rs b/crates/typst-library/src/layout/place.rs index bedeb5076d..f67edede9f 100644 --- a/crates/typst-library/src/layout/place.rs +++ b/crates/typst-library/src/layout/place.rs @@ -177,10 +177,10 @@ impl PlaceElem { /// Relative to which containing scope something shall be placed. #[derive(Debug, Default, Copy, Clone, Eq, PartialEq, Hash, Cast)] pub enum PlacementScope { - /// Place into the current column. + /// 現在の列に配置する。 #[default] Column, - /// Place relative to the parent, letting the content span over all columns. + /// 親要素に対して相対的な位置に配置され、コンテンツがすべての列にまたがって表示されます。 Parent, } diff --git a/crates/typst-library/src/model/figure.rs b/crates/typst-library/src/model/figure.rs index 2a3b21cb7a..9421481aa6 100644 --- a/crates/typst-library/src/model/figure.rs +++ b/crates/typst-library/src/model/figure.rs @@ -98,7 +98,7 @@ use crate::visualize::ImageElem; /// ``` #[elem(scope, Locatable, Synthesize, Count, Show, ShowSet, Refable, Outlinable)] pub struct FigureElem { - /// The content of the figure. Often, an [image]. + /// 図表の内容。多くの場合、 [image] が使われます。 #[required] pub body: Content,