From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id AHv0CATSSGGOMQEAgWs5BA (envelope-from ) for ; Mon, 20 Sep 2021 20:25:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iO2UBATSSGE8QAAAB5/wlQ (envelope-from ) for ; Mon, 20 Sep 2021 18:25:08 +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 682B311ECE for ; Mon, 20 Sep 2021 20:25:07 +0200 (CEST) Received: from localhost ([::1]:51166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSNyT-0008Hi-8N for larch@yhetil.org; Mon, 20 Sep 2021 14:25:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59888) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSNxj-0008HZ-G3 for emacs-orgmode@gnu.org; Mon, 20 Sep 2021 14:24:19 -0400 Received: from mail-vs1-xe2b.google.com ([2607:f8b0:4864:20::e2b]:39426) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mSNxh-0003TX-RF for emacs-orgmode@gnu.org; Mon, 20 Sep 2021 14:24:19 -0400 Received: by mail-vs1-xe2b.google.com with SMTP id o124so17609389vsc.6 for ; Mon, 20 Sep 2021 11:24:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=fTkKCoCvWeRLHQ6uJTBorbVa8ds0A1gMekP3aIbmN5I=; b=SRLroHPQqvcUVG1i9eXqDXFGPEXpCNolLbesPG3jsww5hWjS+QDkNnmogIqqvWny6W bcbz/H4HfUZBsuX7myN8Wydi6AJUTD9O5zkzUYNIy/zvb9l+f9QQu8NhrQCpEpxp/iqV eLKEC3JJUBbZwc1T09p7nhyt7dVwTC6vFofA7IB05a3drb+1Y6s58igZ8BfiKG7ivCeK DXv+QmZnhxugEPrc17GxiUNXzw5PDqQC+q0A6/ynd5K9L4rbjGI8Owjykkeef9TcLWj7 TMmt4ksZqQ09bKKCdnkTpXmz9Oi+ZKrxObo7cYzqLD1+PA1tGiZbyhv/cOdUpLIqluRi HZQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=fTkKCoCvWeRLHQ6uJTBorbVa8ds0A1gMekP3aIbmN5I=; b=q7BAdQhJ+0jrI9zPq6JtL2DJOzCVpBksHHFzxt1aXDhsMCCCtx/cqtqY0fNRU9lE2y Sk+/yFFKadKJVmP4eies1y84ehrwYoG77APUKn9aK692tbQFk03cl4MgXwgYqoWcnZKJ 3SWDNgtMpfAehODJbFkdM29KQDdrEyzB3AfT1/Ku+kqpUAdFLQfQTBXg0dQODDg2F5DI fDLkXj0T3e6MOiBdnK1OJg+Bs+Pls190+QRXLLd2AOwNhOTwVhLXFxTtz3oGZ2RH2Ia5 aE0wxn5Dl7O0DaLgU+EwAWQOmDCo2jQoZXG59slO63wQCD8VEh6qTCiLKMmgyieBJsyN Su0A== X-Gm-Message-State: AOAM532xelgOqgnUiHOiFzn+u5jtt2lg/3ynmmjpvHl4lywEb3GW/T+s qLovlFn80nWZnTZ/jb6VWk/lMg+sMZ/ACoi8wykLJOFx X-Google-Smtp-Source: ABdhPJyvhSuBaYocz07cKSnhrtvq/Wxw9Wpr3JNoy2C6QrnjcLV0wAJFwaBvssl40oknfDeF1598p6MArAWf3kq/BeU= X-Received: by 2002:a05:6102:34c6:: with SMTP id a6mr17270711vst.17.1632162256540; Mon, 20 Sep 2021 11:24:16 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: dalanicolai Date: Mon, 20 Sep 2021 20:24:05 +0200 Message-ID: Subject: Re: Advice for new feature 'image block` for new `sketch-mode` package To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="00000000000084573705cc716397" Received-SPF: pass client-ip=2607:f8b0:4864:20::e2b; envelope-from=dalanicolai@gmail.com; helo=mail-vs1-xe2b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, HTML_MESSAGE=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: , 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=1632162307; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=fTkKCoCvWeRLHQ6uJTBorbVa8ds0A1gMekP3aIbmN5I=; b=jsagFsIOvux5UiMJSHWA0Cq2S9IZwmdgpsfo7greereSmkN9XilnhLRFf2kS8wSSzrd8QN mD7AqOFISPTsxAiVEhrEV1lY6kpVwS5CVsMX+uwp+NzyH0SELTxfyLshmtj7mVZGxve9GG glHMaX06g+uQ3ZSFlnNX2qblZh0sde5zw4YnxT2IWOkilnefboeSX7REPUw/7wV6KKpIRB NHTR6bk+FGcBBGsTCGz85zniyvMnYTA31tFXG5agDIswb2m3fYN0tM0/g6F9g4jtgkGzc2 zPaLyxMobvS0/OlY7I6Iwy/hKknV7Z9CjwL+Jvpl9eWpaDTAlxSnj8ZAQ/Y9pg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632162307; a=rsa-sha256; cv=none; b=TrKETTqD3BzopkOakxE9S5k8ivGgzgnSFPInrskEiek8rj2z3EJxSowgz4+k7d4dN+Vfhx pm7vHA1aJmVqc4/2jiSEWIcRvVL/o33NDVMUw0rGJDCoX5txhP1GpMvlUZh4qnKTrXJIe5 Bkg17WGe8oIDS1kgbd54dc7P38R4Swa/FCeBRHt8d8BT71bvaKOrRmdGPbhsY8GKno41sC 88GH34rFMIDfR0bXIyDs3dUU1e8oMSwuxFswBg819ZmFP5qWoNhk15XH/u95+P3tk3XWMZ iSSoxOvCpoUd0oF79VWFgN69zCUrdiUOVIvUIRBibprPUKbttDcUnFhjqxJvZg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=SRLroHPQ; 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: -3.09 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=SRLroHPQ; 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: 682B311ECE X-Spam-Score: -3.09 X-Migadu-Scanner: scn0.migadu.com X-TUID: KhzQTwt1fi1D --00000000000084573705cc716397 Content-Type: text/plain; charset="UTF-8" Also, I already looked at the org source to see how to add e.g. a #+BEGIN_IMAGE block, but I found the 'api' quite overwhelming. So I am hoping that some experienced developer could maybe give some advice/explain (for) how to approach/implement this. On Mon, 20 Sept 2021 at 20:19, dalanicolai wrote: > Hello, > > I am developing a new package for quickly sketching svg images, (see, and > try > out, sketch-mode at https://elpa.gnu.org/devel/). With the package, I can > already quickly create a sketch and subsequently quickly save it and > insert a > link in some org-mode buffer (using the `b` transient suffix). Also I can > quickly insert some image (using the `I` suffix), but then unfortunately > the > image will not get saved. > > 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. > > Thanks you! > --00000000000084573705cc716397 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Also, I already looked at the org source to see how t= o add e.g. a #+BEGIN_IMAGE block,
but I found the 'api' q= uite overwhelming. So I am hoping that some experienced developer
could maybe give some advice/explain (for) how to approach/implement this.=

On Mon, 20 Sept 2021 at 20:19, dalanicolai <dalanicolai@gmail.com> wrote:
Hello,

= I am developing a new package for quickly sketching svg images, (see, and t= ry
out, sketch-mode at https://elpa.gnu.org/devel/). With the package, I can
alrea= dy quickly create a sketch and subsequently quickly save it and insert alink in some org-mode buffer (using the `b` transient suffix). Also I can<= br>quickly insert some image (using the `I` suffix), but then unfortunately= the
image will not get saved.

As svg is just xml, for small sket= ches I would prefer to insert directly the xml
into the org-buffer withi= n 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 shou= ld 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)
s= uch a feature, but I thought it would be wise to first discuss and 'enq= uire'
for suggestions here.

Thanks you!
--00000000000084573705cc716397--