/[suikacvs]/markup/html/html5/spec-ja/data/microsyntaxes.dat
Suika

Diff of /markup/html/html5/spec-ja/data/microsyntaxes.dat

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by apache, Fri Jul 11 10:40:31 2008 UTC revision 1.3 by apache, Sun Aug 3 10:08:26 2008 UTC
# Line 120  HTML5 の数々の属性は<dfn id=boole Line 120  HTML5 の数々の属性は<dfn id=boole
120  存在しないと偽の値を表します。  存在しないと偽の値を表します。
121    
122  #en  #en
123    If the attribute is present, its value must either be the empty string  If the attribute is present, its value must either be the empty string
124     or a value that is a case-insensitive <!-- XXX ASCII --> match for the     or a value that is an <a href="#ascii">ASCII case-insensitive</a> match
125     attribute's canonical name, with no leading or trailing whitespace.     for the attribute's canonical name, with no leading or trailing
126       whitespace.
127  #ja  #ja
128  属性が存在する場合、値は、  属性が存在する場合、その値は空文字列か、または
129  空文字列か大文字・小文字を区別しないと属性の正準名と一致する  <a href="#ascii">ASCII 大文字・小文字不区別</a>で属性の正準名と一致するような
130  (先頭にも末尾にも空白がない) 値のいずれかでなければ[[MUST:なりません]]。  (先頭にも末尾にも空白がない) 値のいずれかでなければ[[MUST:なりません]]。
131    
132  #pattern  #pattern
# Line 139  HTML5 の数々の属性は<dfn id=boole Line 140  HTML5 の数々の属性は<dfn id=boole
140  <span class=secno>$1 </span>符号無し整数  <span class=secno>$1 </span>符号無し整数
141    
142  #en  #en
143  A string is a <dfn id=valid0>valid non-negative integer</dfn> if it  A string is a <dfn id=valid>valid non-negative integer</dfn> if it
144     consists of one of more characters in the range U+0030 DIGIT ZERO (0) to     consists of one of more characters in the range U+0030 DIGIT ZERO (0) to
145     U+0039 DIGIT NINE (9).     U+0039 DIGIT NINE (9).
146  #ja  #ja
147  文字列は、範囲 U+0030 DIGIT ZERO (0) から U+0039 DIGIT NINE (9)  文字列は、範囲 U+0030 DIGIT ZERO (0) ~ U+0039 DIGIT NINE (9)
148  までの文字1文字以上で構成される場合、<dfn id=valid0>妥当な非負整数</dfn>です。  の文字1文字以上で構成される場合、<dfn id=valid>妥当な非負整数</dfn>です。
149    
150  #en  #en
151  The <dfn id=rules>rules for parsing non-negative integers</dfn> are as  The <dfn id=rules>rules for parsing non-negative integers</dfn> are as
# Line 178  The <dfn id=rules>rules for parsing non- Line 179  The <dfn id=rules>rules for parsing non-
179  <var title="">value</var> を値 0 にします。  <var title="">value</var> を値 0 にします。
180    
181  #en  #en
182      <a href="#skip-whitespace">Skip whitespace.</a>      <a href="#skip-whitespace">Skip whitespace</a>.
183  #ja  #ja
184      <a href="#skip-whitespace">空白を読み飛ばします。</a>      <a href="#skip-whitespace">空白を読み飛ばします</a>。
185    
186  #en  #en
187      If <var title="">position</var> is past the end of <var      If <var title="">position</var> is past the end of <var
# Line 234  The <dfn id=rules>rules for parsing non- Line 235  The <dfn id=rules>rules for parsing non-
235      Return <var title="">value</var>.      Return <var title="">value</var>.
236  #ja  #ja
237  <var title="">value</var> を返します。  <var title="">value</var> を返します。
238    
239    #pattern
240    <span class=secno>* </span>Signed integers
241    #ja
242    <span class=secno>$1 </span>符号付き整数
243    
244    #en
245    A string is a <dfn id=valid0>valid integer</dfn> if it consists of one
246       of more characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE
247       (9), optionally prefixed with a U+002D HYPHEN-MINUS ("-") character.
248    #ja
249    文字列は、範囲 U+0030 DIGIT ZERO (0) ~ U+0039 DIGIT NINE
250       (9) の文字1文字以上で構成され、任意選択で接頭辞として U+002D HYPHEN-MINUS ("-")
251    文字がある場合、<dfn id=valid0>妥当な整数</dfn>です。
252    
253    #en
254    The <dfn id=rules0>rules for parsing integers</dfn> are similar to the
255       rules for non-negative integers, and are as given in the following
256       algorithm. When invoked, the steps must be followed in the order given,
257       aborting at the first step that returns a value. This algorithm will
258       either return an integer or an error. Leading spaces are ignored. Trailing
259       spaces and trailing garbage characters are ignored.
260    #ja
261    <dfn id=rules0>整数を構文解析する規則</dfn>は、非負整数用の規則と似ており、
262    次の算法により与えられます。これらの段階は、呼び出された場合、
263    与えられた順序に従い実行し、初めて値を返す段階で停止しなければ[[MUST:なりません]]。
264    この算法は整数か誤りのいずれかを返します。先頭の間隔は無視されます。
265    末尾の間隔や末尾のごみ文字は無視されます。
266    
267    #en
268    Let <var title="">sign</var> have the value "positive".
269    #ja
270    <var title="">sign</var> を、「正」という値を持つようにします。
271    
272    #en
273    If the character indicated by <var title="">position</var> (the first
274         character) is a U+002D HYPHEN-MINUS ("-") character:
275    #ja
276    <var title="">position</var> が示す文字 (最初の文字)
277    が U+002D HYPHEN-MINUS ("-") 文字である場合、
278    
279    #en
280    Let <var title="">sign</var> be "negative".
281    #ja
282    <var title="">sign</var> を「負」とします。
283    
284    #en
285    If <var title="">sign</var> is "positive", return <var
286         title="">value</var>, otherwise return 0-<var title="">value</var>.
287    #ja
288    <var title="">sign</var> が「正」の場合、 <var
289         title="">value</var> を返します。そうでない場合、
290    0-<var title="">value</var> を返します。
291    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24