using HmtArchive
hmt = Archive(root)Publishing a release of the HMT archive
Create an Archive object from the path in your local file system to the archive directory in a downloaded or cloned copy of the hmt-archive repository. Here, we’ve defined a variable root with that full path.
Three exported functions compile a complete description of the archive in CEX format. All three functions take the same parameters: an Archive, and a string value identifying the release.
librarycexreturns a single (large!) CEX stringwritercwrites the CEX output to thehmt-archive’srelease-candidatesdirectorypublishwrites the CEX output to thehmt-archive’sreleases-cexdirectory
Note
The functions that add content to hmt-archive do not commit or push anything to the repository. You still need to do that manually. (That is a feature.)
archivecex = librarycex(hmt, "2024testdocs")
# Length in bytes:
length(archivecex)20338657
In the current version of HmtArchive, the resulting CEX accounts for the following components:
- diplomatic editions of all texts
- normalized editions of all texts
- catalog of all texts
- all DSE records
- collection of all data models in the library
- collection of all codices
- collection of all images
- collections of authority lists for personal names, place names, astronomical entities, and texts no longer extant
- indexes of scholia to Iliad passages