Skip to content

Conversation

ultimatile
Copy link
Contributor

@ultimatile ultimatile commented Sep 22, 2025

introspection/locationの翻訳です。
locationの翻訳は暫定的に「位置」にしてあります。
また、locatableの訳出にも悩んでいます。とりあえずそのまま「ロケータブル」にしてありますが、「位置(情報)特定可能」とかの方が良いかもしれません。

@ultimatile ultimatile added the translation Translation additions or improvements label Sep 22, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Typst reference "introspection/location" is translated to Japanese and marked as translated in the website status.

  • Mark translation status for /docs/reference/introspection/location/ as translated
  • Replace English doc comments in Location API with Japanese translations and localized terminology

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 11 comments.

File Description
website/translation-status.json Marks the location reference page as translated
crates/typst-library/src/introspection/location.rs Japanese translations for Rust doc comments on Location and related methods

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

///
/// Can be used with [`here`] to retrieve the physical page position
/// of the current context:
/// [`here`]と組み合わせることで現在のコンテキストが配置される実際のページ番号が取得できます。
Copy link
Preview

Copilot AI Sep 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Use consistent terminology and more natural phrasing. Suggested wording:

Suggested change
/// [`here`]と組み合わせることで現在のコンテキストが配置される実際のページ番号が取得できます
/// [`here`]と組み合わせることで現在位置のページ番号を取得できます

Copilot uses AI. Check for mistakes.

@kimushun1101
Copy link
Member

kimushun1101 commented Oct 4, 2025

ここで対応すると良いかと思い、用語集を足してみましたがいかがでしょうか?

すみません。とりあえず手を動かしてみたものの管理上分けたほうが良かったかもしれません。
@ultimatile さんのやりやすいようにやっていただければと思います。

/// location with the [`here`] function and the location of a queried or shown
/// element with the [`location()`]($content.location) method on content.
/// locationは文書中の要素を一意に識別し、ページ中での絶対位置へのアクセスを提供します。
/// [`here`]関数を用いて現在位置を取得可能です。
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// [`here`]関数を用いて現在位置を取得可能です
/// [`here`]関数を用いて現在のロケーションを取得可能です

/// element with the [`location()`]($content.location) method on content.
/// locationは文書中の要素を一意に識別し、ページ中での絶対位置へのアクセスを提供します。
/// [`here`]関数を用いて現在位置を取得可能です。
/// また、検索した位置や表示された要素の位置は、コンテンツの[`location()`]($content.location)メソッドを使って取得できます。
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// また、検索した位置や表示された要素の位置は、コンテンツの[`location()`]($content.location)メソッドを使って取得できます。
/// また、検索したロケーションや表示された要素のロケーションは、コンテンツの[`location()`]($content.location)メソッドを使って取得できます。

///
/// If the page numbering is set to `{none}` at that location, this function
/// returns `{none}`.
/// その位置でのページの番号付けが`{none}`に設定されていた場合、`{none}`を返します。
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// その位置でのページの番号付けが`{none}`に設定されていた場合、`{none}`を返します。
/// そのロケーションのページの番号付けが`{none}`に設定されていた場合、`{none}`を返します。

/// [`strong`] elements, but you will find only those that have an explicit
/// label attached to them. This limitation will be resolved in the future.
/// # ロケータブル要素 { #locatable }
/// 現在、要素関数の一部のみがロケータブルです。
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ここは訳としては間違ってはいないのですが、説明になっていないので

Suggested change
/// 現在、要素関数の一部のみがロケータブルです
/// 現在、要素関数の一部のみがロケーションを取得可能です

で良いですかね?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
translation Translation additions or improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants