Skip to content

Commit 04d5823

Browse files
committed
/docs/reference/layout/skewの翻訳
1 parent 0b989d6 commit 04d5823

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

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

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -198,20 +198,20 @@ cast! {
198198
length: Length => ScaleAmount::Length(length),
199199
}
200200

201-
/// Skews content.
201+
/// コンテンツのせん断変形。
202202
///
203-
/// Skews an element in horizontal and/or vertical direction. The layout will
204-
/// act as if the element was not skewed unless you specify `{reflow: true}`.
203+
/// 水平方向または垂直方向、あるいは両方向に要素をせん断変形します。
204+
/// `{reflow: true}`を指定しない限り、レイアウトは要素がせん断変形を受けていないかのように振る舞います。
205205
///
206-
/// # Example
206+
/// #
207207
/// ```example
208208
/// #skew(ax: -12deg)[
209209
/// This is some fake italic text.
210210
/// ]
211211
/// ```
212212
#[elem(Show)]
213213
pub struct SkewElem {
214-
/// The horizontal skewing angle.
214+
/// 水平方向のせん断角。
215215
///
216216
/// ```example
217217
/// #skew(ax: 30deg)[Skewed]
@@ -220,7 +220,7 @@ pub struct SkewElem {
220220
#[default(Angle::zero())]
221221
pub ax: Angle,
222222

223-
/// The vertical skewing angle.
223+
/// 垂直方向のせん断角。
224224
///
225225
/// ```example
226226
/// #skew(ay: 30deg)[Skewed]
@@ -229,9 +229,9 @@ pub struct SkewElem {
229229
#[default(Angle::zero())]
230230
pub ay: Angle,
231231

232-
/// The origin of the skew transformation.
232+
/// せん断変形の原点。
233233
///
234-
/// The origin will stay fixed during the operation.
234+
/// 操作中は原点が固定されます。
235235
///
236236
/// ```example
237237
/// X #box(skew(ax: -30deg, origin: center + horizon)[X]) X \
@@ -242,19 +242,18 @@ pub struct SkewElem {
242242
#[default(HAlignment::Center + VAlignment::Horizon)]
243243
pub origin: Alignment,
244244

245-
/// Whether the skew transformation impacts the layout.
245+
/// せん断変形がレイアウトに影響を与えるかどうか。
246246
///
247-
/// If set to `{false}`, the skewed content will retain the bounding box of
248-
/// the original content. If set to `{true}`, the bounding box will take the
249-
/// transformation of the content into account and adjust the layout accordingly.
247+
/// `{false}`の場合、せん断変形されたコンテンツは元々のコンテンツのバウンディングボックスに留まります。
248+
/// `{true}`の場合、 バウンディングボックスはコンテンツの変形を考慮してレイアウトを調整します。
250249
///
251250
/// ```example
252251
/// Hello #skew(ay: 30deg, reflow: true, "World")!
253252
/// ```
254253
#[default(false)]
255254
pub reflow: bool,
256255

257-
/// The content to skew.
256+
/// せん断変形するコンテンツ。
258257
#[required]
259258
pub body: Content,
260259
}

website/translation-status.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
"/docs/reference/layout/repeat/": "translated",
126126
"/docs/reference/layout/rotate/": "translated",
127127
"/docs/reference/layout/scale/": "translated",
128-
"/docs/reference/layout/skew/": "untranslated",
128+
"/docs/reference/layout/skew/": "translated",
129129
"/docs/reference/layout/h/": "translated",
130130
"/docs/reference/layout/v/": "translated",
131131
"/docs/reference/layout/stack/": "translated",

0 commit comments

Comments
 (0)