question

ReginaHenschel-4160 avatar image
0 Votes"
ReginaHenschel-4160 asked ReginaHenschel-4160 answered

unit for coordinates of points in wrapPolygon

Hi,

the OOXML standard specifies for the wrapPolygon element (§20.4.2.16) the type CT_WrapPath. It is a sequence of one element "start" and at least two elements "lineTo". These have the type CT_Point2D. That has the attributes "x" and "y" with values of type ST_Coordinate. Such can be a ST_CoordinateUnqualified or a ST_UniversalMeasure.

Word does not write units but pure numbers, so uses ST_CoordinateUnqualified. The standard specifies in §20.1.10.19, that this numbers have to be in unit EMU.

But Word does not interpret this values as having unit EMU. From what I see in the file, I guess, that Word uses the numbers unitless, so as if the shape rectangle has a CoordSize "21600 21600".

Is this observation correct? If yes, this needs to be documented.

Kind regards
Regina

openspecs-office
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @ReginaHenschel-4160 ,

Thank you for your question. One of our engineers will respond soon to assist.

Mike Bowen
Microsoft Open Specifications

0 Votes 0 ·

Hi Regina,

I'll look into this and get back to you shortly.

Best regards,
Tom Jebo
Sr Escalation Engineer
Microsoft Open Specifications

0 Votes 0 ·
TomJebo-9587 avatar image
0 Votes"
TomJebo-9587 answered TomJebo-9587 edited

Hey Regina,

In MS-OI29500, 2.1.1349 it says:

2.1.1349 Part 1 Section 20.4.2.9, lineTo (Wrapping Polygon Line End Position)
For additional notes that apply to this portion of the standard, please see the notes for chOff,
§20.1.7.2(b).
a. The standard states that the x and y attributes are represented in EMUs.
Office interprets the x and y attributes in a fixed coordinate space of 21600x21600.

Did you see this already?

Tom

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Tom,

no, I have not seen that. Thank you for pointing me to that part. A sentence in 3.1.4.2.2.1 ST_CoordinateUnqualified (Coordinate) with link to 2.1.1349 and 2.1.1352 might help readers not to oversee it.

Kind regards
Regina

0 Votes 0 ·

Thanks for the suggestion Regina, <edit> I'll pass this on as a possible helpful enhancement to MS-OI29500.

Tom

0 Votes 0 ·
ReginaHenschel-4160 avatar image
0 Votes"
ReginaHenschel-4160 answered

I have seen the note
"Note that Office treats these differently in some circumstances. See §20.4.2.9(a), lineTo and §20.4.2.14(a), start."
in [MS-OI29500] - v20210817

I think, that solves the problem.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.