The command-line options:
Usage: deplate.rb [OPTIONS] FILE [OTHER FILES ...]
deplate is a free software with ABSOLUTELY NO WARRANTY under
the terms of the GNU General Public License version 2.
General Options:
-a, --[no-]ask On certain actions,
query user before overwriting files
-A, --allow ALLOW Allow certain things:
l, r, t, w, W, x, X, $
-c, --config FILE Alternative user cfg
file
--[no-]clean Clean up temporary files
--color Colored output
--css NAME Copy NAME.css to the
destination directory, if inexistent
--copy-css NAME Copy NAME.css to the
destination directory
-d, --dir DIR Output directory
-D, --define NAME=VALUE Define a document option
-e, --[no-]each Handle each file
separately
--[no-]force Force output
-f, --format FORMAT Output format (default:
html)
--[no-]included Output body only
-i, --input NAME Input definition
--list FILE A file that contains a
list of input files
--log FILE A file (or - for
stdout) where to put the log
--[no-]loop Read from stdin forever
and ever
--metadata [NAME] Save metadata in this
format (default: yaml)
-m, --module MODULE Load a module
-o, --out FILE Output to file or
stdout ('-')
-p, --pattern GLOBPATTERN File name pattern
-P, --exclude GLOBPATTERN Excluded file name
pattern
-r, --[no-]recurse Recurse into directories
--reset-filecache Reset the file database
-R, --[no-]Recurse Recurse and rebuild
hierarchy
-s, --skeleton NAME Make skeleton available
--[no-]simple-names Disable simple wiki
names
--split-level LEVEL Heading level for
splitting
--suffix SUFFIX Suffix for output files
-t, --template NAME Template to use
--theme THEME Theme to use
--[no-]vanilla Ignore user
configuration
-x, --allow-ruby [RUBY SAFE] Allow the execution of
ruby code
-X, --[no-]allow-exec Allow the execution of
helper applications
--[no-]external
LaTeX Formatter:
--[no-]pdf Prepare for use with
pdf(la)tex
Available input defintions:
deplate, deplate-headings, deplate-restricted, play, rdoc,
template
Available formatters:
dbk-article, dbk-article-4.1.2, dbk-book, dbk-ref,
dbk-slides, dbk-snippet, html, html-snippet, htmlsite,
htmlslides, htmlwebsite, latex, latex-dramatist,
latex-snippet, null, php, phpsite, plain, sweave, template,
xhtml10t, xhtml11m
Available metadata formats:
marshal, xml, yaml
Available modules:
anyword, babelfish, code-coderay, code-gvim, code-gvim71,
code-highlight, colored-log, endnotes, entities-decode,
entities-encode, guesslanguage, html-asciimath,
html-deplate-button, html-headings-navbar, html-highstep,
html-jsmath, html-mathml, html-obfuscate-email,
html-sidebar, htmlslides-navbar-fh, iconv, imgurl,
inlatex-compound, koma, lang-de, lang-en, lang-ru,
lang-ru-koi8-r, lang-zh_CN, lang-zh_CN-autospace,
latex-emph-table-head, latex-styles, latex-verbatim-small,
linkmap, makefile, mark-external-urls, markup-1,
markup-1-warn, navbar-png, noindent, numpara, particle-math,
php-extra, pstoedit, recode, smart-dash, smiley, soffice,
symbols-latin1, symbols-od-utf-8, symbols-plain,
symbols-sgml, symbols-utf-8, symbols-xml, syntax-region-alt,
utf8, validate-html, xmlrpc
Available themes:
CVS, navbar-right.html, presentation.html, s5.xhtml
Available css files:
article, deplate, doc, heading-navbar, highlight, highstep,
htmldoc, layout-deplate, layout-deplate-print, play,
presentation, presentation_highstep, presentation_website,
sans-serif, screenplay, serif, serif-e, serif-rel, slides,
styles, tabbar, tabbar-left, tabbar-right, tabbar-right-ie,
tabbar-top, text-sans-serif, text-serif, websitary, website
Available templates:
html-doc.html, html-left-tabbar-js.html,
html-left-tabbar.html, html-tabbar-right-pcomments.php,
html-tabbar-right-step.html, html-tabbar-right-table.html,
html-tabbar-right.html, html-tabbar-top.html,
html-tabbar.html
Other Options:
--debug [LEVEL] Show debug messages
--[no-]profile Profile execution
--[no-]quiet Be quiet
-v, --[no-]verbose Run verbosely
-h, --help Show this message
--list-modules [REGEXP] List modules matching a
pattern
--list-css [REGEXP] List css files matching
a pattern
--version Show version
--microversion Show version
Typical uses of deplate are:
WikiIndex.txt first
Wiki_html; rebuild the directory structure of the input
files
Notes:
deplate 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:
-D text=bla~bla\~bla sets the document variable
text to “bla bla~bla”. As a shell usually
interpretes backslashes too, you would usually have to type
-D text=bla~bla\\~bla.
deplate --help to see a list of available modules.
-p "\\*.txt"
deplate itself, which doesn’t work with SAFE set to
4)
deplate with this command line option. In order to make
this permanent,
see 5.1.
#LANG command to automatically load a module of
the language’s name (this would make it possible for a malicious
user to load any module as deplate cannot
distinguish localization modules from other modules)
$PWD/deplate.rc in
some cases (e.g. check for a local config.rb);
templates, css files, and library snippets are always searched in the
deplate.rc directory too; if you
want to allow a
deplate.ini file in this directory,
you have the add allow r to your private
deplate.ini file (usually in
~/.deplate/)
{theme}/theme.ini if any (this might be necessary for
most themes to be fully functional)
#Write region (directory local file names only)
#Write region (allow
relative & absolute file names)
arg macro and
friends.
--allow -x on the command
line after having allowed x in the
deplate.ini file.
Some variables change the way deplate works.
#{basename FILENAME}#{auxiliaryDirSuffix}. E.g., if
auxiliaryDirSuffix 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”.
If you are a ruby programmer, you can also use
deplate as a library for formatting strings. You could use
the convenience classes Deplate::Converter or
DeplateString for this.
Example 4.1: Using the Deplate::Converter class
require 'deplate/converter' t = <<EOF * Introduction ''deplate'' is a tool for converting wiki-like markup to latex, html, or "html-slides". EOF to_html = Deplate::Converter.new puts to_html.convert_string(t) to_latex = Deplate::Converter.new("latex") puts to_latex.convert_string(t)
or:
require 'deplate/deplate-string' t = <<EOF * Introduction ''deplate'' is a tool for converting wiki-like markup to latex, html, or "html-slides". EOF puts DeplateString.new(t).to_html
The DeplateString is probably easier to use from within
other programs like e.g.
Nukumi2 (see 9.9.2).
As whitespace is significant in the context of lists and the like, you should not insert tab characters in the document but replace tabs with blanks/spaces. Most editors can be tweaked to work this way.
If you absolutely want to insert tab characters or if you don’t
know how to keep your editor from inserting tabs, you can set the
tabwidth (default: 4) variable to the tab width setting of
your editor. deplate will then try to expand tab characters.
deplate is the accompanying converter for the
Vim
viki plugin, which supports all of
deplate‘s default markup.