Facsimile (Mondrian)

From XML
Revision as of 11:36, 24 January 2017 by ASC (Talk | contribs) (Created page with "Images of the source go into the <facsimile> element. The facsimile element contains surfaces, corresponding with sheets, and possible zones, corresponding with areas on those...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Images of the source go into the <facsimile> element. The facsimile element contains surfaces, corresponding with sheets, and possible zones, corresponding with areas on those sheets. Zones can be used for pages (for instance, a folded sheet may contain 4 zones corresponding to the pages written on the sheet) or other areas that are of special interest (e.g. a sketch). Sheets have two surfaces, front and back, or in technical terms: recto and verso. The surfaces on the first sheet are called 1r (1 recto) and 1v (1 verso), on the second sheet 2r and 2v, etc. If the sheet has been folded once, we have four zones: 1r-1, 1v-2,1v-3,1r-4. If there is no need to distinguish different zones on the sheet (surface is used as a single zone), we don't define zones for that sheet. Envelopes, if available, also have a front and back side, which we identify by er and ev. We associate graphics with the surfaces and zones preferably by referring to an RKD barcode. The details still have to be worked out. We probably will not include graphics directly within the zone but will refer to the image of the surface and define the size and locatiuon of the zone in terms of the surfaces coordinate system.

For example (assuming the surface is an A4 sheet, coordinates in mm):

<facsimile>
 <graphic url="to be decided"/>
 <surface n="1r" xml:id="s1r" ulx="0" uly="0" lrx="297" lry="210">
  <zone xml:id="z1r-1"  ulx="148.5" uly="0" lrx="297" lry="210"></zone>
  <zone xml:id="z1r-4"  ulx="0" uly="0" lrx="148.5" lry="210"></zone>
 </surface>
  ....
</facsimile>

The surfaces and zones must have xml:id attributes, as we need to link them to the text that they contain. This is described under page breaks. The order of the surfaces corresponds to the (most probable) physical ordering of the document.