From 2765fa2fdc30dbb2dd931c69f7b9be5f19e09535 Mon Sep 17 00:00:00 2001 From: Shunsuke Kimura Date: Sat, 19 Jul 2025 19:10:15 +0900 Subject: [PATCH 1/2] Translate strong Signed-off-by: Shunsuke Kimura --- crates/typst-library/src/model/strong.rs | 20 ++++++++++---------- website/translation-status.json | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/crates/typst-library/src/model/strong.rs b/crates/typst-library/src/model/strong.rs index 16d04ba975..3ade936b8e 100644 --- a/crates/typst-library/src/model/strong.rs +++ b/crates/typst-library/src/model/strong.rs @@ -6,11 +6,11 @@ use crate::foundations::{ use crate::html::{tag, HtmlElem}; use crate::text::{TextElem, WeightDelta}; -/// Strongly emphasizes content by increasing the font weight. +/// 太字によるコンテンツの強調。 /// -/// Increases the current font weight by a given `delta`. +/// 現在のフォントの太さに指定した差分 `delta` を加えます。 /// -/// # Example +/// # 例 /// ```example /// This is *strong.* \ /// This is #strong[too.] \ @@ -19,14 +19,14 @@ use crate::text::{TextElem, WeightDelta}; /// And this is *evermore.* /// ``` /// -/// # Syntax -/// This function also has dedicated syntax: To strongly emphasize content, -/// simply enclose it in stars/asterisks (`*`). Note that this only works at -/// word boundaries. To strongly emphasize part of a word, you have to use the -/// function. +/// # 構文 +/// この関数には専用の構文もあります。 +/// 強調したいコンテンツをアスタリスク(`*`)で囲むだけです。 +/// ただし、これは単語の区切りにおいてのみ機能します。 +/// 単語の一部を強調したい場合は、関数を使用してください。 #[elem(title = "Strong Emphasis", keywords = ["bold", "weight"], Show)] pub struct StrongElem { - /// The delta to apply on the font weight. + /// フォントの太さに適用する変化量。 /// /// ```example /// #set strong(delta: 0) @@ -35,7 +35,7 @@ pub struct StrongElem { #[default(300)] pub delta: i64, - /// The content to strongly emphasize. + /// 強調するコンテンツ。 #[required] pub body: Content, } diff --git a/website/translation-status.json b/website/translation-status.json index 70c108bad7..5f91a5c0dc 100644 --- a/website/translation-status.json +++ b/website/translation-status.json @@ -59,7 +59,7 @@ "/docs/reference/model/parbreak/": "translated", "/docs/reference/model/quote/": "translated", "/docs/reference/model/ref/": "translated", - "/docs/reference/model/strong/": "untranslated", + "/docs/reference/model/strong/": "translated", "/docs/reference/model/table/": "untranslated", "/docs/reference/model/terms/": "untranslated", "/docs/reference/text/": "untranslated", From 9bcb124ba6dda30ec51a43a46e33f63eb35f78b4 Mon Sep 17 00:00:00 2001 From: Shunsuke Kimura Date: Sat, 19 Jul 2025 19:10:24 +0900 Subject: [PATCH 2/2] Update emph Signed-off-by: Shunsuke Kimura --- crates/typst-library/src/model/emph.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/typst-library/src/model/emph.rs b/crates/typst-library/src/model/emph.rs index 21a214fab6..d5a484819f 100644 --- a/crates/typst-library/src/model/emph.rs +++ b/crates/typst-library/src/model/emph.rs @@ -27,8 +27,9 @@ use crate::text::{ItalicToggle, TextElem}; /// /// # 構文 /// この関数には専用の構文もあります。 -/// コンテンツを強調するには、単にアンダースコア(`_`)で囲みます。ただし、これは単語の区切りにおいてのみ機能します。 -/// 単語の一部を強調する場合は、この関数を使用する必要があります。 +/// 強調したいコンテンツをアンダースコア(`_`)で囲むだけです。 +/// ただし、これは単語の区切りにおいてのみ機能します。 +/// 単語の一部を強調したい場合は、関数を使用してください。 #[elem(title = "Emphasis", keywords = ["italic"], Show)] pub struct EmphElem { /// 強調するコンテンツ。