Skip to content

Commit 89d6d04

Browse files
authored
docs/reference/math/accent/の翻訳 (#152)
1 parent 36c2418 commit 89d6d04

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

crates/typst-library/src/math/accent.rs

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,54 +3,54 @@ use crate::foundations::{cast, elem, func, Content, NativeElement, SymbolElem};
33
use crate::layout::{Length, Rel};
44
use crate::math::Mathy;
55

6-
/// Attaches an accent to a base.
6+
/// 対象の要素にアクセント記号を付ける。
77
///
8-
/// # Example
8+
/// #
99
/// ```example
1010
/// $grave(a) = accent(a, `)$ \
1111
/// $arrow(a) = accent(a, arrow)$ \
1212
/// $tilde(a) = accent(a, \u{0303})$
1313
/// ```
1414
#[elem(Mathy)]
1515
pub struct AccentElem {
16-
/// The base to which the accent is applied.
17-
/// May consist of multiple letters.
16+
/// アクセント記号が適用される対象の要素。
17+
/// 複数の文字から構成される場合もあります。
1818
///
1919
/// ```example
2020
/// $arrow(A B C)$
2121
/// ```
2222
#[required]
2323
pub base: Content,
2424

25-
/// The accent to apply to the base.
25+
/// 対象の要素に適用するアクセント記号。
2626
///
27-
/// Supported accents include:
27+
/// サポートされているアクセント記号には以下のものがあります。
2828
///
29-
/// | Accent | Name | Codepoint |
30-
/// | ------------- | --------------- | --------- |
31-
/// | Grave | `grave` | <code>&DiacriticalGrave;</code> |
32-
/// | Acute | `acute` | `´` |
33-
/// | Circumflex | `hat` | `^` |
34-
/// | Tilde | `tilde` | `~` |
35-
/// | Macron | `macron` | `¯` |
36-
/// | Dash | `dash` | `‾` |
37-
/// | Breve | `breve` | `˘` |
38-
/// | Dot | `dot` | `.` |
39-
/// | Double dot, Diaeresis | `dot.double`, `diaer` | `¨` |
40-
/// | Triple dot | `dot.triple` | <code>&tdot;</code> |
41-
/// | Quadruple dot | `dot.quad` | <code>&DotDot;</code> |
42-
/// | Circle | `circle` | `∘` |
43-
/// | Double acute | `acute.double` | `˝` |
44-
/// | Caron | `caron` | `ˇ` |
45-
/// | Right arrow | `arrow`, `->` | `→` |
46-
/// | Left arrow | `arrow.l`, `<-` | `←` |
47-
/// | Left/Right arrow | `arrow.l.r` | `↔` |
48-
/// | Right harpoon | `harpoon` | `⇀` |
49-
/// | Left harpoon | `harpoon.lt` | `↼` |
29+
/// | アクセント記号 | 名称 | コードポイント |
30+
/// | ------------------------ | --------------------- | ------------------------------- |
31+
/// | グレイブ | `grave` | <code>&DiacriticalGrave;</code> |
32+
/// | アキュート | `acute` | `´` |
33+
/// | サーカムフレックス | `hat` | `^` |
34+
/// | チルダ | `tilde` | `~` |
35+
/// | マクロン | `macron` | `¯` |
36+
/// | ダッシュ | `dash` | `‾` |
37+
/// | ブレーヴェ | `breve` | `˘` |
38+
/// | ドット | `dot` | `.` |
39+
/// | 2点ドット、 ダイエリシス | `dot.double`, `diaer` | `¨` |
40+
/// | 3点ドット | `dot.triple` | <code>&tdot;</code> |
41+
/// | 4点ドット | `dot.quad` | <code>&DotDot;</code> |
42+
/// | | `circle` | `∘` |
43+
/// | ダブルアキュート | `acute.double` | `˝` |
44+
/// | キャロン | `caron` | `ˇ` |
45+
/// | 右向き矢印 | `arrow`, `->` | `→` |
46+
/// | 左向き矢印 | `arrow.l`, `<-` | `←` |
47+
/// | 左右矢印 | `arrow.l.r` | `↔` |
48+
/// | 右向きハープーン | `harpoon` | `⇀` |
49+
/// | 左向きハープーン | `harpoon.lt` | `↼` |
5050
#[required]
5151
pub accent: Accent,
5252

53-
/// The size of the accent, relative to the width of the base.
53+
/// 対象の要素の幅に対するアクセント記号の相対的な大きさ。
5454
#[resolve]
5555
#[default(Rel::one())]
5656
pub size: Rel<Length>,

0 commit comments

Comments
 (0)