deplate 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. data/AUTHORS.TXT +26 -0
  2. data/CHANGES.TXT +177 -0
  3. data/LICENSE.TXT +340 -0
  4. data/NEWS.TXT +29 -0
  5. data/README.TXT +86 -0
  6. data/TODO.TXT +202 -0
  7. data/VERSION.TXT +1 -0
  8. data/bin/deplate +3 -0
  9. data/bin/deplate.bat +2 -0
  10. data/etc/deplate.ini +361 -0
  11. data/lib/deplate.rb +31 -0
  12. data/lib/deplate/abstract-class.rb +30 -0
  13. data/lib/deplate/builtin.rb +11 -0
  14. data/lib/deplate/cache.rb +59 -0
  15. data/lib/deplate/commands.rb +693 -0
  16. data/lib/deplate/common.rb +335 -0
  17. data/lib/deplate/converter.rb +99 -0
  18. data/lib/deplate/core.rb +2705 -0
  19. data/lib/deplate/css/article.css +545 -0
  20. data/lib/deplate/css/deplate.css +699 -0
  21. data/lib/deplate/css/heading-navbar.css +29 -0
  22. data/lib/deplate/css/layout-deplate-print.css +540 -0
  23. data/lib/deplate/css/layout-deplate.css +764 -0
  24. data/lib/deplate/css/sans-serif.css +160 -0
  25. data/lib/deplate/css/serif-e.css +170 -0
  26. data/lib/deplate/css/serif-rel.css +121 -0
  27. data/lib/deplate/css/serif.css +190 -0
  28. data/lib/deplate/css/slides.css +11 -0
  29. data/lib/deplate/css/tabbar-left.css +91 -0
  30. data/lib/deplate/css/tabbar-right-ie.css +14 -0
  31. data/lib/deplate/css/tabbar-right.css +118 -0
  32. data/lib/deplate/css/tabbar-top.css +64 -0
  33. data/lib/deplate/css/tabbar.css +81 -0
  34. data/lib/deplate/css/text-sans-serif.css +154 -0
  35. data/lib/deplate/css/text-serif.css +175 -0
  36. data/lib/deplate/define.rb +439 -0
  37. data/lib/deplate/docbook.rb +738 -0
  38. data/lib/deplate/elements.rb +1355 -0
  39. data/lib/deplate/etc.rb +199 -0
  40. data/lib/deplate/external.rb +135 -0
  41. data/lib/deplate/fmt/dbk-article-4.1.2.rb +21 -0
  42. data/lib/deplate/fmt/dbk-article.rb +46 -0
  43. data/lib/deplate/fmt/dbk-book.rb +46 -0
  44. data/lib/deplate/fmt/dbk-ref.rb +105 -0
  45. data/lib/deplate/fmt/dbk-slides.rb +47 -0
  46. data/lib/deplate/fmt/dbk-snippet.rb +21 -0
  47. data/lib/deplate/fmt/html-snippet.rb +21 -0
  48. data/lib/deplate/fmt/html.rb +1696 -0
  49. data/lib/deplate/fmt/htmlsite.rb +419 -0
  50. data/lib/deplate/fmt/htmlslides.rb +21 -0
  51. data/lib/deplate/fmt/htmlwebsite.rb +70 -0
  52. data/lib/deplate/fmt/latex-snippet.rb +22 -0
  53. data/lib/deplate/fmt/latex.rb +1242 -0
  54. data/lib/deplate/fmt/php.rb +19 -0
  55. data/lib/deplate/fmt/phpsite.rb +19 -0
  56. data/lib/deplate/fmt/plain.rb +598 -0
  57. data/lib/deplate/fmt/template.rb +34 -0
  58. data/lib/deplate/fmt/xhtml10t.rb +41 -0
  59. data/lib/deplate/formatter-snippet.rb +17 -0
  60. data/lib/deplate/formatter.rb +1210 -0
  61. data/lib/deplate/input.rb +492 -0
  62. data/lib/deplate/input/deplate-headings.rb +48 -0
  63. data/lib/deplate/input/deplate-restricted.rb +70 -0
  64. data/lib/deplate/input/deplate.rb +28 -0
  65. data/lib/deplate/input/rdoc.rb +277 -0
  66. data/lib/deplate/input/template.rb +29 -0
  67. data/lib/deplate/lib/latex/highlight-extra.sty +15 -0
  68. data/lib/deplate/lib/latex/highlight-typical.sty +15 -0
  69. data/lib/deplate/lib/tabmenu.js +146 -0
  70. data/lib/deplate/locale/de.latin1 +708 -0
  71. data/lib/deplate/locale/ru.koi8-r +48 -0
  72. data/lib/deplate/locale/zh_cn.gb2312 +35 -0
  73. data/lib/deplate/macros.rb +639 -0
  74. data/lib/deplate/messages.rb +120 -0
  75. data/lib/deplate/metadata.rb +77 -0
  76. data/lib/deplate/metadata/marshal.rb +24 -0
  77. data/lib/deplate/metadata/xml.rb +42 -0
  78. data/lib/deplate/metadata/yaml.rb +26 -0
  79. data/lib/deplate/mod/anyword.rb +56 -0
  80. data/lib/deplate/mod/babelfish.rb +27 -0
  81. data/lib/deplate/mod/code-gvim.rb +52 -0
  82. data/lib/deplate/mod/code-highlight.rb +91 -0
  83. data/lib/deplate/mod/colored-log.rb +17 -0
  84. data/lib/deplate/mod/de.rb +19 -0
  85. data/lib/deplate/mod/en.rb +17 -0
  86. data/lib/deplate/mod/endnotes.rb +60 -0
  87. data/lib/deplate/mod/fr.rb +46 -0
  88. data/lib/deplate/mod/html-asciimath.rb +40 -0
  89. data/lib/deplate/mod/html-deplate-button.rb +15 -0
  90. data/lib/deplate/mod/html-headings-navbar.rb +39 -0
  91. data/lib/deplate/mod/html-obfuscate-email.rb +47 -0
  92. data/lib/deplate/mod/html-sidebar.rb +232 -0
  93. data/lib/deplate/mod/htmlslides-navbar-fh.rb +32 -0
  94. data/lib/deplate/mod/iconv.rb +35 -0
  95. data/lib/deplate/mod/imgurl.rb +30 -0
  96. data/lib/deplate/mod/inlatex-compound.rb +69 -0
  97. data/lib/deplate/mod/koma.rb +109 -0
  98. data/lib/deplate/mod/latex-emph-table-head.rb +38 -0
  99. data/lib/deplate/mod/latex-styles.rb +461 -0
  100. data/lib/deplate/mod/latex-verbatim-small.rb +29 -0
  101. data/lib/deplate/mod/makefile.rb +194 -0
  102. data/lib/deplate/mod/mark-external-urls.rb +38 -0
  103. data/lib/deplate/mod/markup-1-warn.rb +37 -0
  104. data/lib/deplate/mod/markup-1.rb +41 -0
  105. data/lib/deplate/mod/navbar-png.rb +33 -0
  106. data/lib/deplate/mod/noindent.rb +32 -0
  107. data/lib/deplate/mod/numpara.rb +40 -0
  108. data/lib/deplate/mod/particle-math.rb +34 -0
  109. data/lib/deplate/mod/php-extra.rb +44 -0
  110. data/lib/deplate/mod/pstoedit.rb +71 -0
  111. data/lib/deplate/mod/recode.rb +57 -0
  112. data/lib/deplate/mod/ru_koi8-r.rb +20 -0
  113. data/lib/deplate/mod/smiley.rb +50 -0
  114. data/lib/deplate/mod/soffice.rb +23 -0
  115. data/lib/deplate/mod/symbols-latin1.rb +58 -0
  116. data/lib/deplate/mod/symbols-od-utf-8.rb +16 -0
  117. data/lib/deplate/mod/symbols-plain.rb +58 -0
  118. data/lib/deplate/mod/symbols-sgml.rb +97 -0
  119. data/lib/deplate/mod/symbols-utf-8.rb +81 -0
  120. data/lib/deplate/mod/symbols-xml.rb +34 -0
  121. data/lib/deplate/mod/syntax-region-alt.rb +37 -0
  122. data/lib/deplate/mod/utf8.rb +49 -0
  123. data/lib/deplate/mod/validate-html.rb +35 -0
  124. data/lib/deplate/mod/xmlrpc.rb +233 -0
  125. data/lib/deplate/mod/zh-cn-autospace.rb +108 -0
  126. data/lib/deplate/mod/zh-cn.rb +59 -0
  127. data/lib/deplate/once-method.rb +44 -0
  128. data/lib/deplate/output.rb +249 -0
  129. data/lib/deplate/particles.rb +815 -0
  130. data/lib/deplate/regions.rb +1076 -0
  131. data/lib/deplate/structured.rb +763 -0
  132. data/lib/deplate/template.rb +430 -0
  133. data/lib/deplate/templates/html-doc.html +28 -0
  134. data/lib/deplate/templates/html-left-tabbar-js.html +37 -0
  135. data/lib/deplate/templates/html-left-tabbar.html +31 -0
  136. data/lib/deplate/templates/html-tabbar-right-table.html +43 -0
  137. data/lib/deplate/templates/html-tabbar-right.html +23 -0
  138. data/lib/deplate/templates/html-tabbar-top.html +43 -0
  139. data/lib/deplate/templates/html-tabbar.html +31 -0
  140. data/lib/deplate/wiki-markup.rb +117 -0
  141. data/lib/deplate/xml.rb +109 -0
  142. data/lib/deplate/zh-cn.rb +59 -0
  143. data/lib/ps2ppm.rb +239 -0
  144. data/man/man1/deplate.1 +692 -0
  145. metadata +210 -0
