Skip to content

Conversation

@sbtseiji
Copy link
Contributor

@sbtseiji sbtseiji commented Sep 3, 2025

Calculationを翻訳しました。

Copy link
Contributor

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

This PR translates the calc module documentation and comments from English to Japanese.

  • Translates all function documentation comments and parameter descriptions
  • Updates module comments for mathematical functions
  • Updates translation status to mark calc module as translated

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
website/translation-status.json Updates calc module status from "untranslated" to "translated"
crates/typst-library/src/foundations/calc.rs Translates all documentation comments and parameter descriptions for mathematical functions

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

@ultimatile
Copy link
Contributor

calcの最初の説明文とbinomkが未翻訳です。

@sbtseiji
Copy link
Contributor Author

sbtseiji commented Sep 9, 2025

ありがとうございます。最初の説明文は別のファイルになっていたのですね。そちらの訳、および訳漏れ箇所の翻訳を追加しました。

@ultimatile
Copy link
Contributor

対応ありがとうございます。

私はnon-negativeは非負と訳すことに馴染みがあるのですが、みなさんはどうですかね?

@ultimatile
Copy link
Contributor

あと、ソース中のコメントにあるものの中でドキュメントに表示されるコメントと、そうでないものがあります。大雑把にはpublicになっている関数が表示されるのですが、publicであったとしてもドキュメントに表示されない、あるいは別の場所に表示されるものがありますので、mise run generate && mise run previewで翻訳が行った部分と表示の変化がどう対応するのかは逐次確認しながら作業することをお勧めします。

@3w36zj6
Copy link
Member

3w36zj6 commented Sep 22, 2025

値を表す「-1」は許容されてほしいので、false positiveな気がします。

Run bun run --bun textlint-html
$ textlint ./website/typst-docs-web/dist/

/home/runner/work/docs/docs/website/typst-docs-web/dist/reference/foundations/calc/index.html
  44:6472  error  原則として和文ではハイフン(-)を使用しません。
例外は、住所や電話番号の区切りに使う場合です。  jtf-style/4.2.6.ハイフン(-)
  46:6473  error  原則として和文ではハイフン(-)を使用しません。
例外は、住所や電話番号の区切りに使う場合です。  jtf-style/4.2.6.ハイフン(-)

✖ 2 problems (2 errors, 0 warnings, 0 infos)

error: script "textlint-html" exited with code 1
Error: Process completed with exit code 1.

https://github.com/textlint-ja/textlint-rule-preset-JTF-style/blob/master/test/4.2.6-test.js

このエラーは一旦無視してください。

Copy link
Member

@kimushun1101 kimushun1101 left a comment

Choose a reason for hiding this comment

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

内容の多いページの翻訳ありがとうございます。コメントを入れさせていただきました。

@ultimatile
Copy link
Contributor

ご対応ありがとうございました。

Copy link
Member

@kimushun1101 kimushun1101 left a comment

Choose a reason for hiding this comment

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

ご対応いただきありがとうございました!

Copy link
Contributor

@gomazarashi gomazarashi left a comment

Choose a reason for hiding this comment

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

ご対応ありがとうございました。

@3w36zj6 3w36zj6 added the translation Translation additions or improvements label Oct 14, 2025
@3w36zj6 3w36zj6 merged commit f3008bf into typst-jp:main Oct 14, 2025
3 checks passed
@sbtseiji sbtseiji deleted the calc branch October 20, 2025 05:29
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.

5 participants