From b506cba16e6ab1e81de9ef13ad2e3ad481b45dfc Mon Sep 17 00:00:00 2001 From: Robert Schubert Date: Thu, 18 Jul 2019 14:50:50 +0200 Subject: [PATCH] clarification of coordinate semantics --- pagecontent/schema/pagecontent.xsd | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/pagecontent/schema/pagecontent.xsd b/pagecontent/schema/pagecontent.xsd index 40c6f24..2be2f8f 100644 --- a/pagecontent/schema/pagecontent.xsd +++ b/pagecontent/schema/pagecontent.xsd @@ -473,7 +473,15 @@ - Point list with format "x1,y1 x2,y2 ..." + + Polygon outline of the element as a path of points. + No points may lie outside the outline of its parent, + which in the case of Border is the bounding rectangle + of the root image. Paths are closed by convention, + i.e. the last point logically connects with the first + (and at least 3 points are required to span an area). + Paths must be planar (i.e. must not self-intersect). + @@ -493,7 +501,7 @@ - + @@ -587,8 +595,7 @@ - - + @@ -664,7 +671,7 @@ - + @@ -1566,7 +1573,7 @@ - + @@ -2096,7 +2103,13 @@ - Point list with format "x1,y1 x2,y2 ..." + + Point list with format "x1,y1 x2,y2 ...", where + "x" / "y" refer to the horizontal / vertical + pixel positions in a coordinate system which always + references the root PageType/@imageFilename, with + "0,0" in the upper left corner of the root image and + "imageWidth,imageHeight" in the lower right.