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,160 @@
1
+ /* Text style: sans-serif */
2
+ /* @Author: Thomas Link (samul AT web.de) */
3
+ /* @Created: 13-Apr-2004. */
4
+ /* @Last Change: 31-M�r-2005. */
5
+ /* @Revision: 0.597 */
6
+
7
+ body, table, div {
8
+ /* font-family: Verdana, Geneva, Sans-Serif; */
9
+ /* font-family : Georgia, Serif; */
10
+ /* font-family: Verdana, Monaco, Sans-Serif; */
11
+ /* font-family: Trebuchet ms, Verdana, Myriad Web, Syntax, sans-serif; */
12
+ font-family: Verdana, Myriad Web, Syntax, sans-serif;
13
+ font-size: 12px;
14
+ }
15
+
16
+ big {
17
+ font-weight: bolder;
18
+ }
19
+
20
+ h1, h2, h3, h4, h5, h6 {
21
+ font-weight: bold;
22
+ /* font-family : Verdana, Monaco, Sans-Serif; */
23
+ font-family: Verdana, Myriad Web, Syntax, sans-serif;
24
+ }
25
+ h1 {
26
+ font-size: 34px;
27
+ }
28
+ h2 {
29
+ font-size: 28px;
30
+ }
31
+ h3 {
32
+ font-size: 24px;
33
+ }
34
+ h4 {
35
+ font-size: 20px;
36
+ }
37
+ h5 {
38
+ font-size: 18px;
39
+ }
40
+ h6 {
41
+ font-size: 16px;
42
+ }
43
+
44
+ tr.head, tr.foot, tr.high, th, td.foot, td.high {
45
+ font-weight: bold;
46
+ }
47
+ td[class~="head"], td[class~="foot"] {
48
+ font-weight: bold;
49
+ }
50
+ div.tableNote {
51
+ font-size: 10px;
52
+ font-style: italic;
53
+ }
54
+
55
+ blockquote {
56
+ font-family : Serif;
57
+ }
58
+ blockquote.abstract {
59
+ font-style: italic;
60
+ }
61
+
62
+ dt {
63
+ font-weight: bold;
64
+ }
65
+
66
+ code, pre {
67
+ font-family : 'Monotype.com', Courier New, Courier, Monospace;
68
+ }
69
+ pre {
70
+ font-size: 12px;
71
+ }
72
+
73
+ /* htmlnavigation: Usage note */
74
+
75
+ /* Navigation bar */
76
+ a:link.navbar, a:visited.navbar {
77
+ text-decoration: none;
78
+ font-size: 10px;
79
+ }
80
+ select.navmenu {
81
+ font-size:10px;
82
+ }
83
+ p.navgo {
84
+ font-size:10px;
85
+ }
86
+
87
+ /* Figure */
88
+
89
+ /* Caption */
90
+ caption, p.caption {
91
+ font-weight: bold;
92
+ }
93
+
94
+ /* Title */
95
+ p.title, p.author, p.authornote, p.date {
96
+ font-weight: bold;
97
+ }
98
+ p.title {
99
+ font-size: 34px;
100
+ }
101
+ p.author {
102
+ font-size: 28px;
103
+ }
104
+ p.authornote {
105
+ font-size: 24px;
106
+ }
107
+ p.date {
108
+ font-size: 24px;
109
+ }
110
+
111
+ /* Table of Contents etc. */
112
+
113
+ /* Mini Table of Contents */
114
+
115
+ /* Footnotes */
116
+ a:link.footnote, a:visited.footnote {
117
+ font-size: 8px;
118
+ text-decoration: none;
119
+ }
120
+ p.footnotes, ol.footnotes, li.footnotes {
121
+ font-size: 10px;
122
+ }
123
+ p.footnotes {
124
+ font-weight: bold;
125
+ }
126
+
127
+ /* OpenOffice compatible footnotes */
128
+ .sdfootnoteanc {
129
+ font-size: 8px;
130
+ }
131
+ .sdfootnotesym {
132
+ font-size: 10px;
133
+ }
134
+ p.sdfootnote {
135
+ font-size: 10px;
136
+ }
137
+
138
+ /* Bibliography */
139
+
140
+ /* Index */
141
+
142
+ /* Marker */
143
+
144
+ /* Header, Footer */
145
+
146
+ /* Validate HTML */
147
+
148
+ /* TabBar */
149
+ .tabBarLeft {
150
+ font-size: 10px;
151
+ }
152
+ a.tabBarEntry {
153
+ text-decoration: none;
154
+ }
155
+
156
+ /* ProgressBar */
157
+ span.progress {
158
+ font-size: 10px;
159
+ }
160
+
@@ -0,0 +1,170 @@
1
+ /* Text style: sans-serif */
2
+ /* @Author: Thomas Link (samul AT web.de) */
3
+ /* @Created: 13-Apr-2004. */
4
+ /* @Last Change: 20-M�r-2005. */
5
+ /* @Revision: 0.617 */
6
+
7
+ body, table, div {
8
+ /* font-family: Georgia, Bookman, Times, Serif; */
9
+ font-family: Georgia, Minion Web, Palatino, Book Antiqua, Utopia, Times New Roman, serif;
10
+ /* font-size-adjust: .5; */
11
+ font-size: 1.0em;
12
+ }
13
+
14
+ big {
15
+ font-weight: bolder;
16
+ }
17
+
18
+ h1, h2, h3, h4, h5, h6 {
19
+ /* font-family : Georgia, Bookman, Times, Serif; */
20
+ /* font-family : Verdana, Monaco, Sans-Serif; */
21
+ font-family: Verdana, Myriad Web, Syntax, sans-serif;
22
+ font-weight: bold;
23
+ }
24
+ h1 {
25
+ font-size: 2.0em;
26
+ }
27
+ h2 {
28
+ font-size: 1.8em;
29
+ }
30
+ h3 {
31
+ font-size: 1.6em;
32
+ }
33
+ h4 {
34
+ font-size: 1.4em;
35
+ }
36
+ h5 {
37
+ font-size: 1.2em;
38
+ }
39
+ h6 {
40
+ font-size: 1.0em;
41
+ }
42
+
43
+ tr.head, th, td.high {
44
+ font-weight: bold;
45
+ }
46
+ div.tableNote {
47
+ font-size: 0.9em;
48
+ font-style: italic;
49
+ }
50
+
51
+ blockquote {
52
+ font-family: Sans-Serif;
53
+ }
54
+ blockquote.quote {
55
+ }
56
+ blockquote.longquote {
57
+ }
58
+ blockquote.abstract {
59
+ font-style: italic;
60
+ }
61
+
62
+ dt {
63
+ font-weight: bold;
64
+ }
65
+
66
+ code, pre {
67
+ font-family: 'Monotype.com', Courier New, Courier, Monospace;
68
+ font-size-adjust: -.5;
69
+ }
70
+
71
+
72
+ /* htmlnavigation: Usage note */
73
+
74
+
75
+ /* Navigation bar */
76
+ a:link.navbar, a:visited.navbar {
77
+ text-decoration: none;
78
+ font-size: 0.9em;
79
+ }
80
+ select.navmenu {
81
+ font-size: 0.8em;
82
+ }
83
+ p.navgo {
84
+ font-size: 0.8em;
85
+ }
86
+
87
+
88
+ /* Figure */
89
+
90
+
91
+ /* Caption */
92
+ caption, p.caption {
93
+ font-weight: bold;
94
+ }
95
+
96
+ /* Title */
97
+ p.title, p.author, p.authornote, p.date {
98
+ font-weight: bold;
99
+ }
100
+ p.title {
101
+ font-size: 2.4em;
102
+ }
103
+ p.author {
104
+ font-size: 2.0em;
105
+ }
106
+ p.authornote {
107
+ font-size: 1.8em;
108
+ }
109
+ p.date {
110
+ font-size: 1.8em;
111
+ }
112
+
113
+
114
+ /* Table of Contents etc. */
115
+
116
+
117
+ /* Mini Table of Contents */
118
+
119
+
120
+ /* Footnotes */
121
+ a:link.footnote, a:visited.footnote {
122
+ font-size: 0.8em;
123
+ text-decoration: none;
124
+ }
125
+ p.footnotes, ol.footnotes, li.footnotes {
126
+ font-size: 0.9em;
127
+ }
128
+ p.footnotes {
129
+ font-weight: bold;
130
+ }
131
+
132
+
133
+ /* OpenOffice compatible footnotes */
134
+ .sdfootnoteanc {
135
+ font-size: 0.8em;
136
+ }
137
+ .sdfootnotesym, .sdfootnote {
138
+ font-size: 0.9em;
139
+ }
140
+
141
+
142
+ /* Bibliography */
143
+
144
+
145
+ /* Index */
146
+
147
+
148
+ /* Marker */
149
+
150
+
151
+ /* Header, Footer */
152
+
153
+
154
+ /* Validate HTML */
155
+
156
+
157
+ /* TabBar */
158
+ .tabBarLeft, .tabBarTop {
159
+ font-size: 0.9em;
160
+ }
161
+ a.tabBarEntry {
162
+ text-decoration: none;
163
+ font-family: Verdana, Myriad Web, Syntax, sans-serif;
164
+ }
165
+
166
+ /* ProgressBar */
167
+ span.progress {
168
+ font-size: 0.9em;
169
+ }
170
+
@@ -0,0 +1,121 @@
1
+ /* Text style: sans-serif */
2
+ /* @Author: Thomas Link (samul AT web.de) */
3
+ /* @Created: 13-Apr-2004. */
4
+ /* @Last Change: 20-M�r-2005. */
5
+ /* @Revision: 0.632 */
6
+
7
+ body, table, div {
8
+ font-family: Georgia, Minion Web, Palatino, Book Antiqua, Utopia, Times New Roman, serif;
9
+ }
10
+ a:link.navbar, a:visited.navbar {
11
+ text-decoration: none;
12
+ }
13
+ big {
14
+ font-weight: bolder;
15
+ }
16
+ h1, h2, h3, h4, h5, h6 {
17
+ /* font-family : Georgia, Bookman, Times, Serif; */
18
+ /* font-family : Verdana, Monaco, Sans-Serif; */
19
+ font-family: Verdana, Myriad Web, Syntax, sans-serif;
20
+ font-weight: bold;
21
+ }
22
+ tr.head, th, td.high {
23
+ font-weight: bold;
24
+ }
25
+ div.tableNote {
26
+ font-style: italic;
27
+ }
28
+ blockquote {
29
+ font-family: Sans-Serif;
30
+ }
31
+ blockquote.quote {
32
+ }
33
+ blockquote.longquote {
34
+ }
35
+ blockquote.abstract {
36
+ font-style: italic;
37
+ }
38
+ dt {
39
+ font-weight: bold;
40
+ }
41
+ code, pre {
42
+ font-family: 'Monotype.com', Courier New, Courier, Monospace;
43
+ font-size-adjust: -.5;
44
+ }
45
+ caption, p.caption {
46
+ font-weight: bold;
47
+ }
48
+ p.title, p.author, p.authornote, p.date {
49
+ font-weight: bold;
50
+ }
51
+ a:link.footnote, a:visited.footnote {
52
+ text-decoration: none;
53
+ }
54
+ p.footnotes, ol.footnotes, li.footnotes {
55
+ }
56
+ p.footnotes {
57
+ font-weight: bold;
58
+ }
59
+ a.tabBarEntry {
60
+ text-decoration: none;
61
+ font-family: Verdana, Myriad Web, Syntax, sans-serif;
62
+ }
63
+
64
+
65
+ p.title {
66
+ font-size: 240%;
67
+ }
68
+ p.author {
69
+ font-size: 220%;
70
+ }
71
+ p.date {
72
+ font-size: 200%;
73
+ }
74
+ p.authornote {
75
+ font-size: 180%;
76
+ }
77
+ h1 {
78
+ font-size: 200%;
79
+ }
80
+ h2 {
81
+ font-size: 180%;
82
+ }
83
+ h3 {
84
+ font-size: 160%;
85
+ }
86
+ h4 {
87
+ font-size: 140%;
88
+ }
89
+ h5 {
90
+ font-size: 120%;
91
+ }
92
+ div.tableNote, a:link.navbar, a:visited.navbar,
93
+ p.footnotes, ol.footnotes, li.footnotes, .sdfootnotesym, .sdfootnote,
94
+ .tabBarLeft, .tabBarTop, span.progress {
95
+ font-size: 90%;
96
+ }
97
+ select.navmenu, p.navgo,
98
+ a:link.footnote, a:visited.footnote, .sdfootnoteanc {
99
+ font-size: 80%;
100
+ }
101
+
102
+
103
+ body, p, table, div, h6 {
104
+ font-size: 12px;
105
+ }
106
+ /*/*/a{}
107
+ body p,
108
+ body table,
109
+ body div,
110
+ body h6 {
111
+ font-size: x-small;
112
+ voice-family: "\"}\"";
113
+ voice-family: inherit;
114
+ font-size: small;
115
+ }
116
+ html>body p {
117
+ font-size: small;
118
+ }
119
+ /* */
120
+
121
+