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: Shapes in OOo, SVG


Hello,

here is a list of basic shapes, and their geometry descriptions in SVG 
and the OOo format. As you can see, OOo uses mostly svg: attributes, but 
in several isntances uses them differently from svg.

To prepare the discussion, some of those can be reconciled very easily; 
in other cases, one may run more into a conceptual problems.



draw:rect
   svg:x, svg:y, svg:width, svg:height, draw:corner-radius
svg:rect
   svg:x, svg:y, svg:width, svg:height,
   svg:rx, svg:ry

draw:line
   svg:x1, svg:x2, svg:y1, svg:y2
svg:line
   same

draw:polyline
   svg:x, svg:y, svg:width, svg:height
   draw:points, svg:viewBox
svg:polyline
   svg:points

draw:polygon
   svg:x, svg:y, draw:points, svg:viewBox
svg:polygon
   svg:points

draw:path
   svg:x, svg:y, svg:d, svg:viewBox
svg:path
   svg:d

draw:circle
   svg:x, svg:y, svg:width, svg:height
svg:circle
   svg:cx, svg:cy, svg:r

draw:ellipse
   svg:x, svg:y, svg:width, svg:height
svg:ellipse
   svg:cx, svg:cy, svg:rx, svg:ry

draw:connector
   svg:x1, svg:y1, draw:start-shape, draw:start-glue-point
   (+same for end point)
none?

draw:caption
   draw:caption-point-x/y, draw:corner-radius
none?

draw:measure
   svg:x1, svg:y1, svg:x2, svg:y2
none?

draw:control
   svg:x, svg:y, svg:width, svg:height
none?

draw:page-thumbnail
   svg:x, svg:y, svg:width, svg:height
none?

draw:g
   none
svg:g
   none

draw:text-box
   svg:x, svg:y, svg:width, svg:height, style:rel-height,
   style:rel-width, fo:min-height
svg:text, svg:tspan
   svg:x, svg:y, svg:dx, svg:dy, svg:rotate
   (value sequences)

Notes:
- OOo allows for text-anchoring of shapes
   [replace x,y attributes with anchor attribute]
- OOo generally uses absolute values;
   SVG typically establishes a viewbox in absolute values at top element
- OOo elements generally allow text content




Sincerely,
Daniel



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