[tei-council] facsimile draft -- only boxes?
Lou Burnard
lou.burnard at computing-services.oxford.ac.uk
Sun Aug 5 17:55:44 EDT 2007
Sebastian Rahtz wrote:
> I wonder how to gracefully extend the scheme
> to allow for non-rectangular shapes. the name
> @box is a bit restrictive. I'd prefer @shape,
> possibly.
I chose the name precisely because it makes explicit the limitation that
we only do this for rectangular shapes. If you want other shapes, you
have to define them in SVG. Might be worth mentioning that method here,
or cross-referring to where it's discussed (in SA if I remember aright)
his notation represents two pairs of h,v coordinates, the first pair
giving the coordinates of the top-left corner of the rectangle and the
second pair giving the coordinates of the bottom-right corner (8,13,130,1
I'm not sure whether @coords in HTML requires you to specify the shape
(using @shape attribute): it seems instead that you can rely on some
rather odd rules about how the coordinates are specified:
* When shape="rect" (rectangle), the coords are specified by
four numbers separated by commas. This notation represents two pairs of
h,v coordinates, the first pair giving the coordinates of the top-left
corner of the rectangle and the second pair giving the coordinates of
the bottom-right corner (8,13,130,123).
* When shape="circle", the coords are specified by three
numbers separated by commas. The first two numbers represent the h,v
coodinates of the center point of the circle and the last number is the
pixel width of the radius (228,123,62).
* When shape="poly" (polygon), the coords are specified by as
many pairs of h,v coordinates as there are points on the polygon. Number
pairs can be listed clockwise or counter-clockwise around the polygon;
they are separated by blank spaces (100,144 175,200 155,255 50,250 45,175).
More information about the tei-council
mailing list