Hoa central
Html.php
Go to the documentation of this file.
1 <?php
2 
37 namespace Hoa\Xyl\Interpreter\Html;
38 
39 use Hoa\Core;
40 use Hoa\Xyl;
41 
50 class Html extends Xyl\Interpreter
51 {
57  protected $_rank = [
58  // XYL.
59  'document' => '\Hoa\Xyl\Interpreter\Html\Document',
60  'title' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
61  'definition' => '\Hoa\Xyl\Interpreter\Common\XylYield',
62  'value' => '\Hoa\Xyl\Interpreter\Common\Value',
63  'yield' => '\Hoa\Xyl\Interpreter\Common\XylYield',
64  'fragment' => '\Hoa\Xyl\Interpreter\Common\XylYield',
65  'snippet' => '\Hoa\Xyl\Interpreter\Common\Snippet',
66  'if' => '\Hoa\Xyl\Interpreter\Common\XylIf',
67  'elseif' => '\Hoa\Xyl\Interpreter\Common\XylElseif',
68  'else' => '\Hoa\Xyl\Interpreter\Common\XylElse',
69  '_' => '\Hoa\Xyl\Interpreter\Common\Translate',
70 
71  // Script.
72  'script' => '\Hoa\Xyl\Interpreter\Html\Script',
73  'noscript' => '\Hoa\Xyl\Interpreter\Html\Generic',
74 
75  // Sections.
76  'section' => '\Hoa\Xyl\Interpreter\Html\Generic',
77  'nav' => '\Hoa\Xyl\Interpreter\Html\Generic',
78  'article' => '\Hoa\Xyl\Interpreter\Html\Generic',
79  'aside' => '\Hoa\Xyl\Interpreter\Html\Generic',
80  'h1' => '\Hoa\Xyl\Interpreter\Html\Heading',
81  'h2' => '\Hoa\Xyl\Interpreter\Html\Heading',
82  'h3' => '\Hoa\Xyl\Interpreter\Html\Heading',
83  'h4' => '\Hoa\Xyl\Interpreter\Html\Heading',
84  'h5' => '\Hoa\Xyl\Interpreter\Html\Heading',
85  'h6' => '\Hoa\Xyl\Interpreter\Html\Heading',
86  'hgroup' => '\Hoa\Xyl\Interpreter\Html\Generic',
87  'header' => '\Hoa\Xyl\Interpreter\Html\Generic',
88  'footer' => '\Hoa\Xyl\Interpreter\Html\Generic',
89  'address' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
90 
91  'tableofcontents' => '\Hoa\Xyl\Interpreter\Html\Tableofcontents',
92 
93  // Grouping content.
94  'p' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
95  'blockquote' => '\Hoa\Xyl\Interpreter\Html\Q',
96  'hr' => '\Hoa\Xyl\Interpreter\Html\Hr',
97  'pre' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
98  'ol' => '\Hoa\Xyl\Interpreter\Html\Ol',
99  'ul' => '\Hoa\Xyl\Interpreter\Html\Generic',
100  'li' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
101  'dl' => '\Hoa\Xyl\Interpreter\Html\Generic',
102  'dt' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
103  'dd' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
104  'figure' => '\Hoa\Xyl\Interpreter\Html\Generic',
105  'figcaption' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
106  'main' => '\Hoa\Xyl\Interpreter\Html\Generic',
107  'div' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
108 
109  'error' => '\Hoa\Xyl\Interpreter\Html\Error',
110 
111  // Text-level semantics.
112  'a' => '\Hoa\Xyl\Interpreter\Html\A',
113  'em' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
114  'strong' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
115  'small' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
116  's' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
117  'cite' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
118  'q' => '\Hoa\Xyl\Interpreter\Html\Q',
119  'dfn' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
120  'abbr' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
121  'data' => '\Hoa\Xyl\Interpreter\Html\Data',
122  'time' => '\Hoa\Xyl\Interpreter\Html\Time',
123  'code' => '\Hoa\Xyl\Interpreter\Html\Code',
124  'var' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
125  'samp' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
126  'kbd' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
127  'sub' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
128  'sup' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
129  'i' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
130  'b' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
131  'u' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
132  'mark' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
133  'ruby' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
134  'rt' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
135  'rp' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
136  'bdi' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
137  'bdo' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
138  'span' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
139  'br' => '\Hoa\Xyl\Interpreter\Html\Br',
140  'wbr' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
141 
142  // Edits.
143  'ins' => '\Hoa\Xyl\Interpreter\Html\Mod',
144  'del' => '\Hoa\Xyl\Interpreter\Html\Mod',
145 
146  // Embedded content.
147  'img' => '\Hoa\Xyl\Interpreter\Html\Img',
148  'iframe' => '\Hoa\Xyl\Interpreter\Html\Iframe',
149  'video' => '\Hoa\Xyl\Interpreter\Html\Video',
150  'audio' => '\Hoa\Xyl\Interpreter\Html\Media',
151  'source' => '\Hoa\Xyl\Interpreter\Html\Source',
152  'track' => '\Hoa\Xyl\Interpreter\Html\Track',
153  'object' => '\Hoa\Xyl\Interpreter\Html\HtmlObject',
154  'param' => '\Hoa\Xyl\Interpreter\Html\Param',
155 
156  // Tabular data.
157  'table' => '\Hoa\Xyl\Interpreter\Html\Table',
158  'caption' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
159  'colgroup' => '\Hoa\Xyl\Interpreter\Html\TableCol',
160  'col' => '\Hoa\Xyl\Interpreter\Html\TableCol',
161  'tbody' => '\Hoa\Xyl\Interpreter\Html\Generic',
162  'thead' => '\Hoa\Xyl\Interpreter\Html\Generic',
163  'tfoot' => '\Hoa\Xyl\Interpreter\Html\Generic',
164  'tr' => '\Hoa\Xyl\Interpreter\Html\Generic',
165  'td' => '\Hoa\Xyl\Interpreter\Html\Td',
166  'th' => '\Hoa\Xyl\Interpreter\Html\Th',
167 
168  // Forms.
169  'form' => '\Hoa\Xyl\Interpreter\Html\Form',
170  'async' => '\Hoa\Xyl\Interpreter\Html\Async',
171  'fieldset' => '\Hoa\Xyl\Interpreter\Html\Fieldset',
172  'legend' => '\Hoa\Xyl\Interpreter\Html\GenericPhrasing',
173  'label' => '\Hoa\Xyl\Interpreter\Html\Label',
174  'input' => '\Hoa\Xyl\Interpreter\Html\Input',
175  'button' => '\Hoa\Xyl\Interpreter\Html\Button',
176  'select' => '\Hoa\Xyl\Interpreter\Html\Select',
177  'optgroup' => '\Hoa\Xyl\Interpreter\Html\Optgroup',
178  'option' => '\Hoa\Xyl\Interpreter\Html\Option',
179  'textarea' => '\Hoa\Xyl\Interpreter\Html\Textarea',
180  'keygen' => '\Hoa\Xyl\Interpreter\Html\Keygen',
181  'output' => '\Hoa\Xyl\Interpreter\Html\Output',
182  'progress' => '\Hoa\Xyl\Interpreter\Html\Progress',
183  'meter' => '\Hoa\Xyl\Interpreter\Html\Meter',
184 
185  // Widgets.
186  'tabs' => '\Hoa\Xyl\Interpreter\Html\Tabs',
187  'tablist' => '\Hoa\Xyl\Interpreter\Html\Tablist',
188  'tab' => '\Hoa\Xyl\Interpreter\Html\Tab',
189  'tabpanel' => '\Hoa\Xyl\Interpreter\Html\Tabpanel',
190 
191  // Extra.
192  'checkpoint' => '\Hoa\Xyl\Interpreter\Html\Checkpoint',
193 
194  // Phrasing model.
195  '__text' => '\Hoa\Xyl\Interpreter\Html\Text'
196  ];
197 
203  protected $_resourcePath = 'Html/Resource/';
204 }
205 
209 Core\Consistency::flexEntity('Hoa\Xyl\Interpreter\Html\Html');