From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/27659 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Pikchr in Pandoc Date: Mon, 01 Feb 2021 09:40:18 -0800 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2854"; mail-complaints-to="usenet@ciao.gmane.io" To: Dan Shearer , pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBEH24CAAMGQEHDO7KJI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Feb 01 18:40:34 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f59.google.com ([209.85.161.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l6dBi-0000ba-5N for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 01 Feb 2021 18:40:34 +0100 Original-Received: by mail-oo1-f59.google.com with SMTP id v42sf9019535ooi.4 for ; Mon, 01 Feb 2021 09:40:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1612201233; cv=pass; d=google.com; s=arc-20160816; b=vSz75Kjk5/gymNlfQ5APhPZxC03Z25ctqmiduiz8YesjA7k+BxtkXep2DLQ9DfLdFA Mwpr4yCaNRMAMRtQJHNdkDRcbruSrpbFyy42znWv6UVar4/5rtCdU9ZPmxt+VEnvDGr9 HVj6VCpRYkXn4vhY+phrqStN/bbF3w9YR2edYQtR2GfOJYeRTROma/N3GEGQpBz5EQaD 1oQ3S/6skVyaaFY33xP7C4aEg2WKctN4jW1HRCFoukVnKPFelzo4wRMBCddOWu1C0vv0 kDjl4FVkrP1q8UBkX+tlMQSl4J513aJWge73KI9w7cNnTQRecVcMB+9zftnuWvKrrKHG jhGg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=FtaNrNwhqsLwTzlG+2G6VZDwW5WxQUNPQlSgn17OnGM=; b=IE9BLdhE+X0ErJkWQibsdFpV7Cdc/rBtwCi/Elkchjr7Jr+IZaytSy6YhVlyTaaZRh NQrmZZjyrnwg1f0aUnwQhQhn3rzWV1s/ht0PCFWFyJsZwe2eyBdhv2vSjOXZgZLpcjo0 uK2CKHwk43qn/dWGpRJ6/quiNXXX2uF3sXrKnbqjVdh2ZRs+kMmQ3DO9TZ0SUOpnOzHh Pe9byz6ID9CWmo0UKyWyzaXYclQllOWSQ9/oUflHNy88cFINPalLCcNPqFkkWOh85o1r d5XVVx9/CVtRKlBN3pJy+1q1f5T1QdZu9+9nbG46MoAKGskFaGlxbL3MA10iWhUQEVBi DV3A== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=BhxPrPXQ; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::532 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=FtaNrNwhqsLwTzlG+2G6VZDwW5WxQUNPQlSgn17OnGM=; b=I7EjpgK1Zjby3JJ3SfTgvkGEsiLSok9wjPjDJWGWaesOESLO0WEXAoCRtRYodnuplE TPFgdEMu+zHeWEYJFfKJczu1aw+vQ32ISVy9tcgmL1qQN3gOkqbbfV5SMFOMwwi3TunJ ySR/wjY3hM6oa8RXqpYcBt3XrK3tGJhBayjisGIC0li23yi/zMejWR/WQNhjZRJjPlG8 PHwvEYmtn9PHhGPIcXc2R+Sg1mcTdLJMXHYRi9WB6HfF4PF22NGOOH1A/mFOiA0e7H8a mvu7kMtjcYw2uETeXUtA6WAisSyyLhTFmWCGjQEL7qx+7nTyxxbeSMYtz/u5K66dOaTW Uspg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=FtaNrNwhqsLwTzlG+2G6VZDwW5WxQUNPQlSgn17OnGM=; b=cigWTA1yreb8jjk804FPipx3wejuWrNr/Zek9RTsn/jR4DYEEu+nihhaVo37uFEUnz XjdpCKc+tfrrmpHCXE/mzyt6w/DwIg8nYerTXkkwY8sALC5Zn3lfxicBxH0ozTxkip28 cLdj+XonR2frxwZ4PA2pyNZSIZC044rjtu0UZo1oRDmZCpETe4odh8/2MjIh7C+UsDAA /xsRVgyLt0jRjdeHKgMy+59S7jFQDpBm9IQhm1QuZMfIdW+w/Y1IVWndKP+96Gm+I2oe 2MaHUMeVQJ8cPU83ALZYxb6KUlbtisZEHMnj/7n4WXVGa44ulebFhavdlKUG6RPJj0uU 3gzQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533t8zYZVNdNs8Kf5zZevLbkJb1nsvT62fV2Z0mGcuhDDeqNVjQO D6oDCRnCX6q+JQXJjh6IhuQ= X-Google-Smtp-Source: ABdhPJx3xeI6aYqN3xNJiMROWgipk6aCfH2c/OsIDfH3EAIs5tKOEDF0p4YVSSWzMaa1hN1vGoPLIw== X-Received: by 2002:a05:6830:13ce:: with SMTP id e14mr12385639otq.356.1612201233267; Mon, 01 Feb 2021 09:40:33 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:1e31:: with SMTP id t17ls2317990otr.3.gmail; Mon, 01 Feb 2021 09:40:31 -0800 (PST) X-Received: by 2002:a9d:1c95:: with SMTP id l21mr10000356ota.261.1612201231864; Mon, 01 Feb 2021 09:40:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612201231; cv=none; d=google.com; s=arc-20160816; b=j8Gd42e6HmFnzaPTfgcxX3Tj2VtzvWDazGDKv+RfIzdUsIJWkTz/JmhbPvepmdJf4a 54iWnRk0rthMH/R6gYgHvMkksUT5MVlDdFp4jWL+Y6fUnwhN27TUQziQs4qNYDTNPgUj NrU8582P5daXXGDPQt6NLcOnM0ywHSLjbbhy4cVO1vHqtWGXaDpGXlU8I1YWDmZwlDdM USQE756RtLgA3iJ7YFT+t04YEuVmm+/Lk6SXnGDVQK1xiB1aqKdSS7UCbtMjU9EbZubr GMIYAEOljModLGgljTjVAc6z+njZxc8pZijJN5Imh3yvMB1PGGd4fCysLa52V4Wxt/e3 i+vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=Hgol6aZN38LotsGU9BvHAP3zNaR9XHYp0Ok1+iFMtBE=; b=FPTPMO8I9B2pFms3ELywtIteCHfUcTXWcnUQw0RsiI3afK83yjENGnLRi3U5KWnvo6 nb1nP/e2ASSt3sx7cmX+bTrYu3JzM8DtesPgc3hQaZNZl/Kb7jj9e98A8PaHFo99ZV/h pzVSXCtme6rsgfFHU1Oju2iuIHQRoUwqvtV6tkxerT9zKIl9cZEAsRpBSeuYgYIKlCYN SO4o3nn+pWNguO8US6L0oq+3m2T4WI8soKOW2GXd2Oy7t7uAUSyQETbDYPbZowRC00bB m/g5v/2K6gPAFN+YBebxd9i0vQfEZvurU3QtiK49wtWY8oArd4+U5/zBpkr+QAC9LYox 3/fw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=BhxPrPXQ; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::532 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com. [2607:f8b0:4864:20::532]) by gmr-mx.google.com with ESMTPS id e184si1412779oif.0.2021.02.01.09.40.31 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 01 Feb 2021 09:40:31 -0800 (PST) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::532 as permitted sender) client-ip=2607:f8b0:4864:20::532; Original-Received: by mail-pg1-x532.google.com with SMTP id o63so12529991pgo.6 for ; Mon, 01 Feb 2021 09:40:31 -0800 (PST) X-Received: by 2002:a65:64ce:: with SMTP id t14mr18072394pgv.36.1612201230573; Mon, 01 Feb 2021 09:40:30 -0800 (PST) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id fv19sm20645pjb.20.2021.02.01.09.40.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Feb 2021 09:40:30 -0800 (PST) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 259D6A256; Mon, 1 Feb 2021 12:40:19 -0500 (EST) In-Reply-To: X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=BhxPrPXQ; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::532 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:27659 Archived-At: We wouldn't embed this directly in pandoc (trying to avoid C dependencies), but it would be easy to create a filter to intercept specially marked code blocks and convert them to pictures. (There are examples of this kind of thing in the pandoc/lua-filters repository.) Dan Shearer writes: > I have not noticed mention of Pikchr here, and I think it is relevant to > recent discussion of diagrams and also GSoC. > > https://pikchr.org/ is a simple plain-text markup language for diagrams > that produces SVG. It is a slightly modified version of Brian > Kernighan's PIC language from 40 years ago, updated to make it safe to > use on the web. > > Pikchr is ideal for use in Markdown - see the examples at > https://pikchr.org/home/skn_default/doc/trunk/doc/examples.md , or the > same examples in darkmode: > https://pikchr.org/home/skn_ardoise/doc/trunk/doc/examples.md . Click on > each diagram to see the plain text source code. > > Pikchr is implemented in a single C source file with no dependencies, > intended for embedding within as many tools as possible. > > -- > Dan Shearer > dan-QNUrB6Xd9YFAfugRpC6u6w@public.gmane.org > > -- > You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/YBeGoc/cMhn7sLG8%40mx.shearer.org.