Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG vector image: arrow-head not displayed #75

Closed
nicesw123 opened this issue Dec 19, 2014 · 7 comments
Closed

SVG vector image: arrow-head not displayed #75

nicesw123 opened this issue Dec 19, 2014 · 7 comments
Assignees
Labels

Comments

@nicesw123
Copy link

Hi!

The following sample.adoc:

= Test include of SVG

Here comes the image `arrows.svg`:

image::arrows.svg[]

does not display the arrow-heads in the SVG image.

Source of the SVG arrows.svg (for copy-pasting):

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->

<svg
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:cc="http://creativecommons.org/ns#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
   width="200"
   height="200"
   id="svg2"
   version="1.1"
   inkscape:version="0.48.5 r10040"
   sodipodi:docname="New document 1">
  <sodipodi:namedview
     id="base"
     pagecolor="#ffffff"
     bordercolor="#666666"
     borderopacity="1.0"
     inkscape:pageopacity="0.0"
     inkscape:pageshadow="2"
     inkscape:zoom="1.979899"
     inkscape:cx="131.67459"
     inkscape:cy="71.158705"
     inkscape:document-units="px"
     inkscape:current-layer="layer1"
     showgrid="false"
     inkscape:window-width="1680"
     inkscape:window-height="948"
     inkscape:window-x="0"
     inkscape:window-y="31"
     inkscape:window-maximized="1" />
  <defs
     id="defs4">
    <marker
       style="overflow:visible;"
       id="Arrow1Lend"
       refX="0.0"
       refY="0.0"
       orient="auto"
       inkscape:stockid="Arrow1Lend">
      <path
         transform="scale(0.8) rotate(180) translate(12.5,0)"
         style="fill-rule:evenodd;stroke:#000000;stroke-width:1.0pt;"
         d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z "
         id="path3762" />
    </marker>
    <marker
       style="overflow:visible"
       id="Arrow1Lend-3"
       refX="0"
       refY="0"
       orient="auto"
       inkscape:stockid="Arrow1Lend">
      <path
         transform="matrix(-0.8,0,0,-0.8,-10,0)"
         style="fill-rule:evenodd;stroke:#000000;stroke-width:1pt"
         d="M 0,0 5,-5 -12.5,0 5,5 0,0 z"
         id="path3762-1"
         inkscape:connector-curvature="0" />
    </marker>
    <marker
       style="overflow:visible;"
       id="Arrow1LendK"
       refX="0.0"
       refY="0.0"
       orient="auto"
       inkscape:stockid="Arrow1LendK">
      <path
         transform="scale(0.8) rotate(180) translate(12.5,0)"
         style="stroke:#ff0000;stroke-width:1.0pt;fill:#ff0000;fill-rule:evenodd"
         d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z "
         id="path4230" />
    </marker>
  </defs>
  <metadata
     id="metadata7">
    <rdf:RDF>
      <cc:Work
         rdf:about="">
        <dc:format>image/svg+xml</dc:format>
        <dc:type
           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
        <dc:title></dc:title>
      </cc:Work>
    </rdf:RDF>
  </metadata>
  <g
     transform="translate(0,-852.36218)"
     id="layer1"
     inkscape:groupmode="layer"
     inkscape:label="Layer 1">
    <path
       transform="translate(0,852.36218)"
       inkscape:connector-curvature="0"
       id="path2985"
       d="M 26.263966,144.94669 122.22846,94.439059"
       style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#Arrow1Lend)" />
    <path
       inkscape:connector-curvature="0"
       id="path2985-7"
       d="M 40.406101,953.8723 136.3706,903.36467"
       style="stroke-linejoin:miter;marker-end:url(#Arrow1LendK);stroke-opacity:1;stroke:#ff0000;stroke-linecap:butt;stroke-width:1px;fill:#ff0000" />
  </g>
</svg>
@mojavelinux
Copy link
Member

This is very likely an upstream issue in prawn-svg. Can you file it there?

https://github.com/mogest/prawn-svg

@nicesw123
Copy link
Author

Indeed it is a prawn-svg issue. Issue filed there: mogest/prawn-svg#49

@mojavelinux
Copy link
Member

I've upgraded prawn-svg to include the fix.

@mojavelinux mojavelinux added this to the v1.5.0 milestone May 11, 2015
@mojavelinux mojavelinux self-assigned this May 11, 2015
@nicesw123
Copy link
Author

I've upgraded prawn-svg to include the fix.

It was never fixed.
Unfortunately prawn-svg does not yet implement "svg marker" element, used to show arrow-heads, etc.

@mojavelinux
Copy link
Member

Oops. Sorry, I closed the wrong issue. I got it mixed up with #102. Reopening.

@mojavelinux mojavelinux reopened this May 11, 2015
@mojavelinux mojavelinux removed this from the v1.5.0 milestone May 11, 2015
@mojavelinux
Copy link
Member

I see that the author has decided not to fix the problem. I'll leave this issue open so that people are aware of the situation.

@mojavelinux mojavelinux added this to the v1.5.0.alpha.12 milestone Apr 24, 2016
@mojavelinux
Copy link
Member

...and now this is resolved :) See related issue for details (mogest/prawn-svg#49).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants