1 |
<!DOCTYPE html> |
2 |
<html lang="en"> |
3 |
<head> |
4 |
<title>Whatpm — Perl Modules for Web Hypertext Application |
5 |
Technologies (beta)</title> |
6 |
<link rel="stylesheet" href="http://suika.fam.cx/www/style/html/xhtml"> |
7 |
<link rel="license" href="#license"> |
8 |
<link rel="author" href="#author"> |
9 |
</head> |
10 |
<body> |
11 |
<h1>Whatpm (<em>beta</em>)</h1> |
12 |
|
13 |
<div class="section" id="introduction"> |
14 |
<h2>Introduction</h2> |
15 |
|
16 |
<p><dfn>Whatpm</dfn> is a <em>work-in-progress</em> set of <m>P</m>erl |
17 |
<m>m</m>odules for <m>W</m>eb <m>h</m>ypertext <m>a</m>pplication |
18 |
<m>t</m>echnologies. It is part |
19 |
of the <a href="http://suika.fam.cx/www/2006/manakai/" rel=up>manakai</a> |
20 |
project.</p> |
21 |
|
22 |
<dl> |
23 |
<dt>Modules</dt> |
24 |
<dd><dl> |
25 |
<dt><a href="Whatpm/CacheManifest.html"><code>Whatpm::CacheManifest</code></a></dt> |
26 |
<dd>An |
27 |
<a href="http://www.whatwg.org/specs/web-apps/current-work/#manifests">HTML5 |
28 |
cache manifest</a> parser.</dd> |
29 |
<dt><a href="Whatpm/ContentChecker.html"><code>Whatpm::ContentChecker</code></a></dt> |
30 |
<dd>A DOM5 HTML (in-memory representation of a document) conformance |
31 |
checker with a partial support for Atom 1.0. (See also |
32 |
<a href="#demo-html-parser">demo</a>.)</dd> |
33 |
<dt><a href="Whatpm/ContentType.html"><code>Whatpm::ContentType</code></a></dt> |
34 |
<dd>An implementation of HTML5 Content Type sniffing algorithm.</dd> |
35 |
<dt><a href="Whatpm/CSS/SelectorsParser.html"><code>Whatpm::CSS::SelectorsParser</code></a></dt> |
36 |
<dd>A <a href="http://www.w3.org/TR/css3-selectors/#grouping">group of |
37 |
selectors</a> parser. (See also <a href="#demo-css-parser">demo</a>.)</dd> |
38 |
<dt><a href="Whatpm/CSS/SelectorsSerializer.html"><code>Whatpm::CSS::SelectorsSerializer</code></a></dt> |
39 |
<dd>A <a href="http://www.w3.org/TR/css3-selectors/#grouping">group of |
40 |
selectors</a> serializer. (See also <a href="#spec-ssft">specification</a> |
41 |
and <a href="#demo-css-parser">demo</a>.)</dd> |
42 |
<dt><a href="Whatpm/CSS/Tokenizer.html"><code>Whatpm::CSS::Tokenizer</code></a></dt> |
43 |
<dd>A CSS tokenizer. (See also <a href="#demo-css-parser">demo</a>.)</dd> |
44 |
<dt><a href="Whatpm/HTML.html"><code>Whatpm::HTML</code></a></dt> |
45 |
<dd>An implementation of HTML5 document parsing, fragment |
46 |
parsing, and fragment serialization algorithms. It can be used |
47 |
to convert a string into a <abbr title="Document Object Model">DOM</abbr>, or |
48 |
<i lang="">vice versa</i>. (See also |
49 |
<a href="#demo-html-parser">demo</a>.)</dd> |
50 |
<dt><a href="Whatpm/HTMLTable.html"><code>Whatpm::HTMLTable</code></a></dt> |
51 |
<dd>An implementation of the HTML5 table algorithm. It can be |
52 |
used to extract a table structure from a DOM <code>table</code> |
53 |
element node. (See also <a href="#demo-html-table">demo</a>.)</dd> |
54 |
<dt><a href="Whatpm/IMTChecker.html"><code>Whatpm::IMTChecker</code></a></dt> |
55 |
<dd>An Internet Media Type (<abbr>aka</abbr> MIME type) label |
56 |
conformance checker.</dd> |
57 |
<dt><a href="Whatpm/URIChecker.html"><code>Whatpm::URIChecker</code></a></dt> |
58 |
<dd>An IRI reference conformance checker.</dd> |
59 |
<dt><a href="Whatpm/XMLSerializer.html"><code>Whatpm::XMLSerializer</code></a></dt> |
60 |
<dd>A simple XML serializer.</dd> |
61 |
</dl> |
62 |
|
63 |
<p>Note that all of these modules are <em>work in progress</em> |
64 |
and have <a href="#todo">a number of unresolved problems</a>.</p> |
65 |
|
66 |
<p>Note also that some modules have no documentation for now.</p> |
67 |
</dd> |
68 |
<dt id=spec>Specification</dt> |
69 |
<dd><dl> |
70 |
<dt id=spec-ssft><a href="http://suika.fam.cx/www/markup/selectors/ssft/ssft"><abbr title="Selectors Serialization Format for Testing">SSFT</abbr> |
71 |
Specification</a></dt> |
72 |
<dd>The specification for the serialization format used for |
73 |
testing Selectors-related modules.</dd> |
74 |
<dt id=spec-manakai-selectors"><a href="http://suika.fam.cx/gate/2005/sw/manakai/Selectors%20Extensions">manakai's |
75 |
Selectors Extensions</a></dt> |
76 |
<dd>The specification for <code>:-manakai-<var>*</var></code> |
77 |
pseudo-classes implemented by Selectors-related modules.</dd> |
78 |
</dl></dd> |
79 |
<dt>Documentations</dt> |
80 |
<dd><dl> |
81 |
<dt><a href="http://suika.fam.cx/gate/2005/sw/Whatpm%20Error%20Types">List of error types</a></dt> |
82 |
<dd>Description of errors to be notified to callback functions by Whatpm |
83 |
modules.</dd> |
84 |
</dd> |
85 |
<dt><a href="Whatpm/CSS/selectors-object">Selectors object</a></dt> |
86 |
<dd>Description of data structure of Selectors object as used by |
87 |
<a href="Whatpm/CSS/SelectorsParser.html"><code>Whatpm::CSS::SelectorsParser</code></a> |
88 |
(as output), and |
89 |
<a href="Whatpm/CSS/SelectorsSerializer.html"><code>Whatpm::CSS::SelectorsSerializer</code></a> |
90 |
(as input)<!--, and |
91 |
<a href="http://suika.fam.cx/www/manakai-core/lib/Message/DOM/SelectorsAPI.html"><code>Message::DOM::SelectorsAPI</code></a>-->.</dd> |
92 |
</dl> |
93 |
</dd> |
94 |
</dl> |
95 |
</div> |
96 |
|
97 |
<div class="section" id="demo"> |
98 |
<h2>Demo</h2> |
99 |
|
100 |
<ul> |
101 |
<li id=demo-html-parser-nanodom><a href="http://suika.fam.cx/gate/2007/html/parser-interface">HTML5 parser |
102 |
and checker demo</a> |
103 |
(<a href="http://suika.fam.cx/gate/cvs/*checkout*/webroot/gate/2007/html/parser.cgi">source</a>, |
104 |
with <a href="Whatpm/NanoDOM.html">a lightweight non-conforming |
105 |
DOM implementation</a>)</li> |
106 |
<li id=demo-html-parser-manakai><a href="http://suika.fam.cx/gate/2007/html/parser-manakai-interface">HTML5 |
107 |
parser and checker demo, with manakai's DOM implementation</a> |
108 |
(<a href="http://suika.fam.cx/gate/cvs/*checkout*/webroot/gate/2007/html/parser-manakai.cgi">source</a>)</li> |
109 |
<li id=demo-html-table><a href="http://suika.fam.cx/gate/2007/html/table-interface">HTML5 table |
110 |
structure visualization demo</a> |
111 |
(<a href="http://suika.fam.cx/gate/cvs/*checkout*/webroot/gate/2007/html/table.cgi">source</a>)</li> |
112 |
<li id=demo-css-parser><a href="http://suika.fam.cx/gate/2007/css/parser-interface">CSS tokenizer |
113 |
demo</a> |
114 |
(<a href="http://suika.fam.cx/gate/cvs/*checkout*/webroot/gate/2007/css/parser.cgi">source</a>)</li> |
115 |
</ul> |
116 |
</div> |
117 |
|
118 |
<div class="section" id="dependency"> |
119 |
<h2>Dependency</h2> |
120 |
|
121 |
<dl> |
122 |
<dt>Perl 5.8 or later</dt> |
123 |
<dd>It is recommended to use newer stable release of Perl 5.8 (or |
124 |
later).</dd> |
125 |
<dt><code>Message::IMT::InternetMediaType</code></dt> |
126 |
<dd>Module <code>Whatpm::IMTChecker</code> depends on |
127 |
<code>Message::IMT::InternetMediaType</code>, which is part of |
128 |
<a href="http://suika.fam.cx/www/2006/manakai/">manakai</a>.</dd> |
129 |
<dt><code>Message::URI::URIReference</code></dt> |
130 |
<dd>Modules <code>Whatpm::URIChecker</code> and |
131 |
<code>Whatpm::CacheManifest</code> depend on |
132 |
<a href="http://suika.fam.cx/www/manakai-core/lib/Message/URI/URIReference.html"><code>Message::URI::URIReference</code></a>, |
133 |
which is part of |
134 |
<a href="http://suika.fam.cx/www/2006/manakai/">manakai</a>.</dd> |
135 |
<dt><a href="http://suika.fam.cx/www/manakai-charlib/readme">manakai |
136 |
charlib</a></dt> |
137 |
<dd>Module <code>Whatpm::Charset::DeocdeHandle</code> depends on |
138 |
modules in <a href="http://suika.fam.cx/www/manakai-charlib/readme">manakai |
139 |
charlib</a> for decoding of <em>Japanese character encodings</em>. |
140 |
See the documentation for |
141 |
<a href="http://suika.fam.cx/www/manakai-charlib/readme">manakai |
142 |
charlib</a> for more information.</dd> |
143 |
<dt><code>Message::DOM::DOMImplementation</code> and related modules</dt> |
144 |
<dd><em>Testing</em> for module <code>Whatpm::ContentChecker</code> |
145 |
depends on <code>Message::DOM::DOMImplementation</code> and related modules |
146 |
in <a href="http://suika.fam.cx/www/2006/manakai/">manakai</a>. |
147 |
They are not required in practice.</dd> |
148 |
<dt><a href="http://search.cpan.org/~makamaka/JSON-1.14/"><code>JSON</code></a></dt> |
149 |
<dd><em>Testing</em> for modules <code>Whatpm::HTML</code> and |
150 |
<code>Whatpm::CSS::Tokenizer</code> |
151 |
depends on <a href="http://search.cpan.org/~makamaka/JSON-1.14/"><code>JSON</code> and related modules</a>. |
152 |
They are not required in practice.</dd> |
153 |
</dl> |
154 |
</div> |
155 |
|
156 |
<div class="section" id="download"> |
157 |
<h2>Distribution</h2> |
158 |
|
159 |
<p>The development version of Whatpm may be found in the |
160 |
<a href="http://suika.fam.cx/gate/cvs/markup/html/whatpm/">CVS |
161 |
repository</a>.</p> |
162 |
|
163 |
</div> |
164 |
|
165 |
<div class="section" id="todo"> |
166 |
<h2>TO DO</h2> |
167 |
|
168 |
<ul> |
169 |
<li>Bug fix (Test results: |
170 |
<a href="t/content-type-result"><code>Whatpm::ContentType</code></a>, |
171 |
<a href="t/tokenizer-result">HTML tokenization</a>, |
172 |
<a href="t/tree-construction-result">HTML tree construction</a>, |
173 |
<a href="t/content-checker-result"><code>Whatpm::ContentChecker</code></a>).</li> |
174 |
<li>Charset detection.</li> |
175 |
<li>Validation for <code>meta</code>.</li> |
176 |
<li>Validation for media queries, IRIs (against URI schemes), language tags, |
177 |
and so on.</li> |
178 |
<li>Documentations are missing for some features.</li> |
179 |
<li>XML parser<!-- with application cache selection algorithm hook-->.</li> |
180 |
<li>In addition, each module has its own TO DO items. |
181 |
(Search for <q>## TODO</q> and <q>## ISSUE</q> in each module.)</li> |
182 |
</ul> |
183 |
</div> |
184 |
|
185 |
<div class=section id=acknowledgments> |
186 |
<h2>Acknowledgments</h2> |
187 |
|
188 |
<p>Thanks to the <a href="http://code.google.com/p/html5lib/">html5lib</a> |
189 |
team for <a href="http://html5lib.googlecode.com/svn/trunk/testdata/">HTML5 |
190 |
parser test data</a>.</p> |
191 |
</div> |
192 |
|
193 |
<div class="section" id="author"> |
194 |
<h2>Author</h2> |
195 |
|
196 |
<p><a href="http://suika.fam.cx/~wakaba/who?" rel="author">Wakaba</a>.</p> |
197 |
</div> |
198 |
|
199 |
<div class="section" id="license"> |
200 |
<h2>License</h2> |
201 |
|
202 |
<p>Copyright 2007 Wakaba |
203 |
<code class="mail"><<a href="mailto:w@suika.fam.cx" |
204 |
rel="author">w@suika.fam.cx</a>></code>.</p> |
205 |
|
206 |
<p>This library is free software; you can redistribute it and/or modify |
207 |
it under the same terms as Perl itself.</p> |
208 |
</div> |
209 |
|
210 |
</body> |
211 |
</html> |