Skip to content

/docs/reference/math/stretchの翻訳 #243

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions crates/typst-library/src/math/attach.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,12 @@ pub struct LimitsElem {
pub inline: bool,
}

/// Stretches a glyph.
/// 字形を伸縮します。
///
/// This function can also be used to automatically stretch the base of an
/// attachment, so that it fits the top and bottom attachments.
/// この関数は、上部及び下部アタッチメントがフィットするように、自動的にアタッチメントのベースを伸縮させることにも使えます。
///
/// Note that only some glyphs can be stretched, and which ones can depend on
/// the math font being used. However, most math fonts are the same in this
/// regard.
/// 伸縮可能な字形は限られており、どの字形が伸縮可能かは使用する数式フォントに依存することに注意してください。
/// しかしながら、この点に関してほとんどの数式フォントに違いはありません。
///
/// ```example
/// $ H stretch(=)^"define" U + p V $
Expand All @@ -146,12 +144,11 @@ pub struct LimitsElem {
/// ```
#[elem(Mathy)]
pub struct StretchElem {
/// The glyph to stretch.
/// 伸縮させる字形。
#[required]
pub body: Content,

/// The size to stretch to, relative to the maximum size of the glyph and
/// its attachments.
/// 字形およびそのアタッチメントを基準とした伸縮の大きさ。
#[resolve]
#[default(Rel::one())]
pub size: Rel<Length>,
Expand Down
2 changes: 1 addition & 1 deletion website/translation-status.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"/docs/reference/math/primes/": "untranslated",
"/docs/reference/math/roots/": "translated",
"/docs/reference/math/sizes/": "untranslated",
"/docs/reference/math/stretch/": "untranslated",
"/docs/reference/math/stretch/": "translated",
"/docs/reference/math/styles/": "untranslated",
"/docs/reference/math/op/": "untranslated",
"/docs/reference/math/underover/": "untranslated",
Expand Down