Novelang

The electronic document generator

Level Exploder

The Level Exploder is a batch tool for generating multiple documents from the levels of one existing document. A typical usage is for slimming down a document that has become too big.

Document is requested with a path relative to the directory the level exploder was launched from.

If current directory contains a big.novella file with three levels named “one”, “two” and “three” then following invocation will generate three files named output/one.novella, output/two.novella and output/three.novella:

java -jar $NOVELANG_DIR/novelang-VERSION.jar explodelevels
  /big.novella

The --output-dir option

The --output-dir option sets the output directory, where rendered documents are generated to.

--output-dir exploded

Default value is output.

The --content-root option

The --content-root option sets the base directory to another value than current directory:

--content-root=../my-source/documents

The --temporary-dir option

The --temporary-dir option sets where Novelang writes its log files.

--log-temporary temporary-files

Default value is $temporary$.

The --log-dir option

The --log-dir option sets where Novelang writes its log files.

--log-dir logs

Default value is current directory (the value of user.dir system property).

The --font-dirs option

The --font-dirs option sets multiple directories where Novelang looks for fonts.

--font-dirs my/fonts-1 /Users/Shared/Fonts

The --style-dirs option

The --style-dirs option sets multiple directories where Novelang looks for stylesheets and related resources. See chapter about stylesheet for details.

--style-dirs my/styles-1 /Users/Shared/Fonts

The --hyphenation-dir option

The --hyphenation-dir option sets where Novelang should attempt to load hyphenation files from.

--hyphenation-dir my/directory

The --source-charset option

The --source-charset option sets the charset of source documents.

--source-charset MacRoman

Default value is UTF-8.

The --rendering-charset option

The --rendering-charset option sets the charset of rendered documents.

--rendering-charset iso-8859-2

Default value is UTF-8.