From a2fa64efb7d69f50f711ed3861ac4ec77dab50c1 Mon Sep 17 00:00:00 2001 From: ultimatile Date: Mon, 4 Aug 2025 15:59:17 +0900 Subject: [PATCH 1/2] =?UTF-8?q?`/docs/reference/math/op`=E3=81=AE=E7=BF=BB?= =?UTF-8?q?=E8=A8=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/typst-library/src/math/op.rs | 17 +++++++---------- website/translation-status.json | 2 +- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/crates/typst-library/src/math/op.rs b/crates/typst-library/src/math/op.rs index 55696e5349..5189dc3ce7 100644 --- a/crates/typst-library/src/math/op.rs +++ b/crates/typst-library/src/math/op.rs @@ -5,28 +5,25 @@ use crate::layout::HElem; use crate::math::{upright, Mathy, THIN}; use crate::text::TextElem; -/// A text operator in an equation. +/// 数式中のテキスト演算子。 /// -/// # Example +/// # 例 /// ```example /// $ tan x = (sin x)/(cos x) $ /// $ op("custom", /// limits: #true)_(n->oo) n $ /// ``` /// -/// # Predefined Operators { #predefined } -/// Typst predefines the operators `arccos`, `arcsin`, `arctan`, `arg`, `cos`, -/// `cosh`, `cot`, `coth`, `csc`, `csch`, `ctg`, `deg`, `det`, `dim`, `exp`, -/// `gcd`, `lcm`, `hom`, `id`, `im`, `inf`, `ker`, `lg`, `lim`, `liminf`, -/// `limsup`, `ln`, `log`, `max`, `min`, `mod`, `Pr`, `sec`, `sech`, `sin`, -/// `sinc`, `sinh`, `sup`, `tan`, `tanh`, `tg` and `tr`. +/// # 定義済み演算子 { #predefined } +/// Typstが事前に定義してある演算子は以下の通りです。 +/// `arccos`、`arcsin`、`arctan`、`arg`、`cos`、`cosh`、`cot`、`coth`、`csc`、`csch`、`ctg`、`deg`、`det`、`dim`、`exp`、`gcd`、`lcm`、`hom`、`id`、`im`、`inf`、`ker`、`lg`、`lim`、`liminf`、`limsup`、`ln`、`log`、`max`、`min`、`mod`、`Pr`、`sec`、`sech`、`sin`、`sinc`、`sinh`、`sup`、`tan`、`tanh`、`tg`、`tr`。 #[elem(title = "Text Operator", Mathy)] pub struct OpElem { - /// The operator's text. + /// 演算子のテキスト。 #[required] pub text: Content, - /// Whether the operator should show attachments as limits in display mode. + /// ディスプレイモードのときに演算子のアタッチメントをlimitsのように表示するかどうか。 #[default(false)] pub limits: bool, } diff --git a/website/translation-status.json b/website/translation-status.json index 641c3d901b..0a81c37f09 100644 --- a/website/translation-status.json +++ b/website/translation-status.json @@ -93,7 +93,7 @@ "/docs/reference/math/sizes/": "untranslated", "/docs/reference/math/stretch/": "untranslated", "/docs/reference/math/styles/": "untranslated", - "/docs/reference/math/op/": "untranslated", + "/docs/reference/math/op/": "translated", "/docs/reference/math/underover/": "untranslated", "/docs/reference/math/variants/": "untranslated", "/docs/reference/math/vec/": "untranslated", From f3b442424c7814838f0f08db8101d2cc22f099c3 Mon Sep 17 00:00:00 2001 From: ultimatile Date: Thu, 7 Aug 2025 13:35:29 +0900 Subject: [PATCH 2/2] Update crates/typst-library/src/math/op.rs Co-authored-by: 3w36zj6 <52315048+3w36zj6@users.noreply.github.com> --- crates/typst-library/src/math/op.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/typst-library/src/math/op.rs b/crates/typst-library/src/math/op.rs index 5189dc3ce7..fd5f8cfc55 100644 --- a/crates/typst-library/src/math/op.rs +++ b/crates/typst-library/src/math/op.rs @@ -15,7 +15,7 @@ use crate::text::TextElem; /// ``` /// /// # 定義済み演算子 { #predefined } -/// Typstが事前に定義してある演算子は以下の通りです。 +/// Typstではあらかじめ以下の演算子が定義されています。 /// `arccos`、`arcsin`、`arctan`、`arg`、`cos`、`cosh`、`cot`、`coth`、`csc`、`csch`、`ctg`、`deg`、`det`、`dim`、`exp`、`gcd`、`lcm`、`hom`、`id`、`im`、`inf`、`ker`、`lg`、`lim`、`liminf`、`limsup`、`ln`、`log`、`max`、`min`、`mod`、`Pr`、`sec`、`sech`、`sin`、`sinc`、`sinh`、`sup`、`tan`、`tanh`、`tg`、`tr`。 #[elem(title = "Text Operator", Mathy)] pub struct OpElem {