Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clarification of coordinate semantics #16

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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