You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2013/05/16 13:52:53 UTC

[Bug 122326] New: SVG: missing text after breaking SVG

https://issues.apache.org/ooo/show_bug.cgi?id=122326

            Bug ID: 122326
        Issue Type: DEFECT
           Summary: SVG: missing text after breaking SVG
    Classification: Application
           Product: Draw
           Version: AOO400-dev
          Hardware: All
                OS: All
            Status: CONFIRMED
          Severity: normal
          Priority: P3
         Component: editing
          Assignee: Armin.Le.Grand@me.com
          Reporter: arielch@apache.org
                CC: issues@openoffice.apache.org

- New Draw document
. Insert any of
  http://www.w3.org/TR/SVG/images/text/tspan01.svg
  http://www.w3.org/TR/SVG/images/text/tref01.svg
- break the graphic
- the text is missing

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug 122326] SVG: missing text after breaking SVG

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122326

--- Comment #2 from Ariel Constenla-Haile <ar...@apache.org> ---
The problems seems to be in the break operation:

- Insert http://www.w3.org/TR/SVG/images/text/tspan01.svg
- Convert to metafile - text is there in the metafile
- Break the metafile - text is missing

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug 122326] SVG: missing text after breaking SVG

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122326

Armin Le Grand <Ar...@me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |ACCEPTED

--- Comment #1 from Armin Le Grand <Ar...@me.com> ---
ALG: The general problem here is that we have no code yet to convert a sequence
of primitives to SdrObjects. Thus, the current path is to convert to a metafile
and use the existing code to convert metafile to SdrObjects. That code is old
and not complete, even if I add stuff from time to time (esp. the last 2 weeks
already). A better and full solution would be to change a
primitive_to_SdrObject converter what I would love to do, but earliest after
4.0.
Still, it's a defect and a good reason to get this done soon.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug 122326] SVG: missing text after breaking SVG

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122326

--- Comment #5 from SVN Robot <sv...@dev.null.org> ---
"alg" committed SVN revision 1483717 into trunk:
i122326 added text clipping, corrected text box distances

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug 122326] SVG: missing text after breaking SVG

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122326

Armin Le Grand <Ar...@me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |AOO 4.0

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug 122326] SVG: missing text after breaking SVG

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122326

--- Comment #3 from Armin Le Grand <Ar...@me.com> ---
ALG: Yes, that's what I wanted to express with Comment 1.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug 122326] SVG: missing text after breaking SVG

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122326

Armin Le Grand <Ar...@me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ACCEPTED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Armin Le Grand <Ar...@me.com> ---
ALG: Added, done.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug 122326] SVG: missing text after breaking SVG

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122326

--- Comment #4 from Armin Le Grand <Ar...@me.com> ---
ALG: Took a look and text is not handled properly. Adding text clipping (as
text or as polygons when over clip bounds). Also correcting border distance
settings to get the text not offsetted as currently. Adapted example
tspan01.svg to have text inside, on and outside the clip region. Clip region:
The SVG defines one, thus it's also set in the metafile. It defines one because
the viewBox="0 0 1000 300" and the <rect x="1" y="1" width="998" height="298"
fill="none" stroke="blue" stroke-width="2" /> overlap by -1 in x and y since
the line of width '2' (which may have been intended to lay inside the
definition) is centered on the rectangle.

-- 
You are receiving this mail because:
You are on the CC list for the bug.