@@ -0,0 +1,29 @@
1
+ /* Layout and decoration */
2
+ /* @Author: Thomas Link (samul AT web.de) */
3
+ /* @Created: 13-Apr-2004. */
4
+ /* @Last Change: 22-M�r-2005. */
5
+ /* @Revision: 0.1064 */
6
+
7
+ table.navbar {
8
+ border-top: 0;
9
+ border-bottom: 0;
10
+ border-left: 10px solid #ffffff;
11
+ border-right: 0;
12
+ border-spacing: 0;
13
+ border-collapse: collapse;
14
+ /* background-color: #fff0c0; */
15
+ margin: 10px 0 0 0;
16
+ padding: 0;
17
+ }
18
+ td.navbar, td.navmenu {
19
+ /* background-color: #fff0c0; */
20
+ margin: 0;
21
+ padding: 0;
22
+ border: 0;
23
+ vertical-align: middle;
24
+ }
25
+ h1, h2 {
26
+ margin-top: 0;
27
+ /* padding: 5px; */
28
+ }
29
+
@@ -0,0 +1,540 @@
1
+ /* Layout and decoration */
2
+ /* @Author: Thomas Link (samul AT web.de) */
3
+ /* @Created: 13-Apr-2004. */
4
+ /* @Last Change: 22-J�n-2005. */
5
+ /* @Revision: 0.772 */
6
+
7
+ @page {
8
+ size:portrait;
9
+ margin-top:3cm;
10
+ margin-bottom:3cm;
11
+ margin-left:3cm;
12
+ margin-right:3cm
13
+ }
14
+
15
+ body {
16
+ color: #000000;
17
+ background-color: #ffffff;
18
+ text-align: left;
19
+ }
20
+
21
+ a {
22
+ color : black;
23
+ }
24
+ a:link {
25
+ color : #0071f0;
26
+ }
27
+ a:visited {
28
+ color : #30306f;
29
+ }
30
+ a:hover {
31
+ color: #0071f0;
32
+ }
33
+ a:link.ref {
34
+ }
35
+ a:visited.ref {
36
+ }
37
+
38
+ p {
39
+ padding: 5pt;
40
+ }
41
+ big {
42
+ }
43
+
44
+ hr {
45
+ }
46
+ hr.pagebreak {
47
+ color: #000000;
48
+ }
49
+
50
+
51
+ h1, h2, h3, h4, h5, h6 {
52
+ padding-left: 20pt;
53
+ text-align: left;
54
+ page-break-after: avoid;
55
+ }
56
+ h1 {
57
+ margin-top: 40pt;
58
+ margin-bottom: 20pt;
59
+ padding-top: 10pt;
60
+ padding-bottom: 10pt;
61
+ }
62
+ h2 {
63
+ margin-top: 30pt;
64
+ margin-bottom: 10pt;
65
+ }
66
+ h3 {
67
+ margin-top: 20pt;
68
+ margin-bottom: 10pt;
69
+ }
70
+ h4 {
71
+ margin-top: 10pt;
72
+ margin-bottom: 10pt;
73
+ }
74
+ h5 {
75
+ margin-top: 10pt;
76
+ margin-bottom: 5pt;
77
+ }
78
+ h6 {
79
+ margin-top: 10pt;
80
+ }
81
+
82
+ em {
83
+ }
84
+
85
+ div.table {
86
+ padding: 20pt;
87
+ }
88
+
89
+ table, tr, th, td {
90
+ border-spacing: 1pt;
91
+ color : black;
92
+ }
93
+ table {
94
+ border: 1pt solid #000000;
95
+ }
96
+ tr, th, td {
97
+ padding: 2pt;
98
+ }
99
+ tr {
100
+ }
101
+ tr.head {
102
+ }
103
+ thead {
104
+ }
105
+ th {
106
+ }
107
+ td {
108
+ }
109
+
110
+ blockquote {
111
+ margin: 20pt 60pt 20pt 60pt;
112
+ }
113
+ blockquote.quote {
114
+ }
115
+
116
+ blockquote.longquote {
117
+ }
118
+ blockquote.abstract {
119
+ }
120
+
121
+ ul {
122
+ }
123
+ ol {
124
+ }
125
+ dl {
126
+ }
127
+ dt {
128
+ margin-left: 10pt;
129
+ padding-left: 10pt;
130
+ padding-top: 2pt;
131
+ padding-bottom: 2pt;
132
+ }
133
+ dd {
134
+ margin-bottom: 10pt;
135
+ }
136
+ li {
137
+ padding: 2pt;
138
+ margin-right: 20pt;
139
+ }
140
+ p.itempara {
141
+ border-left: 0;
142
+ border-right: 0;
143
+ padding: 0;
144
+ }
145
+
146
+ pre {
147
+ border: 1pt solid #efefef;
148
+ margin-left: 40pt;
149
+ margin-right: 40pt;
150
+ padding: 5pt;
151
+ }
152
+
153
+
154
+ /* htmlslides: Usage note */
155
+ .htmlslidesnote {
156
+ padding: 0;
157
+ color: #888888;
158
+ }
159
+ p.htmlslidesnote {
160
+ }
161
+ ul.htmlslidesnote {
162
+ }
163
+ li.htmlslidesnote {
164
+ }
165
+ hr.htmlslidesnote {
166
+ border:0;
167
+ }
168
+
169
+
170
+ /* Navigation bar */
171
+ a:link.navbarUrl, a:visited.navbarUrl {
172
+ color : #7f607f;
173
+ }
174
+ a:link.navbarUrl {
175
+ }
176
+ a:visited.navbarUrl {
177
+ }
178
+ .navbar, .navmenu, .navgo {
179
+ background: #ffffff;
180
+ vertical-align: middle;
181
+ }
182
+ table.navbar {
183
+ width: 100%;
184
+ margin: 20pt 0 20pt 0;
185
+ }
186
+ td.navbar {
187
+ width: 5%;
188
+ text-align: center;
189
+ }
190
+ td.navmenu {
191
+ width: 100%;
192
+ text-align: left;
193
+ }
194
+ select.navmenu {
195
+ width:250px;
196
+ border:0 hidden #ffffff;
197
+ }
198
+ p.navgo {
199
+ border: 0;
200
+ padding: 0;
201
+ margin: 0;
202
+ }
203
+ button.navgo {
204
+ border: 0;
205
+ }
206
+
207
+
208
+ /* Figure */
209
+ div.figure {
210
+ text-align: center;
211
+ padding: 20pt;
212
+ }
213
+
214
+
215
+ /* Caption */
216
+ caption {
217
+ }
218
+ p.caption {
219
+ }
220
+
221
+
222
+ /* Title */
223
+ div.title {
224
+ text-align: left;
225
+ padding: 20pt;
226
+ margin: 20pt 0 20pt 0;
227
+ }
228
+ p.title, p.author, p.authornote, p.date {
229
+ margin: 0;
230
+ border: 0;
231
+ }
232
+ p.title {
233
+ }
234
+ p.author {
235
+ }
236
+ p.authornote {
237
+ }
238
+ p.date {
239
+ }
240
+ hr.title {
241
+ color: #f1f08f;
242
+ background-color: #e4f8fc;
243
+ padding: 1pt;
244
+ margin: 0 45% 0 45%;
245
+ }
246
+
247
+
248
+ /* Table of Contents etc. */
249
+ div.toc {
250
+ }
251
+ p.toc {
252
+ }
253
+ ul.toc, li.toc {
254
+ list-style-type : none;
255
+ }
256
+ ul.toc {
257
+ }
258
+ ul.toc a:after {
259
+ content: target-counter(attr(href), page);
260
+ }
261
+ li.toc {
262
+ padding: 0;
263
+ }
264
+
265
+ div.lot {
266
+ }
267
+ p.lot {
268
+ }
269
+ ul.lot, li.lot {
270
+ list-style-type : none;
271
+ }
272
+ ul.lot {
273
+ }
274
+ li.lot {
275
+ padding: 0;
276
+ }
277
+
278
+ div.lof {
279
+ }
280
+ p.lof {
281
+ }
282
+ ul.lof, li.lof {
283
+ list-style-type : none;
284
+ }
285
+ ul.lof {
286
+ }
287
+ li.lof {
288
+ padding: 0;
289
+ }
290
+ hr.list {
291
+ color:#f1f08f;
292
+ padding: 1pt;
293
+ margin: 0 45% 0 45%;
294
+ }
295
+
296
+
297
+ /* Mini Table of Contents */
298
+ #Contents {
299
+ position: absolute;
300
+ top:50px;
301
+ left:0px;
302
+ padding:0px;
303
+ visibility:hidden;
304
+ margin:0px;
305
+ }
306
+ #ContentsBlock {
307
+ position: absolute;
308
+ top:30px;
309
+ left:0px;
310
+ padding:0px;
311
+ }
312
+ div.minitoc {
313
+ max-height: 500px;
314
+ background: #f1f1f1;
315
+ }
316
+ h1.minitoc {
317
+ margin: 0;
318
+ padding: 5pt;
319
+ border: 0;
320
+ }
321
+ ul.minitoc {
322
+ }
323
+ li.minitoc {
324
+ }
325
+
326
+
327
+ /* Footnotes */
328
+ a:link.footnote, a:visited.footnote {
329
+ vertical-align: top;
330
+ }
331
+ a:link.footnote {
332
+ }
333
+ a:visited.footnote {
334
+ }
335
+ p.footnotes {
336
+ padding-top: 10pt;
337
+ margin: 40pt 40% 0 0;
338
+ }
339
+ ol.footnotes {
340
+ }
341
+ li.footnotes {
342
+ }
343
+
344
+
345
+ /* OpenOffice compatible footnotes */
346
+ .sdfootnoteanc {
347
+ vertical-align: top;
348
+ color: #30306f;
349
+ }
350
+ .sdfootnotesym {
351
+ background-color: #e4f8fc;
352
+ vertical-align: top;
353
+ color: #30306f;
354
+ }
355
+ p.sdfootnote {
356
+ margin-left: 5%;
357
+ margin-right: 5%;
358
+ }
359
+
360
+
361
+ /* Bibliography */
362
+ .bib, .bibLef, .bibRight {
363
+ background-color:#ffffff;
364
+ }
365
+ table.bib {
366
+ width: 100%;
367
+ }
368
+ td.bibLeft {
369
+ }
370
+ td.bib {
371
+ }
372
+ td.bibRight {
373
+ }
374
+ h1.bib {
375
+ }
376
+ p.bib {
377
+ margin-left: 20pt;
378
+ text-indent: -20pt;
379
+ }
380
+
381
+
382
+ /* Index */
383
+ h2.index {
384
+ }
385
+ p.indextoc {
386
+ }
387
+ dl.index {
388
+ }
389
+ dt.index {
390
+ }
391
+ dd.index {
392
+ }
393
+
394
+
395
+ /* Marker */
396
+ div.note, div.warning, div.caution, div.important {
397
+ /* position: absolute; */
398
+ /* left: 720pt; */
399
+ /* width: 100pt; */
400
+ background-color: #eaeaea;
401
+ }
402
+ p.note, p.warning, p.caution, p.important {
403
+ padding: 5pt;
404
+ border-right: 0;
405
+ }
406
+ p.note {
407
+ border-left: 10pt solid #ffff00;
408
+ }
409
+ p.warning {
410
+ border-left: 10pt solid #cf0000;
411
+ }
412
+ p.caution {
413
+ border-left: 10pt solid #ef4f00;
414
+ }
415
+ p.important {
416
+ border-left: 10pt solid #009f9f;
417
+ }
418
+
419
+ em.marker {
420
+ color : #910000;
421
+ background-color:#ffff00;
422
+ }
423
+ span.marker {
424
+ position: absolute;
425
+ left: 700pt;
426
+ width: 60pt;
427
+ }
428
+
429
+
430
+ /* Header, Footer */
431
+ .header, .footer {
432
+ background-color:#eaeaea;
433
+ border: 0;
434
+ }
435
+ div.header, div.footer {
436
+ }
437
+ table.header, table.footer {
438
+ width: 100%;
439
+ }
440
+ thead.header, thead.footer {
441
+ }
442
+ tr.header, tr.footer {
443
+ }
444
+ th.header, th.footer {
445
+ }
446
+ td.header, td.footer {
447
+ }
448
+ p.header, p.footer {
449
+ }
450
+
451
+ /* Validate HTML */
452
+ #pageicons {
453
+ visibility: hidden;
454
+ }
455
+ div.pageicons {
456
+ }
457
+ .validhtml {
458
+ background-color:#ffffff;
459
+ }
460
+ table.validhtml {
461
+ }
462
+ tr.validhtml {
463
+ }
464
+ td.validhtml {
465
+ }
466
+
467
+ /* TabBar */
468
+ div.tabBarLeft {
469
+ visited: hidden;
470
+ }
471
+ div.bodyRight {
472
+ /* position: relative; */
473
+ /* left: 250pt; */
474
+ }
475
+ a.tabBarEntry {
476
+ }
477
+ .tabBar, .tabBody {
478
+ }
479
+
480
+ div.tabBar {
481
+ visibility: hidden;
482
+ }
483
+ div.tabBody {
484
+ background-color: #ffffff;
485
+ vertical-align: top;
486
+ }
487
+ div.tabBodyText {
488
+ }
489
+
490
+ table.tabBar {
491
+ visibility:hidden;
492
+ }
493
+ tr.tabBar {
494
+ }
495
+ td.tabBar {
496
+ padding: 4pt;
497
+ }
498
+ td.tabBody {
499
+ }
500
+
501
+ .tabBarLeft {
502
+ visibility:hidden;
503
+ }
504
+ table.tabBarLeft {
505
+ }
506
+ tr.tabBarLeft {
507
+ }
508
+ td.tabBarLeft {
509
+ }
510
+
511
+ .tabBarLeftActive {
512
+ }
513
+ tr.tabBarLeftActive {
514
+ }
515
+ td.tabBarLeftActive {
516
+ }
517
+
518
+ .tabBarLeftInactive {
519
+ }
520
+ tr.tabBarLeftInactive {
521
+ }
522
+ td.tabBarLeftInactive {
523
+ }
524
+
525
+ .tabBarLeftButtons {
526
+ }
527
+ tr.tabBarLeftButtons {
528
+ }
529
+ td.tabBarLeftButtons {
530
+ }
531
+
532
+ .buttonRow {
533
+ }
534
+ table.buttonRow {
535
+ }
536
+ tr.buttonRow {
537
+ }
538
+ td.buttonRow {
539
+ }
540
+