Import of curved connectors from OOXML

Regina Henschel rb.henschel at t-online.de
Fri Nov 3 20:48:22 UTC 2023


Hi Thorsten,

Thorsten Behrens schrieb am 03.11.2023 um 20:07:
> Hi Regina,
> 
> Regina Henschel wrote:
>> I could try to approximate the OOXML curve by defining ersatz adjustment
>> values. What criteria should be used for such an approximation? Anyway, it
>> is mathematically complex, especially for cases with two or three handles.
>>
> Sounds like a good reason then to extend ODF's connector types?

The relevant section [1] in ODF is:
<quote>
10.3.10 <draw:connector>

The <draw:connector> element represents a connected set of one or more 
lines that visually connects a start and an end point.

Start and/or end points can be defined by references to glue points 
10.3.16 or as absolute positions.  The connector's geometric path is 
defined by the svg:d 19.530 attribute. Consumers may also compute the 
connector's geometric path considering the draw:type 19.229.2 and 
draw:line-skew 19.190 attributes, and the formatting properties defined 
for connectors.

If the svg:d attribute is not present, the connector's geometric path is 
implementation-dependent. Producers should export the connector's 
geometric path using the svg:d attribute.
</quote>

ODF has no rule at all, how to generate the path for a curve connector 
and a producer need not even define his way to do it. That is different 
in OOXML. There the connector path is specified and it is only up to the 
producer which type of connector and which adjustment values he uses.

It is not an ODF problem.

[1] 
https://docs.oasis-open.org/office/OpenDocument/v1.3/os/part3-schema/OpenDocument-v1.3-os-part3-schema.html#element-draw_connector

Kind regards,
Regina


More information about the LibreOffice mailing list