The data structure for each document retrieved for collation by the getUnitData()
function should follow the
structure outlined in the collation unit section.
Units which are lacunose or omitted in a document require special treatment.
If an entire unit is omitted then a collation unit should be returned but the witnesses
key value should either be
null
or an empty array (both are treated in the same way).
If an entire unit is lac and does not require any special category label in the collation editor then it should not be returned in the data.
If an entire unit is lac and requires a special category label in the collation editor then this information can be provided in one of two ways.
getUnitData()
(see the documentation of that function for details of the format required) in which case no other data for the unit
should be returned in data.It is up to the platform developers to decide which is most appropriate in each circumstance. The result in the collation editor will be the same regardless of how the data is provided.