Published

January 6, 2025

Manuscripts and pages

Documentation in progress

This section is incomplete.

Overview

  • The Codex and MSPage types are specialized types of physical objects: individual pages related to a codex
  • each is a citable object, so MSPage can used in a triple set
  • page gives you relation to rest of codex

Example: codex

  • we’ll use an example from test/assets directory of package gh repo, and will instantiate from a CEX source using fromcex (from CitableBase q.v)
f = joinpath(repo, "test", "assets", "burney86-sample.cex")
using CitablePhysicalText, CitableBase
mss = fromcex(f, Codex, FileReader)
1-element Vector{Codex}:
 Burney 86 manuscript

There’s only 1 MS in this collection.

ms = mss[1]
Burney 86 manuscript

A citable object

label(ms)
"Burney 86 manuscript"
urn(ms)
urn:cite2:citebl:burney86pages.v1:

An iterable collection

This is a Julia iterable that iterates pages.

eltype(ms)
MSPage

for pg in ms
    @info(label(pg))
end
[ Info: British Library, Burney 86, folio 1 recto
[ Info: British Library, Burney 86, folio 1 verso
[ Info: British Library, Burney 86, folio 2 recto
[ Info: British Library, Burney 86, folio 2 verso
[ Info: British Library, Burney 86, folio 3 recto
[ Info: British Library, Burney 86, folio 3 verso
[ Info: British Library, Burney 86, folio 4 recto
[ Info: British Library, Burney 86, folio 4 verso
[ Info: British Library, Burney 86, folio 5 recto
collect(ms)[1]
<urn:cite2:citebl:burney86pages.v1:1r> British Library, Burney 86, folio 1 recto
length(ms)
9

Example: page

pg = collect(ms)[1]
<urn:cite2:citebl:burney86pages.v1:1r> British Library, Burney 86, folio 1 recto
image(pg)
urn:cite2:citebl:burney86imgs.v1:burney_ms_86_f001r
rectoverso(pg)
"recto"