{"id":21363617,"url":"https://github.com/fibut/bokatidindi-print","last_synced_at":"2026-02-17T22:02:31.311Z","repository":{"id":128578951,"uuid":"546030485","full_name":"FIBUT/bokatidindi-print","owner":"FIBUT","description":"Printing process for Bokatidindi that involves XML processing and Adobe InDesign","archived":false,"fork":false,"pushed_at":"2025-10-08T11:57:35.000Z","size":11904,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-29T09:49:45.650Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"XSLT","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"eupl-1.2","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FIBUT.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-10-05T12:00:08.000Z","updated_at":"2025-10-08T11:57:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"701d5288-c1bc-4762-8560-1abe12775e96","html_url":"https://github.com/FIBUT/bokatidindi-print","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FIBUT/bokatidindi-print","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FIBUT%2Fbokatidindi-print","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FIBUT%2Fbokatidindi-print/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FIBUT%2Fbokatidindi-print/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FIBUT%2Fbokatidindi-print/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FIBUT","download_url":"https://codeload.github.com/FIBUT/bokatidindi-print/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FIBUT%2Fbokatidindi-print/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29559961,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T21:50:49.831Z","status":"ssl_error","status_checked_at":"2026-02-17T21:46:15.313Z","response_time":100,"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":[],"created_at":"2024-11-22T06:20:18.130Z","updated_at":"2026-02-17T22:02:31.295Z","avatar_url":"https://github.com/FIBUT.png","language":"XSLT","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bokatidindi Print Preperation Process\n\nBuilds an InDesign print document for an annual Bokatidindi edition.\n\n![](docs/powershell.png)\n\n![](docs/indesign.png)\n\n## The Process\n\n1. Run the `edition.ps1` PowerShell script.\n2. This takes a while, so grab a coffee.\n3. Open the `bokatidindi.indd` file in Adobe InDesign after the script has stopped running.\n4. In the File menu, choose Import XML and then pick the `edition.xml` file.\n5. In the XML Import Options window, make sure to use *Merge Content* mode, *Create link* and to *apply the `edition.xsl` XSLT file*.\n6. Importing a large collection of books does take a while, so now you can have another coffee if you want.\n7. Then, find the InDesign *Structure* pane, expand the *edition* object and drag the *categories* object on to the first text column on page 2.\n\n## Details About the Process\n\nRunning the edition.ps1 PowerShell script will:\n\n1. Fetch the XML data for the current Bokatidindi print issue\n2. Fetch the \"print\" variant of each image in that specific issue (this does take a while)\n3. Remove Photoshop EXIF resolution data, which may conflict with the main resolution definition.\n\nDuring the XML import into InDesign, this will happen:\n\nInDesign will transform the XML data from `edition.xml` into a different XML data stream using the `edition.xsl` XSLT file, which resembles more closely how InDesign will render the data.\n\nNewlines and the icons representing each \"binding type\" are defined in the XSLT file and if there is anything that you need to change and can't by using style sheet, then have a look at that one.\n\n## InDesign script\n\nThis package provides an InDesign Extendscript file intended to automate the InDesign workflow and is run just after all the books have been imported.\n\nIt applies a style to book images, scales the binding icons by 40% and evens out each book table.\n\nMore information about script locations is at https://helpx.adobe.com/indesign/using/scripting.html.\n\n## Caveats\n\n### Prevent Time-Consuming Work Using XSLT\n\nInstead of manually editing certain things en masse in the InDesign file, you may be able to change them by using XSLT file.\n\nIf those changes are meant to stay in future editions of Bokatidindi, make sure to create a pull request to this repository.\n\nInformation about InDesign's special markup is available at https://carijansen.com/indesign-xml-reference-guide/.\n\n### Stylesheets in InDesign\n\nThe InDesign file has already specified the relevant styles for each XML element we use.\n\nPlease keep using InDesign stylesheets to ensure that any code is clean and that this process remains without undocumented gotchas.\n\n### Binding Type Icons\n\nIcons for each binding type are located in the assets directory as Adobe Illustrator file.\n\nThose are also further defined in the `edition.xsl` file. (Look for `binding_types` in there to see how each binding type is represented by an .ai file.)\n\n### Thumbnail Images\n\nImage sizes and resolutions are hardcoded to have the maximum width of 300 px at 330 DPI in the [Bokatidindi source code](https://www.bokatidindi.is/FIBUT/bokatidindi/) and if the definition there is changed, a rake task needs to be run before retreiving the XML data again or the server will run out of memory.\n\n## Contribute\n\nIf you change anything about the process, please make sure to update this readme file and other relevant files to reflecr those changes.\n\n## Copyright and Legal\n\nThis package is licence under the EUPL 2.0 licence. See the [LICENCE](LICENCE) file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffibut%2Fbokatidindi-print","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffibut%2Fbokatidindi-print","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffibut%2Fbokatidindi-print/lists"}