[prev in list] [next in list] [prev in thread] [next in thread] 

List:       calligra-devel
Subject:    Re: Review Request 110928: Always save the position of a shape
From:       "C. Boemann" <cbr () boemann ! dk>
Date:       2013-06-15 15:28:28
Message-ID: 20130615152828.7034.64037 () vidsolbach ! de
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


> On June 10, 2013, 5:52 p.m., C. Boemann wrote:
> > I still don't see the relation to the bug nor do I understand why we need to save \
> > 0,0
> 
> Inge Wallin wrote:
> Ah, now I understand why everybody focusses on the bug.  I was unclear in my \
> description.  "This bug" in the description is about the bug I described, not the \
> bug in bugzilla.  I was just mentioning the bug in bugzilla because it provided me \
> with a file where I noticed the problem first time. 
> Regarding why we need to save 0,0...  Can you point me to the place in the spec \
> where it says that 0,0 is the default value? If not, there's your answer. 
> Elvis Stansvik wrote:
> In 19.573.5 the spec refers to 5.2.1 of the SVG spec which says 0,0 is the default \
> [1]. Not 100% sure this is what we're talking about here, so someone please fill me \
> in if I'm wrong :) 
> [1] http://www.w3.org/TR/2003/REC-SVG11-20030114/struct.html#SVGElement
> 
> Inge Wallin wrote:
> No, this is the svg element.  We are talking about svg:x and svg:y attributes.  But \
> there is probably a relation. 
> Elvis Stansvik wrote:
> Right, but that's the section of the SVG spec the ODF spec references in 19.573.5 \
> [1], and it includes the definition of the x and y attributes (see under "Attribute \
> definitions"). So the way I read it is that x/y should be treated the same as for \
> the svg element in the SVG spec. But I may be wrong. 
> [1] http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1418216_253892949
>  
> Sebastian Sauer wrote:
> Yes, that's correct. Grep for "svg-compatible" in \
> http://docs.oasis-open.org/office/v1.2/OpenDocument-v1.2-part1.html which gives a \
> nice table explaining that ODF uses the svg prefix for "Elements and attributes \
> that are compatible to elements or attributes defined in [SVG]." including link to \
> the SVG specs. 
> For a longer explanation of the background see \
> http://www.w3.org/Graphics/SVG/WG/wiki/Proposals/SVG_in_ODF 
> re optional see also \
> http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-schema.rng 
> <define name="common-draw-position-attlist">
> <optional>
> <attribute name="svg:x">
> <ref name="coordinate"/>
> </attribute>
> </optional>
> <optional>
> <attribute name="svg:y">
> <ref name="coordinate"/>
> </attribute>
> </optional>
> </define>
> 
> 
> Inge Wallin wrote:
> Ok, that does it.  I'm convinced.  :)
> Still, I think that it would be nice to always save x and y so that also non-well \
> behaved applications could read the files.  Opinions?  If there are only negative \
> reactions to this I will retract the RR.

I don't have negative reaction to your suggestion to always save. I mean normally we \
don't save that many shapes at 0,0 anyway so it's unlikely to be a big change in \
practice.


- C.


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/110928/#review34071
-----------------------------------------------------------


On June 10, 2013, 7:18 p.m., Inge Wallin wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/110928/
> -----------------------------------------------------------
> 
> (Updated June 10, 2013, 7:18 p.m.)
> 
> 
> Review request for Calligra.
> 
> 
> Description
> -------
> 
> When a shape is in the position 0, 0 and there are no other transformations, the \
> position will not be saved back. In other words, there will be an svg:height and \
> svg:width but no svg:x or svg:y.  I noticed this while trying to fix \
> https://bugs.kde.org/show_bug.cgi?id=184727. 
> This patch fixes that the code doesn't save the position.  I suggest that we apply \
> it to 2.7 as well and maybe also to 2.6. 
> 
> Diffs
> -----
> 
> libs/flake/KoShape.cpp 6d14a8c 
> 
> Diff: http://git.reviewboard.kde.org/r/110928/diff/
> 
> 
> Testing
> -------
> 
> Tested with the file mentioned above.
> 
> 
> Thanks,
> 
> Inge Wallin
> 
> 


