malfunction in svg output

Let the developers know what you think of the software and what can be done to either improve the CFDG language or the Context Free program.

Moderators: chris, MtnViewMark, MtnViewJohn

Post Reply
PK
Posts: 1
Joined: Tue Jan 13, 2009 10:54 pm
Location: germany
Contact:

malfunction in svg output

Post by PK » Tue Jan 13, 2009 11:06 pm

Hello!

I just discovered cfdg few days ago. It's great - I downloaded v. 2.2 Beta3 for Linux.

Just I stumbled upon a malfunction in svg output: Triangles become "penrose darts".

cfdg:

Code: Select all

startshape Start
rule Start {TRIANGLE {}}
svg output with 2 comments:

Code: Select all

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!--               why not 500px?               -->
<svg width="500mm" height="500mm"
     xmlns="http://www.w3.org/2000/svg" version="1.1">
  <g transform="matrix(3.779528 0 0 -3.779528 0 1889.76)" fill="none" stroke="none">
<!--                                   this is superfluous: 0,0 -->
    <polygon points="0,0.57735 -0.5,-0.288675 0.5,-0.288675 0,0"
             fill="#000000" fill-rule="nonzero"
             transform="matrix(       484          0          0        484        250  180.14062)"/>
  </g>
</svg>

User avatar
MtnViewJohn
Site Admin
Posts: 844
Joined: Fri May 06, 2005 2:26 pm
Location: Mountain View, California
Contact:

Post by MtnViewJohn » Wed Jan 14, 2009 2:26 pm

Thanks. I will fix triangles and change the units from millimeters to pixels.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests