@@ -2,18 +2,17 @@ use crate::foundations::{elem, func, Content, NativeElement, SymbolElem};
22use  crate :: layout:: { Length ,  Rel } ; 
33use  crate :: math:: Mathy ; 
44
5- /// Scales delimiters.  
5+ /// 区切り文字の拡大縮小。  
66/// 
7- /// While matched delimiters scale by default, this can be used to scale 
8- /// unmatched delimiters and to control the delimiter scaling more precisely. 
7+ /// 閉じている区切り文字はデフォルトで拡大縮小しますが、これは閉じていない区切り文字を拡大縮小させたり、区切り文字の拡大縮小をより正確に制御するのに便利です。 
98#[ elem( title = "Left/Right" ,  Mathy ) ]  
109pub  struct  LrElem  { 
11-     /// The size of the brackets, relative to the height of the wrapped content.  
10+     /// ラップしたコンテンツの高さを基準とした括弧の大きさ。  
1211     #[ resolve]  
1312    #[ default( Rel :: one( ) ) ]  
1413    pub  size :  Rel < Length > , 
1514
16-     /// The delimited content, including the delimiters.  
15+     /// 区切り文字を含めた、区切られるコンテンツ。  
1716     #[ required]  
1817    #[ parse(  
1918        let  mut  arguments = args. all:: <Content >( ) ?. into_iter( ) ;  
@@ -24,93 +23,93 @@ pub struct LrElem {
2423    pub  body :  Content , 
2524} 
2625
27- /// Scales delimiters vertically to the nearest surrounding  `{lr()}` group.  
26+ /// 最も近くで囲んでいる `{lr()}`グループに対して、垂直方向に区切り文字を拡大縮小します。  
2827/// 
2928/// ```example 
3029/// $ { x mid(|) sum_(i=1)^n w_i|f_i (x)| < 1 } $ 
3130/// ``` 
3231#[ elem( Mathy ) ]  
3332pub  struct  MidElem  { 
34-     /// The content to be scaled.  
33+     /// 拡大縮小させるコンテンツ。  
3534     #[ required]  
3635    pub  body :  Content , 
3736} 
3837
39- /// Floors an expression.  
38+ /// 式に床関数を作用させます。  
4039/// 
4140/// ```example 
4241/// $ floor(x/2) $ 
4342/// ``` 
4443#[ func]  
4544pub  fn  floor ( 
46-     /// The size of the brackets, relative to the height of the wrapped content.  
45+     /// ラップしたコンテンツの高さを基準とした括弧の大きさ。  
4746     #[ named]  
4847    size :  Option < Rel < Length > > , 
49-     /// The expression to floor.  
48+     /// 床関数を作用させる式。  
5049     body :  Content , 
5150)  -> Content  { 
5251    delimited ( body,  '⌊' ,  '⌋' ,  size) 
5352} 
5453
55- /// Ceils an expression.  
54+ /// 式に天井関数を作用させます。  
5655/// 
5756/// ```example 
5857/// $ ceil(x/2) $ 
5958/// ``` 
6059#[ func]  
6160pub  fn  ceil ( 
62-     /// The size of the brackets, relative to the height of the wrapped content.  
61+     /// ラップしたコンテンツの高さを基準とした括弧の大きさ。  
6362     #[ named]  
6463    size :  Option < Rel < Length > > , 
65-     /// The expression to ceil.  
64+     /// 天井関数を作用させる式。  
6665     body :  Content , 
6766)  -> Content  { 
6867    delimited ( body,  '⌈' ,  '⌉' ,  size) 
6968} 
7069
71- /// Rounds an expression.  
70+ /// 式を丸めます。  
7271/// 
7372/// ```example 
7473/// $ round(x/2) $ 
7574/// ``` 
7675#[ func]  
7776pub  fn  round ( 
78-     /// The size of the brackets, relative to the height of the wrapped content.  
77+     /// ラップしたコンテンツの高さを基準とした括弧の大きさ。  
7978     #[ named]  
8079    size :  Option < Rel < Length > > , 
81-     /// The expression to round.  
80+     /// 丸める式。  
8281     body :  Content , 
8382)  -> Content  { 
8483    delimited ( body,  '⌊' ,  '⌉' ,  size) 
8584} 
8685
87- /// Takes the absolute value of an expression.  
86+ /// 式の絶対値を取ります。  
8887/// 
8988/// ```example 
9089/// $ abs(x/2) $ 
9190/// ``` 
9291#[ func]  
9392pub  fn  abs ( 
94-     /// The size of the brackets, relative to the height of the wrapped content.  
93+     /// ラップしたコンテンツの高さを基準とした括弧の大きさ。  
9594     #[ named]  
9695    size :  Option < Rel < Length > > , 
97-     /// The expression to take the absolute value of.  
96+     /// 絶対値を取る式。  
9897     body :  Content , 
9998)  -> Content  { 
10099    delimited ( body,  '|' ,  '|' ,  size) 
101100} 
102101
103- /// Takes the norm of an expression.  
102+ /// 式のノルムを取ります。  
104103/// 
105104/// ```example 
106105/// $ norm(x/2) $ 
107106/// ``` 
108107#[ func]  
109108pub  fn  norm ( 
110-     /// The size of the brackets, relative to the height of the wrapped content.  
109+     /// ラップしたコンテンツの高さを基準とした括弧の大きさ。  
111110     #[ named]  
112111    size :  Option < Rel < Length > > , 
113-     /// The expression to take the norm of.  
112+     /// ノルムを取る式。  
114113     body :  Content , 
115114)  -> Content  { 
116115    delimited ( body,  '‖' ,  '‖' ,  size) 
0 commit comments