diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/.template.html | 123 | ||||
-rw-r--r-- | test/compile.lua | 102 | ||||
-rw-r--r-- | test/css/common.css | 63 | ||||
-rw-r--r-- | test/ipsumlorem.html | 71 | ||||
-rw-r--r-- | test/js/hylo.js | 21 | ||||
-rw-r--r-- | test/js/lozenge.js | 29 | ||||
-rw-r--r-- | test/loremipsum.html | 71 | ||||
-rw-r--r-- | test/lua/river.lua | 226 | ||||
-rw-r--r-- | test/river/ipsumlorem.river | 343 | ||||
-rw-r--r-- | test/river/loremipsum.river | 343 | ||||
-rw-r--r-- | test/src/ipsumlorem.txt | 74 | ||||
-rw-r--r-- | test/src/loremipsum.txt | 74 |
12 files changed, 0 insertions, 1540 deletions
diff --git a/test/.template.html b/test/.template.html deleted file mode 100644 index 47c7dd9..0000000 --- a/test/.template.html +++ /dev/null | |||
@@ -1,123 +0,0 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <!-- AUTOCENTO OF THE BREAKFAST TABLE --> | ||
3 | <!-- vim: fdm=indent | ||
4 | --> | ||
5 | <html lang="en"> | ||
6 | <head> | ||
7 | <meta charset="utf-8"> | ||
8 | <meta name="generator" content="pandoc"> | ||
9 | <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"> | ||
10 | <meta name="author" content="Case Duckworth"> | ||
11 | |||
12 | <title>$title$ | Autocento of the breakfast table</title> | ||
13 | <link rel="icon" type="image/png" href="img/favico.png" /> | ||
14 | |||
15 | <link rel="stylesheet" type="text/css" href="./css/common.css"> | ||
16 | <script src="./js/lozenge.js" type="text/javascript"> </script> | ||
17 | <script src="./js/hylo.js" type="text/javascript"> </script> | ||
18 | |||
19 | $if(genre)$ | ||
20 | <link rel="stylesheet" type="text/css" href="./css/$genre$.css"> | ||
21 | <script src="./js/$genre$.js" type="text/javascript"> </script> | ||
22 | $endif$ | ||
23 | $if(project.css)$ | ||
24 | <link rel="stylesheet" type="text/css" href="./css/$project.css$.css"> | ||
25 | <script src="./js/$project.css$.js" type="text/javascript"> </script> | ||
26 | $endif$ | ||
27 | <!--[if lt IE 9]> | ||
28 | <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"> </script> | ||
29 | <![endif]--> | ||
30 | <!-- <script src="js/external.js"> </script> --> | ||
31 | $for(header-includes)$ | ||
32 | $headerincludes$ | ||
33 | $endfor$ | ||
34 | </head> | ||
35 | <body> | ||
36 | $for(include-before)$ $include-before$ $endfor$ | ||
37 | |||
38 | <article id="container"> | ||
39 | <header> | ||
40 | <!-- title --> | ||
41 | $if(title)$<h1 class="title">$title$</h1>$endif$ | ||
42 | $if(subtitle)$<h1 class="subtitle">$subtitle$</h1>$endif$ | ||
43 | |||
44 | <div id="dedepi"> | ||
45 | $if(dedication)$ | ||
46 | <!-- dedication --> | ||
47 | <div class="dedication">$dedication$</div> | ||
48 | $endif$ | ||
49 | |||
50 | $if(epigraph.content)$ | ||
51 | <!-- epigraph --> | ||
52 | <div class="epigraph"> | ||
53 | $if(epigraph.link)$ | ||
54 | <a href="$epigraph.link$">$epigraph.content$</a> | ||
55 | $else$ | ||
56 | $epigraph.content$ | ||
57 | $endif$ | ||
58 | |||
59 | $if(epigraph.attrib)$ | ||
60 | <div class="attrib">$epigraph.attrib$</div> | ||
61 | $endif$ | ||
62 | </div> | ||
63 | $endif$ | ||
64 | </div> | ||
65 | </header> | ||
66 | |||
67 | $if(ekphrastic.image)$ | ||
68 | <div class="ekphrastic"> | ||
69 | $if(ekphrastic.link)$ | ||
70 | <a href="$ekphrastic.link$"> | ||
71 | <img src="img/$ekphrastic.image$" | ||
72 | $if(ekphrastic.title)$ | ||
73 | title="$ekphrastic.title$" | ||
74 | $endif$ | ||
75 | $if(ekphrastic.alt)$ | ||
76 | alt="$ekphrastic.alt$" | ||
77 | $else$ | ||
78 | alt="$ekphrastic.title$" | ||
79 | $endif$ | ||
80 | $if(ekphrastic.class)$ | ||
81 | class="$ekphrastic.class$" | ||
82 | $endif$ | ||
83 | /> | ||
84 | </a> | ||
85 | $else$ | ||
86 | <img src="img/$ekphrastic.image$" | ||
87 | $if(ekphrastic.title)$ | ||
88 | title="$ekphrastic.title$" | ||
89 | $endif$ | ||
90 | $if(ekphrastic.alt)$ | ||
91 | alt="$ekphrastic.alt$" | ||
92 | $else$ | ||
93 | alt="$ekphrastic.title$" | ||
94 | $endif$ | ||
95 | $if(ekphrastic.class)$ | ||
96 | class="$ekphrastic.class$" | ||
97 | $endif$ | ||
98 | /> | ||
99 | $endif$ | ||
100 | </div> | ||
101 | $endif$ | ||
102 | |||
103 | <section class="content $genre$">$body$</section> | ||
104 | </article> | ||
105 | <nav> | ||
106 | $for(project.prev)$ | ||
107 | <a class="prevlink" href="$project.prev.link$.html" | ||
108 | title="Previous article$if(project.title)$ in $project.title$$endif$"> | ||
109 | $project.prev.title$ | ||
110 | </a> | ||
111 | $endfor$ | ||
112 | <a href="#" id="lozenge" title="Random page"> ◊ </a> | ||
113 | $for(project.next)$ | ||
114 | <a class="nextlink" href="$project.next.link$.html" | ||
115 | title="Next article$if(project.title)$ in $project.title$$endif$"> | ||
116 | $project.next.title$ | ||
117 | </a> | ||
118 | $endfor$ | ||
119 | </nav> | ||
120 | |||
121 | $for(include-after)$ $include-after$ $endfor$ | ||
122 | </body> | ||
123 | </html> | ||
diff --git a/test/compile.lua b/test/compile.lua deleted file mode 100644 index 765f348..0000000 --- a/test/compile.lua +++ /dev/null | |||
@@ -1,102 +0,0 @@ | |||
1 | #!/usr/bin/env lua | ||
2 | -- A compiler for Autocento of the breakfast table | ||
3 | -- written in Lua (because we can, and because | ||
4 | -- it's good practice for Functional Programming) | ||
5 | -- ((OR WHATEVER YOU CALL IT, GAHD)) | ||
6 | -- vim: fdm=indent | ||
7 | |||
8 | dir = "/d/Copy/writing/autocento/" | ||
9 | |||
10 | function filterout (list, filter) | ||
11 | local output = {} | ||
12 | for _,v in ipairs(list) do | ||
13 | if not string.match(v, filter) then | ||
14 | -- table.insert Y U NO WORK? | ||
15 | output[#output + 1] = v | ||
16 | end | ||
17 | end | ||
18 | return output | ||
19 | end | ||
20 | function intable (table, item) | ||
21 | for k,v in pairs(table) do | ||
22 | if v == item then return k end | ||
23 | end | ||
24 | return false | ||
25 | end | ||
26 | function tabsub (table, pattern, replace) | ||
27 | local output = {} | ||
28 | for k,v in pairs(table) do | ||
29 | output[k] = v:gsub(pattern, replace) | ||
30 | end | ||
31 | return output | ||
32 | end | ||
33 | |||
34 | function compile (files, output_fmt, extension, template, args) | ||
35 | local errors = {} | ||
36 | if template then table.insert(args, 'template="'..template..'"') end | ||
37 | for _, file in pairs(files) do | ||
38 | local pandoc_run = { | ||
39 | 'pandoc', | ||
40 | '-f markdown', | ||
41 | '-t '..output_fmt, | ||
42 | table.concat(tabsub(args, "^", "--"), ' '), | ||
43 | '-o '..file:gsub('^.*/(.-)%.%a+', '%1.'..extension), | ||
44 | file | ||
45 | } | ||
46 | print("Compiling "..file.." to ".. extension) | ||
47 | -- print(table.concat(pandoc_run, ' ')) | ||
48 | os.execute(table.concat(pandoc_run, ' ')) | ||
49 | end | ||
50 | end | ||
51 | |||
52 | function move (files, new_dir) | ||
53 | local exe = {} | ||
54 | for _,file in pairs(files) do | ||
55 | print("Moving "..file.." to "..new_dir.."/ ..") | ||
56 | table.insert(exe, 'mv '..file..' '..new_dir..'/') | ||
57 | end | ||
58 | os.execute(table.concat(exe, ' && ')) | ||
59 | -- print(table.concat(exe, '; ')) | ||
60 | end | ||
61 | |||
62 | function lozenge (files) | ||
63 | local output = 'var files=[' | ||
64 | for _,file in pairs(files) do | ||
65 | output = output .. file:gsub('.*', '"%0",') | ||
66 | end | ||
67 | output = output:gsub(',$', ']') | ||
68 | return output | ||
69 | end | ||
70 | |||
71 | local files = filterout(arg, '^%-') | ||
72 | if not files or #files == 0 then | ||
73 | print("> No file list. WUT?") | ||
74 | os.exit(1) | ||
75 | end | ||
76 | local args = filterout(arg, '^[^%-]') | ||
77 | if not args or #args == 0 or args == {'-all'} then | ||
78 | args = { | ||
79 | '-html', | ||
80 | '-river', | ||
81 | '-lozenge', | ||
82 | } | ||
83 | end | ||
84 | |||
85 | if intable(args, '-html') then | ||
86 | print("Compiling HTML ... ") | ||
87 | compile(files, "html5", "html", ".template.html", { | ||
88 | "smart", | ||
89 | "mathml", | ||
90 | "section-divs", | ||
91 | }) | ||
92 | -- move(tabsub(files,'^.*/(.*)%.txt','%1.html'), ".") | ||
93 | end | ||
94 | if intable(args, '-river') then | ||
95 | print("Compiling RIVER ... ") | ||
96 | compile(files, "lua/river.lua", "river", nil, {}) | ||
97 | move(tabsub(files,'^.*/(.*)%.txt','%1.river'), "river") | ||
98 | end | ||
99 | if intable(args, '-lozenge') then | ||
100 | print("Updating lozenge.js with file list ... ") | ||
101 | -- TODO | ||
102 | end | ||
diff --git a/test/css/common.css b/test/css/common.css deleted file mode 100644 index 3f704b1..0000000 --- a/test/css/common.css +++ /dev/null | |||
@@ -1,63 +0,0 @@ | |||
1 | /* Colors {{{ */ | ||
2 | #container { | ||
3 | border: 1px dashed black; | ||
4 | } | ||
5 | header { | ||
6 | background-color: black; | ||
7 | border-bottom: 5px dotted maroon; | ||
8 | } | ||
9 | .title { | ||
10 | background-color: blue; | ||
11 | color: white; | ||
12 | border: 1px solid black; | ||
13 | } | ||
14 | .subtitle { | ||
15 | background-color: red; | ||
16 | color: white; | ||
17 | border: 1px solid black; | ||
18 | } | ||
19 | .dedication { | ||
20 | background-color: yellow; | ||
21 | color: black; | ||
22 | border: 1px solid black; | ||
23 | } | ||
24 | .epigraph { | ||
25 | background-color: yellow; | ||
26 | color: blue; | ||
27 | } | ||
28 | .content { | ||
29 | background-color: purple; | ||
30 | color: white; | ||
31 | border: 1px solid black; | ||
32 | } | ||
33 | nav { | ||
34 | border: 1px solid black; | ||
35 | } | ||
36 | /* }}} */ | ||
37 | header { | ||
38 | position: relative; | ||
39 | max-width: 39em; | ||
40 | margin: auto; | ||
41 | } | ||
42 | .dedication { | ||
43 | text-align: left; | ||
44 | } | ||
45 | .epigraph { | ||
46 | border: 1px solid black; | ||
47 | text-align: right; | ||
48 | } | ||
49 | #dedepi { text-align: right; } | ||
50 | .dedication,.epigraph { | ||
51 | vertical-align: bottom; | ||
52 | display: inline-block; | ||
53 | margin: 0 1%; | ||
54 | width: 47%; | ||
55 | } | ||
56 | .epigraph p { margin: 0; padding: 0; } | ||
57 | header::after { | ||
58 | content: " "; | ||
59 | display: inline-block; | ||
60 | clear: both; | ||
61 | height: 0px; | ||
62 | width: 100%; | ||
63 | } | ||
diff --git a/test/ipsumlorem.html b/test/ipsumlorem.html deleted file mode 100644 index cd1648b..0000000 --- a/test/ipsumlorem.html +++ /dev/null | |||
@@ -1,71 +0,0 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <!-- AUTOCENTO OF THE BREAKFAST TABLE --> | ||
3 | <!-- vim: fdm=indent | ||
4 | --> | ||
5 | <html lang="en"> | ||
6 | <head> | ||
7 | <meta charset="utf-8"> | ||
8 | <meta name="generator" content="pandoc"> | ||
9 | <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"> | ||
10 | <meta name="author" content="Case Duckworth"> | ||
11 | |||
12 | <title>Ipsum lorem | Autocento of the breakfast table</title> | ||
13 | <link rel="icon" type="image/png" href="img/favico.png" /> | ||
14 | |||
15 | <link rel="stylesheet" type="text/css" href="./css/common.css"> | ||
16 | <script src="./js/lozenge.js" type="text/javascript"> </script> | ||
17 | <script src="./js/hylo.js" type="text/javascript"> </script> | ||
18 | |||
19 | <link rel="stylesheet" type="text/css" href="./css/verse.css"> | ||
20 | <script src="./js/verse.js" type="text/javascript"> </script> | ||
21 | <link rel="stylesheet" type="text/css" href="./css/autocento.css"> | ||
22 | <script src="./js/autocento.js" type="text/javascript"> </script> | ||
23 | <!--[if lt IE 9]> | ||
24 | <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"> </script> | ||
25 | <![endif]--> | ||
26 | <!-- <script src="js/external.js"> </script> --> | ||
27 | </head> | ||
28 | <body> | ||
29 | |||
30 | |||
31 | <article id="container"> | ||
32 | <header> | ||
33 | <!-- title --> | ||
34 | <h1 class="title">Ipsum lorem</h1> | ||
35 | <h1 class="subtitle">a test suite for the gods</h1> | ||
36 | |||
37 | <div id="dedepi"> | ||
38 | <!-- dedication --> | ||
39 | <div class="dedication">you, dear Reader</div> | ||
40 | |||
41 | <!-- epigraph --> | ||
42 | <div class="epigraph"> | ||
43 | <a href="http://lipsum.com/"><p>Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit.</p></a> | ||
44 | |||
45 | <div class="attrib">Cicero</div> | ||
46 | </div> | ||
47 | </div> | ||
48 | </header> | ||
49 | |||
50 | |||
51 | <section class="content verse"><p><a href=".loremipsum.html">Lorem ipsum dolor sit amet</a>, consectetur adipiscing elit.<br />Vivamus at vulputate ligula, ac ullamcorper magna.<br />In in porta metus.<br />Curabitur iaculis faucibus posuere.<br />Nunc elementum libero vitae sapien auctor mollis.<br />Aenean eget tellus ac urna tincidunt vestibulum.<br />Vivamus eget orci nec purus mollis efficitur.<br />Pellentesque eu pharetra justo.</p> | ||
52 | <p>Duis tincidunt convallis vulputate.<br />Etiam non magna mi.<br />Proin porttitor vel quam ac dignissim.<br />Pellentesque tempus orci orci, quis tincidunt enim tincidunt in.<br />Vestibulum posuere leo ut lacus imperdiet, nec rutrum turpis pellentesque.<br />Pellentesque dictum finibus posuere.<br />Mauris vehicula lacus lorem, a euismod purus cursus eu.<br />Vivamus magna mauris, vehicula et libero at, commodo consectetur purus.</p> | ||
53 | <p>Sed laoreet posuere consectetur.<br />Proin sed rutrum ligula, id scelerisque eros.<br />Duis rhoncus magna eu magna scelerisque, non volutpat libero volutpat.<br />Mauris gravida et tellus non ornare.<br />Integer nibh nulla, commodo aliquam imperdiet a, condimentum pulvinar magna.<br />Praesent commodo eros eu nisi sagittis pulvinar.<br />Cras id lectus vel eros porta faucibus eu eu quam.<br />Morbi et nisi id nunc elementum facilisis.<br />Maecenas ultrices eu purus nec auctor.<br />Cras quis sagittis nunc, in accumsan lacus.</p> | ||
54 | <p>Sed sem arcu, eleifend imperdiet ligula consectetur, tempus efficitur massa.<br />Donec commodo convallis cursus.<br />Donec id magna at arcu malesuada vulputate.<br />Nam cursus leo eros, vel volutpat diam tincidunt eu.<br />Morbi eleifend accumsan mollis.<br />Sed dui lacus, tincidunt eu elit eu, venenatis ultrices erat.<br />Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.<br />Fusce sit amet imperdiet sapien, ut finibus ex.<br />Quisque tincidunt, est vitae iaculis bibendum, augue odio pharetra libero, nec ornare erat risus ac quam.<br />Nam varius mauris sit amet purus cursus, eget molestie ex tempus.</p> | ||
55 | <p>Proin augue ligula, interdum quis fermentum eu, suscipit eget tortor.<br />Suspendisse nec egestas odio, vitae vestibulum turpis.<br />Proin ipsum ligula, maximus vitae mauris ut, imperdiet ultricies eros.<br />Integer mi orci, vestibulum ut porttitor quis, dictum eu lacus.<br />Ut placerat lectus metus, vel molestie felis luctus ac.<br />Quisque facilisis lectus id magna hendrerit, auctor ornare nisl rutrum.<br />Pellentesque vehicula purus vitae dui auctor, in accumsan risus efficitur.</p></section> | ||
56 | </article> | ||
57 | <nav> | ||
58 | <a class="prevlink" href=".loremipsum.html" | ||
59 | title="Previous article in Autocento of the breakfast table"> | ||
60 | Lorem ipsum | ||
61 | </a> | ||
62 | <a href="#" id="lozenge" title="Random page"> ◊ </a> | ||
63 | <a class="nextlink" href=".loremipsum.html" | ||
64 | title="Next article in Autocento of the breakfast table"> | ||
65 | Lorem ipsum | ||
66 | </a> | ||
67 | </nav> | ||
68 | |||
69 | |||
70 | </body> | ||
71 | </html> | ||
diff --git a/test/js/hylo.js b/test/js/hylo.js deleted file mode 100644 index 5a39427..0000000 --- a/test/js/hylo.js +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | /* | ||
2 | * Hyphenator_Loader 1.1.0 - client side hyphenation for webbrowsers | ||
3 | * Copyright (C) 2014 Mathias Nater, Zürich (mathias at mnn dot ch) | ||
4 | * Project and Source hosted on http://code.google.com/p/hyphenator/ | ||
5 | * | ||
6 | * This JavaScript code is free software: you can redistribute | ||
7 | * it and/or modify it under the terms of the GNU Lesser | ||
8 | * General Public License (GNU LGPL) as published by the Free Software | ||
9 | * Foundation, either version 3 of the License, or (at your option) | ||
10 | * any later version. The code is distributed WITHOUT ANY WARRANTY; | ||
11 | * without even the implied warranty of MERCHANTABILITY or FITNESS | ||
12 | * FOR A PARTICULAR PURPOSE. See the GNU GPL for more details. | ||
13 | * | ||
14 | * As additional permission under GNU GPL version 3 section 7, you | ||
15 | * may distribute non-source (e.g., minimized or compacted) forms of | ||
16 | * that code without the copy of the GNU GPL normally required by | ||
17 | * section 4, provided you include this license notice and a URL | ||
18 | * through which recipients can access the Corresponding Source. | ||
19 | */ | ||
20 | |||
21 | var Hyphenator_Loader=(function(window){'use strict';var languages,config,path,createElem=function(tagname){var r;if(window.document.createElementNS){r=window.document.createElementNS('http://www.w3.org/1999/xhtml',tagname);}else if(window.document.createElement){r=window.document.createElement(tagname);}return r;},checkLangSupport=function(lang,longword){var shadow,computedHeight,bdy=window.document.getElementsByTagName('body')[0];shadow=createElem('div');shadow.style.width='5em';shadow.style.MozHyphens='auto';shadow.style['-webkit-hyphens']='auto';shadow.style['-ms-hyphens']='auto';shadow.style.hyphens='auto';shadow.style.fontSize='12px';shadow.style.lineHeight='12px';shadow.style.visibility='hidden';shadow.lang=lang;shadow.style['-webkit-locale']="'"+lang+"'";shadow.innerHTML=longword;bdy.appendChild(shadow);computedHeight=shadow.offsetHeight;bdy.removeChild(shadow);return(computedHeight>12)?true:false;},loadNrunHyphenator=function(config){var head,script,interval;head=window.document.getElementsByTagName('head').item(0);script=createElem('script');script.src=path;script.type='text/javascript';head.appendChild(script);interval=window.setInterval(function(){if(window.Hyphenator!==undefined){window.clearInterval(interval);Hyphenator.config(config);Hyphenator.run();}},10);},runner=function(){var loadHyphenator=false,r,results={},lang;for(lang in languages){if(languages.hasOwnProperty(lang)){r=checkLangSupport(lang,languages[lang]);results[lang]=r;loadHyphenator=loadHyphenator||!r;}}if(loadHyphenator){loadNrunHyphenator(config);}},runOnContentLoaded=function(window,f){var toplevel,hyphRunForThis={},doFrames=false,contextWindow,documentLoaded,add=window.document.addEventListener?'addEventListener':'attachEvent',rem=window.document.addEventListener?'removeEventListener':'detachEvent',pre=window.document.addEventListener?'':'on',init=function(context){contextWindow=context||window;if(!hyphRunForThis[contextWindow.location.href]&&(!documentLoaded||!!contextWindow.frameElement)){documentLoaded=true;f();hyphRunForThis[contextWindow.location.href]=true;}},doScrollCheck=function(){try{window.document.documentElement.doScroll("left");}catch(error){window.setTimeout(doScrollCheck,1);return;}init(window);},doOnLoad=function(){var i,haveAccess,fl=window.frames.length;if(doFrames&&fl>0){for(i=0;i<fl;i+=1){haveAccess=undefined;try{haveAccess=window.frames[i].document.toString();}catch(e){haveAccess=undefined;}if(!!haveAccess){if(window.frames[i].location.href!=='about:blank'){init(window.frames[i]);}}}contextWindow=window;f();hyphRunForThis[window.location.href]=true;}else{init(window);}},DOMContentLoaded=function(e){if(e.type==='readystatechange'&&window.document.readyState!=='complete'){return;}window.document[rem](pre+e.type,DOMContentLoaded,false);if(!doFrames&&window.frames.length===0){init(window);}};if(window.document.readyState==="complete"||window.document.readyState==="interactive"){window.setTimeout(doOnLoad,1);}else{window.document[add](pre+"DOMContentLoaded",DOMContentLoaded,false);window.document[add](pre+'readystatechange',DOMContentLoaded,false);window[add](pre+'load',doOnLoad,false);toplevel=false;try{toplevel=!window.frameElement;}catch(ignore){}if(window.document.documentElement.doScroll&&toplevel){doScrollCheck();}}};return{init:function(langs,p,configs){languages=langs;path=p;config=configs||{};runOnContentLoaded(window,runner);}};}(window));Hyphenator_Loader.init({"en":"hyphenationalgorithm",},"./Hyphenator.js",{classname:'prose',defaultlanguage:'en',displaytogglebox:true,togglebox:function(){var bdy,myTextNode,text=(Hyphenator.doHyphenation?'-':'~'),myBox=contextWindow.document.getElementById('HyphenatorToggleBox');if(!!myBox){myBox.firstChild.data=text;}else{bdy=contextWindow.document.getElementsByTagName('body')[0];myBox=createElem('div',contextWindow);myBox.setAttribute('id','HyphenatorToggleBox');myBox.setAttribute('class',dontHyphenateClass);myTextNode=contextWindow.document.createTextNode(text);myBox.appendChild(myTextNode);myBox.onclick=Hyphenator.toggleHyphenation;myBox.style.position='absolute';myBox.style.top='0px';myBox.style.right='0px';myBox.style.margin='0';myBox.style.backgroundColor=rgba(0,0,0,255);myBox.style.color=rgba(255,255,255,100);myBox.style.font='6pt Arial';myBox.style.letterSpacing='0.2em';myBox.style.padding='3px';myBox.style.cursor='pointer';myBox.style.WebkitBorderBottomLeftRadius='4px';myBox.style.MozBorderRadiusBottomleft='4px';myBox.style.borderBottomLeftRadius='4px';bdy.appendChild(myBox);}},useCSS3hyphenation:true}); | ||
diff --git a/test/js/lozenge.js b/test/js/lozenge.js deleted file mode 100644 index d600d24..0000000 --- a/test/js/lozenge.js +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | /* Lozenge.js for Autocento of the breakfast table | ||
2 | * Cause a#lozenge to link to random file in array | ||
3 | * vim: fdm=marker | ||
4 | */ | ||
5 | |||
6 | function _lozenge() { | ||
7 | var lozenge = document.getElementById('lozenge'); | ||
8 | // array with all files {{{ | ||
9 | var files=["100-lines.html", "about-the-author.html", "amber-alert.html", "and.html", "angeltoabraham.html", "apollo11.html", "arspoetica.html", "art.html", "axe.html", "big-dipper.html", "boar.html", "boy_bus.html", "building.html", "call-me-aural-pleasure.html", "cereal.html", "cold-wind.html", "creation-myth.html", "deadman.html", "death-zone.html", "deathstrumpet.html", "dream.html", "early.html", "elegyforanalternateself.html", "epigraph.html", "ex-machina.html", "exasperated.html", "father.html", "feedingtheraven.html", "finding-the-lion.html", "fire.html", "found-typewriter-poem.html", "hands.html", "hard-game.html", "hardware.html", "howithappened.html", "howtoread.html", "hymnal.html", "i-am.html", "i-think-its-you.html", "i-wanted-to-tell-you-something.html", "in-bed.html", "index.html", "initial-conditions.html", "january.html", "joke.html", "lappel-du-vide.html", "largest-asteroid.html", "last-bastion.html", "last-passenger.html", "leaf.html", "leg.html", "likingthings.html", "listen.html", "love-as-god.html", "lovesong.html", "man.html", "moon-drowning.html", "moongone.html", "mountain.html", "movingsideways.html", "music-433.html", "no-nothing.html", "notes.html", "nothing-is-ever-over.html", "onformalpoetry.html", "options.html", "ouroboros_memory.html", "paul.html", "philosophy.html", "phone.html", "planks.html", "plant.html", "poetry-time.html", "prelude.html", "problems.html", "proverbs.html", "punch.html", "purpose-dogs.html", "question.html", "real-writer.html", "reports.html", "riptide_memory.html", "ronaldmcdonald.html", "roughgloves.html", "sapling.html", "seasonal-affective-disorder.html", "sense-of-it.html", "serengeti.html", "shed.html", "shipwright.html", "sixteenth-chapel.html", "snow.html", "something-simple.html", "spittle.html", "squirrel.html", "stagnant.html", "statements-frag.html", "stayed-on-the-bus.html", "stump.html", "swansong-alt.html", "swansong.html", "swear.html", "table_contents.html", "tapestry.html", "telemarketer.html", "the-night-we-met.html", "the-sea_the-beach.html", "theoceanoverflowswithcamels.html", "time-looks-up-to-the-sky.html", "todaniel.html", "toilet.html", "toothpaste.html", "treatise.html", "underwear.html", "wallpaper.html", "weplayedthosegamestoo.html", "when-im-sorry-i.html", "window.html", "words-meaning.html", "worse-looking-over.html", "writing.html", "x-ray.html", "yellow.html"] | ||
10 | // }}} | ||
11 | |||
12 | var index = Math.floor(Math.random() * files.length); | ||
13 | |||
14 | var url = window.location.pathname; | ||
15 | var current = url.substring(url.lastIndexOf('/')+1); | ||
16 | |||
17 | if (current != files[index]) { | ||
18 | lozenge.setAttribute("href", files[index]); | ||
19 | lozenge.setAttribute("title", "Random article"); | ||
20 | } else { | ||
21 | _lozenge() | ||
22 | } | ||
23 | } | ||
24 | |||
25 | window.onload = function () { | ||
26 | _lozenge() | ||
27 | }; | ||
28 | |||
29 | |||
diff --git a/test/loremipsum.html b/test/loremipsum.html deleted file mode 100644 index 7947176..0000000 --- a/test/loremipsum.html +++ /dev/null | |||
@@ -1,71 +0,0 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <!-- AUTOCENTO OF THE BREAKFAST TABLE --> | ||
3 | <!-- vim: fdm=indent | ||
4 | --> | ||
5 | <html lang="en"> | ||
6 | <head> | ||
7 | <meta charset="utf-8"> | ||
8 | <meta name="generator" content="pandoc"> | ||
9 | <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"> | ||
10 | <meta name="author" content="Case Duckworth"> | ||
11 | |||
12 | <title>Lorem ipsum | Autocento of the breakfast table</title> | ||
13 | <link rel="icon" type="image/png" href="img/favico.png" /> | ||
14 | |||
15 | <link rel="stylesheet" type="text/css" href="./css/common.css"> | ||
16 | <script src="./js/lozenge.js" type="text/javascript"> </script> | ||
17 | <script src="./js/hylo.js" type="text/javascript"> </script> | ||
18 | |||
19 | <link rel="stylesheet" type="text/css" href="./css/prose.css"> | ||
20 | <script src="./js/prose.js" type="text/javascript"> </script> | ||
21 | <link rel="stylesheet" type="text/css" href="./css/autocento.css"> | ||
22 | <script src="./js/autocento.js" type="text/javascript"> </script> | ||
23 | <!--[if lt IE 9]> | ||
24 | <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"> </script> | ||
25 | <![endif]--> | ||
26 | <!-- <script src="js/external.js"> </script> --> | ||
27 | </head> | ||
28 | <body> | ||
29 | |||
30 | |||
31 | <article id="container"> | ||
32 | <header> | ||
33 | <!-- title --> | ||
34 | <h1 class="title">Lorem ipsum</h1> | ||
35 | <h1 class="subtitle">a test suite for the gods</h1> | ||
36 | |||
37 | <div id="dedepi"> | ||
38 | <!-- dedication --> | ||
39 | <div class="dedication">you, dear Reader</div> | ||
40 | |||
41 | <!-- epigraph --> | ||
42 | <div class="epigraph"> | ||
43 | <a href="http://lipsum.com/"><p>Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit.</p></a> | ||
44 | |||
45 | <div class="attrib">Cicero</div> | ||
46 | </div> | ||
47 | </div> | ||
48 | </header> | ||
49 | |||
50 | |||
51 | <section class="content prose"><p><a href=".ipsumlorem.html">Lorem ipsum dolor sit amet</a>, consectetur adipiscing elit. Vivamus at vulputate ligula, ac ullamcorper magna. In in porta metus. Curabitur iaculis faucibus posuere. Nunc elementum libero vitae sapien auctor mollis. Aenean eget tellus ac urna tincidunt vestibulum. Vivamus eget orci nec purus mollis efficitur. Pellentesque eu pharetra justo.</p> | ||
52 | <p>Duis tincidunt convallis vulputate. Etiam non magna mi. Proin porttitor vel quam ac dignissim. Pellentesque tempus orci orci, quis tincidunt enim tincidunt in. Vestibulum posuere leo ut lacus imperdiet, nec rutrum turpis pellentesque. Pellentesque dictum finibus posuere. Mauris vehicula lacus lorem, a euismod purus cursus eu. Vivamus magna mauris, vehicula et libero at, commodo consectetur purus.</p> | ||
53 | <p>Sed laoreet posuere consectetur. Proin sed rutrum ligula, id scelerisque eros. Duis rhoncus magna eu magna scelerisque, non volutpat libero volutpat. Mauris gravida et tellus non ornare. Integer nibh nulla, commodo aliquam imperdiet a, condimentum pulvinar magna. Praesent commodo eros eu nisi sagittis pulvinar. Cras id lectus vel eros porta faucibus eu eu quam. Morbi et nisi id nunc elementum facilisis. Maecenas ultrices eu purus nec auctor. Cras quis sagittis nunc, in accumsan lacus.</p> | ||
54 | <p>Sed sem arcu, eleifend imperdiet ligula consectetur, tempus efficitur massa. Donec commodo convallis cursus. Donec id magna at arcu malesuada vulputate. Nam cursus leo eros, vel volutpat diam tincidunt eu. Morbi eleifend accumsan mollis. Sed dui lacus, tincidunt eu elit eu, venenatis ultrices erat. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Fusce sit amet imperdiet sapien, ut finibus ex. Quisque tincidunt, est vitae iaculis bibendum, augue odio pharetra libero, nec ornare erat risus ac quam. Nam varius mauris sit amet purus cursus, eget molestie ex tempus.</p> | ||
55 | <p>Proin augue ligula, interdum quis fermentum eu, suscipit eget tortor. Suspendisse nec egestas odio, vitae vestibulum turpis. Proin ipsum ligula, maximus vitae mauris ut, imperdiet ultricies eros. Integer mi orci, vestibulum ut porttitor quis, dictum eu lacus. Ut placerat lectus metus, vel molestie felis luctus ac. Quisque facilisis lectus id magna hendrerit, auctor ornare nisl rutrum. Pellentesque vehicula purus vitae dui auctor, in accumsan risus efficitur.</p></section> | ||
56 | </article> | ||
57 | <nav> | ||
58 | <a class="prevlink" href=".ipsumlorem.html" | ||
59 | title="Previous article in Autocento of the breakfast table"> | ||
60 | Ipsum lorem | ||
61 | </a> | ||
62 | <a href="#" id="lozenge" title="Random page"> ◊ </a> | ||
63 | <a class="nextlink" href=".ipsumlorem.html" | ||
64 | title="Next article in Autocento of the breakfast table"> | ||
65 | Ipsum lorem | ||
66 | </a> | ||
67 | </nav> | ||
68 | |||
69 | |||
70 | </body> | ||
71 | </html> | ||
diff --git a/test/lua/river.lua b/test/lua/river.lua deleted file mode 100644 index d060ba9..0000000 --- a/test/lua/river.lua +++ /dev/null | |||
@@ -1,226 +0,0 @@ | |||
1 | -- Pandoc River writer | ||
2 | -- it takes out all formatting, leaving only a river of text | ||
3 | -- running down the page: one word per line | ||
4 | -- vim: fdm=marker | ||
5 | -- invoke with: pandoc -t river.lua | ||
6 | |||
7 | local function flow(s) | ||
8 | return s:gsub("%s+", "\n") | ||
9 | end | ||
10 | |||
11 | local function nude(s) | ||
12 | -- Expand contractions | ||
13 | s = s:gsub("'%a+%s", function (x) | ||
14 | if x == "'ll" then | ||
15 | return " will " | ||
16 | elseif x == "'ve" then | ||
17 | return " have " | ||
18 | elseif x == "'re" then | ||
19 | return " are " | ||
20 | else | ||
21 | return x | ||
22 | end | ||
23 | end) | ||
24 | -- Get rid of quotes around words | ||
25 | s = s:gsub('"', ' ') | ||
26 | s = s:gsub("%s+'", ' ') | ||
27 | s = s:gsub("'%s+", ' ') | ||
28 | -- Remove HTML entities | ||
29 | s = s:gsub('&.-;', ' ') | ||
30 | s = s:gsub('%b<>', ' ') | ||
31 | -- Remove end-of-line backslashes | ||
32 | s = s:gsub('%s+\\$', ' ') | ||
33 | -- Remove dashes (not hyphens) | ||
34 | s = s:gsub('%-%-+', ' ') | ||
35 | s = s:gsub('%-%s', ' ') | ||
36 | -- Remove general punctuation | ||
37 | s = s:gsub('[%.!%?:;,%[%]%(%)<>]', ' ') | ||
38 | -- Remove extra spaces | ||
39 | s = s:gsub('%s+', ' ') | ||
40 | return s:lower() | ||
41 | end | ||
42 | |||
43 | -- This function is called once for the whole document. Parameters: | ||
44 | -- body is a string, metadata is a table, variables is a table. | ||
45 | -- One could use some kind of templating | ||
46 | -- system here; this just gives you a simple standalone HTML file. | ||
47 | function Doc(body, metadata, variables) | ||
48 | local buffer = "" | ||
49 | local function add(s) | ||
50 | buffer = buffer .. nude(s) .. "\n" | ||
51 | end | ||
52 | if metadata['title'] then | ||
53 | add(metadata['title']) | ||
54 | end | ||
55 | if metadata['subtitle'] then | ||
56 | add(metadata['subtitle']) | ||
57 | end | ||
58 | -- TODO: epigraph.content, epigraph.attrib, dedication, other metadata? | ||
59 | add(body) | ||
60 | return flow(buffer) | ||
61 | end | ||
62 | |||
63 | -- Remove all formatting {{{ | ||
64 | function Note(s) | ||
65 | return nude(s) | ||
66 | end | ||
67 | |||
68 | function Blocksep() | ||
69 | return "\n" | ||
70 | end | ||
71 | function Emph(s) | ||
72 | return nude(s) | ||
73 | end | ||
74 | |||
75 | function Strong(s) | ||
76 | return nude(s) | ||
77 | end | ||
78 | |||
79 | function Subscript(s) | ||
80 | return nude(s) | ||
81 | end | ||
82 | |||
83 | function Superscript(s) | ||
84 | return nude(s) | ||
85 | end | ||
86 | |||
87 | function SmallCaps(s) | ||
88 | return nude(s) | ||
89 | end | ||
90 | |||
91 | function Strikeout(s) | ||
92 | return nude(s) | ||
93 | end | ||
94 | |||
95 | function Code(s, attr) | ||
96 | return nude(s) | ||
97 | end | ||
98 | |||
99 | function CodeBlock(s, attr) | ||
100 | return nude(s) | ||
101 | end | ||
102 | |||
103 | function InlineMath(s) | ||
104 | return nude(s) | ||
105 | end | ||
106 | |||
107 | function DisplayMath(s) | ||
108 | return nude(s) | ||
109 | end | ||
110 | |||
111 | function Span(s, attr) | ||
112 | return nude(s) | ||
113 | end | ||
114 | |||
115 | function Cite(s) | ||
116 | return nude(s) | ||
117 | end | ||
118 | |||
119 | function Plain(s) | ||
120 | return nude(s) | ||
121 | end | ||
122 | |||
123 | -- Links only include the link text | ||
124 | function Link(s, src, tit) | ||
125 | return nude(s) | ||
126 | end | ||
127 | |||
128 | -- Images have nothing to give us | ||
129 | -- (but add a space just in case) | ||
130 | function Image(s, src, tit) | ||
131 | return "\n" | ||
132 | end | ||
133 | |||
134 | function CaptionedImage(s, src, tit) | ||
135 | return "\n" | ||
136 | end | ||
137 | |||
138 | function Str(s) | ||
139 | return nude(s) | ||
140 | end | ||
141 | |||
142 | function Div(s, attr) | ||
143 | return nude(s) | ||
144 | end | ||
145 | |||
146 | function Space(s) | ||
147 | return "\n" | ||
148 | end | ||
149 | |||
150 | function LineBreak() | ||
151 | return "\n" | ||
152 | end | ||
153 | |||
154 | function Para(s) | ||
155 | return nude(s) | ||
156 | end | ||
157 | |||
158 | function Header(lev, s, attr) | ||
159 | return nude(s) | ||
160 | end | ||
161 | |||
162 | function BlockQuote(s) | ||
163 | return nude(s) | ||
164 | end | ||
165 | |||
166 | function HorizontalRule() | ||
167 | return "\n" | ||
168 | end | ||
169 | |||
170 | function BulletList(items) | ||
171 | local buffer = "" | ||
172 | for _, item in pairs(items) do | ||
173 | buffer = buffer .. nude(item) .. "\n" | ||
174 | end | ||
175 | return buffer .. "\n" | ||
176 | end | ||
177 | |||
178 | function OrderedList(items) | ||
179 | local buffer = "" | ||
180 | for _, item in pairs(items) do | ||
181 | buffer = buffer .. nude(item) .. "\n" | ||
182 | end | ||
183 | return buffer .. "\n" | ||
184 | end | ||
185 | |||
186 | function DefinitionList(items) | ||
187 | local buffer = "" | ||
188 | for _, item in pairs(items) do | ||
189 | for k, v in pairs(item) do | ||
190 | buffer = buffer .. nude(k) .. "\n" .. nude(v) .. "\n" | ||
191 | end | ||
192 | end | ||
193 | return buffer .. "\n" | ||
194 | end | ||
195 | |||
196 | function Table(caption, aligns, widths, headers, rows) | ||
197 | local buffer = "" | ||
198 | local function add(s) | ||
199 | buffer = buffer .. nude(s) .. "\n" | ||
200 | end | ||
201 | if caption ~= "" then | ||
202 | add(caption) | ||
203 | end | ||
204 | for _,h in pairs(headers) do | ||
205 | add(h) | ||
206 | end | ||
207 | for _, row in pairs(rows) do | ||
208 | for _, cell in pairs(row) do | ||
209 | add(cell) | ||
210 | end | ||
211 | end | ||
212 | return buffer | ||
213 | end | ||
214 | -- }}} | ||
215 | |||
216 | -- The following code will produce runtime warnings when you haven't defined | ||
217 | -- all of the functions you need for the custom writer, so it's useful | ||
218 | -- to include when you're working on a writer. | ||
219 | local meta = {} | ||
220 | meta.__index = | ||
221 | function(_, key) | ||
222 | io.stderr:write(string.format("WARNING: Undefined function '%s'\n",key)) | ||
223 | return function() return "" end | ||
224 | end | ||
225 | setmetatable(_G, meta) | ||
226 | |||
diff --git a/test/river/ipsumlorem.river b/test/river/ipsumlorem.river deleted file mode 100644 index a22f432..0000000 --- a/test/river/ipsumlorem.river +++ /dev/null | |||
@@ -1,343 +0,0 @@ | |||
1 | ipsum | ||
2 | lorem | ||
3 | a | ||
4 | test | ||
5 | suite | ||
6 | for | ||
7 | the | ||
8 | gods | ||
9 | lorem | ||
10 | ipsum | ||
11 | dolor | ||
12 | sit | ||
13 | amet | ||
14 | consectetur | ||
15 | adipiscing | ||
16 | elit | ||
17 | vivamus | ||
18 | at | ||
19 | vulputate | ||
20 | ligula | ||
21 | ac | ||
22 | ullamcorper | ||
23 | magna | ||
24 | in | ||
25 | in | ||
26 | porta | ||
27 | metus | ||
28 | curabitur | ||
29 | iaculis | ||
30 | faucibus | ||
31 | posuere | ||
32 | nunc | ||
33 | elementum | ||
34 | libero | ||
35 | vitae | ||
36 | sapien | ||
37 | auctor | ||
38 | mollis | ||
39 | aenean | ||
40 | eget | ||
41 | tellus | ||
42 | ac | ||
43 | urna | ||
44 | tincidunt | ||
45 | vestibulum | ||
46 | vivamus | ||
47 | eget | ||
48 | orci | ||
49 | nec | ||
50 | purus | ||
51 | mollis | ||
52 | efficitur | ||
53 | pellentesque | ||
54 | eu | ||
55 | pharetra | ||
56 | justo | ||
57 | duis | ||
58 | tincidunt | ||
59 | convallis | ||
60 | vulputate | ||
61 | etiam | ||
62 | non | ||
63 | magna | ||
64 | mi | ||
65 | proin | ||
66 | porttitor | ||
67 | vel | ||
68 | quam | ||
69 | ac | ||
70 | dignissim | ||
71 | pellentesque | ||
72 | tempus | ||
73 | orci | ||
74 | orci | ||
75 | quis | ||
76 | tincidunt | ||
77 | enim | ||
78 | tincidunt | ||
79 | in | ||
80 | vestibulum | ||
81 | posuere | ||
82 | leo | ||
83 | ut | ||
84 | lacus | ||
85 | imperdiet | ||
86 | nec | ||
87 | rutrum | ||
88 | turpis | ||
89 | pellentesque | ||
90 | pellentesque | ||
91 | dictum | ||
92 | finibus | ||
93 | posuere | ||
94 | mauris | ||
95 | vehicula | ||
96 | lacus | ||
97 | lorem | ||
98 | a | ||
99 | euismod | ||
100 | purus | ||
101 | cursus | ||
102 | eu | ||
103 | vivamus | ||
104 | magna | ||
105 | mauris | ||
106 | vehicula | ||
107 | et | ||
108 | libero | ||
109 | at | ||
110 | commodo | ||
111 | consectetur | ||
112 | purus | ||
113 | sed | ||
114 | laoreet | ||
115 | posuere | ||
116 | consectetur | ||
117 | proin | ||
118 | sed | ||
119 | rutrum | ||
120 | ligula | ||
121 | id | ||
122 | scelerisque | ||
123 | eros | ||
124 | duis | ||
125 | rhoncus | ||
126 | magna | ||
127 | eu | ||
128 | magna | ||
129 | scelerisque | ||
130 | non | ||
131 | volutpat | ||
132 | libero | ||
133 | volutpat | ||
134 | mauris | ||
135 | gravida | ||
136 | et | ||
137 | tellus | ||
138 | non | ||
139 | ornare | ||
140 | integer | ||
141 | nibh | ||
142 | nulla | ||
143 | commodo | ||
144 | aliquam | ||
145 | imperdiet | ||
146 | a | ||
147 | condimentum | ||
148 | pulvinar | ||
149 | magna | ||
150 | praesent | ||
151 | commodo | ||
152 | eros | ||
153 | eu | ||
154 | nisi | ||
155 | sagittis | ||
156 | pulvinar | ||
157 | cras | ||
158 | id | ||
159 | lectus | ||
160 | vel | ||
161 | eros | ||
162 | porta | ||
163 | faucibus | ||
164 | eu | ||
165 | eu | ||
166 | quam | ||
167 | morbi | ||
168 | et | ||
169 | nisi | ||
170 | id | ||
171 | nunc | ||
172 | elementum | ||
173 | facilisis | ||
174 | maecenas | ||
175 | ultrices | ||
176 | eu | ||
177 | purus | ||
178 | nec | ||
179 | auctor | ||
180 | cras | ||
181 | quis | ||
182 | sagittis | ||
183 | nunc | ||
184 | in | ||
185 | accumsan | ||
186 | lacus | ||
187 | sed | ||
188 | sem | ||
189 | arcu | ||
190 | eleifend | ||
191 | imperdiet | ||
192 | ligula | ||
193 | consectetur | ||
194 | tempus | ||
195 | efficitur | ||
196 | massa | ||
197 | donec | ||
198 | commodo | ||
199 | convallis | ||
200 | cursus | ||
201 | donec | ||
202 | id | ||
203 | magna | ||
204 | at | ||
205 | arcu | ||
206 | malesuada | ||
207 | vulputate | ||
208 | nam | ||
209 | cursus | ||
210 | leo | ||
211 | eros | ||
212 | vel | ||
213 | volutpat | ||
214 | diam | ||
215 | tincidunt | ||
216 | eu | ||
217 | morbi | ||
218 | eleifend | ||
219 | accumsan | ||
220 | mollis | ||
221 | sed | ||
222 | dui | ||
223 | lacus | ||
224 | tincidunt | ||
225 | eu | ||
226 | elit | ||
227 | eu | ||
228 | venenatis | ||
229 | ultrices | ||
230 | erat | ||
231 | cum | ||
232 | sociis | ||
233 | natoque | ||
234 | penatibus | ||
235 | et | ||
236 | magnis | ||
237 | dis | ||
238 | parturient | ||
239 | montes | ||
240 | nascetur | ||
241 | ridiculus | ||
242 | mus | ||
243 | fusce | ||
244 | sit | ||
245 | amet | ||
246 | imperdiet | ||
247 | sapien | ||
248 | ut | ||
249 | finibus | ||
250 | ex | ||
251 | quisque | ||
252 | tincidunt | ||
253 | est | ||
254 | vitae | ||
255 | iaculis | ||
256 | bibendum | ||
257 | augue | ||
258 | odio | ||
259 | pharetra | ||
260 | libero | ||
261 | nec | ||
262 | ornare | ||
263 | erat | ||
264 | risus | ||
265 | ac | ||
266 | quam | ||
267 | nam | ||
268 | varius | ||
269 | mauris | ||
270 | sit | ||
271 | amet | ||
272 | purus | ||
273 | cursus | ||
274 | eget | ||
275 | molestie | ||
276 | ex | ||
277 | tempus | ||
278 | proin | ||
279 | augue | ||
280 | ligula | ||
281 | interdum | ||
282 | quis | ||
283 | fermentum | ||
284 | eu | ||
285 | suscipit | ||
286 | eget | ||
287 | tortor | ||
288 | suspendisse | ||
289 | nec | ||
290 | egestas | ||
291 | odio | ||
292 | vitae | ||
293 | vestibulum | ||
294 | turpis | ||
295 | proin | ||
296 | ipsum | ||
297 | ligula | ||
298 | maximus | ||
299 | vitae | ||
300 | mauris | ||
301 | ut | ||
302 | imperdiet | ||
303 | ultricies | ||
304 | eros | ||
305 | integer | ||
306 | mi | ||
307 | orci | ||
308 | vestibulum | ||
309 | ut | ||
310 | porttitor | ||
311 | quis | ||
312 | dictum | ||
313 | eu | ||
314 | lacus | ||
315 | ut | ||
316 | placerat | ||
317 | lectus | ||
318 | metus | ||
319 | vel | ||
320 | molestie | ||
321 | felis | ||
322 | luctus | ||
323 | ac | ||
324 | quisque | ||
325 | facilisis | ||
326 | lectus | ||
327 | id | ||
328 | magna | ||
329 | hendrerit | ||
330 | auctor | ||
331 | ornare | ||
332 | nisl | ||
333 | rutrum | ||
334 | pellentesque | ||
335 | vehicula | ||
336 | purus | ||
337 | vitae | ||
338 | dui | ||
339 | auctor | ||
340 | in | ||
341 | accumsan | ||
342 | risus | ||
343 | efficitur | ||
diff --git a/test/river/loremipsum.river b/test/river/loremipsum.river deleted file mode 100644 index 4bc1769..0000000 --- a/test/river/loremipsum.river +++ /dev/null | |||
@@ -1,343 +0,0 @@ | |||
1 | lorem | ||
2 | ipsum | ||
3 | a | ||
4 | test | ||
5 | suite | ||
6 | for | ||
7 | the | ||
8 | gods | ||
9 | lorem | ||
10 | ipsum | ||
11 | dolor | ||
12 | sit | ||
13 | amet | ||
14 | consectetur | ||
15 | adipiscing | ||
16 | elit | ||
17 | vivamus | ||
18 | at | ||
19 | vulputate | ||
20 | ligula | ||
21 | ac | ||
22 | ullamcorper | ||
23 | magna | ||
24 | in | ||
25 | in | ||
26 | porta | ||
27 | metus | ||
28 | curabitur | ||
29 | iaculis | ||
30 | faucibus | ||
31 | posuere | ||
32 | nunc | ||
33 | elementum | ||
34 | libero | ||
35 | vitae | ||
36 | sapien | ||
37 | auctor | ||
38 | mollis | ||
39 | aenean | ||
40 | eget | ||
41 | tellus | ||
42 | ac | ||
43 | urna | ||
44 | tincidunt | ||
45 | vestibulum | ||
46 | vivamus | ||
47 | eget | ||
48 | orci | ||
49 | nec | ||
50 | purus | ||
51 | mollis | ||
52 | efficitur | ||
53 | pellentesque | ||
54 | eu | ||
55 | pharetra | ||
56 | justo | ||
57 | duis | ||
58 | tincidunt | ||
59 | convallis | ||
60 | vulputate | ||
61 | etiam | ||
62 | non | ||
63 | magna | ||
64 | mi | ||
65 | proin | ||
66 | porttitor | ||
67 | vel | ||
68 | quam | ||
69 | ac | ||
70 | dignissim | ||
71 | pellentesque | ||
72 | tempus | ||
73 | orci | ||
74 | orci | ||
75 | quis | ||
76 | tincidunt | ||
77 | enim | ||
78 | tincidunt | ||
79 | in | ||
80 | vestibulum | ||
81 | posuere | ||
82 | leo | ||
83 | ut | ||
84 | lacus | ||
85 | imperdiet | ||
86 | nec | ||
87 | rutrum | ||
88 | turpis | ||
89 | pellentesque | ||
90 | pellentesque | ||
91 | dictum | ||
92 | finibus | ||
93 | posuere | ||
94 | mauris | ||
95 | vehicula | ||
96 | lacus | ||
97 | lorem | ||
98 | a | ||
99 | euismod | ||
100 | purus | ||
101 | cursus | ||
102 | eu | ||
103 | vivamus | ||
104 | magna | ||
105 | mauris | ||
106 | vehicula | ||
107 | et | ||
108 | libero | ||
109 | at | ||
110 | commodo | ||
111 | consectetur | ||
112 | purus | ||
113 | sed | ||
114 | laoreet | ||
115 | posuere | ||
116 | consectetur | ||
117 | proin | ||
118 | sed | ||
119 | rutrum | ||
120 | ligula | ||
121 | id | ||
122 | scelerisque | ||
123 | eros | ||
124 | duis | ||
125 | rhoncus | ||
126 | magna | ||
127 | eu | ||
128 | magna | ||
129 | scelerisque | ||
130 | non | ||
131 | volutpat | ||
132 | libero | ||
133 | volutpat | ||
134 | mauris | ||
135 | gravida | ||
136 | et | ||
137 | tellus | ||
138 | non | ||
139 | ornare | ||
140 | integer | ||
141 | nibh | ||
142 | nulla | ||
143 | commodo | ||
144 | aliquam | ||
145 | imperdiet | ||
146 | a | ||
147 | condimentum | ||
148 | pulvinar | ||
149 | magna | ||
150 | praesent | ||
151 | commodo | ||
152 | eros | ||
153 | eu | ||
154 | nisi | ||
155 | sagittis | ||
156 | pulvinar | ||
157 | cras | ||
158 | id | ||
159 | lectus | ||
160 | vel | ||
161 | eros | ||
162 | porta | ||
163 | faucibus | ||
164 | eu | ||
165 | eu | ||
166 | quam | ||
167 | morbi | ||
168 | et | ||
169 | nisi | ||
170 | id | ||
171 | nunc | ||
172 | elementum | ||
173 | facilisis | ||
174 | maecenas | ||
175 | ultrices | ||
176 | eu | ||
177 | purus | ||
178 | nec | ||
179 | auctor | ||
180 | cras | ||
181 | quis | ||
182 | sagittis | ||
183 | nunc | ||
184 | in | ||
185 | accumsan | ||
186 | lacus | ||
187 | sed | ||
188 | sem | ||
189 | arcu | ||
190 | eleifend | ||
191 | imperdiet | ||
192 | ligula | ||
193 | consectetur | ||
194 | tempus | ||
195 | efficitur | ||
196 | massa | ||
197 | donec | ||
198 | commodo | ||
199 | convallis | ||
200 | cursus | ||
201 | donec | ||
202 | id | ||
203 | magna | ||
204 | at | ||
205 | arcu | ||
206 | malesuada | ||
207 | vulputate | ||
208 | nam | ||
209 | cursus | ||
210 | leo | ||
211 | eros | ||
212 | vel | ||
213 | volutpat | ||
214 | diam | ||
215 | tincidunt | ||
216 | eu | ||
217 | morbi | ||
218 | eleifend | ||
219 | accumsan | ||
220 | mollis | ||
221 | sed | ||
222 | dui | ||
223 | lacus | ||
224 | tincidunt | ||
225 | eu | ||
226 | elit | ||
227 | eu | ||
228 | venenatis | ||
229 | ultrices | ||
230 | erat | ||
231 | cum | ||
232 | sociis | ||
233 | natoque | ||
234 | penatibus | ||
235 | et | ||
236 | magnis | ||
237 | dis | ||
238 | parturient | ||
239 | montes | ||
240 | nascetur | ||
241 | ridiculus | ||
242 | mus | ||
243 | fusce | ||
244 | sit | ||
245 | amet | ||
246 | imperdiet | ||
247 | sapien | ||
248 | ut | ||
249 | finibus | ||
250 | ex | ||
251 | quisque | ||
252 | tincidunt | ||
253 | est | ||
254 | vitae | ||
255 | iaculis | ||
256 | bibendum | ||
257 | augue | ||
258 | odio | ||
259 | pharetra | ||
260 | libero | ||
261 | nec | ||
262 | ornare | ||
263 | erat | ||
264 | risus | ||
265 | ac | ||
266 | quam | ||
267 | nam | ||
268 | varius | ||
269 | mauris | ||
270 | sit | ||
271 | amet | ||
272 | purus | ||
273 | cursus | ||
274 | eget | ||
275 | molestie | ||
276 | ex | ||
277 | tempus | ||
278 | proin | ||
279 | augue | ||
280 | ligula | ||
281 | interdum | ||
282 | quis | ||
283 | fermentum | ||
284 | eu | ||
285 | suscipit | ||
286 | eget | ||
287 | tortor | ||
288 | suspendisse | ||
289 | nec | ||
290 | egestas | ||
291 | odio | ||
292 | vitae | ||
293 | vestibulum | ||
294 | turpis | ||
295 | proin | ||
296 | ipsum | ||
297 | ligula | ||
298 | maximus | ||
299 | vitae | ||
300 | mauris | ||
301 | ut | ||
302 | imperdiet | ||
303 | ultricies | ||
304 | eros | ||
305 | integer | ||
306 | mi | ||
307 | orci | ||
308 | vestibulum | ||
309 | ut | ||
310 | porttitor | ||
311 | quis | ||
312 | dictum | ||
313 | eu | ||
314 | lacus | ||
315 | ut | ||
316 | placerat | ||
317 | lectus | ||
318 | metus | ||
319 | vel | ||
320 | molestie | ||
321 | felis | ||
322 | luctus | ||
323 | ac | ||
324 | quisque | ||
325 | facilisis | ||
326 | lectus | ||
327 | id | ||
328 | magna | ||
329 | hendrerit | ||
330 | auctor | ||
331 | ornare | ||
332 | nisl | ||
333 | rutrum | ||
334 | pellentesque | ||
335 | vehicula | ||
336 | purus | ||
337 | vitae | ||
338 | dui | ||
339 | auctor | ||
340 | in | ||
341 | accumsan | ||
342 | risus | ||
343 | efficitur | ||
diff --git a/test/src/ipsumlorem.txt b/test/src/ipsumlorem.txt deleted file mode 100644 index 2920d0b..0000000 --- a/test/src/ipsumlorem.txt +++ /dev/null | |||
@@ -1,74 +0,0 @@ | |||
1 | --- | ||
2 | title: Ipsum lorem | ||
3 | subtitle: a test suite for the gods | ||
4 | genre: verse | ||
5 | |||
6 | epigraph: | ||
7 | content: | | ||
8 | Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. | ||
9 | link: 'http://lipsum.com/' | ||
10 | attrib: Cicero | ||
11 | |||
12 | dedication: you, dear Reader | ||
13 | |||
14 | project: | ||
15 | title: Autocento of the breakfast table | ||
16 | css: autocento | ||
17 | order: 2 | ||
18 | next: | ||
19 | - title: Lorem ipsum | ||
20 | link: .loremipsum | ||
21 | prev: | ||
22 | - title: Lorem ipsum | ||
23 | link: .loremipsum | ||
24 | ... | ||
25 | |||
26 | [Lorem ipsum dolor sit amet][], consectetur adipiscing elit. \ | ||
27 | Vivamus at vulputate ligula, ac ullamcorper magna. \ | ||
28 | In in porta metus. \ | ||
29 | Curabitur iaculis faucibus posuere. \ | ||
30 | Nunc elementum libero vitae sapien auctor mollis. \ | ||
31 | Aenean eget tellus ac urna tincidunt vestibulum. \ | ||
32 | Vivamus eget orci nec purus mollis efficitur. \ | ||
33 | Pellentesque eu pharetra justo. | ||
34 | |||
35 | Duis tincidunt convallis vulputate. \ | ||
36 | Etiam non magna mi. \ | ||
37 | Proin porttitor vel quam ac dignissim. \ | ||
38 | Pellentesque tempus orci orci, quis tincidunt enim tincidunt in. \ | ||
39 | Vestibulum posuere leo ut lacus imperdiet, nec rutrum turpis pellentesque. \ | ||
40 | Pellentesque dictum finibus posuere. \ | ||
41 | Mauris vehicula lacus lorem, a euismod purus cursus eu. \ | ||
42 | Vivamus magna mauris, vehicula et libero at, commodo consectetur purus. | ||
43 | |||
44 | Sed laoreet posuere consectetur. \ | ||
45 | Proin sed rutrum ligula, id scelerisque eros. \ | ||
46 | Duis rhoncus magna eu magna scelerisque, non volutpat libero volutpat. \ | ||
47 | Mauris gravida et tellus non ornare. \ | ||
48 | Integer nibh nulla, commodo aliquam imperdiet a, condimentum pulvinar magna. \ | ||
49 | Praesent commodo eros eu nisi sagittis pulvinar. \ | ||
50 | Cras id lectus vel eros porta faucibus eu eu quam. \ | ||
51 | Morbi et nisi id nunc elementum facilisis. \ | ||
52 | Maecenas ultrices eu purus nec auctor. \ | ||
53 | Cras quis sagittis nunc, in accumsan lacus. | ||
54 | |||
55 | Sed sem arcu, eleifend imperdiet ligula consectetur, tempus efficitur massa. \ | ||
56 | Donec commodo convallis cursus. \ | ||
57 | Donec id magna at arcu malesuada vulputate. \ | ||
58 | Nam cursus leo eros, vel volutpat diam tincidunt eu. \ | ||
59 | Morbi eleifend accumsan mollis. \ | ||
60 | Sed dui lacus, tincidunt eu elit eu, venenatis ultrices erat. \ | ||
61 | Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. \ | ||
62 | Fusce sit amet imperdiet sapien, ut finibus ex. \ | ||
63 | Quisque tincidunt, est vitae iaculis bibendum, augue odio pharetra libero, nec ornare erat risus ac quam. \ | ||
64 | Nam varius mauris sit amet purus cursus, eget molestie ex tempus. | ||
65 | |||
66 | Proin augue ligula, interdum quis fermentum eu, suscipit eget tortor. \ | ||
67 | Suspendisse nec egestas odio, vitae vestibulum turpis. \ | ||
68 | Proin ipsum ligula, maximus vitae mauris ut, imperdiet ultricies eros. \ | ||
69 | Integer mi orci, vestibulum ut porttitor quis, dictum eu lacus. \ | ||
70 | Ut placerat lectus metus, vel molestie felis luctus ac. \ | ||
71 | Quisque facilisis lectus id magna hendrerit, auctor ornare nisl rutrum. \ | ||
72 | Pellentesque vehicula purus vitae dui auctor, in accumsan risus efficitur. | ||
73 | |||
74 | [Lorem ipsum dolor sit amet]: .loremipsum.html | ||
diff --git a/test/src/loremipsum.txt b/test/src/loremipsum.txt deleted file mode 100644 index d1d961c..0000000 --- a/test/src/loremipsum.txt +++ /dev/null | |||
@@ -1,74 +0,0 @@ | |||
1 | --- | ||
2 | title: Lorem ipsum | ||
3 | subtitle: a test suite for the gods | ||
4 | genre: prose | ||
5 | |||
6 | epigraph: | ||
7 | content: | | ||
8 | Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit. | ||
9 | link: 'http://lipsum.com/' | ||
10 | attrib: Cicero | ||
11 | |||
12 | dedication: you, dear Reader | ||
13 | |||
14 | project: | ||
15 | title: Autocento of the breakfast table | ||
16 | css: autocento | ||
17 | order: 1 | ||
18 | next: | ||
19 | - title: Ipsum lorem | ||
20 | link: .ipsumlorem | ||
21 | prev: | ||
22 | - title: Ipsum lorem | ||
23 | link: .ipsumlorem | ||
24 | ... | ||
25 | |||
26 | [Lorem ipsum dolor sit amet][], consectetur adipiscing elit. | ||
27 | Vivamus at vulputate ligula, ac ullamcorper magna. | ||
28 | In in porta metus. | ||
29 | Curabitur iaculis faucibus posuere. | ||
30 | Nunc elementum libero vitae sapien auctor mollis. | ||
31 | Aenean eget tellus ac urna tincidunt vestibulum. | ||
32 | Vivamus eget orci nec purus mollis efficitur. | ||
33 | Pellentesque eu pharetra justo. | ||
34 | |||
35 | Duis tincidunt convallis vulputate. | ||
36 | Etiam non magna mi. | ||
37 | Proin porttitor vel quam ac dignissim. | ||
38 | Pellentesque tempus orci orci, quis tincidunt enim tincidunt in. | ||
39 | Vestibulum posuere leo ut lacus imperdiet, nec rutrum turpis pellentesque. | ||
40 | Pellentesque dictum finibus posuere. | ||
41 | Mauris vehicula lacus lorem, a euismod purus cursus eu. | ||
42 | Vivamus magna mauris, vehicula et libero at, commodo consectetur purus. | ||
43 | |||
44 | Sed laoreet posuere consectetur. | ||
45 | Proin sed rutrum ligula, id scelerisque eros. | ||
46 | Duis rhoncus magna eu magna scelerisque, non volutpat libero volutpat. | ||
47 | Mauris gravida et tellus non ornare. | ||
48 | Integer nibh nulla, commodo aliquam imperdiet a, condimentum pulvinar magna. | ||
49 | Praesent commodo eros eu nisi sagittis pulvinar. | ||
50 | Cras id lectus vel eros porta faucibus eu eu quam. | ||
51 | Morbi et nisi id nunc elementum facilisis. | ||
52 | Maecenas ultrices eu purus nec auctor. | ||
53 | Cras quis sagittis nunc, in accumsan lacus. | ||
54 | |||
55 | Sed sem arcu, eleifend imperdiet ligula consectetur, tempus efficitur massa. | ||
56 | Donec commodo convallis cursus. | ||
57 | Donec id magna at arcu malesuada vulputate. | ||
58 | Nam cursus leo eros, vel volutpat diam tincidunt eu. | ||
59 | Morbi eleifend accumsan mollis. | ||
60 | Sed dui lacus, tincidunt eu elit eu, venenatis ultrices erat. | ||
61 | Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. | ||
62 | Fusce sit amet imperdiet sapien, ut finibus ex. | ||
63 | Quisque tincidunt, est vitae iaculis bibendum, augue odio pharetra libero, nec ornare erat risus ac quam. | ||
64 | Nam varius mauris sit amet purus cursus, eget molestie ex tempus. | ||
65 | |||
66 | Proin augue ligula, interdum quis fermentum eu, suscipit eget tortor. | ||
67 | Suspendisse nec egestas odio, vitae vestibulum turpis. | ||
68 | Proin ipsum ligula, maximus vitae mauris ut, imperdiet ultricies eros. | ||
69 | Integer mi orci, vestibulum ut porttitor quis, dictum eu lacus. | ||
70 | Ut placerat lectus metus, vel molestie felis luctus ac. | ||
71 | Quisque facilisis lectus id magna hendrerit, auctor ornare nisl rutrum. | ||
72 | Pellentesque vehicula purus vitae dui auctor, in accumsan risus efficitur. | ||
73 | |||
74 | [Lorem ipsum dolor sit amet]: .ipsumlorem.html | ||