{"id":24521101,"url":"https://github.com/matthijskamstra/gen-scribus","last_synced_at":"2026-02-07T07:03:24.921Z","repository":{"id":193222593,"uuid":"688361565","full_name":"MatthijsKamstra/gen-scribus","owner":"MatthijsKamstra","description":"POC generating a scribus file, adding content, etc","archived":false,"fork":false,"pushed_at":"2024-09-05T08:08:21.000Z","size":1353,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-01T03:35:53.896Z","etag":null,"topics":["haxe","scribus"],"latest_commit_sha":null,"homepage":"","language":"Rich Text Format","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MatthijsKamstra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-07T07:34:24.000Z","updated_at":"2024-09-05T08:08:25.000Z","dependencies_parsed_at":"2024-08-20T09:28:56.647Z","dependency_job_id":"9998bb90-1e34-4999-8fd1-cdd8955720c5","html_url":"https://github.com/MatthijsKamstra/gen-scribus","commit_stats":null,"previous_names":["matthijskamstra/gen-scribus"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MatthijsKamstra/gen-scribus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatthijsKamstra%2Fgen-scribus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatthijsKamstra%2Fgen-scribus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatthijsKamstra%2Fgen-scribus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatthijsKamstra%2Fgen-scribus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MatthijsKamstra","download_url":"https://codeload.github.com/MatthijsKamstra/gen-scribus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatthijsKamstra%2Fgen-scribus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29188313,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T05:07:31.176Z","status":"ssl_error","status_checked_at":"2026-02-07T05:06:15.227Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["haxe","scribus"],"created_at":"2025-01-22T02:48:58.189Z","updated_at":"2026-02-07T07:03:24.879Z","avatar_url":"https://github.com/MatthijsKamstra.png","language":"Rich Text Format","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gen-scribus\n\nPOC: generating a [Scribus](https://www.scribus.net/) file via [Haxe](https://haxe.org/)\n\n![](haxe_scribus.jpeg)\n\n## Reason\n\n- Not possible to link (and update) to external text file (markdown)\n- Generate a quick and dirty document with text and image on a spread\n- Automate some of the scribus features via settings\n- Not possible to use commandline to generate file\n- Not possible to update document (with external file and/or input)\n- Better import markdown (Scribus default markdown import will break when using `\u003cli\u003e`)\n\n## json structure\n\nbasic structure\n\n```json\n{\n  \"document\": {}, // used for the settings of the document\n  \"pages\": [] // pages (left right)\n}\n```\n\nAbout document\n\n```json\n{\n  \"document\": {\n    \"author\": \"Matthijs Kamstra\",\n    \"title\": \"test images with gen-scribus\",\n    \"description\": \"blah blah, Haxe Scribus Gen doc\",\n    \"language\": \"nl\",\n    \"pageName\": \"a4\",\n    \"width\": { \"unit\": \"mm\", \"value\": 210 },\n    \"height\": { \"unit\": \"mm\", \"value\": 210 },\n    \"margins\": [\n      { \"dir\": \"left\", \"unit\": \"mm\", \"value\": 10 },\n      { \"dir\": \"right\", \"unit\": \"mm\", \"value\": 10 },\n      { \"dir\": \"top\", \"unit\": \"mm\", \"value\": 10 },\n      { \"dir\": \"bottom\", \"unit\": \"mm\", \"value\": 10 }\n    ],\n    \"guides\": [\n      { \"dir\": \"left\", \"unit\": \"mm\", \"value\": 10 },\n      { \"dir\": \"right\", \"unit\": \"mm\", \"value\": 10 },\n      { \"dir\": \"top\", \"unit\": \"mm\", \"value\": 10 },\n      { \"dir\": \"bottom\", \"unit\": \"mm\", \"value\": 10 }\n    ],\n    \"bleeds\": [\n      { \"dir\": \"left\", \"unit\": \"mm\", \"value\": 3 },\n      { \"dir\": \"right\", \"unit\": \"mm\", \"value\": 3 },\n      { \"dir\": \"top\", \"unit\": \"mm\", \"value\": 3 },\n      { \"dir\": \"bottom\", \"unit\": \"mm\", \"value\": 3 }\n    ],\n    \"guideSnap\": true,\n    \"guideLocked\": true\n  }\n  //   ...\n}\n```\n\npages\n\n```json\n \"pages\": [\n    {\n      \"left\": {},\n      \"right\": {\n        \"_alias\": \"Cover (right) Green\",\n        \"images\": [\n          {\n            \"path\": \"assets/png/a4_green.png\",\n            \"width\": { \"unit\": \"mm\", \"value\": 100 },\n            \"height\": { \"unit\": \"mm\", \"value\": 100 }\n          },\n          {\n            \"path\": \"assets/png/a4_gray.png\",\n            \"x\": { \"unit\": \"mm\", \"value\": 0 },\n            \"y\": { \"unit\": \"mm\", \"value\": 0 },\n            \"width\": { \"unit\": \"mm\", \"value\": 210 },\n            \"height\": { \"unit\": \"mm\", \"value\": 297 }\n          },\n          {\n            \"path\": \"assets/png/a4_blue.png\",\n            \"x\": { \"unit\": \"mm\", \"value\": -3 },\n            \"y\": { \"unit\": \"mm\", \"value\": -3 },\n            \"width\": { \"unit\": \"mm\", \"value\": 216 },\n            \"height\": { \"unit\": \"mm\", \"value\": 303 }\n          }\n        ]\n      }\n    },\n    {\n      \"left\": {},\n      \"right\": {}\n    }\n  ]\n```\n\nuse typed json:\n\n```haxe\nvar _HxSettingsObj:HxSettingsObj = {\n\t// ....\n}\n\n```\n\n## TODO\n\ncheck [TODO](TODO.md)\n\n## Pandoc\n\nUse pandoc, to convert markdown to a file that works for scribus\n\nsee: [pandoc.sh](pandoc.sh)\n\n```bash\n# open terminal to the root of this repo\nsh pandoc.sh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthijskamstra%2Fgen-scribus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatthijskamstra%2Fgen-scribus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthijskamstra%2Fgen-scribus/lists"}