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,545 @@
1
+ /* Layout and decoration */
2
+ /* @Author: Thomas Link (samul AT web.de) */
3
+ /* @Created: 13-Apr-2004. */
4
+ /* @Last Change: 09-Aug-2005. */
5
+ /* @Revision: 0.787 */
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
+ /* text-align: center; */
88
+ }
89
+
90
+ table, tr, th, td {
91
+ border-spacing: 1pt;
92
+ color : black;
93
+ }
94
+ table {
95
+ border: 1pt solid #000000;
96
+ }
97
+ tr, th, td {
98
+ padding: 2pt;
99
+ }
100
+ tr {
101
+ }
102
+ tr.head {
103
+ }
104
+ thead {
105
+ }
106
+ th {
107
+ }
108
+ td {
109
+ }
110
+
111
+ blockquote {
112
+ margin: 20pt 60pt 20pt 60pt;
113
+ }
114
+ blockquote.quote {
115
+ }
116
+
117
+ blockquote.longquote {
118
+ }
119
+ blockquote.abstract {
120
+ }
121
+
122
+ ul {
123
+ }
124
+ ol {
125
+ }
126
+ dl {
127
+ }
128
+ dt {
129
+ margin-left: 10pt;
130
+ padding-left: 10pt;
131
+ padding-top: 2pt;
132
+ padding-bottom: 2pt;
133
+ }
134
+ dd {
135
+ margin-bottom: 10pt;
136
+ }
137
+ li {
138
+ padding: 2pt;
139
+ margin-right: 20pt;
140
+ }
141
+ p.itempara {
142
+ border-left: 0;
143
+ border-right: 0;
144
+ padding: 0;
145
+ }
146
+
147
+ pre {
148
+ border: 1pt solid #efefef;
149
+ margin-left: 40pt;
150
+ margin-right: 40pt;
151
+ padding: 5pt;
152
+ }
153
+
154
+
155
+ /* htmlnavigation: Usage note */
156
+ .htmlnavigationnote {
157
+ padding: 0;
158
+ color: #888888;
159
+ }
160
+ p.htmlnavigationnote {
161
+ }
162
+ ul.htmlnavigationnote {
163
+ }
164
+ li.htmlnavigationnote {
165
+ }
166
+ hr.htmlnavigationnote {
167
+ border:0;
168
+ }
169
+
170
+
171
+ /* Navigation bar */
172
+ a:link.navbarUrl, a:visited.navbarUrl {
173
+ color : #7f607f;
174
+ }
175
+ a:link.navbarUrl {
176
+ }
177
+ a:visited.navbarUrl {
178
+ }
179
+ .navbar, .navmenu, .navgo {
180
+ background: #ffffff;
181
+ vertical-align: middle;
182
+ }
183
+ table.navbar {
184
+ width: 100%;
185
+ margin: 20pt 0 20pt 0;
186
+ }
187
+ td.navbar {
188
+ width: 5%;
189
+ text-align: center;
190
+ }
191
+ td.navmenu {
192
+ width: 100%;
193
+ text-align: left;
194
+ }
195
+ select.navmenu {
196
+ width:250px;
197
+ border:0 hidden #ffffff;
198
+ }
199
+ p.navgo {
200
+ border: 0;
201
+ padding: 0;
202
+ margin: 0;
203
+ }
204
+ button.navgo {
205
+ border: 0;
206
+ }
207
+
208
+
209
+ /* Figure */
210
+ div.figure {
211
+ text-align: center;
212
+ padding: 20pt;
213
+ }
214
+
215
+
216
+ /* Caption */
217
+ caption {
218
+ }
219
+ p.caption {
220
+ }
221
+
222
+
223
+ /* Title */
224
+ div.title {
225
+ text-align: left;
226
+ padding: 20pt;
227
+ margin: 20pt 0 20pt 0;
228
+ }
229
+ p.title, p.author, p.authornote, p.date {
230
+ margin: 0;
231
+ border: 0;
232
+ }
233
+ p.title {
234
+ }
235
+ p.author {
236
+ }
237
+ p.authornote {
238
+ }
239
+ p.date {
240
+ }
241
+ hr.title {
242
+ color: #f1f08f;
243
+ background-color: #e4f8fc;
244
+ padding: 1pt;
245
+ margin: 0 45% 0 45%;
246
+ }
247
+
248
+
249
+ /* Table of Contents etc. */
250
+ div.toc {
251
+ }
252
+ p.toc {
253
+ }
254
+ ul.toc, li.toc {
255
+ list-style-type : none;
256
+ }
257
+ ul.toc {
258
+ }
259
+ a.toc:after {
260
+ content: leader('.') target-counter(attr(href), page);
261
+ }
262
+ li.toc {
263
+ padding: 0;
264
+ }
265
+
266
+ div.lot {
267
+ }
268
+ p.lot {
269
+ }
270
+ ul.lot, li.lot {
271
+ list-style-type : none;
272
+ }
273
+ ul.lot {
274
+ }
275
+ li.lot {
276
+ padding: 0;
277
+ }
278
+
279
+ div.lof {
280
+ }
281
+ p.lof {
282
+ }
283
+ ul.lof, li.lof {
284
+ list-style-type : none;
285
+ }
286
+ ul.lof {
287
+ }
288
+ li.lof {
289
+ padding: 0;
290
+ }
291
+ hr.list {
292
+ color:#f1f08f;
293
+ padding: 1pt;
294
+ margin: 0 45% 0 45%;
295
+ }
296
+
297
+
298
+ /* Mini Table of Contents */
299
+ #Contents {
300
+ position: absolute;
301
+ top:50px;
302
+ left:0px;
303
+ padding:0px;
304
+ visibility:hidden;
305
+ margin:0px;
306
+ }
307
+ #ContentsBlock {
308
+ position: absolute;
309
+ top:30px;
310
+ left:0px;
311
+ padding:0px;
312
+ }
313
+ div.minitoc {
314
+ max-height: 500px;
315
+ background: #f1f1f1;
316
+ }
317
+ h1.minitoc {
318
+ margin: 0;
319
+ padding: 5pt;
320
+ border: 0;
321
+ }
322
+ ul.minitoc {
323
+ }
324
+ li.minitoc {
325
+ }
326
+
327
+
328
+ /* Footnotes */
329
+ a:link.footnote, a:visited.footnote {
330
+ vertical-align: top;
331
+ }
332
+ a:link.footnote {
333
+ }
334
+ a:visited.footnote {
335
+ }
336
+ p.footnotes {
337
+ padding-top: 10pt;
338
+ margin: 40pt 40% 0 0;
339
+ }
340
+ ol.footnotes {
341
+ }
342
+ li.footnotes {
343
+ }
344
+
345
+
346
+ /* OpenOffice compatible footnotes */
347
+ .sdfootnoteanc {
348
+ vertical-align: top;
349
+ color: #30306f;
350
+ }
351
+ .sdfootnotesym {
352
+ background-color: #e4f8fc;
353
+ vertical-align: top;
354
+ color: #30306f;
355
+ }
356
+ p.sdfootnote {
357
+ margin-left: 5%;
358
+ margin-right: 5%;
359
+ }
360
+
361
+
362
+ /* Bibliography */
363
+ .bib, .bibLef, .bibRight {
364
+ background-color:#ffffff;
365
+ }
366
+ table.bib {
367
+ width: 100%;
368
+ }
369
+ td.bibLeft {
370
+ }
371
+ td.bib {
372
+ }
373
+ td.bibRight {
374
+ }
375
+ h1.bib {
376
+ }
377
+ p.bib {
378
+ margin-left: 20pt;
379
+ text-indent: -20pt;
380
+ }
381
+
382
+
383
+ /* Index */
384
+ h2.index {
385
+ }
386
+ p.indextoc {
387
+ }
388
+ dl.index {
389
+ }
390
+ dt.index {
391
+ }
392
+ dd.index {
393
+ }
394
+
395
+
396
+ /* Marker */
397
+ div.note, div.warning, div.caution, div.important {
398
+ /* position: absolute; */
399
+ /* left: 720pt; */
400
+ /* width: 100pt; */
401
+ background-color: #eaeaea;
402
+ }
403
+ p.note, p.warning, p.caution, p.important {
404
+ padding: 5pt;
405
+ border-right: 0;
406
+ }
407
+ p.note {
408
+ border-left: 10pt solid #ffff00;
409
+ }
410
+ p.warning {
411
+ border-left: 10pt solid #cf0000;
412
+ }
413
+ p.caution {
414
+ border-left: 10pt solid #ef4f00;
415
+ }
416
+ p.important {
417
+ border-left: 10pt solid #009f9f;
418
+ }
419
+
420
+ em.marker {
421
+ color : #910000;
422
+ background-color:#ffff00;
423
+ }
424
+ span.marker {
425
+ position: absolute;
426
+ left: 700pt;
427
+ width: 60pt;
428
+ }
429
+
430
+
431
+ /* Header, Footer */
432
+ .header, .footer {
433
+ background-color:#eaeaea;
434
+ border: 0;
435
+ }
436
+ div.header, div.footer {
437
+ }
438
+ table.header, table.footer {
439
+ width: 100%;
440
+ }
441
+ thead.header, thead.footer {
442
+ }
443
+ tr.header, tr.footer {
444
+ }
445
+ th.header, th.footer {
446
+ }
447
+ td.header, td.footer {
448
+ }
449
+ p.header, p.footer {
450
+ }
451
+
452
+ /* Validate HTML */
453
+ #pageicons {
454
+ visibility: hidden;
455
+ }
456
+ div.pageicons {
457
+ }
458
+ .validhtml {
459
+ background-color:#ffffff;
460
+ }
461
+ table.validhtml {
462
+ }
463
+ tr.validhtml {
464
+ }
465
+ td.validhtml {
466
+ }
467
+
468
+ /* TabBar */
469
+ #tabBar {
470
+ visibility: hidden;
471
+ max-height:0;
472
+ }
473
+ div.tabBarLeft {
474
+ visibility: hidden;
475
+ }
476
+ div.bodyRight {
477
+ /* position: relative; */
478
+ /* left: 250pt; */
479
+ }
480
+ a.tabBarEntry {
481
+ }
482
+ .tabBar, .tabBody {
483
+ }
484
+
485
+ div.tabBar {
486
+ visibility: hidden;
487
+ }
488
+ div.tabBody {
489
+ background-color: #ffffff;
490
+ vertical-align: top;
491
+ }
492
+ div.tabBodyText {
493
+ }
494
+
495
+ table.tabBar, table.tabBarTop, table.tabBarTopLeft, table.tabBarTopRight, table.tabBarTopBottom {
496
+ visibility:hidden;
497
+ }
498
+ tr.tabBar {
499
+ }
500
+ td.tabBar {
501
+ padding: 4pt;
502
+ }
503
+ td.tabBody {
504
+ }
505
+
506
+ .tabBarLeft {
507
+ visibility:hidden;
508
+ }
509
+ table.tabBarLeft {
510
+ }
511
+ tr.tabBarLeft {
512
+ }
513
+ td.tabBarLeft {
514
+ }
515
+
516
+ .tabBarLeftActive {
517
+ }
518
+ tr.tabBarLeftActive {
519
+ }
520
+ td.tabBarLeftActive {
521
+ }
522
+
523
+ .tabBarLeftInactive {
524
+ }
525
+ tr.tabBarLeftInactive {
526
+ }
527
+ td.tabBarLeftInactive {
528
+ }
529
+
530
+ .tabBarLeftButtons {
531
+ }
532
+ tr.tabBarLeftButtons {
533
+ }
534
+ td.tabBarLeftButtons {
535
+ }
536
+
537
+ .buttonRow {
538
+ }
539
+ table.buttonRow {
540
+ }
541
+ tr.buttonRow {
542
+ }
543
+ td.buttonRow {
544
+ }
545
+