unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* [WISH] Picture language: Improve editability of generated SVG
@ 2022-04-07 20:36 Luis Felipe
  0 siblings, 0 replies; only message in thread
From: Luis Felipe @ 2022-04-07 20:36 UTC (permalink / raw)
  To: guile-user, Ricardo Wurmus


[-- Attachment #1.1: Type: text/plain, Size: 1274 bytes --]

Hi,

After reading the home page of the project, I understand this may be out of the scope, but I'm enjoying this tool and would enjoy it even more if the objects in the generated SVGs were easier to edit (in Inkscape, for example).

So, the following may be already known, but I'll explain just in case.

Take this program for example:

~~~
(use-modules (pict))

(define hat (triangle 20 20))
(define hat-pile
  (vc-append (hc-append hat hat)
             (hc-append hat hat)))

(pict->file hat-pile "hat-pile.svg")
~~~

In the resulting SVG, the hat objects are deeply nested one into each other, which makes it hard to select them individually. For example, to select the bottom-right hat, one has to double-click hats minus one times to get to it. Also, once you select an object, you can't move it around nor rotate it.

In (Dr)Racket, for example, the resulting hats would be all into one group; ungrouping lets them all readily available for edition. For example:

~~~
(require 2htdp/image)

(define hat (triangle 20 "solid" "orange"))
(define hat-pile
  (above (beside hat hat)
         (beside hat hat)))

(save-svg-image hat-pile "racket-hat-pile.svg")
~~~

Best,

---
Luis Felipe López Acevedo
https://luis-felipe.gitlab.io/

[-- Attachment #1.2: publickey - luis.felipe.la@protonmail.com - 0x12DE1598.asc --]
[-- Type: application/pgp-keys, Size: 1815 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 509 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-07 20:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-07 20:36 [WISH] Picture language: Improve editability of generated SVG Luis Felipe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).