Skip to content

Commit b739021

Browse files
ultimatileCopilot
andauthored
/docs/reference/math/cancelの翻訳 (#229)
Co-authored-by: Copilot <[email protected]>
1 parent 18e39ac commit b739021

File tree

2 files changed

+17
-22
lines changed

2 files changed

+17
-22
lines changed

crates/typst-library/src/math/cancel.rs

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ use crate::layout::{Abs, Angle, Length, Ratio, Rel};
33
use crate::math::Mathy;
44
use crate::visualize::Stroke;
55

6-
/// Displays a diagonal line over a part of an equation.
6+
/// 数式の一部分上に対角線を表示。
77
///
8-
/// This is commonly used to show the elimination of a term.
8+
/// 項の除去を示すのによく使われます。
99
///
10-
/// # Example
10+
/// #
1111
/// ```example
1212
/// >>> #set page(width: 140pt)
1313
/// Here, we can simplify:
@@ -16,13 +16,12 @@ use crate::visualize::Stroke;
1616
/// ```
1717
#[elem(Mathy)]
1818
pub struct CancelElem {
19-
/// The content over which the line should be placed.
19+
/// 線が配置されるべきコンテンツ。
2020
#[required]
2121
pub body: Content,
2222

23-
/// The length of the line, relative to the length of the diagonal spanning
24-
/// the whole element being "cancelled". A value of `{100%}` would then have
25-
/// the line span precisely the element's diagonal.
23+
/// 「キャンセル」したい要素全体をまたぐ対角線を基準とした相対的な線の長さ。
24+
/// `{100%}`という値は、要素の対角線と正確に一致する長さになります。
2625
///
2726
/// ```example
2827
/// >>> #set page(width: 140pt)
@@ -33,9 +32,8 @@ pub struct CancelElem {
3332
#[default(Rel::new(Ratio::one(), Abs::pt(3.0).into()))]
3433
pub length: Rel<Length>,
3534

36-
/// Whether the cancel line should be inverted (flipped along the y-axis).
37-
/// For the default angle setting, inverted means the cancel line
38-
/// points to the top left instead of top right.
35+
/// 打ち消し線を(y軸に関して)反転させるべきかどうか。
36+
/// デフォルト角度設定では、反転により打ち消し線が右上ではなく左上を指すようになります。
3937
///
4038
/// ```example
4139
/// >>> #set page(width: 140pt)
@@ -45,8 +43,8 @@ pub struct CancelElem {
4543
#[default(false)]
4644
pub inverted: bool,
4745

48-
/// Whether two opposing cancel lines should be drawn, forming a cross over
49-
/// the element. Overrides `inverted`.
46+
/// 要素上で交差する、相対する2つの打ち消し線を描画するかどうか。
47+
/// これは`inverted`を上書きします。
5048
///
5149
/// ```example
5250
/// >>> #set page(width: 140pt)
@@ -55,15 +53,12 @@ pub struct CancelElem {
5553
#[default(false)]
5654
pub cross: bool,
5755

58-
/// How much to rotate the cancel line.
56+
/// 打ち消し線をどれくらい回転させるか。
5957
///
60-
/// - If given an angle, the line is rotated by that angle clockwise with
61-
/// respect to the y-axis.
62-
/// - If `{auto}`, the line assumes the default angle; that is, along the
63-
/// rising diagonal of the content box.
64-
/// - If given a function `angle => angle`, the line is rotated, with
65-
/// respect to the y-axis, by the angle returned by that function. The
66-
/// function receives the default angle as its input.
58+
/// - 角度が与えられた場合、y軸方向を0度として時計回りに与えられた角度だけ線が回転します。
59+
/// - `{auto}`の場合、デフォルトの角度を用いた線となります。すなわち、コンテンツのボックスの右上がりの対角線に沿うものになります。
60+
/// - `angle => angle`の形の関数が与えられた場合、y軸方向を0度として、その関数が返す角度で線が回転します。
61+
/// 関数は入力としてデフォルトの角度を受け取ります。
6762
///
6863
/// ```example
6964
/// >>> #set page(width: 140pt)
@@ -76,7 +71,7 @@ pub struct CancelElem {
7671
/// ```
7772
pub angle: Smart<CancelAngle>,
7873

79-
/// How to [stroke]($stroke) the cancel line.
74+
/// 打ち消し線の[ストローク]($stroke)をどうするか。
8075
///
8176
/// ```example
8277
/// >>> #set page(width: 140pt)

website/translation-status.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"/docs/reference/math/accent/": "translated",
8282
"/docs/reference/math/attach/": "untranslated",
8383
"/docs/reference/math/binom/": "untranslated",
84-
"/docs/reference/math/cancel/": "untranslated",
84+
"/docs/reference/math/cancel/": "translated",
8585
"/docs/reference/math/cases/": "translated",
8686
"/docs/reference/math/class/": "untranslated",
8787
"/docs/reference/math/equation/": "translated",

0 commit comments

Comments
 (0)