propaganda 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,256 @@
1
+ <html xmlns="http://www.w3.org/1999/xhtml">
2
+ <head>
3
+ <title>Your Ad Here </title>
4
+ <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
5
+ </head>
6
+ <body>
7
+ <h1> This is Heading 1 </h1><p><span class="note">This sample is made based on the <a href="http://www.w3.org/StyleSheets/Core/preview">original HTML Element Sampler.</a> We add some more samples of list and table to the original sampler. </span></p>
8
+
9
+
10
+ <p>This is a paragraph. It's just something I threw together. This sentence contains <a href="http://www.w3.org/">a link</a> to W3C, which you have probably visited. This sentence contains a link to <a href="http://www.foo.net/">someplace else</a>. This is <a href="http://www.htmlhelp.com/" class="offsite">an offsite link</a>. In the beginning was the word. And the word wrapped. I'll be looking soon for opportunities to style this text. In the meantime it will do merely to occupy space.</p>
11
+
12
+ <h2> I'm Heading 2 </h2>
13
+
14
+ <p>
15
+ This is a paragraph. It's just something I threw together. In the beginning was the word. And the word wrapped. I'll be looking soon for opportunities to style this text. In the meantime it will do merely to occupy space. </p>
16
+
17
+ <h3>Heading 3 here </h3>
18
+
19
+ <p>This is a paragraph. It's just something I threw together. In the beginning was the word. And the word wrapped. I'll be looking soon for opportunities to style this text. In the meantime it will do merely to occupy space.</p>
20
+
21
+ <h4>Heading 4: the final insult </h4>
22
+
23
+ <p>This is a paragraph. It's just something I threw together. In the beginning was the word. And the word wrapped. I'll be looking soon for opportunities to style this text. In the meantime it will do merely to occupy space. </p>
24
+
25
+ <h5>Heading 5 I Am said Sam. In the Mosaic browser default stylesheet, I'm one step smaller than normal paragraph text. In the Core Style Project, I am still one step larger.
26
+ </h5>
27
+
28
+ <p>
29
+ This is a paragraph. It's just something I threw together. In the beginning was the word. And the word wrapped. I'll be looking soon for opportunities to style this text. In the meantime it will do merely to occupy space. </p>
30
+
31
+ <h6>Heading 6, extended to produce a line break, so as to be able to determine line-height. This ought to do it, what? In the Mosaic browser default stylesheet,
32
+ </h6>
33
+
34
+ <p>This sentence contains <em>This sentence contains </em>. This sentence contains <strong>a strongly emphasized</strong>phrase. This sentence contains <em>a strongly emphasized bit <strong>within</strong> an emphasized phrase</em><strong class="warning">This sentence has the class "warning".</strong></p>
35
+
36
+ <p><big>This is big.</big>
37
+ <small>This is small.</small>
38
+ <samp>This is SAMP.</samp>
39
+ <sub>This is sub.</sub>
40
+ <sup>This is sup.</sup>
41
+ <s>This is S.</s>
42
+ <strike class="keep-together drive-apart">This is strike.</strike>
43
+ <tt>This is tt.</tt>
44
+ <u>This is U.</u>
45
+ <cite>This is cite.</cite>
46
+
47
+ <ins>This is INS</ins>
48
+
49
+ <del>This is DEL</del><abbr>This is DEL</abbr>. This sentence contains an acronym: <acronym>Nato</acronym>In the beginning was the word. And the word wrapped. I'll be looking soon for opportunities to style this text. In the meantime it will do merely to occupy space. </p>
50
+
51
+ <h2 style="break-before:page">Heading 2 </h2>
52
+
53
+ <p class="initial">This is a paragraph with the class "initial". In an indented paragraph scheme, I generally won't be. It's just something I threw together. In the beginning was the word. And the word wrapped. I'll be looking soon for opportunities to style this text. In the meantime it will do merely to occupy space. </p>
54
+
55
+ <p>This is a paragraph. It's just something I threw together. In the beginning was the word. And the word wrapped. I'll be looking soon for opportunities to style this text. In the meantime it will do merely to occupy space. </p>
56
+
57
+ <p class="stb">This is a paragraph with the "small thematic break" (stb) class. It's just something I threw together. In the beginning was the word. And the word wrapped. I'll be looking soon for opportunities to style this text. In the meantime it will do merely to occupy space. </p>
58
+
59
+ <p>
60
+ This is a paragraph. It's just something I threw together. In the beginning was the word. And the word wrapped. I'll be looking soon for opportunities to style this text. In the meantime it will do merely to occupy space. </p>
61
+
62
+ <p class="mtb">This is a paragraph with the "medium thematic break" (mtb) class. It's just something I threw together. In the beginning was the word. And the word wrapped. I'll be looking soon for opportunities to style this text. In the meantime it will do merely to occupy space. </p>
63
+
64
+ <p>This is a paragraph. It's just something I threw together. In the beginning was the word. And the word wrapped. I'll be looking soon for opportunities to style this text. In the meantime it will do merely to occupy space. </p>
65
+
66
+ <p>This is a paragraph. It's just something I threw together. In the beginning was the word. And the word wrapped. I'll be looking soon for opportunities to style this text. In the meantime it will do merely to occupy space. </p>
67
+
68
+ <p class="ltb">This is a paragraph with the "large thematic break" (ltb) class. It's just something I threw together. In the beginning was the word. And the word wrapped. I'll be looking soon for opportunities to style this text. In the meantime it will do merely to occupy space. </p>
69
+
70
+ <p>This is a paragraph. It's just something I threw together. In the beginning was the word. And the word wrapped. I'll be looking soon for opportunities to style this text. In the meantime it will do merely to occupy space. </p>
71
+
72
+ <p>This is a paragraph. It's just something I threw together. In the beginning was the word. And the word wrapped. I'll be looking soon for opportunities to style this text. In the meantime it will do merely to occupy space. </p>
73
+
74
+ <h2>Heading 2 </h2>
75
+
76
+ <p>This is a paragraph. It's just something I threw together. In the beginning was the word. And the word wrapped. I'll be looking soon for opportunities to style this text. In the meantime it will do merely to occupy space. </p>
77
+
78
+ <blockquote>This is a blockquote. It's just something I threw together. In the beginning was the word. And the word wrapped. I'll be looking soon for opportunities to style this text. In the meantime it will do merely to occupy space. I'll keep this up a bit longer and then move on. I've read more substantial greeting cards than this.</blockquote>
79
+
80
+ <h3>Heading 3 </h3>
81
+
82
+ <p>
83
+ This is a paragraph. It's just something I threw together. This sentence contains <a href="http://www.w3.org/">a link</a> to W3C, which you have probably visited. This sentence contains a link to <a href="http://www.foo.net/">someplace else</a>. This is <a href="http://www.unpronounceable.com/" class="offsite">an offsite link</a>. In the beginning was the word. And the word wrapped. I'll be looking soon for opportunities to style this text. In the meantime it will do merely to occupy space.
84
+ </p>
85
+
86
+
87
+ <ol>
88
+ <li>this is an ordered list item. It's just something I threw together. In the beginning was the word. And the word wrapped. I'll be looking soon for opportunities to style this text. In the meantime it will do merely to occupy space. </li>
89
+
90
+ <li>
91
+ this is another ordered list item
92
+
93
+ <ul>
94
+ <li>。This is an unordered list within an ordered one.</li>
95
+
96
+ <li>This is another unordered list item.
97
+
98
+ <ol>
99
+ <li>Just to be mean, here's another ordered list - inside the unordered list.</li>
100
+
101
+ <li>...and another list item, to fill space.</li>
102
+ </ol>
103
+ </li>
104
+
105
+ <li>This is a third item in that unordered list.</li>
106
+
107
+ <li>
108
+ This is a fourth.
109
+ <ul>
110
+ <li>
111
+ Here's anoter unordered list - nested deeper.
112
+ </li>
113
+ <li>
114
+ Here's yet another unordered list.
115
+
116
+ <ul><li>Here's another unordered list - inside the unordered list.
117
+ <ul><li>Here's another unordered list - nested deeper.</li>
118
+ <li>...and another list item, to fill space.</li></ul>
119
+ </li>
120
+ <li>...and another list item, to fill space.</li></ul>
121
+ </li>
122
+ </ul>
123
+
124
+
125
+ </li>
126
+ </ul>
127
+ </li>
128
+
129
+ <li>This is item 3 in the initial ordered list.</li>
130
+
131
+ <li>This is item 4.</li>
132
+ </ol>
133
+
134
+ <ol class="keep-together">
135
+ <li>this is an ordered list item. It's just something I threw together. In the beginning was the word. And the word wrapped. I'll be looking soon for opportunities to style this text. In the meantime it will do merely to occupy space.
136
+
137
+ <ol>
138
+ <li>Here's another ordered list - inside the ordered list.
139
+ <ol>
140
+ <li>Here's yet another ordered list - nested deeper.
141
+ <ol>
142
+ <li>Here's another ordered list - inside the ordered list.</li>
143
+ <li>...and another list item, to fill space.</li>
144
+ </ol>
145
+
146
+ </li>
147
+
148
+ <li>...and yet another list item, to fill space.</li>
149
+ </ol>
150
+ </li>
151
+
152
+ <li>...and another list item, to fill space.</li>
153
+ </ol>
154
+ </li>
155
+
156
+ <li>this is another ordered list item </li>
157
+ </ol>
158
+
159
+ <p>This is a paragraph. It's just something I threw together. In the beginning was the word. And the word wrapped. I'll be looking soon for opportunities to style this text. In the meantime it will do merely to occupy space. </p>
160
+
161
+ <h4>Heading 4 </h4>
162
+
163
+ <p>This is a paragraph. It's just something I threw together. In the beginning was the word. And the word wrapped. I'll be looking soon for opportunities to style this text. In the meantime it will do merely to occupy space. </p>
164
+
165
+ <dl>
166
+ <dt>Definition Term</dt>
167
+
168
+ <dd>Definition data. It's just something I threw together. In the beginning was the word. And the word wrapped. I'll be looking soon for opportunities to style this text. In the meantime it will do merely to occupy space. </dd>
169
+ </dl>
170
+
171
+ <table>
172
+ <caption>Table caption</caption>
173
+
174
+ <thead>
175
+ <tr>
176
+ <th>Table Head 1</th><th>Table Head 2</th><th>Table Head 3</th>
177
+ </tr>
178
+ </thead>
179
+ <tbody>
180
+ <tr>
181
+ <td>Here's a text in the cell.</td><td colspan="2">This cell spans across 2 columns.</td>
182
+ </tr>
183
+ <tr>
184
+ <td>1st column in the last low</td><td>2nd column in the last low</td><td>3rd column in the last low</td>
185
+ </tr>
186
+ </tbody>
187
+ </table>
188
+
189
+ <p>Ordinary, no rules are drawn if nothing specified. If you want to draw rules, do as follows.
190
+ </p>
191
+
192
+ <table border="1">
193
+ <caption>Specify border="1" to the table.</caption>
194
+ <thead>
195
+ <tr>
196
+ <th>Table Head 1</th><th>Table Head 2</th><th>Table Head 3</th>
197
+ </tr>
198
+ </thead>
199
+ <tbody>
200
+ <tr>
201
+ <td>Here's a text in the cell.</td><td colspan="2">This cell spans across 2 columns.</td>
202
+ </tr>
203
+ <tr>
204
+ <td>1st column in the last low</td><td>2nd column in the last low</td><td>3rd column in the last low</td>
205
+ </tr>
206
+ </tbody>
207
+ </table>
208
+
209
+ <p>
210
+ Table width and column width also can be specified.
211
+ </p>
212
+
213
+ <table border="10" width="100%">
214
+ <caption>
215
+ Specify border="10", width="100%" to the table and specify width="5*", width="2*", width="3*" to the col for each.
216
+ </caption>
217
+ <col width="5*"/>
218
+ <col width="2*"/>
219
+ <col width="3*"/>
220
+ <thead>
221
+ <tr>
222
+ <th>Table Head 1</th><th>Table Head 2</th><th>Table Head 3</th>
223
+ </tr>
224
+ </thead>
225
+ <tbody>
226
+ <tr>
227
+ <td>Here's a text in the cell.</td><td colspan="2">This cell spans across 2 columns.</td>
228
+ </tr>
229
+ <tr>
230
+ <td>1st column in the last low</td><td>2nd column in the last low</td><td>3rd column in the last low</td>
231
+ </tr>
232
+ </tbody>
233
+ </table>
234
+
235
+
236
+
237
+
238
+ <p>This is a paragraph. It's just something I threw together. In the beginning was the word. And the word wrapped. I'll be looking soon for opportunities to style this text. In the meantime it will do merely to occupy space. </p>
239
+
240
+ <h5>Heading 5 </h5>This is an improperly marked paragraph sequence, with
241
+
242
+ <code>&lt;P&gt;</code> used as a paragraph separator rather than as a container. It's dismaying how common this is. It's just something I threw together. In the beginning was the word. And the word wrapped. I'll be looking soon for opportunities to style this text. In the meantime it will do merely to occupy space.
243
+
244
+ <p>This is a paragraph. It's just something I threw together. In the beginning was the word. And the word wrapped. I'll be looking soon for opportunities to style this text. In the meantime it will do merely to occupy space. </p>
245
+
246
+ <hr />
247
+ <div>This is a div preceded by a horizontal rule, which might be hidden. It's just something I threw together. In the beginning was the word. And the word wrapped. I'll be looking soon for opportunities to style this text. In the meantime it will do merely to occupy space. </div>
248
+
249
+ <div>
250
+ <p>This is a paragraph within a div. It's just something I threw together. In the beginning was the word. And the word wrapped. I'll be looking soon for opportunities to style this text. In the meantime it will do merely to occupy space. </p>
251
+ </div>
252
+
253
+ <address>This is an Address. </address>
254
+ </body>
255
+ </html>
256
+
@@ -0,0 +1,39 @@
1
+ Markdown: Syntax
2
+ ================
3
+
4
+ <ul id="ProjectSubmenu">
5
+ <li><a href="/projects/markdown/" title="Markdown Project Page">Main</a></li>
6
+ <li><a href="/projects/markdown/basics" title="Markdown Basics">Basics</a></li>
7
+ <li><a class="selected" title="Markdown Syntax Documentation">Syntax</a></li>
8
+ <li><a href="/projects/markdown/license" title="Pricing and License Information">License</a></li>
9
+ <li><a href="/projects/markdown/dingus" title="Online Markdown Web Form">Dingus</a></li>
10
+ </ul>
11
+
12
+
13
+ * [Overview](#overview)
14
+ * [Philosophy](#philosophy)
15
+ * [Inline HTML](#html)
16
+ * [Automatic Escaping for Special Characters](#autoescape)
17
+ * [Block Elements](#block)
18
+ * [Paragraphs and Line Breaks](#p)
19
+ * [Headers](#header)
20
+ * [Blockquotes](#blockquote)
21
+ * [Lists](#list)
22
+ * [Code Blocks](#precode)
23
+ * [Horizontal Rules](#hr)
24
+ * [Span Elements](#span)
25
+ * [Links](#link)
26
+ * [Emphasis](#em)
27
+ * [Code](#code)
28
+ * [Images](#img)
29
+ * [Miscellaneous](#misc)
30
+ * [Backslash Escapes](#backslash)
31
+ * [Automatic Links](#autolink)
32
+
33
+
34
+ **Note:** This document is itself written using Markdown; you
35
+ can [see the source for it by adding '.text' to the URL][src].
36
+
37
+ [src]: /projects/markdown/syntax.text
38
+
39
+ * * *
Binary file
@@ -0,0 +1,46 @@
1
+ h2{color:green}. This is a title
2
+
3
+ h3. This is a subhead
4
+
5
+ p{color:red}. This is some text of dubious character. Isn't the use of "quotes" just lazy writing -- and theft of 'intellectual property' besides? I think the time has come to see a block quote.
6
+
7
+ bq[fr]. This is a block quote. I'll admit it's not the most exciting block quote ever devised.
8
+
9
+ Simple list:
10
+
11
+ #{color:blue} one
12
+ # two
13
+ # three
14
+
15
+ Multi-level list:
16
+
17
+ # one
18
+ ## aye
19
+ ## bee
20
+ ## see
21
+ # two
22
+ ## x
23
+ ## y
24
+ # three
25
+
26
+ Mixed list:
27
+
28
+ * Point one
29
+ * Point two
30
+ ## Step 1
31
+ ## Step 2
32
+ ## Step 3
33
+ * Point three
34
+ ** Sub point 1
35
+ ** Sub point 2
36
+
37
+
38
+ Well, that went well. How about we insert an <a href="/" title="watch out">old-fashioned hypertext link</a>? Will the quote marks in the tags get messed up? No!
39
+
40
+ "This is a link (optional title)":http://www.textism.com
41
+
42
+ table{border:1px solid black}.
43
+ |_. this|_. is|_. a|_. header|
44
+ <{background:gray}. |\2. this is|{background:red;width:200px}. a|^<>{height:200px}. row|
45
+ |this|<>{padding:10px}. is|^. another|(bob#bob). row|
46
+
metadata ADDED
@@ -0,0 +1,128 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: propaganda
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Jeff Rafter
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2010-02-24 00:00:00 -08:00
13
+ default_executable: propaganda
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: BlueCloth
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 1.0.0
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: RedCloth
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 4.1.1
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: rjb
37
+ type: :runtime
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 1.2.0
44
+ version:
45
+ - !ruby/object:Gem::Dependency
46
+ name: thoughtbot-shoulda
47
+ type: :development
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: "0"
54
+ version:
55
+ description: "Propaganda uses Apache FOP to convert html to PDF using a series of stylesheets. Propaganda can also format textile and markdown documents. "
56
+ email: jeff@socialrange.org
57
+ executables:
58
+ - propaganda
59
+ extensions: []
60
+
61
+ extra_rdoc_files:
62
+ - LICENSE
63
+ - README.rdoc
64
+ files:
65
+ - LICENSE
66
+ - README.rdoc
67
+ - Rakefile
68
+ - VERSION
69
+ - bin/propaganda
70
+ - java/SystemExitManager.class
71
+ - java/SystemExitManager.java
72
+ - java/avalon-framework-4.2.0.jar
73
+ - java/batik-all-1.7.jar
74
+ - java/commons-io-1.3.1.jar
75
+ - java/commons-logging-1.0.4.jar
76
+ - java/fop.jar
77
+ - java/org/apache/fop/cli/Manager$1.class
78
+ - java/org/apache/fop/cli/Manager.class
79
+ - java/org/apache/fop/cli/Manager.java
80
+ - java/serializer-2.7.0.jar
81
+ - java/xalan-2.7.0.jar
82
+ - java/xercesImpl-2.7.1.jar
83
+ - java/xml-apis-1.3.04.jar
84
+ - java/xml-apis-ext-1.3.04.jar
85
+ - java/xmlgraphics-commons-1.3.1.jar
86
+ - lib/propaganda.rb
87
+ - lib/propaganda/fop.rb
88
+ - lib/propaganda/formatter.rb
89
+ - templates/clean.xsl
90
+ - templates/default.xsl
91
+ - test/fop_test.rb
92
+ - test/helper.rb
93
+ - test/samples/sample.fo
94
+ - test/samples/sample.html
95
+ - test/samples/sample.markdown
96
+ - test/samples/sample.pdf
97
+ - test/samples/sample.textile
98
+ has_rdoc: true
99
+ homepage: http://github.com/jeffrafter/propaganda
100
+ licenses: []
101
+
102
+ post_install_message:
103
+ rdoc_options:
104
+ - --charset=UTF-8
105
+ require_paths:
106
+ - lib
107
+ required_ruby_version: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: "0"
112
+ version:
113
+ required_rubygems_version: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: "0"
118
+ version:
119
+ requirements: []
120
+
121
+ rubyforge_project:
122
+ rubygems_version: 1.3.5
123
+ signing_key:
124
+ specification_version: 3
125
+ summary: Generate PDFs from HTML. Generate them from Markdown and Textile. Take over the world.
126
+ test_files:
127
+ - test/fop_test.rb
128
+ - test/helper.rb