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: MtnViewJohn, chris, mtnviewmark

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

malfunction in svg output

Post by PK »

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: 882
Joined: Fri May 06, 2005 2:26 pm
Location: Mountain View, California
Contact:

Post by MtnViewJohn »

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

Post Reply