Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions crates/typst-library/src/model/emph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ use crate::text::{ItalicToggle, TextElem};
///
/// # 構文
/// この関数には専用の構文もあります。
/// コンテンツを強調するには、単にアンダースコア(`_`)で囲みます。ただし、これは単語の区切りにおいてのみ機能します。
/// 単語の一部を強調する場合は、この関数を使用する必要があります。
/// 強調したいコンテンツをアンダースコア(`_`)で囲むだけです。
/// ただし、これは単語の区切りにおいてのみ機能します。
/// 単語の一部を強調したい場合は、関数を使用してください。
#[elem(title = "Emphasis", keywords = ["italic"], Show)]
pub struct EmphElem {
/// 強調するコンテンツ。
Expand Down
20 changes: 10 additions & 10 deletions crates/typst-library/src/model/strong.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.] \
Expand All @@ -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)
Expand All @@ -35,7 +35,7 @@ pub struct StrongElem {
#[default(300)]
pub delta: i64,

/// The content to strongly emphasize.
/// 強調するコンテンツ。
#[required]
pub body: Content,
}
Expand Down
2 changes: 1 addition & 1 deletion website/translation-status.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down