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: Re: [office] Proposal for extending stroke dashed


Hi,

as agreed in the last TC call, I have clarified to what "width" the 
percentage values relate. It is the width of the stroke as defined by 
"svg:stroke-width" attribute defined in section 15.13.4.

The terminology used by ODF actually has been taken from SVG, which 
calls lines that are painted along the outline of a graphical shape 
"stroke". Strokes themselves are defined in section 15.13 of the ODF 
specification.

So, using a percentage value for the dot-length attributes means that 
the length of the dots is calculated using the width (or thickness) of 
the line that is drawn around the shape as basis, but not the geometry 
of the shape. Below is a revised the proposal to make this clearer.

14.14.7.4 Dots

The attribute pairs draw:dots1, draw:dots1-length and draw:dots2,
draw:dots2-length each define a repeating sequence of dots that are used
to render a stroke. Both sequences are used alternating. The draw:dots1 
attribute specifies the number of dots for the first sequence and the 
draw:dots1-length attribute specifies the length of each of these dots. 
The draw:dots2 and draw:dots2-length attributes specify the number of 
dots for the second sequence and their length.

The draw:dots1-length and draw:dots2-length may take percentage values 
in addition to absolute lengths. Percentage values relate to width of 
the stroke as defined by the "svg:stroke-width" attribute defined in 
section 15.13.4.

Best regards

Michael


Michael Brauer - Sun Germany - ham02 - Hamburg wrote:
> Hi,
> 
> please find below a proposal for extending stroke dashes. The author of 
> the proposal is Christian Lippka, from the OOo Impress team.
> 
> Best regards
> 
> Michael
> 
> -----------------------------------------------------------------------
> 
> Stroke dashes can currently only configured to have a fixed length for 
> dashes. It is reasonable to also allow to set the length of dashes 
> relative to the width of the stroke. So if the width of the stroke 
> changes size the dashes are changing size also. This would also be 
> needed for the distance between dashes or dots.
> 
> So I propose to change ODF v1.2 draft 3 section 14.14.7.4 and  14.14.7.5 
> as follows:
> 
> 14.14.7.4 Dots
> 
> The attribute pairs draw:dots1, draw:dots1-length and draw:dots2, 
> draw:dots2-length each define a repeating sequence of dots that are used 
> to render a dash. Both sequences are used alternating. The draw:dots1 
> attribute specifies the number of dots for the first sequence and the 
> draw:dots1-length attribute specifies the length of each of these dots. 
> The draw:dots2 and draw:dots2-length attributes specify the number of 
> dots for the second sequence and their length.
> 
> If the length are given as percentage values, the length will be 
> calculated as percentages from the with of the line that gets stroked.
> 
> <define name="draw-stroke-dash-attlist" combine="interleave">
>   <optional>
>     <attribute name="draw:dots1">
>       <ref name="integer"/>
>     </attribute>
>   </optional>
>   <optional>
>     <attribute name="draw:dots1-length">
>       <choice>
>         <ref name="length"/>
>         <ref name="percent"/>
>       </choice>
>     </attribute>
>   </optional>
>   <optional>
>     <attribute name="draw:dots2">
>       <ref name="integer"/>
>     </attribute>
>   </optional>
>   <optional>
>     <attribute name="draw:dots2-length">
>       <choice>
>         <ref name="length"/>
>         <ref name="percent"/>
>       </choice>
>     </attribute>
>   </optional>
> </define>
> 
> 14.14.7.5 Distance
> 
> The draw:distance attribute specifies the distance between the dots of a 
> dash. If the length is given as a percentage value, the length will be 
> calculated as percentages from the with of the line that gets stroked.
> 
> <define name="draw-stroke-dash-attlist" combine="interleave">
>   <optional>
>     <attribute name="draw:distance">
>       <choice>
>         <ref name="length"/>
>         <ref name="percent"/>
>       </choice>
>     </attribute>
>   </optional>
> </define>
> 


-- 
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: Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering


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