Skip to content

Commit 96ebb00

Browse files
ultimatileCopilot
andauthored
/docs/reference/text/smartquoteの翻訳 (typst-jp#276)
Co-authored-by: Copilot <[email protected]>
1 parent 5329649 commit 96ebb00

File tree

2 files changed

+19
-25
lines changed

2 files changed

+19
-25
lines changed

crates/typst-library/src/text/smartquote.rs

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@ use crate::foundations::{
99
use crate::layout::Dir;
1010
use crate::text::{Lang, Region};
1111

12-
/// A language-aware quote that reacts to its context.
12+
/// 言語を認識し、コンテキストに反応する引用符。
1313
///
14-
/// Automatically turns into an appropriate opening or closing quote based on
15-
/// the active [text language]($text.lang).
14+
/// アクティブな[テキストの言語設定]($text.lang)に基づいて適切な開き引用符か閉じ引用符に自動的に変更します。
1615
///
17-
/// # Example
16+
/// #
1817
/// ```example
1918
/// "This is in quotes."
2019
///
@@ -25,19 +24,19 @@ use crate::text::{Lang, Region};
2524
/// "C'est entre guillemets."
2625
/// ```
2726
///
28-
/// # Syntax
29-
/// This function also has dedicated syntax: The normal quote characters
30-
/// (`'` and `"`). Typst automatically makes your quotes smart.
27+
/// # 構文
28+
/// この関数は専用の構文もあります。
29+
/// 通常の引用記号(`'`と`"`)です。
30+
/// Typstはそれらを自動的にスマートクォートとして扱います。
3131
#[elem(name = "smartquote", PlainText)]
3232
pub struct SmartQuoteElem {
33-
/// Whether this should be a double quote.
33+
/// 二重引用符にすべきかどうか。
3434
#[default(true)]
3535
pub double: bool,
3636

37-
/// Whether smart quotes are enabled.
37+
/// スマートクォートを有効化するかどうか。
3838
///
39-
/// To disable smartness for a single quote, you can also escape it with a
40-
/// backslash.
39+
/// 単一引用符の場合は、バックスラッシュでエスケープしても無効化できます。
4140
///
4241
/// ```example
4342
/// #set smartquote(enabled: false)
@@ -47,10 +46,9 @@ pub struct SmartQuoteElem {
4746
#[default(true)]
4847
pub enabled: bool,
4948

50-
/// Whether to use alternative quotes.
49+
/// 代替引用符を使用するかどうか。
5150
///
52-
/// Does nothing for languages that don't have alternative quotes, or if
53-
/// explicit quotes were set.
51+
/// 代替引用符を持たない言語に対してや、明示的に引用符が設定されている場合には、何もしません。
5452
///
5553
/// ```example
5654
/// #set text(lang: "de")
@@ -61,17 +59,13 @@ pub struct SmartQuoteElem {
6159
#[default(false)]
6260
pub alternative: bool,
6361

64-
/// The quotes to use.
62+
/// 使用する引用符。
6563
///
66-
/// - When set to `{auto}`, the appropriate single quotes for the
67-
/// [text language]($text.lang) will be used. This is the default.
68-
/// - Custom quotes can be passed as a string, array, or dictionary of either
69-
/// - [string]($str): a string consisting of two characters containing the
70-
/// opening and closing double quotes (characters here refer to Unicode
71-
/// grapheme clusters)
72-
/// - [array]: an array containing the opening and closing double quotes
73-
/// - [dictionary]: an array containing the double and single quotes, each
74-
/// specified as either `{auto}`, string, or array
64+
/// - `{auto}`に設定された場合、[テキストの言語]($text.lang)に対して適切な単一引用符が使用されます。これがデフォルトです。
65+
/// - カスタム引用符として文字列、配列、辞書のいずれかを渡せます。
66+
/// - [文字列]($str): 開き二重引用符と閉じ二重引用符の2文字からなる文字列(ここの文字はUnicodeグラフェムクラスターを指します)
67+
/// - [配列]($array): 開き二重引用符と閉じ二重引用符を持つ配列
68+
/// - [辞書]($dictionary): doubleやsingleをキーとして引用符を指定する辞書。その値は`{auto}`、文字列、配列のいずれかで指定します。
7569
///
7670
/// ```example
7771
/// #set text(lang: "de")

website/translation-status.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"/docs/reference/text/overline/": "translated",
7171
"/docs/reference/text/raw/": "translated",
7272
"/docs/reference/text/smallcaps/": "translated",
73-
"/docs/reference/text/smartquote/": "untranslated",
73+
"/docs/reference/text/smartquote/": "translated",
7474
"/docs/reference/text/strike/": "translated",
7575
"/docs/reference/text/sub/": "translated",
7676
"/docs/reference/text/super/": "translated",

0 commit comments

Comments
 (0)