novx_html

Project homepage > Index > User guide


User guide

The novx_html Python script runs through all chapters and sections of a novelibre project and fills HTML templates.

Usage

usage: novx_html.py [-h] [-t template-dir] [-s suffix] [--silent] Project

positional arguments:

Project novelibre project file

optional arguments:

-h, --help show a help message and exit

-t template-dir template directory

-s suffix suffix to output file name

--silent suppress error messages and the request to confirm overwriting

If no template directory is set, templates are searched for in the project directory.

If no templates are found, the output file will be empty.


Examples

The downloaded zip file includes a directory named sample containing example templates for different purposes and some example batch files showing the correct commands. You can launch the batch files by dragging and dropping your novelibre project on the icons. The results will be written to the novelibre project directory.


Templates

Project level templates

Chapter level templates

Section level templates


Placeholders

Syntax

There are two options:

  1. $Placeholder - If the placeholder is followed by a character that is clearly recognizable as a separator, e.g. a blank.
  2. ${Placeholder} - If the placeholder is followed by a character that is not recognizable as a separator.

“Project template” placeholders

“Chapter template” placeholders

“Section template” placeholders


Installation path

The setup script installs novx_html.py in a defined place. This is the installation path on Windows:

c:\Users\<user name>.novx\novx_html


Copyright (c) 2025 by Peter Triesberger. All rights reserved.