Skip to content

Commit

Permalink
fix(covers): Generate bindings with guides at final bounding size, do…
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Jan 9, 2025
1 parent ead5176 commit b44b865
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 22 deletions.
31 changes: 12 additions & 19 deletions binding.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions rules/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ $(BUILDDIR)/%-$(_binding).svg: $(CASILEDIR)/binding.svg $$(basename $$@)-printco
s#HHH#$${pagehpm}#g;
s#BLEED#$${bleedpm}#g;
s#TRIM#$${trimpm}#g;
s#CROP#$${trimmm}mm#g;
s#GUIDE#$${guidepm}#g;
s#CW#$${pagewpm}#g;
s#SW#$${spinepm}#g;
" $< > $@
Expand All @@ -918,8 +918,7 @@ $(BUILDDIR)/%-$(_binding).svg: $(CASILEDIR)/binding.svg $$(basename $$@)-printco
$(XVFB_RUN) -d $(INKSCAPE) $< \
--batch-process \
--export-dpi=$${hidpi} \
--export-area-page \
--export-margin=$${trimmm} \
--export-area-drawing \
-o $@

DISTFILES += *-$(_binding).pdf
Expand Down Expand Up @@ -959,6 +958,9 @@ $(GEOMETRIES): $(BUILDDIR)/%-$(_geometry).sh: $$(call geometrybase,$$@) $$(call
trimpx=$(call mmtopx,$(TRIM))
trimpm=$(call mmtopm,$(TRIM))
trimpt=$(call mmtopt,$(TRIM))
guidemm=$$(($$trimmm-$$bleedmm))
guidepx=$$(($$trimpx-$$bleedpx))
guidepm=$$(($$trimpm-$$bleedpm))
$(shell $(_ENV) $(MAGICK) identify -density $(HIDPI) -format '
pagewmm=%[fx:round(w/$(HIDPI)*25.399986)]
pagewpx=%[fx:w]
Expand Down

0 comments on commit b44b865

Please sign in to comment.