From ab2c0e0a6ae5f24f841439da34021ea00de8ec25 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 14 Mar 2023 03:19:43 +0300 Subject: [PATCH] cleanup... Signed-off-by: Alex A. Naanou --- scripts/make-spreads.sh | 111 +++------------------------------------- 1 file changed, 6 insertions(+), 105 deletions(-) diff --git a/scripts/make-spreads.sh b/scripts/make-spreads.sh index 2ce0fd0..438ef61 100644 --- a/scripts/make-spreads.sh +++ b/scripts/make-spreads.sh @@ -2,75 +2,15 @@ shopt -s nullglob extglob #---------------------------------------------------------------------- -# -# TIP: It is better to think of a visual book as a set of spreads -# rather than a set of pages, hence the focus on spreads in the -# code below. -# The main unit of a "visual" book is a spread, it's the thing -# you see when you hold the book open, and the main workflow -# when building a book is creating spreads and ordering them so -# a single page is almost never treated as an independent unit. -# TIP: it is not recommended to use too many templates, the layout -# should be and feel structured and this structure should not be -# too complex for the average reader to get comfortable in. -# +# +# For docs see README.md +# # # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -# -# Template structure: -# $TEMPLATE_DIR/ -# spread.tex -# imagepage.tex -# textpage.tex -# ... -# $CAPTION_DIR/ -# .txt -# image caption. -# this is separated to decouple caption writing from the -# changes to the layout/sequencing and this drastically -# simplify the work with writers. -# For this reason this takes priority over local captions (XXX revise). -# ... -# $SPREADS_DIR/ +# +# XXX DOC: # $spread/ -# tweaks.tex -# template tweaks. -# loaded before the templates are handled. -# layout.tex -# manual layout of spread. -# if given rest of directory contents are -# ignored. -# fields: -# ${IMAGE0} -# replaced with image path -# ${CAPTION0} -# replaced with content of caption file if found -# and empty otherwise. -# ${TEXT0} -# replaced with the content of a text file if -# found and empty otherwise. -# ... -# NOTE: if images are included, hi-res source -# substitution is not done here. -# NOTE: fields are ordered and matched according to their -# position and not their number, e.g. in the following -# sequence: -# IMAGE, IMAGE10, IMAGE20, .., -# CAPTION2, CAPTION7, CAPTION12, .. -# IMAGE10 will be filled with the second found image -# and CAPTION7 will be filled with the second found -# caption. -# .tpl -# indicates the spread template to use. -# if given the rest of the .tex files in -# directory are ignored. -# resolves to: -# templates/.tex -# fields: -# ${IMAGE0} -# ${CAPTION0} -# ${TEXT0} -# ... +# ... # imagepage.tex # image page template. # fields: @@ -87,46 +27,7 @@ shopt -s nullglob extglob # -textpage.tpl # indicates the image/text page template to use. # ignored if explicit templates are given. -# fields: -# ${IMAGE} -# ${CAPTION} -# ${TEXT} -# ... -# 00-.png -# image. -# if $IMAGE_HIRES_DIR is set then this will -# resolve to: -# $IMAGE_HIRES_DIR/ -# supported formats: -# .jpeg, .png, .pdf, .svg, .eps -# (see $IMAGE_FORMATS) -# 00-.txt -# local image caption text. -# NOTE: this must be named the same as the image. -# 01-.txt -# text. # ... -# ... -# -# -# Env variables: -# ANOTATE_IMAGE_PATHS= -# TEXT_FORMATS=|.. -# IMAGE_FORMATS=|.. -# SPREADS_DIR= -# IMAGE_HIRES_DIR= -# sets the path to which the hi-res images are resolved. -# CAPTION_DIR= -# TEMPLATE_DIR= -# EMPTY_PAGE= -# TEXT_PAGE= -# IMAGE_PAGE= -# IMAGE_SPREAD= -# -# -# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -# -# XXX # # #