deplate 0.8.4 → 0.8.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.TXT +118 -0
- data/NEWS.TXT +6 -21
- data/VERSION.TXT +1 -1
- data/etc/deplate.ini +15 -2
- data/lib/action_view/helpers/deplate.rb +0 -0
- data/lib/deplate/abstract-class.rb +3 -2
- data/lib/deplate/bib.rb +3 -2
- data/lib/deplate/builtin.rb +3 -2
- data/lib/deplate/cache.rb +3 -2
- data/lib/deplate/commands.rb +3 -11
- data/lib/deplate/common.rb +7 -2
- data/lib/deplate/compat.rb +21 -0
- data/lib/deplate/compat/parsedate.rb +24 -0
- data/lib/deplate/converter.rb +3 -2
- data/lib/deplate/core.rb +135 -103
- data/lib/deplate/counters.rb +3 -2
- data/lib/deplate/css/article.css +2 -2
- data/lib/deplate/css/doc.css +3 -2
- data/lib/deplate/css/heading-navbar.css +2 -2
- data/lib/deplate/css/highlight.css +0 -0
- data/lib/deplate/css/layout-deplate-print.css +2 -2
- data/lib/deplate/css/layout-deplate.css +2 -2
- data/lib/deplate/css/presentation.css +2 -2
- data/lib/deplate/css/sans-serif.css +2 -2
- data/lib/deplate/css/screenplay.css +0 -0
- data/lib/deplate/css/serif-e.css +2 -2
- data/lib/deplate/css/serif-rel.css +3 -2
- data/lib/deplate/css/serif.css +2 -2
- data/lib/deplate/css/slides.css +3 -2
- data/lib/deplate/css/tabbar-top.css +2 -2
- data/lib/deplate/css/text-sans-serif.css +3 -2
- data/lib/deplate/css/text-serif.css +2 -2
- data/lib/deplate/css/website.css +0 -0
- data/lib/deplate/define.rb +3 -2
- data/lib/deplate/deplate-string.rb +3 -2
- data/lib/deplate/docbook.rb +4 -14
- data/lib/deplate/elements.rb +37 -4
- data/lib/deplate/encoding.rb +57 -0
- data/lib/deplate/etc.rb +7 -5
- data/lib/deplate/external.rb +5 -13
- data/lib/deplate/fmt/dbk-article-4.1.2.rb +3 -2
- data/lib/deplate/fmt/dbk-article.rb +3 -2
- data/lib/deplate/fmt/dbk-book.rb +3 -2
- data/lib/deplate/fmt/dbk-ref.rb +3 -2
- data/lib/deplate/fmt/dbk-slides.rb +3 -2
- data/lib/deplate/fmt/dbk-snippet.rb +3 -2
- data/lib/deplate/fmt/html-snippet.rb +3 -2
- data/lib/deplate/fmt/html.rb +40 -27
- data/lib/deplate/fmt/htmlsite.rb +3 -2
- data/lib/deplate/fmt/htmlslides.rb +3 -2
- data/lib/deplate/fmt/htmlwebsite.rb +3 -2
- data/lib/deplate/fmt/latex-dramatist.rb +2 -1
- data/lib/deplate/fmt/latex-snippet.rb +3 -2
- data/lib/deplate/fmt/latex.rb +88 -67
- data/lib/deplate/fmt/null.rb +3 -2
- data/lib/deplate/fmt/php.rb +3 -2
- data/lib/deplate/fmt/phpsite.rb +3 -2
- data/lib/deplate/fmt/plain.rb +4 -3
- data/lib/deplate/fmt/sweave.rb +104 -0
- data/lib/deplate/fmt/template.rb +3 -2
- data/lib/deplate/fmt/xhtml10t.rb +82 -2
- data/lib/deplate/fmt/xhtml11m.rb +3 -2
- data/lib/deplate/formatter-snippet.rb +3 -2
- data/lib/deplate/formatter.rb +203 -29
- data/lib/deplate/guesslanguage.rb +3 -2
- data/lib/deplate/input.rb +9 -8
- data/lib/deplate/input/deplate-headings.rb +3 -2
- data/lib/deplate/input/deplate-restricted.rb +3 -2
- data/lib/deplate/input/deplate.rb +3 -2
- data/lib/deplate/input/play.rb +3 -2
- data/lib/deplate/input/rdoc.rb +3 -2
- data/lib/deplate/input/template.rb +3 -2
- data/lib/deplate/lib/Makefile.config +8 -0
- data/lib/deplate/locale/de.latin1 +6 -0
- data/lib/deplate/macros.rb +4 -2
- data/lib/deplate/messages.rb +9 -5
- data/lib/deplate/metadata.rb +3 -2
- data/lib/deplate/metadata/marshal.rb +3 -2
- data/lib/deplate/metadata/xml.rb +3 -2
- data/lib/deplate/metadata/yaml.rb +3 -2
- data/lib/deplate/mod/anyword.rb +3 -2
- data/lib/deplate/mod/babelfish.rb +3 -2
- data/lib/deplate/mod/code-coderay.rb +3 -2
- data/lib/deplate/mod/code-gvim.rb +3 -2
- data/lib/deplate/mod/code-gvim71.rb +3 -2
- data/lib/deplate/mod/code-highlight.rb +3 -2
- data/lib/deplate/mod/colored-log.rb +3 -2
- data/lib/deplate/mod/encode.rb +33 -0
- data/lib/deplate/mod/endnotes.rb +3 -2
- data/lib/deplate/mod/entities-decode.rb +2 -1
- data/lib/deplate/mod/entities-encode.rb +2 -1
- data/lib/deplate/mod/guesslanguage.rb +3 -2
- data/lib/deplate/mod/html-asciimath.rb +3 -2
- data/lib/deplate/mod/html-deplate-button.rb +3 -2
- data/lib/deplate/mod/html-headings-navbar.rb +3 -2
- data/lib/deplate/mod/html-highstep.rb +3 -2
- data/lib/deplate/mod/html-jsmath.rb +3 -2
- data/lib/deplate/mod/html-mathml.rb +2 -1
- data/lib/deplate/mod/html-obfuscate-email.rb +3 -2
- data/lib/deplate/mod/html-sidebar.rb +3 -2
- data/lib/deplate/mod/htmlslides-navbar-fh.rb +3 -2
- data/lib/deplate/mod/iconv.rb +3 -2
- data/lib/deplate/mod/imgurl.rb +4 -3
- data/lib/deplate/mod/inlatex-compound.rb +3 -2
- data/lib/deplate/mod/koma.rb +3 -2
- data/lib/deplate/mod/lang-de.rb +3 -2
- data/lib/deplate/mod/lang-en.rb +3 -2
- data/lib/deplate/mod/lang-ru-koi8-r.rb +3 -2
- data/lib/deplate/mod/lang-ru.rb +3 -2
- data/lib/deplate/mod/lang-zh_CN-autospace.rb +3 -2
- data/lib/deplate/mod/lang-zh_CN.rb +3 -2
- data/lib/deplate/mod/latex-emph-table-head.rb +3 -2
- data/lib/deplate/mod/latex-styles.rb +3 -2
- data/lib/deplate/mod/latex-verbatim-small.rb +3 -2
- data/lib/deplate/mod/linkmap.rb +2 -1
- data/lib/deplate/mod/makefile.rb +39 -46
- data/lib/deplate/mod/mark-external-urls.rb +3 -2
- data/lib/deplate/mod/markup-1-warn.rb +3 -2
- data/lib/deplate/mod/markup-1.rb +3 -2
- data/lib/deplate/mod/navbar-png.rb +3 -2
- data/lib/deplate/mod/noindent.rb +3 -2
- data/lib/deplate/mod/numpara.rb +3 -2
- data/lib/deplate/mod/particle-math.rb +3 -2
- data/lib/deplate/mod/php-extra.rb +3 -2
- data/lib/deplate/mod/pstoedit.rb +3 -2
- data/lib/deplate/mod/recode.rb +3 -2
- data/lib/deplate/mod/smart-dash.rb +3 -2
- data/lib/deplate/mod/smiley.rb +3 -2
- data/lib/deplate/mod/soffice.rb +3 -2
- data/lib/deplate/mod/symbols-latin1.rb +8 -2
- data/lib/deplate/mod/symbols-od-utf-8.rb +3 -2
- data/lib/deplate/mod/symbols-plain.rb +3 -2
- data/lib/deplate/mod/symbols-sgml.rb +6 -5
- data/lib/deplate/mod/symbols-utf-8.rb +6 -5
- data/lib/deplate/mod/symbols-xml.rb +3 -2
- data/lib/deplate/mod/syntax-region-alt.rb +3 -2
- data/lib/deplate/mod/utf8.rb +3 -2
- data/lib/deplate/mod/validate-html.rb +3 -2
- data/lib/deplate/mod/xmlrpc.rb +3 -2
- data/lib/deplate/nukumi2.rb +3 -2
- data/lib/deplate/once-method.rb +3 -2
- data/lib/deplate/output.rb +3 -2
- data/lib/deplate/particles.rb +12 -6
- data/lib/{ps2ppm.rb → deplate/ps2ppm.rb} +11 -11
- data/lib/deplate/regions.rb +75 -52
- data/lib/deplate/skeletons.rb +3 -2
- data/lib/deplate/structured.rb +8 -24
- data/lib/deplate/template.rb +3 -2
- data/lib/deplate/themes/presentation.html/css/presentation.css +2 -2
- data/lib/deplate/themes/presentation.html/prelude.txt +1 -1
- data/lib/deplate/themes/presentation.html/resources/spacer.png +0 -0
- data/lib/deplate/themes/s5.xhtml/README.TXT +2 -0
- data/lib/deplate/themes/s5.xhtml/templates/s5.xhtml +42 -0
- data/lib/deplate/themes/s5.xhtml/theme.ini +11 -0
- data/lib/deplate/variables.rb +12 -2
- data/lib/deplate/wiki-markup.rb +3 -2
- data/lib/deplate/xml.rb +19 -21
- data/lib/deplate/zh_CN.rb +3 -2
- data/man/man1/deplate.1 +83 -128
- metadata +16 -4
data/lib/deplate/wiki-markup.rb
CHANGED
@@ -1,10 +1,11 @@
|
|
1
|
+
# encoding: ASCII
|
1
2
|
# wiki-markup.rb
|
2
3
|
# @Author: Thomas Link (micathom AT gmail com)
|
3
4
|
# @Website: http://deplate.sf.net/
|
4
5
|
# @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
|
5
6
|
# @Created: 10-M�r-2005.
|
6
|
-
# @Last Change:
|
7
|
-
# @Revision: 0.
|
7
|
+
# @Last Change: 2009-02-02.
|
8
|
+
# @Revision: 0.286
|
8
9
|
#
|
9
10
|
# = Description
|
10
11
|
# Various elements for defining input filters
|
data/lib/deplate/xml.rb
CHANGED
@@ -1,31 +1,28 @@
|
|
1
|
+
# encoding: ASCII
|
1
2
|
# xml.rb
|
2
3
|
# @Author: Thomas Link (micathom AT gmail com)
|
3
4
|
# @Website: http://deplate.sf.net/
|
4
5
|
# @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
|
5
6
|
# @Created: 17-M�r-2004.
|
6
|
-
# @Last Change:
|
7
|
-
# @Revision: 0.
|
8
|
-
#
|
9
|
-
# TODO:
|
10
|
-
# -
|
7
|
+
# @Last Change: 2009-02-05.
|
8
|
+
# @Revision: 0.2335
|
11
9
|
|
12
|
-
|
13
|
-
|
14
|
-
require "deplate/structured"
|
10
|
+
require 'deplate/structured'
|
15
11
|
|
12
|
+
# An abstract xml formatter
|
16
13
|
class Deplate::Formatter::XML < Deplate::Formatter::Structured
|
17
|
-
self.suffix =
|
14
|
+
self.suffix = '.xml'
|
18
15
|
|
19
16
|
def initialize(deplate, args)
|
20
17
|
deplate.options.indentation_level = [0]
|
21
18
|
super
|
22
19
|
@special_symbols = {
|
23
|
-
"
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
20
|
+
'"' => Proc.new {|e| symbol_quote(nil)},
|
21
|
+
'&' => Proc.new {|e| symbol_amp(nil)},
|
22
|
+
# '�' => Proc.new {|e| symbol_paragraph(nil)},
|
23
|
+
'<' => Proc.new {|e| symbol_lt(nil)},
|
24
|
+
'>' => Proc.new {|e| symbol_gt(nil)},
|
25
|
+
' ' => Proc.new {|e| e ? nonbreakingspace(nil) : ' '},
|
29
26
|
}
|
30
27
|
build_plain_text_rx
|
31
28
|
@encodings = {
|
@@ -36,7 +33,7 @@ class Deplate::Formatter::XML < Deplate::Formatter::Structured
|
|
36
33
|
|
37
34
|
def pre_process
|
38
35
|
super
|
39
|
-
@encoding = canonic_enc_name(@deplate.variables[
|
36
|
+
@encoding = canonic_enc_name(@deplate.variables['encoding'] || 'utf-8')
|
40
37
|
if @deplate.options.symbols_encoding
|
41
38
|
symbols = @deplate.options.symbols_encoding
|
42
39
|
elsif @deplate.variables['sgml']
|
@@ -67,9 +64,9 @@ class Deplate::Formatter::XML < Deplate::Formatter::Structured
|
|
67
64
|
end
|
68
65
|
|
69
66
|
def prepare
|
70
|
-
creator = [
|
71
|
-
|
72
|
-
|
67
|
+
creator = ['===================================================',
|
68
|
+
'== Created with deplate (http://deplate.sf.net) ==',
|
69
|
+
'===================================================']
|
73
70
|
output_at(:pre, :doc_def, get_doc_def({:deplate => @deplate}))
|
74
71
|
output_at(:pre, :doc_def, get_comment(creator))
|
75
72
|
output_at(:pre, :doc_beg, get_doc_open({}))
|
@@ -86,9 +83,10 @@ class Deplate::Formatter::XML < Deplate::Formatter::Structured
|
|
86
83
|
end
|
87
84
|
|
88
85
|
def plain_text(text, escaped=false, vapor_space=true)
|
86
|
+
# p "DBG", text, caller[0..3]
|
89
87
|
super(text, escaped) do |accum|
|
90
88
|
if vapor_space
|
91
|
-
accum.join.gsub(/ {2,}/,
|
89
|
+
accum.join.gsub(/ {2,}/, ' ')
|
92
90
|
else
|
93
91
|
accum.join
|
94
92
|
end
|
@@ -96,7 +94,7 @@ class Deplate::Formatter::XML < Deplate::Formatter::Structured
|
|
96
94
|
end
|
97
95
|
|
98
96
|
def encode_id(text)
|
99
|
-
text ? text.gsub(/\W/,
|
97
|
+
text ? text.gsub(/\W/, '00') : ''
|
100
98
|
end
|
101
99
|
|
102
100
|
def get_comment(strings)
|
data/lib/deplate/zh_CN.rb
CHANGED
@@ -1,10 +1,11 @@
|
|
1
|
+
# encoding: ASCII
|
1
2
|
# zh-cn.rb -- Simplified Chinese messages
|
2
3
|
# @Author: Thomas Link; localization by Jjgod Jiang (gzjjgod AT 21cn com)
|
3
4
|
# @Website: http://deplate.sf.net/
|
4
5
|
# @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
|
5
6
|
# @Created: 01-Aug-2004.
|
6
|
-
# @Last Change:
|
7
|
-
# @Revision: 0.
|
7
|
+
# @Last Change: 2009-02-02.
|
8
|
+
# @Revision: 0.219
|
8
9
|
|
9
10
|
require 'deplate/messages'
|
10
11
|
|
data/man/man1/deplate.1
CHANGED
@@ -2,39 +2,36 @@
|
|
2
2
|
.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
|
3
3
|
.\" Instead of manually editing it, you probably should edit the DocBook XML
|
4
4
|
.\" source for it and then use the DocBook XSL Stylesheets to regenerate it.
|
5
|
-
.TH "DEPLATE" "1" "06.
|
5
|
+
.TH "DEPLATE" "1" "06. Feb 2009" "" ""
|
6
6
|
.\" disable hyphenation
|
7
7
|
.nh
|
8
8
|
.\" disable justification (adjust text to left margin only)
|
9
9
|
.ad l
|
10
10
|
.SH "NAME"
|
11
|
-
deplate \- Deplate 0.8.
|
11
|
+
deplate \- Deplate 0.8.5 \-\- convert wiki\-like markup to latex, docbook, html, or "html\-slides"
|
12
12
|
.SH "USAGE"
|
13
13
|
.PP
|
14
14
|
The command\-line options:
|
15
15
|
.sp
|
16
16
|
.nf
|
17
17
|
Usage: deplate.rb [OPTIONS] FILE [OTHER FILES ...]
|
18
|
-
deplate is a free software with ABSOLUTELY NO WARRANTY
|
19
|
-
under
|
18
|
+
deplate is a free software with ABSOLUTELY NO WARRANTY under
|
20
19
|
the terms of the GNU General Public License version 2.
|
21
20
|
General Options:
|
22
21
|
\-a, \-\-[no\-]ask On certain actions,
|
23
22
|
query user before overwriting files
|
24
23
|
\-A, \-\-allow ALLOW Allow certain things:
|
25
24
|
l, r, t, w, W, x, X, $
|
26
|
-
\-c, \-\-config FILE Alternative user
|
27
|
-
|
28
|
-
\-\-[no\-]clean Clean up temporary
|
29
|
-
files
|
25
|
+
\-c, \-\-config FILE Alternative user cfg
|
26
|
+
file
|
27
|
+
\-\-[no\-]clean Clean up temporary files
|
30
28
|
\-\-color Colored output
|
31
|
-
\-\-css NAME Copy NAME.css to
|
32
|
-
|
33
|
-
\-\-copy\-css NAME Copy NAME.css to
|
34
|
-
|
29
|
+
\-\-css NAME Copy NAME.css to the
|
30
|
+
destination directory, if inexistent
|
31
|
+
\-\-copy\-css NAME Copy NAME.css to the
|
32
|
+
destination directory
|
35
33
|
\-d, \-\-dir DIR Output directory
|
36
|
-
\-D, \-\-define NAME=VALUE Define a document
|
37
|
-
option
|
34
|
+
\-D, \-\-define NAME=VALUE Define a document option
|
38
35
|
\-e, \-\-[no\-]each Handle each file
|
39
36
|
separately
|
40
37
|
\-\-[no\-]force Force output
|
@@ -42,14 +39,14 @@ General Options:
|
|
42
39
|
html)
|
43
40
|
\-\-[no\-]included Output body only
|
44
41
|
\-i, \-\-input NAME Input definition
|
45
|
-
\-\-list FILE A file that contains
|
46
|
-
|
42
|
+
\-\-list FILE A file that contains a
|
43
|
+
list of input files
|
47
44
|
\-\-log FILE A file (or \- for
|
48
45
|
stdout) where to put the log
|
49
|
-
\-\-[no\-]loop Read from stdin
|
50
|
-
|
51
|
-
\-\-metadata [NAME] Save metadata in
|
52
|
-
|
46
|
+
\-\-[no\-]loop Read from stdin forever
|
47
|
+
and ever
|
48
|
+
\-\-metadata [NAME] Save metadata in this
|
49
|
+
format (default: yaml)
|
53
50
|
\-m, \-\-module MODULE Load a module
|
54
51
|
\-o, \-\-out FILE Output to file or
|
55
52
|
stdout ('\-')
|
@@ -65,74 +62,69 @@ General Options:
|
|
65
62
|
names
|
66
63
|
\-\-split\-level LEVEL Heading level for
|
67
64
|
splitting
|
68
|
-
\-\-suffix SUFFIX Suffix for output
|
69
|
-
files
|
65
|
+
\-\-suffix SUFFIX Suffix for output files
|
70
66
|
\-t, \-\-template NAME Template to use
|
71
67
|
\-\-theme THEME Theme to use
|
72
|
-
\-\-[no\-]vanilla Ignore user
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
of
|
68
|
+
\-\-[no\-]vanilla Ignore user
|
69
|
+
configuration
|
70
|
+
\-x, \-\-allow\-ruby [RUBY SAFE] Allow the execution of
|
71
|
+
ruby code
|
72
|
+
\-X, \-\-[no\-]allow\-exec Allow the execution of
|
73
|
+
helper applications
|
77
74
|
\-\-[no\-]external
|
78
|
-
|
79
75
|
|
80
76
|
LaTeX Formatter:
|
81
|
-
\-\-[no\-]pdf Prepare for use
|
82
|
-
|
83
|
-
|
77
|
+
\-\-[no\-]pdf Prepare for use with
|
78
|
+
pdf(la)tex
|
84
79
|
|
85
80
|
Available input defintions:
|
86
|
-
deplate, deplate\-headings, deplate\-restricted, play,
|
87
|
-
|
88
|
-
|
81
|
+
deplate, deplate\-headings, deplate\-restricted, play, rdoc,
|
82
|
+
template
|
89
83
|
|
90
84
|
Available formatters:
|
91
|
-
dbk\-article, dbk\-article\-4.1.2, dbk\-book, dbk\-ref,
|
92
|
-
dbk\-snippet, html, html\-snippet, htmlsite,
|
93
|
-
htmlwebsite, latex, latex\-dramatist,
|
94
|
-
php, phpsite, plain,
|
95
|
-
|
85
|
+
dbk\-article, dbk\-article\-4.1.2, dbk\-book, dbk\-ref,
|
86
|
+
dbk\-slides, dbk\-snippet, html, html\-snippet, htmlsite,
|
87
|
+
htmlslides, htmlwebsite, latex, latex\-dramatist,
|
88
|
+
latex\-snippet, null, php, phpsite, plain, sweave, template,
|
89
|
+
xhtml10t, xhtml11m
|
96
90
|
|
97
91
|
Available metadata formats:
|
98
92
|
marshal, xml, yaml
|
99
|
-
|
100
93
|
|
101
94
|
Available modules:
|
102
95
|
anyword, babelfish, code\-coderay, code\-gvim, code\-gvim71,
|
103
|
-
code\-highlight, colored\-log,
|
104
|
-
entities\-
|
105
|
-
html\-
|
96
|
+
code\-highlight, colored\-log, encode, endnotes,
|
97
|
+
entities\-decode, entities\-encode, guesslanguage,
|
98
|
+
html\-asciimath, html\-deplate\-button, html\-headings\-navbar,
|
99
|
+
html\-highstep, html\-jsmath, html\-mathml,
|
106
100
|
html\-obfuscate\-email, html\-sidebar, htmlslides\-navbar\-fh,
|
107
101
|
iconv, imgurl, inlatex\-compound, koma, lang\-de, lang\-en,
|
108
102
|
lang\-ru, lang\-ru\-koi8\-r, lang\-zh_CN, lang\-zh_CN\-autospace,
|
109
103
|
latex\-emph\-table\-head, latex\-styles, latex\-verbatim\-small,
|
110
|
-
linkmap, makefile, mark\-external\-urls, markup\-1,
|
111
|
-
navbar\-png, noindent, numpara, particle\-math,
|
112
|
-
pstoedit, recode, smart\-dash, smiley, soffice,
|
113
|
-
symbols\-od\-utf\-8, symbols\-plain,
|
114
|
-
symbols\-
|
115
|
-
xmlrpc
|
116
|
-
|
104
|
+
linkmap, makefile, mark\-external\-urls, markup\-1,
|
105
|
+
markup\-1\-warn, navbar\-png, noindent, numpara, particle\-math,
|
106
|
+
php\-extra, pstoedit, recode, smart\-dash, smiley, soffice,
|
107
|
+
symbols\-latin1, symbols\-od\-utf\-8, symbols\-plain,
|
108
|
+
symbols\-sgml, symbols\-utf\-8, symbols\-xml, syntax\-region\-alt,
|
109
|
+
utf8, validate\-html, xmlrpc
|
117
110
|
|
118
111
|
Available themes:
|
119
|
-
|
120
|
-
|
112
|
+
navbar\-right.html, presentation.html, s5.xhtml
|
121
113
|
|
122
114
|
Available css files:
|
123
|
-
article, deplate, doc, heading\-navbar,
|
124
|
-
layout\-deplate, layout\-deplate\-print, play,
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
115
|
+
article, deplate, doc, heading\-navbar, highlight, highstep,
|
116
|
+
htmldoc, layout\-deplate, layout\-deplate\-print, play,
|
117
|
+
presentation, presentation_highstep, presentation_website,
|
118
|
+
sans\-serif, screenplay, serif, serif\-e, serif\-rel, slides,
|
119
|
+
styles, tabbar, tabbar\-left, tabbar\-right, tabbar\-right\-ie,
|
120
|
+
tabbar\-top, text\-sans\-serif, text\-serif, websitary, website
|
129
121
|
|
130
122
|
Available templates:
|
131
|
-
html\-doc.html, html\-left\-tabbar\-js.html,
|
132
|
-
html\-tabbar
|
133
|
-
html\-tabbar\-right\-
|
134
|
-
html\-tabbar\-
|
135
|
-
|
123
|
+
html\-doc.html, html\-left\-tabbar\-js.html,
|
124
|
+
html\-left\-tabbar.html, html\-tabbar\-right\-pcomments.php,
|
125
|
+
html\-tabbar\-right\-step.html, html\-tabbar\-right\-table.html,
|
126
|
+
html\-tabbar\-right.html, html\-tabbar\-top.html,
|
127
|
+
html\-tabbar.html
|
136
128
|
|
137
129
|
Other Options:
|
138
130
|
\-\-debug [LEVEL] Show debug messages
|
@@ -140,8 +132,8 @@ Other Options:
|
|
140
132
|
\-\-[no\-]quiet Be quiet
|
141
133
|
\-v, \-\-[no\-]verbose Run verbosely
|
142
134
|
\-h, \-\-help Show this message
|
143
|
-
\-\-list\-modules [REGEXP] List modules matching
|
144
|
-
|
135
|
+
\-\-list\-modules [REGEXP] List modules matching a
|
136
|
+
pattern
|
145
137
|
\-\-list\-css [REGEXP] List css files matching
|
146
138
|
a pattern
|
147
139
|
\-\-version Show version
|
@@ -183,18 +175,18 @@ You can define document variables via the command line; if no value is provided
|
|
183
175
|
The option parser library, which
|
184
176
|
deplate
|
185
177
|
uses, doesn't deal well with spaces in command line arguments. This is why spaces have to be replaced with tildes; a tilde and backslashes have to be preceded with backslashes. Example:
|
186
|
-
\-D text=bla~bla\\~bla
|
178
|
+
\-D\ text=bla~bla\\~bla
|
187
179
|
sets the document variable
|
188
180
|
text
|
189
181
|
to "bla bla~bla". As a shell usually interpretes backslashes too, you would usually have to type
|
190
|
-
\-D text=bla~bla\\\\~bla.
|
182
|
+
\-D\ text=bla~bla\\\\~bla.
|
191
183
|
.TP
|
192
184
|
\-e
|
193
185
|
Process each file separately
|
194
186
|
.TP
|
195
187
|
\-m, \-\-module MODULE
|
196
188
|
Load an add\-on/module (after loading the core and the formatter); modules reside in the deplate library directory or in the user configuration directory ("~/.deplate/mod/"); type
|
197
|
-
deplate \-\-help
|
189
|
+
deplate\ \-\-help
|
198
190
|
to see a list of available modules.
|
199
191
|
.sp
|
200
192
|
After loading the module, deplate searches for the file "~/.deplate/after/mod/NAME.rb" which will be loaded if found.
|
@@ -203,46 +195,10 @@ German, Chinese, and Russian localizations are provided as modules.
|
|
203
195
|
.TP
|
204
196
|
\-p PATTERN, \-P PATTERN
|
205
197
|
Backslashes in the pattern must come in doubles; backslashes can be used to prevent the shell from expanding the pattern; e.g., in case you're using bash, you would usually type something like
|
206
|
-
\-p "\\\\*.txt"
|
198
|
+
\-p\ "\\\\*.txt"
|
207
199
|
.TP
|
208
200
|
\-\-theme THEME
|
209
|
-
|
210
|
-
.RS
|
211
|
-
.TP 3
|
212
|
-
\(bu
|
213
|
-
an ini file (THEME/theme.ini, see also
|
214
|
-
Usage
|
215
|
-
and
|
216
|
-
Configuration)
|
217
|
-
.TP
|
218
|
-
\(bu
|
219
|
-
css files (THEME/css/...)
|
220
|
-
.TP
|
221
|
-
\(bu
|
222
|
-
templates (THEME/templates/...)
|
223
|
-
.TP
|
224
|
-
\(bu
|
225
|
-
a library (THEME/lib/...)
|
226
|
-
.TP
|
227
|
-
\(bu
|
228
|
-
a prelude (THEME/prelude.txt)
|
229
|
-
.TP
|
230
|
-
\(bu
|
231
|
-
additional resources (THEME/resources/*)
|
232
|
-
.sp
|
233
|
-
All components are optional and are stored in either one of
|
234
|
-
.RS
|
235
|
-
.TP 3
|
236
|
-
\(bu
|
237
|
-
~/.deplate/themes/THEME/...
|
238
|
-
.TP
|
239
|
-
\(bu
|
240
|
-
~/.deplate/themes/THEME/...
|
241
|
-
.TP
|
242
|
-
\(bu
|
243
|
-
/lib/ruby/.../deplate/themes/THEME/...
|
244
|
-
.RE
|
245
|
-
.RE
|
201
|
+
See\ ??.
|
246
202
|
.TP
|
247
203
|
\-x, \-\-allow\-ruby [RUBY SAFE]
|
248
204
|
Ruby's SAFE variable has 5 levels (0=no checks/default .. 4=sandbox; at present, this also sets the SAFE variable for
|
@@ -274,7 +230,7 @@ deplate.rc
|
|
274
230
|
directory too; if you want to allow a
|
275
231
|
deplate.ini
|
276
232
|
file in this directory, you have the add
|
277
|
-
allow r
|
233
|
+
allow\ r
|
278
234
|
to your private deplate.ini file (usually in
|
279
235
|
~/.deplate/)
|
280
236
|
.TP
|
@@ -312,7 +268,7 @@ Allow referencing options by prepending a name with ":" in some situations (e.g.
|
|
312
268
|
.RE
|
313
269
|
.IP
|
314
270
|
You can remove the permission to do something by prepending a minus to the flag, e.g. by setting
|
315
|
-
\-\-allow \-x
|
271
|
+
\-\-allow\ \-x
|
316
272
|
on the command line after having allowed
|
317
273
|
x
|
318
274
|
in the deplate.ini file.
|
@@ -326,7 +282,7 @@ In multi\-file output, the file name is constructed from the top heading unless
|
|
326
282
|
.TP
|
327
283
|
auxiliaryDirSuffix
|
328
284
|
If defined, auxiliary files are saved in the subdirectory
|
329
|
-
#{basename FILENAME}#{auxiliaryDirSuffix}. E.g., if
|
285
|
+
#{basename\ FILENAME}#{auxiliaryDirSuffix}. E.g., if
|
330
286
|
auxiliaryDirSuffix
|
331
287
|
is "_files" and the current file is "Test", then auxiliary files (images, on\-the\-fly generated files that are passed to external applications etc.) are saved in "Test_files".
|
332
288
|
.SS "Editor support"
|
@@ -555,46 +511,45 @@ and/or
|
|
555
511
|
.PP
|
556
512
|
This file contains a sequence of commands. Each command must fit in one line. The following commands are allowed:
|
557
513
|
.TP
|
558
|
-
allow FLAGS
|
514
|
+
allow\ FLAGS
|
559
515
|
Allow
|
560
516
|
deplate
|
561
|
-
to do certain things(see
|
562
|
-
Usage)
|
517
|
+
to do certain things(see\ Usage)
|
563
518
|
.RS
|
564
519
|
.TP 3
|
565
520
|
\(bu
|
566
521
|
If you use deplate only for your own files, you might want to run deplate in "unsafe" mode by adding
|
567
|
-
allow all
|
522
|
+
allow\ all
|
568
523
|
to your deplate.ini file.
|
569
524
|
.RE
|
570
525
|
.TP
|
571
526
|
\-\-OPTION
|
572
527
|
Additional command line option
|
573
528
|
.TP
|
574
|
-
mod NAME
|
529
|
+
mod\ NAME
|
575
530
|
Load the module NAME
|
576
531
|
.TP
|
577
|
-
fmt NAME
|
532
|
+
fmt\ NAME
|
578
533
|
Set the standard formatter
|
579
534
|
.TP
|
580
|
-
clip NAME=VALUE
|
535
|
+
clip\ NAME=VALUE
|
581
536
|
Set the clip NAME (e.g., "author") to VALUE
|
582
537
|
.TP
|
583
|
-
wiki NAME.SUFFIX=BASEURL
|
538
|
+
wiki\ NAME.SUFFIX=BASEURL
|
584
539
|
Define an interwiki (the
|
585
540
|
.SUFFIX
|
586
541
|
part is optional)
|
587
542
|
.TP
|
588
|
-
wikichars UPPERCHARS LOWERCHARS
|
543
|
+
wikichars\ UPPERCHARS\ LOWERCHARS
|
589
544
|
Define which characters are allowed in wiki names
|
590
545
|
.TP
|
591
|
-
app NAME=COMMANDLINE
|
546
|
+
app\ NAME=COMMANDLINE
|
592
547
|
Define an external app (e.g., latex, dvips, R, dot, neato, pstoedit, identify, gs ...)
|
593
548
|
.RS
|
594
549
|
.TP 3
|
595
550
|
\(bu
|
596
551
|
If you get a
|
597
|
-
Exec format error
|
552
|
+
Exec\ format\ error
|
598
553
|
error, this is probably caused by a missing executable suffix. To avoid this error, redefine the app and add a
|
599
554
|
.exe
|
600
555
|
or similar to the name.
|
@@ -615,19 +570,19 @@ Although this may not always work as expected, you can also set some options by
|
|
615
570
|
option
|
616
571
|
keyword:
|
617
572
|
.TP
|
618
|
-
option NAME~
|
573
|
+
option\ NAME~
|
619
574
|
Set option NAME to false
|
620
575
|
.TP
|
621
|
-
option NAME!
|
576
|
+
option\ NAME!
|
622
577
|
Set option NAME to true
|
623
578
|
.TP
|
624
|
-
option NAME?=true|false|yes|no|on|off
|
579
|
+
option\ NAME?=true|false|yes|no|on|off
|
625
580
|
Set option NAME to a boolean value
|
626
581
|
.TP
|
627
|
-
option NAME%=INTEGER
|
582
|
+
option\ NAME%=INTEGER
|
628
583
|
Set option NAME to a numeric value
|
629
584
|
.TP
|
630
|
-
option NAME=VALUE
|
585
|
+
option\ NAME=VALUE
|
631
586
|
Set option NAME to VALUE as string
|
632
587
|
.PP
|
633
588
|
Lines beginning with one of
|
@@ -787,13 +742,13 @@ Some text that in multi\-file mode should appear in every output file, the end o
|
|
787
742
|
.PP
|
788
743
|
These commands take a list of slots (named or as numbers) as arguments. The slots can be single slots or ranges. They can be positive (add selectively) or negative (add with the exception of certain content). Examples:
|
789
744
|
.TP
|
790
|
-
#PREMATTER
|
745
|
+
#PREMATTER:\ \-doc_def
|
791
746
|
add the prematter without the document type definition
|
792
747
|
.TP
|
793
|
-
#PREMATTER
|
748
|
+
#PREMATTER:\ doc_def\ mod_packages\ mod_head
|
794
749
|
add the document type definition, and stuff added by modules
|
795
750
|
.TP
|
796
|
-
#PREMATTER
|
751
|
+
#PREMATTER:\ head_beg..prematter_end
|
797
752
|
add everything from the head on downwards
|
798
753
|
.PP
|
799
754
|
A slot cannot be consumed twice. I.e., if you use several template commands, the latter will not insert the content that was already inserted by the previous command.
|