From 60f6fe4a725e03a53e9384d3112d08319190cbeb Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 12 Mar 2023 00:52:30 +0300 Subject: [PATCH] added config example... Signed-off-by: Alex A. Naanou --- scripts/README.md | 5 ++++ scripts/make-spreads.cfg.example | 39 ++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 scripts/make-spreads.cfg.example diff --git a/scripts/README.md b/scripts/README.md index 036c1cf..223578f 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -360,6 +360,11 @@ IMAGE_SPREAD=( ) ``` +An explicit configuration file can be manually specified: +```shell +$ make-spreads.sh -c .. +``` + --- diff --git a/scripts/make-spreads.cfg.example b/scripts/make-spreads.cfg.example new file mode 100644 index 0000000..8b200cb --- /dev/null +++ b/scripts/make-spreads.cfg.example @@ -0,0 +1,39 @@ +# if non-empty make-spreads.sh will add image paths to pdf notes... +ANOTATE_IMAGE_PATHS= + +# file extensions to treat as text (separated with "|") +TEXT_FORMATS=txt + +# file extensions to treat as images (separated with "|") +IMAGE_FORMATS=jpeg|jpg|png|pdf|svg|eps + +# default directory spread definitions are located in... +SPREADS_DIR=spreads/ + +# if non-empty link link images to matching ones from this directory... +IMAGE_HIRES_DIR= + +# directory where external captions are stored... +CAPTION_DIR=captions/ + +# root template directory... +TEMPLATE_DIR=templates/ + +# empty page template... +EMPTY_PAGE=emptypage + +# text page template... +TEXT_PAGE=textpage + +# image page template... +IMAGE_PAGE=imagepage + +# spread templates... +IMAGE_SPREAD=( + # + # +------- number of found images + # / +-- template name + # / / + [0]=text-spread + [2]=image-image +)