[Attachment #5 (text/html)]

<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 \
solid;">  <tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="http://git.reviewboard.kde.org/r/110928/">http://git.reviewboard.kde.org/r/110928/</a>
  </td>
    </tr>
   </table>
   <br />





<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <p style="margin-top: 0;">On June 10th, 2013, 5:52 p.m. UTC, <b>C. \
Boemann</b> wrote:</p>  <blockquote style="margin-left: 1em; border-left: 2px solid \
#d0d0d0; padding-left: 10px;">  <pre style="white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">I still don&#39;t see the relation to the bug nor do I understand why we \
need to save 0,0</pre>  </blockquote>




 <p>On June 10th, 2013, 7:16 p.m. UTC, <b>Inge Wallin</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Ah, now I understand why \
everybody focusses on the bug.  I was unclear in my description.  &quot;This \
bug&quot; in the description is about the bug I described, not the bug in bugzilla.  \
I was just mentioning the bug in bugzilla because it provided me with a file where I \
noticed the problem first time.

Regarding why we need to save 0,0...  Can you point me to the place in the spec where \
it says that 0,0 is the default value? If not, there&#39;s your answer.</pre>  \
</blockquote>





 <p>On June 10th, 2013, 8:16 p.m. UTC, <b>Elvis Stansvik</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">In 19.573.5 the spec \
refers to 5.2.1 of the SVG spec which says 0,0 is the default [1]. Not 100% sure this \
is what we&#39;re talking about here, so someone please fill me in if I&#39;m wrong \
:)

[1] http://www.w3.org/TR/2003/REC-SVG11-20030114/struct.html#SVGElement</pre>
 </blockquote>





 <p>On June 12th, 2013, 8:04 a.m. UTC, <b>Inge Wallin</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">No, this is the svg \
element.  We are talking about svg:x and svg:y attributes.  But there is probably a \
relation.  </pre>  </blockquote>





 <p>On June 12th, 2013, 10:36 a.m. UTC, <b>Elvis Stansvik</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Right, but that&#39;s \
the section of the SVG spec the ODF spec references in 19.573.5 [1], and it includes \
the definition of the x and y attributes (see under &quot;Attribute \
definitions&quot;). So the way I read it is that x/y should be treated the same as \
for the svg element in the SVG spec. But I may be wrong.

[1] http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1418216_253892949</pre>
  </blockquote>





 <p>On June 12th, 2013, 1:49 p.m. UTC, <b>Sebastian Sauer</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Yes, that&#39;s correct. \
Grep for &quot;svg-compatible&quot; in \
http://docs.oasis-open.org/office/v1.2/OpenDocument-v1.2-part1.html which gives a \
nice table explaining that ODF uses the svg prefix for &quot;Elements and attributes \
that are compatible to elements or attributes defined in [SVG].&quot; including link \
to the SVG specs.

For a longer explanation of the background see \
http://www.w3.org/Graphics/SVG/WG/wiki/Proposals/SVG_in_ODF

re optional see also \
http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-schema.rng

&lt;define name=&quot;common-draw-position-attlist&quot;&gt;
        &lt;optional&gt;
                &lt;attribute name=&quot;svg:x&quot;&gt;
                        &lt;ref name=&quot;coordinate&quot;/&gt;
                &lt;/attribute&gt;
        &lt;/optional&gt;
        &lt;optional&gt;
                &lt;attribute name=&quot;svg:y&quot;&gt;
                        &lt;ref name=&quot;coordinate&quot;/&gt;
                &lt;/attribute&gt;
        &lt;/optional&gt;
&lt;/define&gt;
</pre>
 </blockquote>





 <p>On June 15th, 2013, 2:37 p.m. UTC, <b>Inge Wallin</b> wrote:</p>
 <blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Ok, that does it.  \
I&#39;m convinced.  :) Still, I think that it would be nice to always save x and y so \
that also non-well behaved applications could read the files.  Opinions?  If there \
are only negative reactions to this I will retract the RR.</pre>  </blockquote>








</blockquote>

<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">I don&#39;t have \
negative reaction to your suggestion to always save. I mean normally we don&#39;t \
save that many shapes at 0,0 anyway so it&#39;s unlikely to be a big change in \
practice.</pre> <br />










<p>- C.</p>


<br />
<p>On June 10th, 2013, 7:18 p.m. UTC, Inge Wallin wrote:</p>








<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" \
style="background-image: \
url('http://git.reviewboard.kde.org/static/rb/images/review_request_box_top_bg.ab6f3b1072c9.png'); \
background-position: left top; background-repeat: repeat-x; border: 1px black \
solid;">  <tr>
  <td>

<div>Review request for Calligra.</div>
<div>By Inge Wallin.</div>


<p style="color: grey;"><i>Updated June 10, 2013, 7:18 p.m.</i></p>






<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
 <table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" \
style="border: 1px solid #b8b5a0">  <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">When a shape is in the position 0, 0 and there are no other \
transformations, the position will not be saved back. In other words, there will be \
an svg:height and svg:width but no svg:x or svg:y.  I noticed this while trying to \
fix https://bugs.kde.org/show_bug.cgi?id=184727.

This patch fixes that the code doesn&#39;t save the position.  I suggest that we \
apply it to 2.7 as well and maybe also to 2.6.</pre>  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: \
1px solid #b8b5a0">  <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: \
-moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: \
break-word;">Tested with the file mentioned above.</pre>  </td>
 </tr>
</table>




<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>libs/flake/KoShape.cpp <span style="color: grey">(6d14a8c)</span></li>

</ul>

<p><a href="http://git.reviewboard.kde.org/r/110928/diff/" style="margin-left: \
3em;">View Diff</a></p>







  </td>
 </tr>
</table>








  </div>
 </body>
</html>



_______________________________________________
calligra-devel mailing list
calligra-devel@kde.org
https://mail.kde.org/mailman/listinfo/calligra-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic