[tei-council] facsimile - how to do stand-off facsimile markup?
Conal Tuohy
Conal.Tuohy at vuw.ac.nz
Sun Jul 29 08:46:16 EDT 2007
Conal wrote:
> <facsimile>
> <surface start="#p1">
> <graphic url="p1.jpg" scale="1"/>
> <graphic url="p1-thumbnail.jpg" scale="10"/>
> </surface>
> </facsimile>
> ...
> <text>
> ...
> <pb xml:id="p1"/>
> ...
> <!-- the word "Foo" occupies the square whose top corner is (10,10) and
> whose bottom corner is (20,20) -->
> <ab coords="10 10 20 20">Foo</ab>
> ...
> </text>
>
Sebastian wrote:
> This fills me with mild horror. The <facsimile> bit, but
?
> that floating @coords on <ab>? with no specific idea
> which image it is,
The coords don't relate to a specific image; they are relative to the <surface/> which represents the current page (i.e. the one linked to the preceding <pb/>). The <ab> element in the example belongs to that surface because its preceding page break is linked to it. Perhaps you are thinking that the <surface/> element would include the <ab/> or other textual elements, in a divLike way? In general I don't think it would be workable to have the <surface> element directly contain the textual elements because they have a logical hierarchy of paragraphs, divs, etc, so instead we use <pb/> elements to link the pages of the transcript with the pages of the facsimile.
> or what the units are?
The units are implicitly pixels I suppose. In the demo I did at Berlin, I made the units explicit. In this current draft under discussion, we are using @coords borrowed from METS, which doesn't seem to have units. I don't know if this is actually an issue, since I think that facsimile images will be bitmaps and hence px is a reasonable unit. WDYT?
> <facsimile>
> <surface start="#p1">
> <graphic url="p1.jpg" scale="1"/>
> <graphic url="p1-thumbnail.jpg" scale="10"/>
> <!-- the word "Foo" occupies the square whose top corner is (10,10) and
> whose bottom corner is (20,20) -->
> <area coords="10 10 20 20" corresp="#foo"/>
> </surface>
> </facsimile>
> ...
> <text>
> ...
> <pb xml:id="p1"/>
> ...
> <ab xml:id="foo">Foo</ab>
> ...
> </text>
>
Sebastian wrote:
> I can relate to that much better (though I still don't get what units
> the coords are in), or which image they relate to.
Similar to the above.
In this case, the <area/> is relative to the <surface/> which has graphics p1.jpg and p1-thumbnail.jpg. Since the @scale of the first graphic = "1", therefore the coordinates can be interpreted to be equivalent to px in that graphic, whereas the second graphic has px which are 0.1 x that size.
More information about the tei-council
mailing list