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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.19 - (show annotations) (download)
Thu Oct 23 04:18:26 2008 UTC (17 years, 9 months ago) by wakaba
Branch: MAIN
CVS Tags: after-new-ids, HEAD
Changes since 1.18: +79 -79 lines
reflect id changes

1 #pattern
2 <span class=secno>* </span>Common microsyntaxes
3 #ja
4 <span class=secno>$1 </span>共通マイクロ構文
5
6 #en
7 There are various places in HTML that accept particular data types, such
8 as dates or numbers. This section describes what the conformance criteria
9 for content in those formats is, and how to parse them.
10 #ja
11 HTML 中のいろいろな場所で、日付や数値のような特定のデータ型を使うことができます。
12 この節では、そのような書式の内容の適合基準は何か、
13 どう構文解析するかを説明します。
14
15 #en
16 Need to go through the whole spec and make sure all the
17 attribute values are clearly defined either in terms of microsyntaxes or
18 in terms of other specs, or as "Text" or some such.
19 #ja
20 仕様書全体について、すべての属性値がマイクロ構文を使ってか他の仕様書を使ってか「文章」などとして定義されるようにする必要があります。
21
22 #pattern
23 <span class=secno>* </span>Common parser idioms
24 #ja
25 <span class=secno>$1 </span>構文解析器共通慣用句
26
27 #en
28 The <dfn id=space-character title="space character">space characters</dfn>, for
29 the purposes of this specification, are U+0020 SPACE, U+0009 CHARACTER
30 TABULATION (tab), U+000A LINE FEED (LF), U+000C FORM FEED (FF), and U+000D
31 CARRIAGE RETURN (CR).
32 #ja
33 <dfn id=space-character title="space character">間隔文字</dfn>は、
34 この仕様書においては、 U+0020 SPACE, U+0009 CHARACTER
35 TABULATION (tab)、U+000A LINE FEED (LF)、U+000C FORM FEED (FF)、 U+000D
36 CARRIAGE RETURN (CR) です。
37
38 #en
39 Some of the micro-parsers described below follow the pattern of having
40 an <var title="">input</var> variable that holds the string being parsed,
41 and having a <var title="">position</var> variable pointing at the next
42 character to parse in <var title="">input</var>.
43 #ja
44 これ以降で説明するマイクロ構文解析器のいくつかは、構文解析される文字列を保持する
45 <var title="">input</var> 変数を持ち、 <var title="">input</var>
46 中で次に構文解析する文字を指す <var title="">position</var>
47 変数を持つというパターンに従っています。
48
49 #en
50 For parsers based on this pattern, a step that requires the user agent
51 to <dfn id=collect-a-sequence-of-characters>collect a sequence of characters</dfn> means that the
52 following algorithm must be run, with <var title="">characters</var> being
53 the set of characters that can be collected:
54 #ja
55 このパターンに従う構文解析器において、利用者エージェントが<dfn id=collect-a-sequence-of-characters>文字列を集める</dfn>ことを要求している段階は、
56 次の算法を、 <var title="">characters</var>
57 が収集できる文字の集合であるとして実行しなければ[[MUST:ならない]]ことを意味しています。
58
59 #en
60 Let <var title="">input</var> and <var title="">position</var> be the
61 same variables as those of the same name in the algorithm that invoked
62 these steps.
63 #ja
64 <var title="">input</var> と <var title="">position</var>
65 を、これらの段階を呼び出した算法中の同名の変数と同じものとします。
66
67 #en
68 Let <var title="">result</var> be the empty string.
69 #ja
70 <var title="">result</var> を空文字列とします。
71
72 #en
73 While <var title="">position</var> doesn't point past the end of <var
74 title="">input</var> and the character at <var title="">position</var>
75 is one of the <var title="">characters</var>, append that character to
76 the end of <var title="">result</var> and advance <var
77 title="">position</var> to the next character in <var