{"id":21579278,"url":"https://github.com/subugoe/bdnprint","last_synced_at":"2026-01-03T19:30:50.324Z","repository":{"id":120553888,"uuid":"61354845","full_name":"subugoe/bdnPrint","owner":"subugoe","description":"bdnPrint - transforming TEI/XML to PDF","archived":false,"fork":false,"pushed_at":"2018-07-11T08:03:42.000Z","size":445,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-01-24T14:22:02.330Z","etag":null,"topics":["scholarly-editing","tei-xml","xml","xslt"],"latest_commit_sha":null,"homepage":"http://www.bdn-edition.de","language":"XSLT","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/subugoe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2016-06-17T07:35:03.000Z","updated_at":"2019-10-30T08:51:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"da8b3b5b-af69-4252-9458-efee25eb651e","html_url":"https://github.com/subugoe/bdnPrint","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subugoe%2FbdnPrint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subugoe%2FbdnPrint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subugoe%2FbdnPrint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subugoe%2FbdnPrint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subugoe","download_url":"https://codeload.github.com/subugoe/bdnPrint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244181233,"owners_count":20411601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["scholarly-editing","tei-xml","xml","xslt"],"created_at":"2024-11-24T13:12:53.208Z","updated_at":"2026-01-03T19:30:50.279Z","avatar_url":"https://github.com/subugoe.png","language":"XSLT","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bdnPrint\n\n\u003e Generate printable PDFs from TEI/XML\n\nbdnPrint is a collection of stylesheets and scripts to generate printable PDFs from TEI/XML. It was originally developed for the DFG-funded [\"Bibliothek der Neologie\"](http://www.bdn-edition.de) project and runs on the project's specific TEI/XML schema. The latter will be published in April 2017.\n\nFeel free to build on the code in this repository!\n\n\n## Prerequisits\n\n* Bash\n* Saxon\n* Perl\n    * File::Slurp\n    * List::MoreUtils\n    * String::Random\n    * Unicode::UCD\n* ConTeXt\n* PDFtk\n\nThe font used in bdnPrint is currently [**EB Garamond**](http://www.georgduffner.at/ebgaramond/), which is a free Garamond typeface. Please make sure you have this font installed such that ConTeXt is able to find it. Of course you can use any other font you wish. Simply change the line\n\n\t \\setmainfont[ebgaramond]\n\t \nin `context/header.tex` to an already installed font.\n\n\n## What it does\n\nAll you should need to do is run \n\n\tcompile.sh \n\t\nNevertheless, here is an overview of the different files in the repository:\n\n`context/`:\n\n* `header.tex`: contains all ConTeXt code, including the LuaTeX code to extract margin notes\n* `footer.tex`: generates indexes and closes the ConTeXt code\n\n`perl/`:\n\n* `define-footnotes.pl`: defines footnotes for the different combinations of text witnesses\n* `fix-whitespace.pl`: fixes whitespace problems before headings, after footnote markers and in general\n* `generate-code-points.pl`: generates a list with the unicode code points for decomposed lower case letters\n* `merge-markers.pl`: merges omission markers that are not separated by a whitespace character\n* `postprocess-margins.pl`: assigns IDs to all information that shall appear in a margin note\n* `preprocess-margin.pl`: inserts margin notes in the right places of the ConTeXt code\n* `replace-characters.pl`: replaces some UTF-8 characters with their TeX commands\n* `sort-bible-register.pl`: assigns special sortkeys to referenced bible passages. This script will probably be deprecated soon, since we are testing a different way of encoding biblical references.\n\n`xslt/`:\n\n* `list-mixed.xsl`: lists all TEI/XML elements with mixed content\n* `transform-to-tex.xsl`: generates ConTeXt code from TEI/XML\n\n\n\n## Still to be done\n\n* In the near future we will provide a mechanism which sees about historical hyphenation. Since the \"Library of Neology\" is a project which deals with German (and one Latin) text(s) of the 18th century, there are partially severe differences between the texts' and modern orthography. This currently causes wrong hyphenation behaviour that has to be corrected manually (which in part causes conflicts between ConTeXt's hyphenation command and the selected language package). \n* Currently the scripts only work with the front element of the XML. An implementation for the table of contents and foreword is still missing.\n* XInclude remains to be considered in `transform-to-tex.xsl`.\n* To denote editorial notes, a scribal abbreviation (E) is inserted into the margin. For x notes, x abbreviations appear. This is currently suppressed by a regex in `postprocess-margins.pl` and needs a better solution.\n\n\n\n\n## License\n\nOriginal work Copyright (c) 2015 Hannes Riebl\n\nModified work Copyright (c) 2015 - 2016 Michelle Rodzis (on behalf of the\nDFG-funded project \"Bibliothek der Neologie\")\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be included\nin all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\nOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubugoe%2Fbdnprint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubugoe%2Fbdnprint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubugoe%2Fbdnprint/lists"}