From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/27667 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'Dan Shearer' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Re: Pikchr in Pandoc Date: Tue, 2 Feb 2021 06:46:42 -0800 (PST) Message-ID: References: <0f250ab3-fbea-cc8f-dd4c-c9ff234b8c98@intielectronics.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_740_973166448.1612277203000" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33245"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDXKRPO4RUOBBVOL4WAAMGQEEOSXPYA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Feb 02 15:46:47 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f56.google.com ([209.85.161.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l6wx5-0008Xh-HO for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 02 Feb 2021 15:46:47 +0100 Original-Received: by mail-oo1-f56.google.com with SMTP id x18sf10231785oor.15 for ; Tue, 02 Feb 2021 06:46:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=ZCu9EACatDRO0jjsbHSlqQdKANPro3Ju/9aHrjVhoVI=; b=icI+2mTsNM3Oza1+YfE8NGpQ7QJgXvGIZcNF2El7dVdrvioSguUVwOSzNk1/u7UHcN 5Kh/v6LyOC/Uhjf1rM+jKVB3Mgganm7mQZk3zBEagKYrDIKV3Z2iUETSO0XDXiFple6J XM3IaO7vFZhNz2IJo8Ix+EvjypDKIQC8eb7ptF0UO/pJE7X6dZJCXZdJrXvsoC4LCU9Q +UuYf6EWR2/86HXJ7yfT2qvzMDSKw3g0YwMAOPC5791HutHuI9bf6QQURoI0IrbrqSHG +OMnZOaL6aKh1YoQ/aoEwuLWXH1sGEbezVLEuDbObHeIez6hMOQYFGNCCYpleowCfliX +sYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:message-id:in-reply-to:references :subject:mime-version:x-original-sender:reply-to:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=ZCu9EACatDRO0jjsbHSlqQdKANPro3Ju/9aHrjVhoVI=; b=ad9L378rjqYnENiJEwWhBzmRGbeXU2P7z7aV+urut1qgAvALo+zPaxzABXMsxWu+cI 0rruZfxEwKgf6YS9B2zYEl6WKCPrPPvYTay8xqhaeFOPQd72HnjDjQDp5un9UCTpYgJU T6ssvgd0NeInYBEjvaQ9oFafsN637OA9lD+Mae79XWLwsNSF/fGz8URUGtj9dPW8Mqeq DwRfG92Q/8AHdKqv08NTjBu+0EXSubR3a5XsOFEmS0knlYVHLbkrwDtXLMaUQutZZIhE ADnh47KQZwKs2fs32MIq60Nr1yxlc76EpeoEAKNC0A9moTAndliGHDwW3JOmZ2jJ0qYG 7seQ== X-Gm-Message-State: AOAM5328UyoMg8Br0VU/gAWkH7DHUH/ja+IfbvM+YlRbKqEoOE7/oAFh L9UE5EURifkqMp95eSpX+xs= X-Google-Smtp-Source: ABdhPJxUNrXN8XZCYzVoy+sjCynph7D87GzDMFeQ6QDe9eVMOgYwECJg4gnkQK49oqcKSrDd1DGeJg== X-Received: by 2002:a05:6830:13d3:: with SMTP id e19mr15646987otq.157.1612277206607; Tue, 02 Feb 2021 06:46:46 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:3c5:: with SMTP id f63ls4892951otf.6.gmail; Tue, 02 Feb 2021 06:46:43 -0800 (PST) X-Received: by 2002:a05:6830:134d:: with SMTP id r13mr15912211otq.140.1612277203703; Tue, 02 Feb 2021 06:46:43 -0800 (PST) In-Reply-To: <0f250ab3-fbea-cc8f-dd4c-c9ff234b8c98-4SSc53hpTiu9TMao6EloiEEOCMrvLtNR@public.gmane.org> X-Original-Sender: danshearerprivate-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org X-Original-From: Dan Shearer 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:27667 Archived-At: ------=_Part_740_973166448.1612277203000 Content-Type: multipart/alternative; boundary="----=_Part_741_218775620.1612277203000" ------=_Part_741_218775620.1612277203000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Le lundi 1 f=C3=A9vrier 2021 =C3=A0 16:43:36 UTC, ChrisD a =C3=A9crit : > I was not aware of Pitchr, so thanks for posting this. I have used dot=20 > (graphviz) a lot, but Pitchr looks to fill a different niche.=20 > Yes it does, while also very much being of the do-one-job-well philosophy.= =20 Not surprising from something Brian Kernighan wrote. Is Pitchr available as a executable somewhere? All I could find was the C= =20 > source code file. Thanks,=20 > No, Pikchr is not currently available as an executable. However pretty much= =20 any C build environment will create an executable as follows. 1. Get the (very small, zero dependency) Pikchr source from one of: a) https://pikchr.org/home/download . This is an automatic=20 tarball/zip/sqlar from the latest Fossil checkin. b) the command "fossil clone https://pikchr.org/" 2. cd pikchr make this will give you a binary called "pikchr" (probably PIKCHR.EXE for=20 Windows, but I have never tried with Windows) 3. You can then try pikchr: ./pikchr --svg-only examples/headings01.pikchr will produce only the SVG code corresponding to the Pikchr code.=20 ./pikchr examples/headings01.pikchr > /tmp/headings.html This wraps the SVG in HTML, you can point your web browser at=20 /tmp/headings.html I have an SVG convertor called rsvg-convert from the librsvg2-bin package.= =20 Using this I can generate PNG: ./pikchr --svg-only examples/headings01.pikchr | rsvg-convert >=20 /tmp/headings.png -- Dan Shearer dan-QNUrB6Xd9YFAfugRpC6u6w@public.gmane.org --=20 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 e= mail 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/ab76e66c-7cc6-404b-9d38-4e16351aa424n%40googlegroups.com. ------=_Part_741_218775620.1612277203000 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Le lundi 1 f=C3=A9vrier 2021 =C3=A0 16:43:36 UTC, ChrisD a =C3=A9crit = :
I was not aware of Pitchr, so thanks for posting this. I have used= dot (graphviz) a lot, but Pitchr looks to fill a different niche.

Yes it does, while also very much bein= g of the do-one-job-well philosophy. Not surprising from something Brian Ke= rnighan wrote.

Is Pitchr available as a executable somewhere? All I could find was the C s= ource code file. Thanks,

No, Pikchr is not currently available = as an executable. However pretty much any C build environment will create a= n executable as follows.

1. Get the (very small, z= ero dependency) Pikchr source from one of:
    a) = https://pikchr.org/home/download . This is an automatic tarball/zip/sqlar f= rom the latest Fossil checkin.
    b) the command = "fossil clone https://pikchr.org/"

2. cd pikchr
    make

   this = will give you a binary called "pikchr" (probably PIKCHR.EXE for Windows, bu= t I have never tried with Windows)

3. You can = then try pikchr:

./pikchr --svg-only examples/head= ings01.pikchr

will produce only the SVG code corre= sponding to the Pikchr code.

 ./pikchr e= xamples/headings01.pikchr > /tmp/headings.html

= This wraps the SVG in HTML, you can point your web browser at /tmp/headings= .html

I have an SVG convertor called rsvg-conv= ert from the librsvg2-bin package. Using this I can generate PNG:

./pikchr --svg-only examples/headings01.pikchr | rsvg-conve= rt > /tmp/headings.png

--
Dan Shearer=
dan-QNUrB6Xd9YFAfugRpC6u6w@public.gmane.org

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/ab76e66c-7cc6-404b-9d38-4e16351aa424n%40googlegroups.= com.
------=_Part_741_218775620.1612277203000-- ------=_Part_740_973166448.1612277203000--