Add a generated cover and a content-hashed version mark
The cover is a full-bleed mosaic of historical Bengali types filling the word ব্যঞ্জণ, produced by tools/gen_cover_mosaic.py from plates/ and fonts/ alone (build.sh remakes it if missing). It is static, so ebook readers can cache it. The mark on the About this edition page is drawn by tools/gen_seal.py, seeded from a SHA-256 of src/ (never the build's own outputs), so it changes exactly when the transcription does. The colophon is shortened to name the cover typefaces and the mark's mechanism, and drops the trailing ProQuest note. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d48ce1f50c
commit
2ec880d1c4
8 files changed
+913
-16
No files matched your search
@@ -7,11 +7,11 @@ export GID := $(shell id -g)
|
||||
RUN := $(if $(NODOCKER),,docker compose run --rm -T tex)
|
||||
|
||||
OUT := ross-1988-retypeset.pdf
|
||||
SOURCES := build.sh tools/polish.py tools/optimize_plates.py src/preamble.tex src/colophon.tex src/errata.tex \
|
||||
$(wildcard src/pages/*.tex)
|
||||
SOURCES := build.sh tools/polish.py tools/gen_seal.py tools/gen_cover_mosaic.py tools/optimize_plates.py src/preamble.tex src/cover.tex src/colophon.tex \
|
||||
src/errata.tex $(wildcard src/pages/*.tex)
|
||||
|
||||
.DEFAULT_GOAL := pdf
|
||||
.PHONY: pdf build image prep plate check reprocheck verify clean distclean shell help
|
||||
.PHONY: pdf build image prep plate cover check reprocheck verify clean distclean shell help
|
||||
|
||||
# The PDF is a build product and is not in git. This remakes it from src/ and
|
||||
# plates/, neither of which needs the ProQuest scan — only prep and plate do.
|
||||
@@ -43,6 +43,9 @@ reprocheck: ## every token of src/pages must reach the built PDF
|
||||
# so make would skip the rebuild and verify would pass against stale output.
|
||||
verify: check build reprocheck ## the full gate: check, typeset unconditionally, then prove nothing was dropped
|
||||
|
||||
cover: ## rebuild the cover mosaic from plates/ and fonts/
|
||||
$(RUN) python3 tools/gen_cover_mosaic.py --force
|
||||
|
||||
shell: ## interactive shell in the container
|
||||
docker compose run --rm tex bash
|
||||
|
||||
|
||||
Reference in new issue
Block a user