Re: [graphviz-interest] graphviz-interest Digest, Vol 136, Issue 2

steve roush <[email protected]> Thu, 5 Nov 2015 20:05:13 -0700
Newsgroups gmane.comp.video.graphviz
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============8251211295104798811==
Content-Type: multipart/alternative;
 boundary="------------020602080005070508000901"

This is a multi-part message in MIME format.
--------------020602080005070508000901
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit

I spent some time reading & debugging  the FIG & PIC renderers and:

 1. The Fig file format does support transparency (for exporting to gif)
 2. Yes, it looks like a bug in Dot's fig renderer dealing with transparency. 
    Not a trivial fix (because of the odd way Fig files support colors), but
    "doable".
 3. The error messages from 'pic' are because the PIC renderer produces troff
    comments within the PIC output instead of PIC comments, a trivial fix to the
    PIC renderer
 4. But wait!  The PIC renderer looks to me like is was started but never
    finished!  The ellipse code is close to being correct, but most of the rest
    is just placeholder.

For the time being, I suggest using awk to clean up the FIG files.

steve roush

On 11/4/2015 3:34 AM, Anton Shterenlikht wrote:
> My version of the script came out longer:
>
> BEGIN{done=0;started=0}
> { if ( started==1 && $0~/^ / ) { $0="#***GV BUG?*** " $0; done=1 } else {started=0}
>    if ( done==0 && $0~/^2 3 / ) { $0="#***GV BUG?*** " $0; started=1 }
> print }
>
> I use BSD awk, perhaps gawk allows for
> some simplifications.
>
> Anyway, does it appear as a graphviz bug to you
> that it adds image-size polygon when fig filter
> is invoked?
>
> Also, I was expecting Mrecord smooth box corners
> to be translated to fig as arcs, but these appear
> to be translated as open splines (3 4).
> Is this intendend?
>
> Many thanks
>
> Anton
>


--------------020602080005070508000901
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

<html>
  <head>
    <meta content=3D"text/html; charset=3Dwindows-1252"
      http-equiv=3D"Content-Type">
  </head>
  <body bgcolor=3D"#FFFFFF" text=3D"#000000">
    I spent some time reading &amp; debugging=A0 the FIG &amp; PIC
    renderers and:<br>
    <ol>
      <li>The Fig file format does support transparency (for exporting
        to gif)</li>
      <li>Yes, it looks like a bug in Dot's fig renderer dealing with
        transparency.=A0 Not a trivial fix (because of the odd way Fig
        files support colors), but "doable".</li>
      <li>The error messages from 'pic' are because the PIC renderer
        produces troff comments within the PIC output instead of PIC
        comments, a trivial fix to the PIC renderer</li>
      <li>But wait!=A0 The PIC renderer looks to me like is was started
        but never finished!=A0 The ellipse code is close to being correct=
,
        but most of the rest is just placeholder.<br>
      </li>
    </ol>
    For the time being, I suggest using awk to clean up the FIG files.<br=
>
    <br>
    steve roush<br>
    <br>
    <div class=3D"moz-cite-prefix">On 11/4/2015 3:34 AM, Anton
      Shterenlikht wrote:<br>
    </div>
    <blockquote
      cite=3D"mid:[email protected]"
      type=3D"cite">
      <pre wrap=3D"">
My version of the script came out longer:

BEGIN{done=3D0;started=3D0}
{ if ( started=3D=3D1 &amp;&amp; $0~/^ / ) { $0=3D"#***GV BUG?*** " $0; d=
one=3D1 } else {started=3D0}
  if ( done=3D=3D0 &amp;&amp; $0~/^2 3 / ) { $0=3D"#***GV BUG?*** " $0; s=
tarted=3D1 }
print }

I use BSD awk, perhaps gawk allows for
some simplifications.

Anyway, does it appear as a graphviz bug to you
that it adds image-size polygon when fig filter
is invoked?

Also, I was expecting Mrecord smooth box corners
to be translated to fig as arcs, but these appear
to be translated as open splines (3 4).
Is this intendend?

Many thanks

Anton

</pre>
    </blockquote>
    <br>
  </body>
</html>

--------------020602080005070508000901--

--===============8251211295104798811==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
[email protected]
http://lists.research.att.com/mailman/listinfo/graphviz-interest

--===============8251211295104798811==--