{"id":18754037,"url":"https://github.com/dcavar/pg2tei","last_synced_at":"2026-03-19T06:11:29.556Z","repository":{"id":5650159,"uuid":"6859023","full_name":"dcavar/PG2TEI","owner":"dcavar","description":"Project Gutenberg books to TEI XML conversion.","archived":false,"fork":false,"pushed_at":"2012-11-27T00:57:53.000Z","size":128,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-23T11:53:52.514Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/dcavar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-11-26T02:58:49.000Z","updated_at":"2020-07-04T22:28:51.000Z","dependencies_parsed_at":"2022-09-09T22:10:28.728Z","dependency_job_id":null,"html_url":"https://github.com/dcavar/PG2TEI","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dcavar/PG2TEI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcavar%2FPG2TEI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcavar%2FPG2TEI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcavar%2FPG2TEI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcavar%2FPG2TEI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcavar","download_url":"https://codeload.github.com/dcavar/PG2TEI/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcavar%2FPG2TEI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29187934,"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":[],"created_at":"2024-11-07T17:27:53.910Z","updated_at":"2026-02-07T06:01:02.549Z","avatar_url":"https://github.com/dcavar.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# PG2TEI\n\n(C) 2012 by [Damir Cavar][] and [Malgosia Cavar][]\n\n\n## [Project Gutenberg][] books to [TEI XML][] conversion\n\nThis repository contains code for the automatic conversion of\n[Project Gutenberg][] books to the [TEI XML][] format. We focus on the generation of valid\n[TEI Lite P5 XML](http://www.tei-c.org/Guidelines/Customization/Lite/) from HTML-sources.\nThe code is written in Java. It might use some Java 7 specific elements and\nconstructions, but should be easily adaptable to Java 6 or earlier versions.\n\nYou might need the following components to convert the [Project Gutenberg][] files\nyourself:\n\n* [Java SE 7][]\n* The [TEI Subversion repository on SourceForge](http://tei.sourceforge.net)\n* Some document conversion tool\n\n\n### The TEI Subversion repository\n\nFor the conversion of [ODT][]-documents to TEI XML we make\nuse of XSLT-scripts that are part of the [TEI@Sourceforge][]\npackage.  You can check out a local copy of the trunk using the following command:\n\n\tsvn co https://tei.svn.sourceforge.net/svnroot/tei/trunk ./TEI\n\nFor further details, see the links to the repository here:\n\n* [TEI@Sourceforge][]\n\nThe necessary components will be in the _Stylesheets_ subfolder.  In particular relevant\nis the _odttotei_ script.  You might have to change certain paths in the script, or\nprovide appropriate command line parameters when invoking it.\n\nIn addition to the XSLT-scripts in the TEI folder you will most likely need\n[Saxon][].  If you use [oXygen][], you should provide the path to the\n[oXygen][]-lib-folder via command line to _odttotei_ or directly in your adjusted script\n(e.g. a version of _odttotei_).\n\n\n### Document conversion tools\n\nWe make use of the [textutil][] tool that is distributed with the recent versions\nof Mac OS X. [textutil][] makes batch conversion of different document types easy.\nWe use [textutil][] to convert the Project Gutenberg HTML-files to [ODT][].\n\nYou might want to try alternative conversion strategies, for example using:\n\n* [pandoc][], a universal document converter that is available for all major platforms.\n* [OpenOffice][] or [LibreOffice][] via command line for batch processing. You will find\na lot of descriptions of the command line usage online, see\n[for example here](http://maketecheasier.com/batch-convert-documents-at-the-command-line/2011/09/16)...\n\n\n### Configuration of the Java code\n\nSince the PG2TEI-code is a quick and _dirty_ implementation of the conversion pipeline, with\na very defensive coding strategy, avoiding complications that might improve the\nstability, but would cost coding time, there are some things in the code that need\nspecific adaptation.  You might experience crashes and error messages for individual\nfiles.  We cannot avoid that. The conversion runs quite stable, and restarting the\nconverter skips already available target files.\n\nFollow the instructions in these documents to set up the conversion process for your\nspecific environment:\n\n* [Description](Description.md)\n* [Adaptation](Adaptation.md)\n\nIf you discover serious bugs or problems with the code, please send us a message. Thanks!\n\n\n### License\n\nThe code is made available under the\n[Apache 2.0 License](http://www.apache.org/licenses/LICENSE-2.0.html) as is.\nSee [LICENSE.md](LICENSE.md).\n\n\n\n[Damir Cavar]: http://cavar.me/damir/\n[Java SE 7]: http://www.oracle.com/technetwork/java/javase/downloads/index.html\n[LibreOffice]: http://www.libreoffice.org\n[Malgosia Cavar]: http://cavar.me/malgosia/\n[ODT]: http://opendocumentformat.org\n[OpenOffice]: http://www.openoffice.org\n[oXygen]: http://www.oxygenxml.com\n[pandoc]: http://johnmacfarlane.net/pandoc/\n[Project Gutenberg]: http://www.gutenberg.org/\n[Saxon]: http://saxon.sourceforge.net\n[TEI XML]: http://www.tei-c.org/\n[TEI@Sourceforge]: http://tei.sourceforge.net\n[textutil]: http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/textutil.1.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcavar%2Fpg2tei","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcavar%2Fpg2tei","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcavar%2Fpg2tei/lists"}