From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kgfIIPUqWGFjmQAAgWs5BA (envelope-from ) for ; Sat, 02 Oct 2021 11:48:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id IOPRG/UqWGH4aQAAbx9fmQ (envelope-from ) for ; Sat, 02 Oct 2021 09:48:37 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C39FC2A394 for ; Sat, 2 Oct 2021 11:48:36 +0200 (CEST) Received: from localhost ([::1]:53794 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWbdD-00068U-Bf for larch@yhetil.org; Sat, 02 Oct 2021 05:48:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33278) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWbbk-0005mh-0o for emacs-orgmode@gnu.org; Sat, 02 Oct 2021 05:47:04 -0400 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]:39549) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWbbi-0004Vq-8y for emacs-orgmode@gnu.org; Sat, 02 Oct 2021 05:47:03 -0400 Received: by mail-pl1-x634.google.com with SMTP id c4so7879949pls.6 for ; Sat, 02 Oct 2021 02:47:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=m36hLbXhMNo0kix79oZPRE7n0vnsNYTOAcFucuB1RCg=; b=ThnU60A15fsXPNYyp10454F/UzvzJ1OE6SRx/0J0FfZMTqEMQKEJoIFwTeBlN+fJli 36sLwhQ3+rGKcaiKPm1z3LAW+6FFq5PJh3lI3WcnlnDYVWeTRPb/PSAQcROTWXFoQJQd XrpRRH/NVuNCezRfwGKauvXogtWvB/OqQev7yfcZ226zOYr0nd42mJ2qQZjfKLJG5bba E40J+SHc8a9NGAv23KpsL/JpgK9/1rsY9Ai5W23jHcviVeNlRG1+/imnKFp2i4Ebhc/e Mv/RjDFEvQe0cx4rzYaWwmISbTztHgkMhMJpr2VRz+v2U/orr9gQS6Xx9OQktRjc07DW FNWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=m36hLbXhMNo0kix79oZPRE7n0vnsNYTOAcFucuB1RCg=; b=TxP53U9g9Sqpx+36Wvy7UhDffObhnr/gcsjO7r10vDfV0xRBS+03B9RXJos6nT8CRM IodPIO9REwTEIak3ANHJ6pp2ThtUcHuqhGdmR8623gavG16l86km0LEdVoN+A8jKVZnP Jtd5Ry1I8Cs4UTUciXvXVWNXlUH/l7CdZeZOllmfhvWMphkHgSKgmfzGXyuMH0ltdIuF RqevFpk7z1eBxRo+VfEcKwaU1cLOHVm+yzHeNfBhTX1KG7bT/ld3EDykrZlBhmCD6Bxg qlOlqSwmhoq1QtAw1lonDFYsc+wjQtTyUPNjNgSZqqC/Unv7Lj7bQJvYwYdyBoJWPQXA 6o6g== X-Gm-Message-State: AOAM531TqKOI4+njHI0223h6Ds4AUaTML2UpEX8CeETWx408rZiMyzmK O4UVZ0X71Hw2NAiRUjrPDlI= X-Google-Smtp-Source: ABdhPJwBLgDsTJXxYNUksatdS5BdUbmN0FuOtHxagWRDUChwg3AN/lxkyFPeQr5pp66J0vu2ndW1vQ== X-Received: by 2002:a17:90b:4a90:: with SMTP id lp16mr6273405pjb.194.1633168020686; Sat, 02 Oct 2021 02:47:00 -0700 (PDT) Received: from localhost (211-22-147-226.hinet-ip.hinet.net. [211.22.147.226]) by smtp.gmail.com with ESMTPSA id j20sm8614040pgb.2.2021.10.02.02.46.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Oct 2021 02:47:00 -0700 (PDT) From: Ihor Radchenko To: dalanicolai Subject: Re: Advice for new feature 'image block` for new `sketch-mode` package In-Reply-To: References: Date: Sat, 02 Oct 2021 17:48:18 +0800 Message-ID: <87a6jrycyl.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=yantar92@gmail.com; helo=mail-pl1-x634.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633168116; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=m36hLbXhMNo0kix79oZPRE7n0vnsNYTOAcFucuB1RCg=; b=dR+TmKADAyKZvJjlZV3LGAJF/OujbMoktEy25lByjm5m5TkhYXKFrtg0VhJwKjcAkRzorp dBnPIbmFPobSGWwp2qIjGioe074I21ySIxDZSNrA7M0wdq4EPe30V8jzoci20++z4EfMsr NVh+MrpeqB8lysPXVI297GUAp6Azb3IaxVQOHIF+JCAdMg4O5ZkJ9apG50vlF99qS0G38F uTT6gBCSxWaEFe4aP9A3ykoKIqYdPiMCxdi536pXDiqDhErI7C0zChYtWPhe0/jkOslGV7 hVQBUD+lgKJLdnQ+X0PFEeSb5r17EdzdcrlsuWOmuwdp4iFMd8gKLWK0RgaCxw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633168116; a=rsa-sha256; cv=none; b=P1fwlDT0OehvzkGAzyL9mwXI+Vu36jUc6HBq/sXgCm5HlTTCL0COd2LtfZXDzqjdwuIdcX Yr6726x3Ai+986Iv1B2c6WoQZMwVsjHsvRskxK/r/DFf43nF0bxY8cYtJ8fUZ/6a6nUO8y rv6PlBF6Hy/5oyXqXrXGnJiKn03YCmvtDHHlcvo+JP4qGp8rzjEbHhdVpTyA8QQ24i8rKE zbxsP8v57Eji/EmSFxLaaTrXmCR4YzzxnXn3+VyN+x4moW02Oy/B+axiIRpKjJU9AgaeKN wZXybO+/9WFkBSgH0/hZdXY4YIbUCntuCmsLFOBeh4RRta+gWfZJLyDKOn4BKQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ThnU60A1; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ThnU60A1; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: C39FC2A394 X-Spam-Score: -1.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: /UA3KwoBJlxB dalanicolai writes: > As svg is just xml, for small sketches I would prefer to insert directly > the xml > into the org-buffer within an image block, in which I can quickly toggle > showing > the image using `C-c C-c` (or `org-toggle-inline-images`). Also, exporting > such > xml should work perfectly fine when exporting to e.g. html. > I guess a normal source block is not suitable, because I would like to > create > the image overlay directly within the block. I am happy to (help) > implement(ing) > such a feature, but I thought it would be wise to first discuss and > 'enquire' > for suggestions here. You can try to define a special block and add appropriate org-ctrl-c-ctrl-c-hook to display the overlay. For defining special blocks, you can try https://github.com/alhassy/org-special-block-extras/ Hope it helps. Best, Ihor