Skip to content

Commit

Permalink
Merge pull request #16 from bertsky/coordinate-semantics
Browse files Browse the repository at this point in the history
clarification of coordinate semantics
  • Loading branch information
chris1010010 authored Jul 18, 2019
2 parents 907f2b7 + b506cba commit a04f048
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions pagecontent/schema/pagecontent.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,15 @@
<complexType name="CoordsType">
<attribute name="points" type="pc:PointsType" use="required">
<annotation>
<documentation>Point list with format "x1,y1 x2,y2 ..."</documentation>
<documentation>
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).
</documentation>
</annotation>
</attribute>
<attribute name="conf" type="pc:ConfSimpleType">
Expand All @@ -493,7 +501,7 @@
</documentation>
</annotation>
</element>
<element name="Coords" type="pc:CoordsType"></element>
<element name="Coords" type="pc:CoordsType"/>
<element name="Baseline" type="pc:BaselineType"
minOccurs="0">
<annotation>
Expand Down Expand Up @@ -587,8 +595,7 @@
</documentation>
</annotation>
</element>
<element name="Coords" type="pc:CoordsType">
</element>
<element name="Coords" type="pc:CoordsType"/>
<element name="Glyph" type="pc:GlyphType" minOccurs="0"
maxOccurs="unbounded">
</element>
Expand Down Expand Up @@ -664,7 +671,7 @@
</documentation>
</annotation>
</element>
<element name="Coords" type="pc:CoordsType"></element>
<element name="Coords" type="pc:CoordsType"/>
<element name="Graphemes" type="pc:GraphemesType"
minOccurs="0" maxOccurs="1">
<annotation>
Expand Down Expand Up @@ -1566,7 +1573,7 @@
</documentation>
</annotation>
<sequence>
<element name="Coords" type="pc:CoordsType"></element>
<element name="Coords" type="pc:CoordsType"/>
</sequence>
</complexType>
<simpleType name="ColourSimpleType">
Expand Down Expand Up @@ -2096,7 +2103,13 @@

<simpleType name="PointsType">
<annotation>
<documentation>Point list with format "x1,y1 x2,y2 ..."</documentation>
<documentation>
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.</documentation>
</annotation>
<restriction base="string">
<pattern value="([0-9]+,[0-9]+ )+([0-9]+,[0-9]+)"></pattern>
Expand Down

0 comments on commit a04f048

Please sign in to comment.