1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294
|
HTML_OUTPUTS = {
"simple": (
b'<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><body>'
b'<div id="impress"><div class="step step-level-1" step="0" '
b'data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" '
b'data-scale="1" data-x="0" data-y="0" data-z="0"><h1 '
b'id="simple-presentation">Simple Presentation</h1><p>This '
b"presentation has two slides, each with a "
b'header and some text.</p></div><div class="step step-level-1" '
b'step="1" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" '
b'data-scale="1" data-x="1600" data-y="0" data-z="0"><h1 '
b'id="second-slide">Second slide</h1><p>There is no positioning or '
b'anything fancy.</p></div></div><script type="text/javascript" '
b'src="js/impress.js"></script><script type="text/javascript" '
b'src="js/hovercraft-minimal.js"></script></body></html>'
),
"extra_css": (
b'<!DOCTYPE html SYSTEM "about:legacy-compat"><html '
b'xmlns="http://www.w3.org/1999/xhtml"><head><title></title><link '
b'rel="stylesheet" href="css/style.css" media="all"></link><link '
b'rel="stylesheet" href="css/print.css" media="print"></link><link '
b'rel="stylesheet" href="css/impressConsole.css" '
b'media="screen,projection"></link><link rel="stylesheet" '
b'href="extra.css" media="all"></link><script type="text/javascript" '
b'src="js/dummy.js"></script></head><body '
b'class="impress-not-supported"><div id="impress"><div class="step '
b'step-level-1" step="0" data-rotate-x="0" data-rotate-y="0" '
b'data-rotate-z="0" data-scale="1" data-x="0" data-y="0" data-z="0">'
b'<h1 id="simple-presentation">Simple Presentation</h1><p>This '
b"presentation has two slides, each with a header and some text.</p>"
b'</div><div class="step step-level-1" step="1" data-rotate-x="0" '
b'data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="1600" '
b'data-y="0" data-z="0"><h1 id="second-slide">Second '
b"slide</h1><p>There is no positioning or anything "
b'fancy.</p></div></div><div id="hovercraft-help" '
b'class="show"><table><tr><th>Left, Down, Page Down, Space</th><td>'
b"Next slide</td></tr><tr><th>Right, Up, Page Up</th><td>Previous "
b"slide</td></tr><tr><th>H</th><td>Toggle this help</td>"
b'</tr></table></div><script type="text/javascript" '
b'src="js/impress.js"></script><script type="text/javascript" '
b'src="js/impressConsole.js"></script><script type="text/javascript" '
b'src="js/hovercraft.js"></script></body></html>'
),
"extra_js": (
b'<!DOCTYPE html SYSTEM "about:legacy-compat"><html '
b'xmlns="http://www.w3.org/1999/xhtml"><head><title></title><link '
b'rel="stylesheet" href="css/style.css" media="all"></link><link '
b'rel="stylesheet" href="css/print.css" media="print"></link><link '
b'rel="stylesheet" href="css/impressConsole.css" '
b'media="screen,projection"></link><script type="text/javascript" '
b'src="js/dummy.js"></script></head><body '
b'class="impress-not-supported"><div id="impress"><div class="step '
b'step-level-1" step="0" data-rotate-x="0" data-rotate-y="0" '
b'data-rotate-z="0" data-scale="1" data-x="0" data-y="0" data-z="0">'
b'<h1 id="simple-presentation">Simple Presentation</h1><p>This '
b"presentation has two slides, each with a header and some text.</p>"
b'</div><div class="step step-level-1" step="1" data-rotate-x="0" '
b'data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="1600" '
b'data-y="0" data-z="0"><h1 id="second-slide">Second '
b"slide</h1><p>There is no positioning or anything "
b'fancy.</p></div></div><div id="hovercraft-help" '
b'class="show"><table><tr><th>Left, Down, Page Down, Space</th><td>'
b"Next slide</td></tr><tr><th>Right, Up, Page Up</th><td>Previous "
b"slide</td></tr><tr><th>H</th><td>Toggle this help</td>"
b'</tr></table></div><script type="text/javascript" '
b'src="js/impress.js"></script><script type="text/javascript" '
b'src="js/impressConsole.js"></script><script type="text/javascript" '
b'src="js/hovercraft.js"></script><script type="text/javascript" '
b'src="extra.js"></script></body></html>'
),
"advanced": (
b'<!DOCTYPE html SYSTEM "about:legacy-compat"><html '
b'xmlns="http://www.w3.org/1999/xhtml"><head><title>Presentation '
b'title</title><link rel="stylesheet" href="css/style.css" '
b'media="all"></link><link rel="stylesheet" href="css/print.css" '
b'media="print"></link><link rel="stylesheet" '
b'href="css/impressConsole.css" media="screen,projection"></link>'
b'<link rel="stylesheet" href="extra.css" media="screen"></link>'
b'<script type="text/javascript" src="js/dummy.js"></script></head>'
b'<body class="impress-not-supported"><div id="impress" '
b'data-transition-duration="2000" auto-console="True"><div '
b'class="step step-level-1" step="0" data-x="1000" data-y="1600" '
b'data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" '
b'data-scale="1" data-z="0"><h1 id="advanced-presentation">Advanced '
b"Presentation</h1><p>Here we show the positioning feature, where we "
b"can explicitly set a position\non one of the steps.</p></div><div "
b'class="step step-level-1" step="1" id="name-this-step" '
b'data-x="2600" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" '
b'data-scale="1" data-y="1600" data-z="0"><h1 id="formatting">'
b"Formatting</h1><p>Let us also try some basic formatting, like <em>"
b"italic</em>, and <strong>bold</strong>.</p><ul><li>We can also</li>"
b'<li>have a list</li><li>of things.</li></ul></div><div class="step '
b'step-level-1" step="2" data-rotate-x="0" data-rotate-y="0" '
b'data-rotate-z="0" data-scale="1" data-x="4200" data-y="1600" '
b'data-z="0"><p>There should also be possible to have\npreformatted '
b'text for code.</p><pre class="highlight code python"><span '
b'class="k">def</span> <span class="nf">foo</span><span class="p">'
b'(</span><span class="n">bar</span><span class="p">):</span><span class="w">\n</span> '
b'<span class="c1"># Comment</span><span class="w">\n</span> <span class="n">a</span> '
b'<span class="o">=</span> <span class="mi">1</span> <span class="o">'
b'+</span> <span class="s2">"hubbub"</span><span class="w">\n</span> <span class="k">'
b'return</span> <span class="kc">None</span></pre></div><div '
b'class="step step-level-1" step="3" data-rotate-x="0" '
b'data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="5800" '
b'data-y="1600" data-z="0"><p>An image, with attributes:</p><img '
b'src="images/hovercraft_logo.png" width="50%" '
b'class="imageclass"></img></div><div class="step step-level-1" '
b'step="4" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" '
b'data-scale="1" data-x="7400" data-y="1600" data-z="0"><h1 '
b'id="character-sets">Character sets</h1><p>The character set is '
b"UTF-8 as of now. Like this: åäö.</p></div></div>"
b'<div id="hovercraft-help" class="show"><table><tr><th>Left, Down, '
b"Page Down, Space</th><td>Next slide</td></tr><tr><th>Right, Up, "
b"Page Up</th><td>Previous slide</td></tr><tr><th>H</th><td>Toggle "
b'this help</td></tr></table></div><script type="text/javascript" '
b'src="js/impress.js"></script><script type="text/javascript" '
b'src="js/impressConsole.js"></script><script type="text/javascript" '
b'src="js/hovercraft.js"></script><script type="text/javascript" '
b'src="extra.js"></script></body></html>'
),
"default-template": (
b'<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head>'
b"<title>Presentation title</title>"
b'<meta charset="UTF-8"></meta><meta name="generator" content='
b'"Hovercraft! 1.0 http://regebro.github.com/hovercraft"></meta>'
b'<link rel="stylesheet" href="css/hovercraft.css" media="all"></link>'
b'<link rel="stylesheet" href="css/highlight.css" media="all"></link>'
b'<link rel="stylesheet" href="extra.css" media="screen"></link>'
b"""<script type="text/x-mathjax-config">
MathJax.Hub.Config({
showProcessingMessages: false,
messageStyle: "none",
TeX : { extensions : ['color.js'] }
});
</script>"""
b'</head><body class="impress-not-supported">'
b'<div id="impress-help"></div><div id="impress" '
b'data-transition-duration="2000" auto-console="True"><div '
b'class="step step-level-1" step="0" data-x="1000" data-y="1600" '
b'data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" '
b'data-scale="1" data-z="0"><h1 id="advanced-presentation">Advanced '
b"Presentation</h1><p>Here we show the positioning feature, where we "
b"can explicitly set a position\non one of the steps.</p></div><div "
b'class="step step-level-1" step="1" id="name-this-step" '
b'data-x="2600" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" '
b'data-scale="1" data-y="1600" data-z="0"><h1 id="formatting">'
b"Formatting</h1><p>Let us also try some basic formatting, like "
b"<em>italic</em>, and <strong>bold</strong>.</p><ul><li>"
b"We can also</li><li>have a list</li><li>of things.</li></ul></div>"
b'<div class="step step-level-1" step="2" data-rotate-x="0" '
b'data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="4200" '
b'data-y="1600" data-z="0"><p>There should also be possible to '
b'have\npreformatted text for code.</p><pre class="highlight code'
b' python"><span class="k">def</span> <span class="nf">foo</span>'
b'<span class="p">(</span><span class="n">bar</span>'
b'<span class="p">):</span><span class="w">\n</span> <span class="c1">'
b'# Comment</span><span class="w">\n</span> <span class="n">a</span> <span class="o">='
b'</span> <span class="mi">1</span> <span class="o">+</span> <span '
b'class="s2">"hubbub"</span><span class="w">\n</span> <span class="k">return</span> <span '
b'class="kc">None</span></pre></div><div class="step step-level-1" '
b'step="3" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" '
b'data-scale="1" data-x="5800" data-y="1600" data-z="0"><p>An image,'
b' with attributes:</p><img src="images/hovercraft_logo.png" '
b'width="50%" class="imageclass"></img></div><div class="step '
b'step-level-1" step="4" data-rotate-x="0" data-rotate-y="0" '
b'data-rotate-z="0" data-scale="1" data-x="7400" data-y="1600" '
b'data-z="0"><h1 id="character-sets">Character sets</h1>'
b"<p>The character set is UTF-8 as of now. Like this: "
b"åäö.</p></div></div>"
b'<script type="text/javascript" src="js/impress.js"></script>'
b'<script type="text/javascript" src="js/gotoSlide.js"></script>'
b'<script type="text/javascript" src="js/hovercraft.js"></script>'
b'<script type="text/javascript" src="extra.js"></script>'
b"</body></html>"
),
"presenter-notes": (
b'<!DOCTYPE html SYSTEM "about:legacy-compat"><html '
b'xmlns="http://www.w3.org/1999/xhtml"><head><title>Document '
b'title</title><link rel="stylesheet" href="css/style.css" '
b'media="all"></link><link rel="stylesheet" href="css/print.css" '
b'media="print"></link><link rel="stylesheet" '
b'href="css/impressConsole.css" media="screen,projection"></link>'
b'<script type="text/javascript" src="js/dummy.js"></script></head>'
b'<body class="impress-not-supported"><div id="impress"><div '
b'class="step step-level-1" step="0" data-rotate-x="0" '
b'data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="0" '
b'data-y="0" data-z="0"><h1 '
b'id="hovercrafts-presenter-notes">Hovercrafts presenter notes</h1>'
b"<p>Hovercraft! supports presenter notes. It does this by taking "
b'anything in a\nwhat is called a "notes-admonition" and making that '
b'into presenter notes.</p><div class="notes"><p>Hence, this will '
b"show up as presenter notes.\nYou have still access to a lot of "
b"formatting, like</p><ul><li>Bullet lists</li><li>And <em>all</em> "
b"types of <strong>inline formatting</strong></li></ul></div></div>"
b'<div class="step step-level-1" step="1" data-rotate-x="0" '
b'data-rotate-y="0" data-rotate-z="0" data-scale="1" data-x="1600" '
b'data-y="0" data-z="0"><img '
b'src="images/hovercraft_logo.png"></img><div class="notes">'
b"<p>You don't have to start the text on the same line as\nthe note, "
b"but you can.</p><p>You can also have several paragraphs. You can "
b"not have any\nheadings of any kind though.</p><p><strong>But you "
b"can fake them through bold-text</strong></p><p>And that's useful "
b"enough for presentation notes.</p></div></div></div><div "
b'id="hovercraft-help" class="show"><table><tr><th>Left, Down, Page '
b"Down, Space</th><td>Next slide</td></tr><tr><th>Right, Up, Page "
b"Up</th><td>Previous slide</td></tr><tr><th>H</th><td>Toggle this "
b'help</td></tr></table></div><script type="text/javascript" '
b'src="js/impress.js"></script><script type="text/javascript" '
b'src="js/impressConsole.js"></script><script type="text/javascript" '
b'src="js/hovercraft.js"></script></body></html>'
),
"skip-presenter-notes": (
b'<!DOCTYPE html SYSTEM "about:legacy-compat"><html '
b'xmlns="http://www.w3.org/1999/xhtml"><head><title>Document title'
b'</title><link rel="stylesheet" href="css/style.css" media="all">'
b'</link><link rel="stylesheet" href="css/print.css" media="print">'
b'</link><link rel="stylesheet" href="css/impressConsole.css" '
b'media="screen,projection"></link><script type="text/javascript" '
b'src="js/dummy.js"></script></head><body '
b'class="impress-not-supported"><div id="impress"><div class="step '
b'step-level-1" step="0" data-rotate-x="0" data-rotate-y="0" '
b'data-rotate-z="0" data-scale="1" data-x="0" data-y="0" data-z="0">'
b'<h1 id="hovercrafts-presenter-notes">Hovercrafts presenter notes'
b"</h1><p>Hovercraft! supports presenter notes. It does this by "
b'taking anything in a\nwhat is called a "notes-admonition" and '
b'making that into presenter notes.</p></div><div class="step '
b'step-level-1" step="1" data-rotate-x="0" data-rotate-y="0" '
b'data-rotate-z="0" data-scale="1" data-x="1600" data-y="0" '
b'data-z="0"><img src="images/hovercraft_logo.png">'
b'</img></div></div><div id="hovercraft-help" class="show"><table><tr>'
b"<th>Left, Down, Page Down, Space</th><td>Next slide</td></tr><tr>"
b"<th>Right, Up, Page Up</th><td>Previous slide</td></tr><tr><th>H"
b"</th><td>Toggle this help</td></tr></table></div><script "
b'type="text/javascript" src="js/impress.js"></script><script '
b'type="text/javascript" src="js/impressConsole.js"></script><script '
b'type="text/javascript" src="js/hovercraft.js"></script></body>'
b"</html>"
),
"table": (
b'<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml">'
b'<body><div id="impress"><div class="step step-level-1" step="0" '
b'data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" '
b'data-scale="1" data-x="0" data-y="0" data-z="0"><table '
b'cellpadding="0" cellspacing="0" class="my-table-class">Truth table '
b'for "not"<thead><tr><th><p>Name</p></th><th><p>Money Owed</p></th>'
b"</tr></thead><tbody><tr><td><p>Adam Alpha</p></td><td><p>100</p>"
b'</td></tr></tbody></table><table cellpadding="0" cellspacing="0" '
b'id="my-table"><thead><tr><th><p>Number</p></th><th><p>Two</p></th>'
b"</tr></thead><tbody><tr><td><p>Adam Alpha</p></td><td><p>100</p>"
b"</td></tr></tbody></table></div></div><script "
b'type="text/javascript" src="js/impress.js"></script><script '
b'type="text/javascript" src="js/hovercraft-minimal.js"></script>'
b"</body></html>"
),
"slide_with_class": (
b'<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><body>'
b'<div id="impress"><div class="step step-level-1 something-else" '
b'step="0" data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" '
b'data-scale="1" data-x="0" data-y="0" data-z="0"><p>This is some '
b'text</p></div></div><script type="text/javascript" '
b'src="js/impress.js"></script><script type="text/javascript" '
b'src="js/hovercraft-minimal.js"></script></body></html>'
),
"container_directive": (
b'<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><body>'
b'<div id="impress"><div class="step step-level-1" step="0" '
b'data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" '
b'data-scale="1" data-x="0" data-y="0" data-z="0"><div '
b'class="my-class"><p>This is some text in the container</p></div>'
b'<div id="my-thing"><p>This should have an id</p></div></div></div>'
b'<script type="text/javascript" src="js/impress.js"></script><script '
b'type="text/javascript" src="js/hovercraft-minimal.js"></script>'
b"</body></html>"
),
"class_directive": (
b'<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><body>'
b'<div id="impress"><div class="step step-level-1" step="0" '
b'data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" '
b'data-scale="1" data-x="0" data-y="0" data-z="0"><p class="my-class">'
b"This is some text in the class</p></div></div><script "
b'type="text/javascript" src="js/impress.js"></script><script '
b'type="text/javascript" src="js/hovercraft-minimal.js"></script>'
b"</body></html>"
),
"comment": (
b'<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><body>'
b'<div id="impress"><div class="step step-level-1" step="0" '
b'data-rotate-x="0" data-rotate-y="0" data-rotate-z="0" '
b'data-scale="1" data-x="0" data-y="0" data-z="0"><p>This text '
b'should appear.</p></div></div><script type="text/javascript" '
b'src="js/impress.js"></script><script type="text/javascript" '
b'src="js/hovercraft-minimal.js"></script></body></html>'
),
}
|