Remove from list please.
On Mar 17, 2015 8:00 AM, <dia-list-requ...@gnome.org> wrote:

> Send dia-list mailing list submissions to
>         dia-list@gnome.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://mail.gnome.org/mailman/listinfo/dia-list
> or, via email, send a message with subject or body 'help' to
>         dia-list-requ...@gnome.org
>
> You can reach the person managing the list at
>         dia-list-ow...@gnome.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of dia-list digest..."
>
>
> Today's Topics:
>
>    1. Re: svg:transform rotate (Hans Breuer)
>    2. Re: svg:transform rotate (Andrey Repin)
>    3. A trick for shape creators (Andrey Repin)
>    4. Re: svg:transform rotate (Andrey Repin)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 16 Mar 2015 22:13:10 +0100
> From: Hans Breuer <h...@breuer.org>
> To: dia-list@gnome.org
> Subject: Re: svg:transform rotate
> Message-ID: <55074766.1000...@breuer.org>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Am 16.03.2015 um 03:07 schrieb Andrey Repin:
> > Greetings, Hans Breuer!
> >> But with master you can load the respective SVG and export it as shape
> to
> >> get the desired effect (see attachement).
> >
> > I've got around it by using svg:path. However, the "z" command is not
> executed
> > correctly, leaving a visual gap in place of the joint.
> >
> Gap confirmed with dia-0-97 branch and GDK renderer. One benefit of the big
> renderer interface change on master is preserving the close information.
> Formerly only Renderer::fill_bezier() was known to be closed, while
> Renderer::draw_bezier() was used for closed or open stroking. Now there is
> Renderer::draw_beziergon() to stroke and/or fill.
>
>  > [...]
> > However, there's another problem with this shape.
> > 1. I can't seem to make it 3x3, even if I add a background r=1.5 circle,
> the
> > resulting shape is a little thinner. Is this, perhaps, because ellipse
> is a
> > little taller than 3 units?
> Good guess, but it works for me with current master and the r=1.5 circle.
>
> > 2. How can I override the line colors and styles for certain elements of
> the
> > shape?
> Again this works for me with master. Setting shape colors is certainly
> possible with dia-0-97 as well, but I can confirm the lack of color with
> the released version and your shape. It is because of a deficiency
> extracting the color name from the style string. Two workarounds:
>   1) use numeric color representation
>   2) use stand-alone fill/stroke attributes
>
> > 3. When double-clicking the shape, I'm unable to set default line
> thickness.
> > And it always revert to 10mm on each new Dia start. With whole shape
> being
> > ~30mm... kind of not the visual I'm aiming for. Is this something that
> can be
> > worked around?
> >
> With master the kludge would be to get rid of the stroke-width by using a
> path with hole. For dia-0-97 I dont know a solution as explained in
> https://mail.gnome.org/archives/dia-list/2008-July/msg00084.html
>
> HTH,
>         Hans
>
> -------- Hans "at" Breuer "dot" Org -----------
> Tell me what you need, and I'll tell you how to
> get along without it.                -- Dilbert
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 17 Mar 2015 02:22:45 +0300
> From: Andrey Repin <anrdae...@freemail.ru>
> To: Hans Breuer <dia-list@gnome.org>
> Subject: Re: svg:transform rotate
> Message-ID: <11310647731.20150317022...@yandex.ru>
> Content-Type: text/plain; charset=us-ascii
>
> Greetings, Hans Breuer!
>
> >>> But with master you can load the respective SVG and export it as shape
> to
> >>> get the desired effect (see attachement).
> >>
> >> I've got around it by using svg:path. However, the "z" command is not
> executed
> >> correctly, leaving a visual gap in place of the joint.
> >>
> > Gap confirmed with dia-0-97 branch and GDK renderer. One benefit of the
> big
> > renderer interface change on master is preserving the close information.
> > Formerly only Renderer::fill_bezier() was known to be closed, while
> > Renderer::draw_bezier() was used for closed or open stroking. Now there
> is
> > Renderer::draw_beziergon() to stroke and/or fill.
>
>  >> [...]
> >> However, there's another problem with this shape.
> >> 1. I can't seem to make it 3x3, even if I add a background r=1.5
> circle, the
> >> resulting shape is a little thinner. Is this, perhaps, because ellipse
> is a
> >> little taller than 3 units?
> > Good guess, but it works for me with current master and the r=1.5 circle.
>
> I'm going to make the ellipse a little smaller. Perhaps, my math to get
> endpoints was a little too lax in rounding.
>
> >> 2. How can I override the line colors and styles for certain elements
> of the
> >> shape?
> > Again this works for me with master. Setting shape colors is certainly
> > possible with dia-0-97 as well, but I can confirm the lack of color with
> > the released version and your shape. It is because of a deficiency
> > extracting the color name from the style string. Two workarounds:
> >   1) use numeric color representation
> >   2) use stand-alone fill/stroke attributes
>
> >> 3. When double-clicking the shape, I'm unable to set default line
> thickness.
> >> And it always revert to 10mm on each new Dia start. With whole shape
> being
> >> ~30mm... kind of not the visual I'm aiming for. Is this something that
> can be
> >> worked around?
> >>
> > With master the kludge would be to get rid of the stroke-width by using a
> > path with hole. For dia-0-97 I dont know a solution as explained in
> > https://mail.gnome.org/archives/dia-list/2008-July/msg00084.html
>
> I see at least one way of doing this, that is transparent and portable.
> If the style information is set using style=... or dia:style=... attribute,
> present it as Dia internal (customizable) attributes (to the best possible
> effect). In this case, values specified by shape are default values, if
> they
> make sense.
> If the style is present as svg:style=... - interpret it literal.
> When exporting to the SVG, just append real values of internal attributes
> to
> the list of literal attributes.
>
> This way, I could go with something like
>
> <shape xmlns="http://www.daa.com.au/~james/dia-shape-ns";
>     xmlns:dia="http://www.daa.com.au/~james/dia-shape-ns";
>     xmlns:svg="http://www.w3.org/2000/svg";>
>   <name>Custom - Styles mix</name>
>   <svg:svg width="300px" height="300px" viewBox="0 0 3 3">
>     <svg:circle dia:style="stroke: foreground;"
>       svg:style="fill: yellow; fill-opacity: 255; stroke-width: 0.1;
>         stroke-dasharray: 1 0.75; stroke-dashoffset: .5;"
>       cx="1.5" cy="1.5" r="0.5"/>
>   </svg:svg>
> </shape>
>
> And only control stroke color from Dia, while the rest is hardcoded in
> shape.
>
>
> --
> WBR,
> Andrey Repin (anrdae...@freemail.ru) 17.03.2015, <01:59>
>
> Sorry for my terrible english...
>
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 17 Mar 2015 04:25:51 +0300
> From: Andrey Repin <anrdae...@freemail.ru>
> To: All <dia-list@gnome.org>
> Subject: A trick for shape creators
> Message-ID: <63672500.20150317042...@yandex.ru>
> Content-Type: text/plain; charset=us-ascii
>
> Greetings, All!
>
> If you are like me, and want to make a number of very simple, but
> high-quality
> shapes from scratch, there's a little trick you can use to make your life a
> little easier in a long run.
>
> Create a symbolic link to your .shape file and name it "Yourshapename.svg"
> or
> "Yourshapename.xml", then use any SVG-enabled browser to preview your work.
> Opera, IE, Mosilla - make your choice.
>
> Just add necessary viewport specifications to <svg:svg /> element, like
> this:
>
>   <svg:svg width="300px" height="300px" viewBox="0 0 3 3">
>
> Unfortunately, SVG specification forbid the use of negative viewBox
> coordinates, but you can work around it by using transform:translate().
>
> P.S.
> It seems like only Opera 12 correctly parse namespaced attributes.
> I'm unimpressed.
>
>
> --
> WBR,
> Andrey Repin (anrdae...@freemail.ru) 17.03.2015, <03:09>
>
> Sorry for my terrible english...
>
>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 17 Mar 2015 05:14:54 +0300
> From: Andrey Repin <anrdae...@freemail.ru>
> To: Hans Breuer <dia-list@gnome.org>
> Subject: Re: svg:transform rotate
> Message-ID: <1054235689.20150317051...@yandex.ru>
> Content-Type: text/plain; charset=us-ascii
>
> Greetings, Hans Breuer!
>
> >>> But with master you can load the respective SVG and export it as shape
> to
> >>> get the desired effect (see attachement).
> >>
> >> I've got around it by using svg:path. However, the "z" command is not
> executed
> >> correctly, leaving a visual gap in place of the joint.
> >>
> > Gap confirmed with dia-0-97 branch and GDK renderer. One benefit of the
> big
> > renderer interface change on master is preserving the close information.
> > Formerly only Renderer::fill_bezier() was known to be closed, while
> > Renderer::draw_bezier() was used for closed or open stroking. Now there
> is
> > Renderer::draw_beziergon() to stroke and/or fill.
>
> Now, you make me want to set up windows building environment for Dia >.<
> Are you up for answering a bunch of stupid questions?
>
> >> [...]
> >> However, there's another problem with this shape.
> >> 1. I can't seem to make it 3x3, even if I add a background r=1.5
> circle, the
> >> resulting shape is a little thinner. Is this, perhaps, because ellipse
> is a
> >> little taller than 3 units?
> > Good guess, but it works for me with current master and the r=1.5 circle.
>
> After another try it worked for me too. Thanks.
>
> >> 2. How can I override the line colors and styles for certain elements
> of the
> >> shape?
> > Again this works for me with master. Setting shape colors is certainly
> > possible with dia-0-97 as well, but I can confirm the lack of color with
> > the released version and your shape. It is because of a deficiency
> > extracting the color name from the style string. Two workarounds:
> >   1) use numeric color representation
> >   2) use stand-alone fill/stroke attributes
>
> Got it with numeric colors, thank you.
>
>
> --
> WBR,
> Andrey Repin (anrdae...@freemail.ru) 17.03.2015, <05:11>
>
> Sorry for my terrible english...
>
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> dia-list mailing list
> dia-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/dia-list
>
>
> ------------------------------
>
> End of dia-list Digest, Vol 131, Issue 5
> ****************************************
>
_______________________________________________
dia-list mailing list
dia-list@gnome.org
https://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia

Reply via email to