summaryrefslogtreecommitdiff
path: root/internal/config/config_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-23 09:06:37 +0300
committerPaul Buetow <paul@buetow.org>2026-04-23 09:06:37 +0300
commit1834c8886b15aa3b868e988c185ac5c344392886 (patch)
tree89bab79059910638b7f8b3f865e9feddf95f4b81 /internal/config/config_test.go
parent0ccc8073852895996ed70c4b2a86c460e3a3ddae (diff)
Add ISO A4 PDF print/book pipeline, page-frame prompts, and usage docs
Print and book PDF modes now letterbox each raster to A4 portrait at pdf.density; print uses the matte color for pads. CLI forces 3:4 generation for print|book unless --aspect-ratio is set. Cover, gallery, and back prompts gain DINA4PDF instructions when those modes are active. Introduce DescribePageFrame and PDF helpers with tests; add CLI tests for presentation and aspect precedence. Expand README and config example with A4 examples, language env vars, and page-format vs PDF behavior. Add sample Sumer vocabulary files. Made-with: Cursor
Diffstat (limited to 'internal/config/config_test.go')
-rw-r--r--internal/config/config_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/config/config_test.go b/internal/config/config_test.go
index 902f432..98b72db 100644
--- a/internal/config/config_test.go
+++ b/internal/config/config_test.go
@@ -7,6 +7,7 @@ import (
"strings"
"testing"
+ "codeberg.org/snonux/comicforge/internal/comic"
"codeberg.org/snonux/comicforge/internal/provider"
)
@@ -242,6 +243,7 @@ func TestEmbeddedPromptTemplatesRender(t *testing.T) {
"ScriptName": "кирилица",
"Genre": "a mystery with a surprising twist",
"Style": "cinematic realism",
+ "PageFrame": comic.DescribePageFrame("16:9"),
"Theme": "mystery",
"Prompt": "a robot reading a newspaper",
"Words": "- ябълка\n- книга\n",
@@ -266,6 +268,7 @@ func TestEmbeddedPromptTemplatesRender(t *testing.T) {
"Pose": "extreme close-up portrait",
"GalleryNum": 1,
"TotalGalleryPages": 5,
+ "DINA4PDF": false,
}
for _, name := range []string{