From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31569 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, 17 Oct 2022 07:47:02 -0700 Message-ID: <8FB22757-A6A4-432C-80F3-E770F0567E89@gmail.com> References: <5346511C-4B5D-42E9-B287-DB005CB4D005@gmail.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="13812"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBB2OVWWNAMGQEIZRK4SQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Oct 17 16:47:09 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yw1-f187.google.com ([209.85.128.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1okROX-0003Pk-Kf for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 17 Oct 2022 16:47:09 +0200 Original-Received: by mail-yw1-f187.google.com with SMTP id 00721157ae682-3549b9f0a03sf112608577b3.11 for ; Mon, 17 Oct 2022 07:47:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666018028; cv=pass; d=google.com; s=arc-20160816; b=edHfm4IdA7YT0tflN1jlFgradDPgj6FZEjM81KAoXjJjnUbsQKxNBmNYn/v4AwJlvN mLOAroIcElCEA2gf8HgoDoc+UbeBM3YrncyLw56y3GA5oCwvMOeYESIxMMRjCmY6r3dy 4LeXXSx+WtpuQNF2EyXdWlhVUoYAjlW1kAESUAsDZURva47ZLvpnHSXXjZoYPvXBA976 TUf8B/P89RZ2gPzvjFPPIgJdn+K99AiFubIJTMe/5zRqdgxWt7u0vIZtmuJXuNZO7Ftk FzWvf3Pf9JTHL6Dh5yxSeKYsR6Wdrbo+0TeizxPdDtkocoD75GhasISCI65WPCbag4JZ xOZw== 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=JHWOIfhnAe2dzAFdAhlPz0Fumg6lYYFguX9meHFW/4c=; b=EYrIBmWSHrGXoog+zxHY2zN0nZVKruytVTgxpbqTsUfdkeKFA94Dm7/GtA7ZydfNA/ kdklhf/sArX+nyqMygHon4iJmMPp2taQjYfbDayzji8jZA42RUlpUUvuq8rQx/+7Nr4g gOotYYu6raiuD8uw3JJHLY/6PA3KiUVpduQ8miIFNhumyUQ00IM9ZPEaUGM8OnzzalNo RPKlsVAPf57VCSIx3+kv/+Hmtf5RMDc9wouee2vDC/IgUewESTgF6s+iORa1JqkRoKrA RH+Cz5WafluBkFtfa4i0ZRBYV4fZzGz/PZkSbCLQupeby//Ab8pAxnmy03tbt/uU7Twv piwQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UflwFZ5Q; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102f 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=JHWOIfhnAe2dzAFdAhlPz0Fumg6lYYFguX9meHFW/4c=; b=fs4A73x2b2pX3Ynb4/wU4srldMSV1lOSbozueW0VsgEBHO/NDdJcTq8ew+N7HSQZ+3 P/8gXep7PDbfSp+uR+E/S+4tGajBCIN/3kkJuaY8x4jY5v7tVnB4bJ1CvTIi7NIk3z6V PrxvP+Zn3T+a+kw1et4O6Q/+z3i2InU3WEmtwNd2RDDvk0O9Isi3ChQpNlkHXaibZqM0 f+f64PVxxLzmoX4IOGfrlqB2PyInBmZz0goTqX09QYEqracJ9wddAA2wzRY72QqNN7m1 mkMVRcsoivRcNz4MiPHnugroIjJ35K0NwRp61aaD19eu+oqJ1UvrO3tzziOkifPLd 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=JHWOIfhnAe2dzAFdAhlPz0Fumg6lYYFguX9meHFW/4c=; b=JtN0uE31na9HLbkDpyaqE8gM6pJGPRezxrnUJzpbL1EQKp+uoujvLJK8SQdd7DAZto Yw5hoSXAvcE9aZxnSOKw23X7ZVrKSJ5CyxZtyZnbPZOlBT6iORhIF/YYjhvbyaw4CChN Vs4qfAxDwEfetROdT05y9Jk288KhKLu0EHu6q0lXYHievAdpavmg+RpjiA1xWZANS9cd HEVFZidXOBf4kjwDikXK26dMJ3pbiornF45d/EXKnvi/t3hkYdT3tFP/UJWLWfBg0RxE EC0AjCUfzib757CktR46+Puv+ZE/7Q1P+IYXQgcLsbsYtbT6DaQ89lBik6KMkz5w8nPG F 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=JHWOIfhnAe2dzAFdAhlPz0Fumg6lYYFguX9meHFW/4c=; b=7LHiEUiziqDC7jQp46xXp6LP/3fWLz0W9cq3Pa25RppjhGUE+VpznyrfXEW4lY2wOJ vdudnqbrqn+HZHC9o3k60VwhP7sCP3Bn4WCo0uJ5X1MlunGsl8bQ64MUNLBvE+LINhZv XnwMoVUsDjvOKkB7LVnECgw/SNT1DHkpZsFnD1LXiZajkHGQwhu/L+py76PPePu3MQvN eYC+zM+6/BbzcA/hATfaBYgI17MVTTKSer7S0AxbLHIjbj8rRnIOntw9EyV0S+DuDI6V fcefgBZf+C9ktZUjaGcu Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACrzQf3ne0jT0lHm9m3HeY8N9pk10Y1uMGlatxaxbl0K/lWmLFHwxZAl 57Dg5Keb9IQeJJQeSSy7Yn8= X-Google-Smtp-Source: AMsMyM40lUNo6vu7IYoY0a7NXHmge2ZL1I8Q5yx9DgcmL9kWt7WlclyxiaxWN7fcIWelDC7jYUinsA== X-Received: by 2002:a5b:f4c:0:b0:6b8:7a33:6d55 with SMTP id y12-20020a5b0f4c000000b006b87a336d55mr9568836ybr.370.1666018028523; Mon, 17 Oct 2022 07:47:08 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a25:aaa5:0:b0:6be:6646:431d with SMTP id t34-20020a25aaa5000000b006be6646431dls5687144ybi.4.-pod-prod-gmail; Mon, 17 Oct 2022 07:47:05 -0700 (PDT) X-Received: by 2002:a05:6902:1186:b0:6c1:653a:ba74 with SMTP id m6-20020a056902118600b006c1653aba74mr9584577ybu.546.1666018025602; Mon, 17 Oct 2022 07:47:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666018025; cv=none; d=google.com; s=arc-20160816; b=SK3Y07lw0C7arVqI+qAahgZGq76KxxE+jBFsZHiMMwRkiPzEglc5aeKVRgCyYxB/6A cPl0Du4tBzMi4XOC9sMysdadK8lztL27LXIkSmm6kwhCkmbdtINpx/3jkuvAMsuJm0UK ST/zmxIV8+YQ7ozMVtd6PlmMjFa6wLYVhQJqJM9c0dpZwctchiW2JlvqRyO7lFX3ud3P ilyZOv/ZCBKQXcekihqbFEcTPJ96JsW6JoNwGhNhExZHAD2YQ/rCcE1aRV6Oy6iS7gGF YeFwKlzx7ix5Md4IkdXgdO7VfLV5SaAcIiwQo41327J1L9ORfPQrDiNxdqH5YAvbpOH0 n/Kg== 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=SORsBY7UvvpCCmWCTq1YkohMHZvlXuv7j3BDTc5RrcE=; b=MIa7m7nPKnpWpu1BPfLHoj/A0J9/lrpEhoVoz3kIGFxAsqlVBjJU/pH1IDhhYWJLoL Xv0IsDJfqePkkbp4NVHCEwHtEG/yDpST16v9xfadf8x+Mco1PUiXb0/gq2fSufVcB8XD VjOvNiIzaulhOu6P/0SOxY6GrMkU7UEX8q5M5dA8Arcq4lKkS03RsOSj8hg7oR5NI0SZ 3a/4D0l8z+q0+o1S/awbdPbWd1fiuhcso+Pl40EF9rQzKwmXLpV94brIwXyOmXbq0zWO OuksRFYUbWmq9VUep1iGqR13J3+SHTSjfoAztSADDw3A8rzjBtbFZ/G41PVvttDVa4nM BMUw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UflwFZ5Q; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102f 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-pj1-x102f.google.com (mail-pj1-x102f.google.com. [2607:f8b0:4864:20::102f]) by gmr-mx.google.com with ESMTPS id j6-20020a253c06000000b006be92b9dfd7si444664yba.4.2022.10.17.07.47.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Oct 2022 07:47:05 -0700 (PDT) Received-SPF: pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102f as permitted sender) client-ip=2607:f8b0:4864:20::102f; Original-Received: by mail-pj1-x102f.google.com with SMTP id a5-20020a17090aa50500b002008eeb040eso12923409pjq.1 for ; Mon, 17 Oct 2022 07:47:05 -0700 (PDT) X-Received: by 2002:a17:90a:4311:b0:20b:e232:5920 with SMTP id q17-20020a17090a431100b0020be2325920mr14368160pjg.190.1666018024793; Mon, 17 Oct 2022 07:47:04 -0700 (PDT) Original-Received: from smtpclient.apple ([2601:644:400:7c40:511b:3a4b:7767:5ad6]) by smtp.gmail.com with ESMTPSA id q18-20020aa79612000000b00537b6bfab7fsm7370337pfg.177.2022.10.17.07.47.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Oct 2022 07:47:03 -0700 (PDT) In-Reply-To: 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=UflwFZ5Q; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102f 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:31569 Archived-At: If we could implement https://github.com/jgm/pandoc/issues/8273 "safe mode for Lua filters" then we could add Lua support to pandoc-server. (Of course, this assumes t= hat you wouldn't need to use any unsafe functions in your Lua filters.) > On Oct 17, 2022, at 2:15 AM, ffi.appdev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: >=20 > I was playing around with pandoc-server before I decided I needed the com= mand-line program. It would work for some cases, but without Lua scripting,= it wouldn't be adequate for the document builds. In theory, I could use pa= ndoc-server to convert to a JSON AST, run a filter locally, and then send i= t back to the server for the next stage of conversion, but that seems slow = and conplex. >=20 > I probably won't work quickly on building pandoc with Asterius. >=20 >> On Oct 16, 2022, at 7:58 PM, John MacFarlane wr= ote: >>=20 >> =EF=BB=BFThis would be cool, so let us know if you have any success with= asterius. I haven't tried it myself. If you run into Haskell-specific pro= blems, let us know and perhaps we can help. >>=20 >> Note: for your iPad purposes, another alternative would be to run pandoc= 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 h= ave 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 >>> On Oct 16, 2022, at 8:20 AM, jcr wrote: >>>=20 >>> I would like to be able to run pandoc-based document builds on an iPad.= This seems to be possible with the [a-Shell app](https://holzschu.github.i= o/a-Shell_iOS/). It provides a Unix-like shell with LaTeX (additional 1.3GB= download), Python, Lua, and many command line utilities. C and C++ program= s can be compiled to WebAssembly on the device and run there. It is also po= ssible to cross-compile for a-Shell, using a [customized WASI-SDK](https://= github.com/holzschu/wasi-sdk). >>>=20 >>> [Asterius](https://github.com/tweag/asterius) compiles Haskell to WebAs= sembly, and there are a couple of demos that use it to run pandoc in a webp= age, but the WebAssembly files they use offer a simple JavaScript interface= to the Haskell pandoc function: (input, from format, to format) -> output.= I need the full command line interface to run document builds. It looks po= ssible, 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 A= sterius with about 2000 packages from Stockage (I think I can guess what th= at is), but I don't know if I can use that, or if I have to rebuild everyth= ing from scratch using the customized WASI-SDK. After that, I guess I would= download the pandoc source and follow the instructions for building it wit= h cabal, using `ahc-cabal` in place of `cabal`. But if anything goes wrong = with the cabal build, I'll be lost. >>>=20 >>> Has anyone already done this? >>>=20 >>>=20 >>> --=20 >>> You received this message because you are subscribed to the Google Grou= ps "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/ms= gid/pandoc-discuss/bfa54f4a-eedc-4e8e-8671-1aa9f6c63e1dn%40googlegroups.com= . >>=20 >> --=20 >> You received this message because you are subscribed to a topic in the G= oogle Groups "pandoc-discuss" group. >> To unsubscribe from this topic, visit https://groups.google.com/d/topic/= pandoc-discuss/ivgH7zNPlNs/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit https://groups.google.com/d/msg= id/pandoc-discuss/5346511C-4B5D-42E9-B287-DB005CB4D005%40gmail.com. >=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/ADB72C63-745E-4D50-9045-E60813FA08EB%40gmail.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/8FB22757-A6A4-432C-80F3-E770F0567E89%40gmail.com.