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,190 @@
1
+ /* Text style: sans-serif */
2
+ /* @Author: Thomas Link (samul AT web.de) */
3
+ /* @Created: 13-Apr-2004. */
4
+ /* @Last Change: 27-Okt-2005. */
5
+ /* @Revision: 0.624 */
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: 14px;
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: 28px;
26
+ }
27
+ h2 {
28
+ font-size: 24px;
29
+ }
30
+ h3 {
31
+ font-size: 20px;
32
+ }
33
+ h4 {
34
+ font-size: 18px;
35
+ }
36
+ h5 {
37
+ font-size: 16px;
38
+ }
39
+ h6 {
40
+ font-size: 16px;
41
+ }
42
+
43
+ tr.head, tr.foot, tr.high, th, td.foot, td.high {
44
+ font-weight: bold;
45
+ }
46
+ td[class~="head"], td[class~="foot"] {
47
+ font-weight: bold;
48
+ }
49
+ div.tableNote {
50
+ font-size: 12px;
51
+ font-style: italic;
52
+ }
53
+ .small {
54
+ font-size: 11px;
55
+ }
56
+ .scriptsize {
57
+ font-size: 10px;
58
+ }
59
+ .footnotesize {
60
+ font-size: 9px;
61
+ }
62
+
63
+ blockquote {
64
+ font-family: Sans-Serif;
65
+ }
66
+ blockquote.quote {
67
+ }
68
+ blockquote.longquote {
69
+ }
70
+ blockquote.abstract {
71
+ font-style: italic;
72
+ }
73
+
74
+ dt {
75
+ font-weight: bold;
76
+ }
77
+
78
+ code, pre {
79
+ font-family: 'Monotype.com', "Courier New", Courier, Monospace;
80
+ font-size-adjust: -.5;
81
+ }
82
+ /* pre { */
83
+ /* font-size: 12px; */
84
+ /* } */
85
+
86
+
87
+ /* htmlnavigation: Usage note */
88
+
89
+
90
+ /* Navigation bar */
91
+ a:link.navbar, a:visited.navbar {
92
+ text-decoration: none;
93
+ font-size: 12px;
94
+ }
95
+ select.navmenu {
96
+ font-size:9px;
97
+ }
98
+ p.navgo {
99
+ font-size:9px;
100
+ }
101
+
102
+
103
+ /* Figure */
104
+
105
+
106
+ /* Caption */
107
+ caption, p.caption {
108
+ font-weight: bold;
109
+ }
110
+
111
+ /* Title */
112
+ p.title, p.author, p.authornote, p.date {
113
+ font-family: Verdana, "Myriad Web", Syntax, sans-serif;
114
+ font-weight: bold;
115
+ }
116
+ p.title {
117
+ font-size: 28px;
118
+ }
119
+ p.author {
120
+ font-size: 24px;
121
+ }
122
+ p.authornote {
123
+ font-size: 18px;
124
+ }
125
+ p.date {
126
+ font-size: 18px;
127
+ }
128
+
129
+
130
+ /* Table of Contents etc. */
131
+
132
+
133
+ /* Mini Table of Contents */
134
+
135
+
136
+ /* Footnotes */
137
+ a:link.footnote, a:visited.footnote {
138
+ font-size: 9px;
139
+ text-decoration: none;
140
+ }
141
+ p.footnotes, ol.footnotes, li.footnotes {
142
+ font-size: 12px;
143
+ }
144
+ p.footnotes {
145
+ font-weight: bold;
146
+ }
147
+
148
+
149
+ /* OpenOffice compatible footnotes */
150
+ .sdfootnoteanc {
151
+ font-size: 9px;
152
+ }
153
+ .sdfootnotesym, .sdfootnote {
154
+ font-size: 12px;
155
+ }
156
+
157
+
158
+ /* Bibliography */
159
+
160
+
161
+ /* Index */
162
+
163
+
164
+ /* Marker */
165
+ div.note, div.warning, div.caution, div.important {
166
+ font-family: Verdana, "Myriad Web", Syntax, sans-serif;
167
+ font-size: 12px;
168
+ }
169
+
170
+
171
+ /* Header, Footer */
172
+
173
+
174
+ /* Validate HTML */
175
+
176
+
177
+ /* TabBar */
178
+ .tabBarLeft, .tabBarRight, .tabBarTop, .tabBarBottom {
179
+ font-size: 10px;
180
+ }
181
+ a.tabBarEntry {
182
+ text-decoration: none;
183
+ font-family: Verdana, "Myriad Web", Syntax, sans-serif;
184
+ }
185
+
186
+ /* ProgressBar */
187
+ span.progress {
188
+ font-size: 10px;
189
+ }
190
+
@@ -0,0 +1,11 @@
1
+ /* A sample style sheet for use with deplate generated html files */
2
+ /* @Author: Thomas Link (samul AT web.de) */
3
+ /* @Created: 13-Apr-2004. */
4
+ /* @Last Change: 18-Nov-2004. */
5
+ /* @Revision: 0.550 */
6
+
7
+ @import url(text-serif.css) print;
8
+ @import url(text-sans-serif.css) screen;
9
+
10
+ @import url(layout-deplate.css) all;
11
+
@@ -0,0 +1,91 @@
1
+ @import url(deplate.css);
2
+
3
+ body {
4
+ background-color: #e0e0ff;
5
+ }
6
+ div.tabBar {
7
+ }
8
+ div.tabBodyFrame {
9
+ }
10
+ div.tabBody {
11
+ }
12
+ div.tabFrameRow {
13
+ display: table-row;
14
+ }
15
+
16
+ #tabFrame {
17
+ display: table;
18
+ }
19
+ #tabBar {
20
+ display: table-cell;
21
+ width: 140px;
22
+ padding: 0;
23
+ border: 0;
24
+ margin: 10px 10px 0 10px;
25
+ background-color: #e9e9ff;
26
+ position: fixed;
27
+ }
28
+ #tabBodyFrame {
29
+ display: table-cell;
30
+ width: 800px;
31
+ }
32
+ #tabBody {
33
+ /* margin-top: 0; */
34
+ }
35
+
36
+
37
+ .tabBarLeft {
38
+ background-color: #f0f0f0;
39
+ max-width: 145px;
40
+ width: 145px;
41
+ }
42
+ table.tabBarLeft {
43
+ /* margin: 10px; */
44
+ /* padding: 10px; */
45
+ /* border: 1px dashed #cae0ea; */
46
+ /* border: 1px outset #cae0ea; */
47
+ border: 0;
48
+ border-spacing: 0;
49
+ max-width: 140px;
50
+ }
51
+ tr.tabBarLeft {
52
+ }
53
+ td.tabBarLeft {
54
+ }
55
+
56
+ .tabBarLeftActive {
57
+ background-color: #fafafa;
58
+ }
59
+ tr.tabBarLeftActive {
60
+ }
61
+ td.tabBarLeftActive {
62
+ border: 1px inset #e0e0e0;
63
+ /* border-left: 4px solid #e0e0e0; */
64
+ /* border-right: 4px solid #afafaf; */
65
+ padding: 2px;
66
+ }
67
+
68
+ .tabBarLeftInactive {
69
+ background-color: #f0f0f0;
70
+ }
71
+ tr.tabBarLeftInactive {
72
+ }
73
+ td.tabBarLeftInactive {
74
+ border: 1px solid #fafafa;
75
+ /* border-left: 4px solid #afafaf; */
76
+ /* border-right: 4px solid #e0e0e0; */
77
+ padding: 2px;
78
+ }
79
+
80
+ .tabBarLeftButtons {
81
+ }
82
+ tr.tabBarLeftButtons {
83
+ border: 0;
84
+ }
85
+ td.tabBarLeftButtons {
86
+ background-color: #f0f0f0;
87
+ border: 1px solid #fafafa;
88
+ padding: 2px;
89
+ text-align: center;
90
+ }
91
+
@@ -0,0 +1,14 @@
1
+ @media screen {
2
+ #tabBody {
3
+ margin: 0px 40px 40px 240px;
4
+ padding: 20px;
5
+ }
6
+ #tabBar {
7
+ position: relative;
8
+ top: 10px;
9
+ left: 10px;
10
+ }
11
+ table.tabBarRight {
12
+ border-collapse: collapse;
13
+ }
14
+ }
@@ -0,0 +1,118 @@
1
+ @import url(deplate.css);
2
+
3
+ body {
4
+ background-color: #e0e0ff;
5
+ }
6
+
7
+ #tabFrame {
8
+ /* display: table; */
9
+ /* border-spacing: 0; */
10
+ background-color: #e0e0ff;
11
+ border-spacing: 0;
12
+ border-collapse: collapse;
13
+ border: 0;
14
+ margin-left: 20px;
15
+ }
16
+ #tabBar {
17
+ /* display: table-cell; */
18
+ /* position: absolute; */
19
+ /* top: 0; */
20
+ position: fixed;
21
+ left: 780px;
22
+ text-align: left;
23
+ vertical-align: top;
24
+ width: 140px;
25
+ border: 0;
26
+ padding: 10px 0 0 0;
27
+ margin: 0;
28
+ background-color: #e0e0ff;
29
+ }
30
+ #tabBodyFrame {
31
+ /* display: table-cell; */
32
+ /* position: absolute; */
33
+ /* top: 0; */
34
+ /* left: 0; */
35
+ float: left;
36
+ text-align: left;
37
+ vertical-align: top;
38
+ background-color: #e0e0ff;
39
+ width: 750px;
40
+ padding: 0;
41
+ margin: 0;
42
+ border: 0;
43
+ }
44
+ #tabBody {
45
+ background-color: #ffffff;
46
+ text-align: left;
47
+ vertical-align: top;
48
+ border: 0;
49
+ border: 1px dashed #cae0ea;
50
+ /* border: 1px solid #cae0ea; */
51
+ padding: 10px;
52
+ /* margin: 10px 0 10px 10px; */
53
+ margin: 10px;
54
+ /* width: 700px; */
55
+ }
56
+
57
+ .tabFrameRow {
58
+ /* display: table-row; */
59
+ background-color: #e0e0ff;
60
+ border: 0;
61
+ }
62
+ .tabFrameCell {
63
+ /* display: table-cell; */
64
+ background-color: #e0e0ff;
65
+ border: 0;
66
+ }
67
+
68
+ .tabBarRight {
69
+ background-color: #f0f0f0;
70
+ }
71
+ table.tabBarRight {
72
+ border: 10px solid #f0f0f0;
73
+ margin: 0;
74
+ /* padding: 10px; */
75
+ border-spacing: 0;
76
+ max-width: 140px;
77
+ }
78
+ tr.tabBarRight {
79
+ }
80
+ td.tabBarRight {
81
+ }
82
+
83
+ .tabBarRightActive {
84
+ background-color: #fafafa;
85
+ }
86
+ tr.tabBarRightActive {
87
+ }
88
+ td.tabBarRightActive {
89
+ border: 1px inset #e0e0e0;
90
+ /* border-left: 4px solid #e0e0e0; */
91
+ /* border-right: 4px solid #afafaf; */
92
+ padding: 2px;
93
+ }
94
+
95
+ .tabBarRightInactive {
96
+ background-color: #f0f0f0;
97
+ }
98
+ tr.tabBarRightInactive {
99
+ }
100
+ td.tabBarRightInactive {
101
+ border: 1px solid #fafafa;
102
+ /* border-left: 4px solid #afafaf; */
103
+ /* border-right: 4px solid #e0e0e0; */
104
+ padding: 2px;
105
+ }
106
+
107
+ .tabBarRightButtons {
108
+ }
109
+ tr.tabBarRightButtons {
110
+ border: 0;
111
+ }
112
+ td.tabBarRightButtons {
113
+ background-color: #f0f0f0;
114
+ border: 1px solid #fafafa;
115
+ padding: 2px;
116
+ text-align: center;
117
+ }
118
+
@@ -0,0 +1,64 @@
1
+ @import url(deplate.css);
2
+
3
+ #tabFrame {
4
+ position: absolute;
5
+ top: 0;
6
+ left: 10%;
7
+ text-align: left;
8
+ width: 100%;
9
+ }
10
+ #tabBar {
11
+ padding: 0;
12
+ border: 0;
13
+ margin: 10px 0 0 0;
14
+ background-color: #e9e9ff;
15
+ }
16
+ #tabBodyFrame {
17
+ /* text-align: left; */
18
+ width: 80%;
19
+ padding: 0;
20
+ }
21
+ #tabBody {
22
+ background-color: #ffffff;
23
+ text-align: left;
24
+ vertical-align: top;
25
+ margin-top: 0;
26
+ padding: 10px;
27
+ border: 1px dashed #cae0ea;
28
+ }
29
+
30
+ table.tabBarTop {
31
+ border: 0;
32
+ margin: 0;
33
+ padding: 0;
34
+ width: 80%;
35
+ border-spacing: 0;
36
+ position: relative;
37
+ top: 1px;
38
+ }
39
+ tr.tabBarTop {
40
+ border: 0;
41
+ margin: 0;
42
+ padding: 0;
43
+ }
44
+ td.tabBarTopActive {
45
+ margin: 0;
46
+ border-top: 1px dashed #cae0ea;
47
+ border-left: 1px dashed #cae0ea;
48
+ border-right: 1px dashed #cae0ea;
49
+ border-bottom: 0;
50
+ background-color: #ffffff;
51
+ text-align: center;
52
+ }
53
+ td.tabBarTopInactive {
54
+ margin: 0;
55
+ border-bottom: 1px dashed #cae0ea;
56
+ background-color: #f0f0f0;
57
+ text-align: center;
58
+ }
59
+
60
+ div.pageicons {
61
+ text-align: right;
62
+ margin: 10px 0 10px 0;
63
+ }
64
+