Skip to content

Commit 63777c1

Browse files
/docs/reference/model/quote/の翻訳 (#173)
Co-authored-by: Shunsuke KIMURA <[email protected]>
1 parent 401e9d1 commit 63777c1

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

crates/typst-library/src/model/quote.rs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ use crate::layout::{
1212
use crate::model::{CitationForm, CiteElem, Destination, LinkElem, LinkTarget};
1313
use crate::text::{SmartQuoteElem, SmartQuotes, SpaceElem, TextElem};
1414

15-
/// Displays a quote alongside an optional attribution.
15+
/// 引用文を表示し、オプションとして帰属情報を併記する。
1616
///
17-
/// # Example
17+
/// #
1818
/// ```example
1919
/// Plato is often misquoted as the author of #quote[I know that I know
2020
/// nothing], however, this is a derivation form his original quote:
@@ -31,8 +31,8 @@ use crate::text::{SmartQuoteElem, SmartQuotes, SpaceElem, TextElem};
3131
/// ]
3232
/// ```
3333
///
34-
/// By default block quotes are padded left and right by `{1em}`, alignment and
35-
/// padding can be controlled with show rules:
34+
/// デフォルトでは、ブロック引用には左右それぞれ `{1em}` のパディングが設定されており、
35+
/// 配置やパディングはshowルールで制御できます。
3636
/// ```example
3737
/// #set quote(block: true)
3838
/// #show quote: set align(center)
@@ -46,7 +46,7 @@ use crate::text::{SmartQuoteElem, SmartQuotes, SpaceElem, TextElem};
4646
/// ```
4747
#[elem(Locatable, ShowSet, Show)]
4848
pub struct QuoteElem {
49-
/// Whether this is a block quote.
49+
/// ブロック引用にするかどうか。
5050
///
5151
/// ```example
5252
/// An inline citation would look like
@@ -64,16 +64,16 @@ pub struct QuoteElem {
6464
/// ```
6565
block: bool,
6666

67-
/// Whether double quotes should be added around this quote.
67+
/// 引用文の両端を二重引用符で囲むかどうか。
6868
///
69-
/// The double quotes used are inferred from the `quotes` property on
70-
/// [smartquote], which is affected by the `lang` property on [text].
69+
/// 使用される二重引用符は、[smartquote]の`quotes`プロパティから推測され、
70+
/// [text]の`lang`プロパティの影響を受けます。
71+
///
72+
/// - `{true}`: 引用文を二重引用符で囲みます。
73+
/// - `{false}`: 引用文を二重引用符で囲みません。
74+
/// - `{auto}`: 引用文を二重引用符で囲むかどうかを、`block`プロパティに基づいて推測します。
75+
/// `block`が`{false}`の場合、二重引用符が自動的に追加されます。
7176
///
72-
/// - `{true}`: Wrap this quote in double quotes.
73-
/// - `{false}`: Do not wrap this quote in double quotes.
74-
/// - `{auto}`: Infer whether to wrap this quote in double quotes based on
75-
/// the `block` property. If `block` is `{false}`, double quotes are
76-
/// automatically added.
7777
///
7878
/// ```example
7979
/// #set text(lang: "de")
@@ -90,9 +90,9 @@ pub struct QuoteElem {
9090
/// ```
9191
quotes: Smart<bool>,
9292

93-
/// The attribution of this quote, usually the author or source. Can be a
94-
/// label pointing to a bibliography entry or any content. By default only
95-
/// displayed for block quotes, but can be changed using a `{show}` rule.
93+
/// 引用文の帰属情報。通常は著者名や出典元を指します。
94+
/// 参考文献を指すラベルや任意のコンテンツを設定することもできます。
95+
/// デフォルトではブロック引用にのみ表示されますが、`{show}`ルールを使用して変更できます。
9696
///
9797
/// ```example
9898
/// #quote(attribution: [René Descartes])[
@@ -126,7 +126,7 @@ pub struct QuoteElem {
126126
#[borrowed]
127127
attribution: Option<Attribution>,
128128

129-
/// The quote.
129+
/// 引用文。
130130
#[required]
131131
body: Content,
132132

website/translation-status.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"/docs/reference/model/outline/": "untranslated",
5858
"/docs/reference/model/par/": "untranslated",
5959
"/docs/reference/model/parbreak/": "untranslated",
60-
"/docs/reference/model/quote/": "untranslated",
60+
"/docs/reference/model/quote/": "translated",
6161
"/docs/reference/model/ref/": "translated",
6262
"/docs/reference/model/strong/": "untranslated",
6363
"/docs/reference/model/table/": "untranslated",

0 commit comments

Comments
 (0)