Skip to content

Commit a2237ce

Browse files
author
gomazarashi
committed
翻訳完了
1 parent 1a5fe3a commit a2237ce

File tree

1 file changed

+18
-18
lines changed
  • crates/typst-library/src/model

1 file changed

+18
-18
lines changed

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

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,25 @@ use crate::text::TextElem;
4040
/// `http://`や`https://`で始まるテキストは、自動的にリンクに変換されます。
4141
#[elem(Show)]
4242
pub struct LinkElem {
43-
/// The destination the link points to.
43+
/// リンクの遷移先。
4444
///
45-
/// - To link to web pages, `dest` should be a valid URL string. If the URL
46-
/// is in the `mailto:` or `tel:` scheme and the `body` parameter is
47-
/// omitted, the email address or phone number will be the link's body,
48-
/// without the scheme.
45+
/// - Webページにリンクする場合、`dest`は有効なURL文字列である必要があります。
46+
/// `mailto:`または `tel:`スキームを含むURLが指定され、
47+
/// かつ`body`パラメータが省略された場合、
48+
/// スキームを除いたメールアドレスまたは電話番号がリンクの本文になります。
4949
///
50-
/// - To link to another part of the document, `dest` can take one of three
51-
/// forms:
52-
/// - A [label] attached to an element. If you also want automatic text
53-
/// for the link based on the element, consider using a
54-
/// [reference]($ref) instead.
50+
/// - 文書中の別の部分にリンクする場合、
51+
///  `dest`には次の3つのうちいずれかの形式を用いることができます。
52+
/// - 要素に付与された[label]
53+
/// 要素に基づいて自動的にリンクの本文を生成したい場合は、
54+
/// [reference]($ref)を使用することを検討してください。
5555
///
56-
/// - A [`location`] (typically retrieved from [`here`], [`locate`] or
57-
/// [`query`]).
56+
/// - [`location`] (通常は`here`][`locate`]
57+
/// [`query`]から取得される)。
5858
///
59-
/// - A dictionary with a `page` key of type [integer]($int) and `x` and
60-
/// `y` coordinates of type [length]. Pages are counted from one, and
61-
/// the coordinates are relative to the page's top left corner.
59+
/// - [integer]($int)型の`page`キーと[length]型の`x`座標、`y`座標を持つ辞書。
60+
/// ページは1から数えられ、
61+
/// 座標はページの左上隅からの相対位置です。
6262
///
6363
/// ```example
6464
/// = Introduction <intro>
@@ -75,10 +75,10 @@ pub struct LinkElem {
7575
)]
7676
pub dest: LinkTarget,
7777

78-
/// The content that should become a link.
78+
/// リンクとして表示する内容。
7979
///
80-
/// If `dest` is an URL string, the parameter can be omitted. In this case,
81-
/// the URL will be shown as the link.
80+
/// `dest`がURL文字列の場合、このパラメーターは省略可能です。
81+
/// この場合、URLがリンクとして表示されます。
8282
#[required]
8383
#[parse(match &dest {
8484
LinkTarget::Dest(Destination::Url(url)) => match args.eat()? {

0 commit comments

Comments
 (0)