API documentation

The readcitable function

Use the readcitable function to create a citable corpus from a source document.

CitableTeiReaders.readcitableFunction

Read from src a citable document identified by urn. Its citation scheme must be parseable using the type citescheme.

readcitable(src, urn, citescheme)
source

Read from file fname a citable document identified by urn. Its citation scheme must be parseable using the type citescheme.

readcitable(fname, urn, citescheme, rdr)
source

Read from url a citable document identified by urn. Its citation scheme must be parseable using the type citescheme.

readcitable(url, urn, citescheme, rdr)
source

Implementation of readcitable for type TEIPoeticLine.

source

Implementation of readcitable for type TEIAnonblock.

source

Implementation of readcitable for type TEIDivAb.

source

Implementation of readcitable for type TEIDivLine.

source

Implementation of readcitable for type TEIDivDivLine.

source

Implementation of readcitable for type TEIDivDivDiv.

source

Implementation of readcitable for type TEIThreeDivsGrouped.

source

Implementation of readcitable for type DelimitedText.

source

Implementation of readcitable for type TEIDivDivDiv.

source

Subtypes of CiteStructureTrait

Any package can implement the CiteStructure with a custom type to supply to the readcitable function. The following types are included in the CitableTeiReaders package.

Delimited-text file

XML cited by one-tier citation scheme

XML cited by two-tier citation scheme

XML cited by three-tier citation scheme

A useful utility function

CitableTeiReaders.ezxmlstringFunction
ezxmlstring(n)

Serialize an EzXML.Node to an XML string. If a node n was created by parsing an XML string, the output of ezxmlstring(n) will be XML equivalent to the source string.

source

Functions used internally

CitableTeiReaders.citeNAttrFunction
citeNAttr(n, docUrn)

Construct a CitablePassage from an element with a citable value on @n attribute.

source
citeNAttr(n, docUrn, psg)

Construct a CitablePassage from an element with citable value on @n attribute.

source