From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31711 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: command-line pandoc on iOS Date: Mon, 7 Nov 2022 11:20:28 -0800 Message-ID: References: <5346511C-4B5D-42E9-B287-DB005CB4D005@gmail.com> <8FB22757-A6A4-432C-80F3-E770F0567E89@gmail.com> <626e5a36-6440-4be0-a5f6-9910f551ffc0n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17722"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBB75UUWNQMGQE6OMYBDA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Nov 07 20:20:36 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pl1-f190.google.com ([209.85.214.190]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1os7fg-0004Ov-Ds for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 07 Nov 2022 20:20:36 +0100 Original-Received: by mail-pl1-f190.google.com with SMTP id n12-20020a170902e54c00b00188515e81a6sf9740007plf.23 for ; Mon, 07 Nov 2022 11:20:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1667848835; cv=pass; d=google.com; s=arc-20160816; b=fbGkA/IW8925iC+P+ZPFbXWuYgK9oWwe8iA4XkNcFRkRIbpGquebmTQKGpFR9PA0C7 yw7fl/idLLnJYdsnqGdfvuqV06vUTC7T+3GxkvTfd7PKVNCrYNDBUQmcKV+dlgafdqpz x2KoC6sKq13WtOCeYxkL+7SuICp4tA5w9oRqUqJvr/PNkQfRG/nzi7NTar7DW4woPvtD NDu7Yfe6DHZ/1L3GpT75Ue2wytWSpUPbjfEtERz0/+EahyE9ACJfqKVxIKGuJefim3ff SDhwrogEDRLjwCwcaD84/2JYvstbbkXT7P3WP7nvSDIw5Y0+WdtOAmwNW5zw6xS+CzOu U4jg== 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:message-id:in-reply-to:to :references:date:subject:mime-version:content-transfer-encoding:from :sender:dkim-signature:dkim-signature; bh=VUtyeSv0cdmjHzUQTXcLI5M06Z7+CMRAXpbsfmq0G4c=; b=dYBR+CcrM2rlDDBJVZRKpEhHwdceCAJYdrUO/+LSxVmvlxh18Zpoc+8DZNUMUsJlbf fku2k2x5TCQARHje7933Z4wlikQaf9H9IoisUV3lQdI48vI8FxfswTEy9d7L9RIiwZeg X6KiG2cxprf2UYCxJ1CIzEHzWlX0EgarKPtvY3B5pVQGcg9S6CoZAmKE1h4jR937cGx/ jLNHLl/vqIWS0FX700+47qFn9P34sPQtZjZOOd5mlbuEuPOj+lbQCpgyHvD86NJzmW7O B3jjqrzu0SgJ5LOm1dZQyuti0nzPS7cYGCGKwogW5j2lFhC6TwqluUR8Gms9VC0b9Jzb nRPQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=O50QZJwb; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62f as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=VUtyeSv0cdmjHzUQTXcLI5M06Z7+CMRAXpbsfmq0G4c=; b=TEt2WsTqp1xdmTM/aGT1UhLpBPZ3Of5JxMxVmGrk84/mxBqhgsynXzBEs70nEBeM0h 1naWwQjKOPMr+6aB0EcxuGDi07NyTjF08obSBD06tm7/vlrkmF00QWSCkt0ApAZ9JIVJ lMYmN3JK5VkUoePXNpa0cEsy2WdKdFfs2gGPlpm/L1WoC1BHgwTVu8zOON3pwBy8Wjbo cFWnAFV6LvH4oQY3XJHYwR8IL1cb7JlDADkgJUdD9fd/QeLzM6xgucIf2NeT83xbnee1 jZA0ZVEqaCkcQoi3EkygTSUJVDRYtVYVe7nMOa/arCQ0LdxxbDGhBB3KeZC3kTmt1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=VUtyeSv0cdmjHzUQTXcLI5M06Z7+CMRAXpbsfmq0G4c=; b=DY50pNz2ZUQhzagJAELqLKNIKMMK8w/Ygqgq0+iCIxm9V1bDJSi0Kqchgf+r3T2X+X 9rHOdm1Or/Xdi18/Ui2tXv3sbCrkQwWGDQk156WtyMR09olaimbbAVIVJBrJLmJgw9N6 FwKbx95P6U0hPeFeU/QAKAx+e1LAZSUiM64jYMjOGGX3eUh1Y5bPGARK4yHsS6v4D+Sh k5ZBxAIAEairVI+QmvLO5GOVmeLlkTfu6r5QnwpchcK+9yKG3t0ltZako6vXUHGyMx9I vOYofnDFtyh0mzGOkPuV2lRxOieHQBd9cmZaugK1Gcz+3kMG9t0Zp4BRn9rSMtT34Lna C X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=VUtyeSv0cdmjHzUQTXcLI5M06Z7+CMRAXpbsfmq0G4c=; b=oNl/fBcBMndncepqRR+gXeYvu9joS0zs61dpnuPoODIFvKPck46hmb7xtH5tGfevZZ /c9wgd1B7G3+Ax2AmDlT7zLPpyNP2n72pX7t+7kQKyAk8yPsABApcqJJc1SD8McA/VGY t55mJIW+UFGfxOUlqzcEue8EVkq2ZDGzjc70xorqCQF1lSFXoTPElWyL/h7D0uAYnsp6 GznxetyHIPIhUU2QGCT9KAyltuCrSWm8IFQgL15Lff2vk2NpIrHKio5OeTjv8uK6S/IR SCxU4ni/c8QewTUCe6mS Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACrzQf28Uch7INj+9m4lvq5qeGMfR9gzUhyFxRbxYlWG/4AxBOBHiyQ+ H41S5yk+t55wOSYWSPBzBdw= X-Google-Smtp-Source: AMsMyM4zN5VW8SKNd/MYZFiUAdFlzRGz3ItnQT26qUX5u0lhEijfi/vs1bfevWq3mjqe6P78l/pz0A== X-Received: by 2002:a05:6a00:1250:b0:56e:13c8:ee1f with SMTP id u16-20020a056a00125000b0056e13c8ee1fmr30264830pfi.82.1667848834894; Mon, 07 Nov 2022 11:20:34 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a63:6ac8:0:b0:46f:1e8f:15cd with SMTP id f191-20020a636ac8000000b0046f1e8f15cdls5833163pgc.11.-pod-prod-gmail; Mon, 07 Nov 2022 11:20:31 -0800 (PST) X-Received: by 2002:a62:c70a:0:b0:56e:a51f:a990 with SMTP id w10-20020a62c70a000000b0056ea51fa990mr17670692pfg.16.1667848831056; Mon, 07 Nov 2022 11:20:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667848831; cv=none; d=google.com; s=arc-20160816; b=P7KIyB2hR/aHADcUayQYVT2LOupZZswH1shTtY+ajf5WsHBDdCXNyrVtedHmVxYD1r V6H8Mhy2HqhqnaTKBqKbi9rc0eSjBB3Sp/DvOhcKjU3jo7QQF08IDgkU57GU9z08c2s4 obtp5BmdEOFtmNol1V5y16rcKXyY0qlcG4m+Q3KRcNzg9RHuWxqJxPZlh4yN2i96LBQ6 Bc5bTu1uiW4Jb3aLafK8w6v4+ve+dRFWip6gEL7aKJL5+//YxFVoL3UkFjoMuIWFw48g L0OOcxFBJ9zZU34BW1JLhQdVxZmfV3R89PzuzC+cHLeHYVaTC0U5Igf30IcPdZCJtkF2 SQJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:dkim-signature; bh=JmOz8taJOUxzN2mAkCd6lfHqizQEg/uMy9sTcoxEHBw=; b=Z0P3wJDijlKP7dHXSXqPdkmkdaQAeDKKZQr921FE7hI34prpnXLDyog2tdWBh2rC2A QSKpyofvJlFrWbkx1M+rEkYSeXkq838eNSWIBjFbdhDAzCaZFy2aT+A/0W2x/2SCqwAO UBYxh9/FuiY2Iibg+yaZjyUj4bZioI4x3R+KVbRkzEfPyBlzh03x8kgJcb4C2beD3whd 6lVjcVGn0LBvIe1CCt/2vWgaj3zSohxxQoOyFKP780yCizN1J50olM9HzWsqUfhIO2bs q7/YocElMU7jPCe/m/UgwCWgxcVaMJ5Q7d/tDdFnFtrpv5cE+n3aR5xt1Z/Xzx4Nk3GW +G5g== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=O50QZJwb; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62f as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com. [2607:f8b0:4864:20::62f]) by gmr-mx.google.com with ESMTPS id a8-20020a621a08000000b0056d189fd322si330074pfa.2.2022.11.07.11.20.31 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Nov 2022 11:20:31 -0800 (PST) Received-SPF: pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62f as permitted sender) client-ip=2607:f8b0:4864:20::62f; Original-Received: by mail-pl1-x62f.google.com with SMTP id c2so11940250plz.11 for ; Mon, 07 Nov 2022 11:20:31 -0800 (PST) X-Received: by 2002:a17:902:daca:b0:188:5136:c230 with SMTP id q10-20020a170902daca00b001885136c230mr26534150plx.157.1667848830406; Mon, 07 Nov 2022 11:20:30 -0800 (PST) Original-Received: from smtpclient.apple ([2601:644:400:7c40:ad63:6053:4e05:4fc2]) by smtp.gmail.com with ESMTPSA id t3-20020a170902b20300b00186a8beec78sm5352748plr.52.2022.11.07.11.20.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Nov 2022 11:20:29 -0800 (PST) In-Reply-To: <626e5a36-6440-4be0-a5f6-9910f551ffc0n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=O50QZJwb; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::62f as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:31711 Archived-At: This is the one you want: https://hub.docker.com/r/pandoc/core It is always up to date with the latest release. > On Nov 7, 2022, at 8:56 AM, jcr wrote: >=20 > I've looked at this a couple of times since I last wrote. It turns out th= e latest Docker image is 2 years old, and apparently contains pandoc 2.9.2.= 1. >=20 > So it looks like I have to do the full pandoc build with ahc-cabal. I ins= talled the prerequisites, and started following the instructions to build A= sterius, but immediately hit a snag when it asked me to run a script that i= sn't provided in the repo. It turns out the project now uses bazel, whateve= r that is, but the person who discovered this ran it and found that he coul= dn't execute the resulting binaries (see Asterius issue 894). So I don't fe= el encouraged to follow his example. >=20 > I've had the idea of writing a stub in Python that would parse pandoc com= mand line arguments and then use pandoc-server to do the actual processing.= I'd just ignore options like -L that can't be implemented this way. It wou= ldn't be a great solution, but it would be adequate for some cases. >=20 > If I do that, Lua filter support in pandoc-server would be very useful (m= ost of my filters are indeed safe), but I see from the referenced issue tha= t it's not coming soon. >=20 > On Monday, October 17, 2022 at 4:47:08 PM UTC+2 fiddlosopher wrote: > If we could implement=20 > https://github.com/jgm/pandoc/issues/8273 "safe mode for Lua filters"=20 > then we could add Lua support to pandoc-server. (Of course, this assumes = that=20 > you wouldn't need to use any unsafe functions in your Lua filters.)=20 >=20 >=20 > > On Oct 17, 2022, at 2:15 AM, ffi.a...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:=20 > >=20 > > I was playing around with pandoc-server before I decided I needed the c= ommand-line program. It would work for some cases, but without Lua scriptin= g, it wouldn't be adequate for the document builds. In theory, I could use = pandoc-server to convert to a JSON AST, run a filter locally, and then send= it back to the server for the next stage of conversion, but that seems slo= w and conplex.=20 > >=20 > > I probably won't work quickly on building pandoc with Asterius.=20 > >=20 > >> On Oct 16, 2022, at 7:58 PM, John MacFarlane wro= te:=20 > >>=20 > >> =EF=BB=BFThis would be cool, so let us know if you have any success wi= th asterius. I haven't tried it myself. If you run into Haskell-specific pr= oblems, let us know and perhaps we can help.=20 > >>=20 > >> Note: for your iPad purposes, another alternative would be to run pand= oc as a server somewhere. This is now very easy with `pandoc-server`. It is= fairly full-featured, with the caveat that it runs in "safe mode," so you = have to explicitly send all resources needed for compilation to the server = (it won't be able to look for them on your local file system).=20 > >>=20 > >>> On Oct 16, 2022, at 8:20 AM, jcr wrote:=20 > >>>=20 > >>> I would like to be able to run pandoc-based document builds on an iPa= d. This seems to be possible with the [a-Shell app](https://holzschu.github= .io/a-Shell_iOS/). It provides a Unix-like shell with LaTeX (additional 1.3= GB download), Python, Lua, and many command line utilities. C and C++ progr= ams can be compiled to WebAssembly on the device and run there. It is also = possible to cross-compile for a-Shell, using a [customized WASI-SDK](https:= //github.com/holzschu/wasi-sdk).=20 > >>>=20 > >>> [Asterius](https://github.com/tweag/asterius) compiles Haskell to Web= Assembly, and there are a couple of demos that use it to run pandoc in a we= bpage, but the WebAssembly files they use offer a simple JavaScript interfa= ce to the Haskell pandoc function: (input, from format, to format) -> outpu= t. I need the full command line interface to run document builds. It looks = possible, but since I've never used Haskell, its build tools, or WASI-SDK, = I'm not sure how to go about this. There's a pre-built Docker container for= Asterius with about 2000 packages from Stockage (I think I can guess what = that is), but I don't know if I can use that, or if I have to rebuild every= thing from scratch using the customized WASI-SDK. After that, I guess I wou= ld download the pandoc source and follow the instructions for building it w= ith cabal, using `ahc-cabal` in place of `cabal`. But if anything goes wron= g with the cabal build, I'll be lost.=20 > >>>=20 > >>> Has anyone already done this?=20 > >>>=20 > >>>=20 > >>> --=20 > >>> You received this message because you are subscribed to the Google Gr= oups "pandoc-discuss" group.=20 > >>> To unsubscribe from this group and stop receiving emails from it, sen= d an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org=20 > >>> To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/bfa54f4a-eedc-4e8e-8671-1aa9f6c63e1dn%40googlegroups.c= om.=20 > >>=20 > >> --=20 > >> You received this message because you are subscribed to a topic in the= Google Groups "pandoc-discuss" group.=20 > >> To unsubscribe from this topic, visit https://groups.google.com/d/topi= c/pandoc-discuss/ivgH7zNPlNs/unsubscribe.=20 > >> To unsubscribe from this group and all its topics, send an email to pa= ndoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org=20 > >> To view this discussion on the web visit https://groups.google.com/d/m= sgid/pandoc-discuss/5346511C-4B5D-42E9-B287-DB005CB4D005%40gmail.com.=20 > >=20 > > --=20 > > You received this message because you are subscribed to the Google Grou= ps "pandoc-discuss" group.=20 > > To unsubscribe from this group and stop receiving emails from it, send = an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org=20 > > To view this discussion on the web visit https://groups.google.com/d/ms= gid/pandoc-discuss/ADB72C63-745E-4D50-9045-E60813FA08EB%40gmail.com.=20 >=20 >=20 > --=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= email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/626e5a36-6440-4be0-a5f6-9910f551ffc0n%40googlegroups.com. --=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/DE26E142-2E87-469E-809B-8DD59EA9460B%40gmail.com.