OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

office message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [Fwd: [office-comment] Points are integers in ODF,but floating-point in SVG]


Dear TC members,

Søren Roug's comment is valid. ODF contains a limitation on integer 
values that SVG does not contain.

First question: Do we want to remove this limitation? My personal 
opinion is: yes.

Second question: If we want to remove the limitation, how do we do so in 
the schema. The schema currently contains a string pattern. Extending 
this pattern is not only difficult, but the result will also be 
difficult to read. The alternative would be to remove the pattern from 
the schema, and to instead specify in the descriptive text of the 
"points" type that the value shall accept the values defined by the 
grammar in section 9.8 of SVG. We did something similar already for the 
"shadowType" defines in section 15.4.27.

We actually have a similar issue with the "vector3D" type, although 
there is no corresponding data type in some of existing standard. 
"vector3D" already supports doubles, but none which contain exponents. 
Again extending the pattern, what seems to be reasonable, is difficult 
and will lead to rather complex and hard-to-read patterns.

Yet another related issue, also reported by Søren Roug on the comment 
list, is that colors in ODF, do support RGB values only, but not the 
additional values that XSL-FO supports.

Best regards

Michael

-------- Original Message --------
Subject: [office-comment] Points are integers in ODF, but floating-point 
in SVG
Date: Sun, 04 Feb 2007 12:07:41 +0100
From: Soren Roug <soren.roug@eea.europa.eu>
Reply-To: soren.roug@eea.eu.int
Organization: European Environment Agency
To: office-comment@lists.oasis-open.org

To the technical committee,

Section 9.2.3 in OpenDocument-v1.1-cs1.odt says that the draw:points 
attribute
stores a sequence of points, which are connected by straight lines. Each
point consists of two coordinates. The coordinates are separated by a comma
and the points are separated by white spaces.

Looking closer at section 16.1,  points are defined as
<define name="points">
	<data type="string">
		<param name="pattern">-?[0-9]+,-?[0-9]+([ ]+-?[0-9]+,-?[0-9]+)*</param>
	</data>
</define>

The pattern does not allow the decimal point, so all coordinates are 
integer.

I just wish to point out that SVG allows points to be integer as well as
floating point. See http://www.w3.org/TR/SVG/shapes.html#PointsBNF

The same problem applies to the viewBox attribute. The SVG spec doesn't
specifically say in the DTD that the values in the viewBox can be floating
point. It just says in the text that they are four numbers. But 'number' is
defined in the DTD as floating point.

Additionally, OpenOffice.org uses floating point points, and therefore is
invalid ODF.

I don't know who needs to take action on this issue, so I'm posting it here.

There are other issues that the committee should be aware of. In section
9.3.10 there is a reference to an svg:points attribute, but this 
attribute is
nowhere defined in the RelaxNG schema.

Sincerely yours
Søren Roug
European Environment Agency

This publicly archived list offers a means to provide input to the
OASIS Open Document Format for Office Applications (OpenDocument) TC.

In order to verify user consent to the Feedback License terms and
to minimize spam in the list archive, subscription is required
before posting.

Subscribe: office-comment-subscribe@lists.oasis-open.org
Unsubscribe: office-comment-unsubscribe@lists.oasis-open.org
List help: office-comment-help@lists.oasis-open.org
List archive: http://lists.oasis-open.org/archives/office-comment/
Feedback License: http://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
Committee: http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=office


-- 
Michael Brauer, Technical Architect Software Engineering
StarOffice/OpenOffice.org
Sun Microsystems GmbH             Nagelsweg 55
D-20097 Hamburg, Germany          michael.brauer@sun.com
http://sun.com/staroffice         +49 40 23646 500
http://blogs.sun.com/GullFOSS

Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1,
        D-85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Marcel Schneider, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]