From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31566 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: Sun, 16 Oct 2022 10:58:17 -0700 Message-ID: <5346511C-4B5D-42E9-B287-DB005CB4D005@gmail.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) 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="26032"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBBPUMWGNAMGQEBIE4XDA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Oct 16 19:58:27 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yw1-f189.google.com ([209.85.128.189]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ok7u6-0006bR-FK for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 16 Oct 2022 19:58:26 +0200 Original-Received: by mail-yw1-f189.google.com with SMTP id 00721157ae682-354262a27c8sf91981547b3.15 for ; Sun, 16 Oct 2022 10:58:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1665943105; cv=pass; d=google.com; s=arc-20160816; b=j/+T/cJSM/BRRgHbzQI1Fcqqy/qIeZnExYzmsjylQNjYLSVhQWLrN3Y8vNoubwDLMT AdH+xF5yyz0qy+XXbciOypga3MDzn8Zd7y3IpbZd3oViCzA/zcerphntr3/mGUvFN9zA LMuokIRqnxEYJxEX0In4ymCwiGyjdcoqNGsnVe0zkhN2UXw5FxztppOAVzMyfhUxk3Xg G71xTy05Z0zk7j9XJqFe5aE73rCb9V9eWLOT/fW0Gj33Pzo5+Lp2mG/1EZjGildvmFk7 JhEn+pH4LcHCUPpWAZtsyZgdh3xmTHkeUQdNNy9CA/K+Zcyd3N9hlvQ038Du8+ifvYRy mLwA== 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=2EdmCRwK9z1HYEELR2Q3Bg57ibQOkzXIbMfceFoUCzM=; b=No1Pd0KvyjpgPw8hi3m7s/wOMUh7gH3jyf7RSm4Tbf8U/5vV5mOHW4Xdx9Gw/nvnh0 PzC4jd4t+3VCrZlNximhY21ac1+7PLSR3rSsyo7ZRYyECz423HNhmBfMhMucuC4334+B HDy0qxQQ7u9q5EQzsle/J1pv03+G8KPATxxLr4ilSIb7fzdWnOwEn8ANqGOnQTuDqB8z uo4UsOneJJciWkJ85KoAv1XNYvEb+YbpGryGNCw+3VXiKj6kPCJJ7nnCS8T/ExWWMWEI j6KqMIov7VjdxGUi19g19G4v1Lgz8OGjpHC/K7JrKzgu9WXVlEs6m/i5eqijihEKpyQa r9qA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XSQ9En9X; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::42c 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=2EdmCRwK9z1HYEELR2Q3Bg57ibQOkzXIbMfceFoUCzM=; b=QNtMuCyDE8BwoWbtsTEzwSg83LT9Xm8/7L5LKwxaAo6azZ0kXHAzsTSF8T5L1R7j4T a3F9IU8mrn2ldk6HS+RBorHp+6xpZJZawl7AiqBleBzugP8vEi9euCEYPCFfjuuJ7RiB gu+690Raiz2iEjzIRN3OVCI5pCm95NaeROI38lXP1jkXq6i/V3TVAN4u+apn27PzxHyX /9EzKDMlkaFDXhsZPKxQwiaxsGScWAdT69iQZN5F9cYmtG8SEfYvAW/JCKKgVnp5ginu LTclKGSE1S8c6lErNND3yxgiYtirkGy7wkAMhyE0O2WliaHUKywDi009YfvPuepRl 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=2EdmCRwK9z1HYEELR2Q3Bg57ibQOkzXIbMfceFoUCzM=; b=P4xe4JQMHtw4vUhoZang571IvMcp1Thf/EfQ7z+m0of2sp6+isbJLTL9+jTQYHhyND j4NDFwg7hU/RFdy2DC9m1QIAJ5DxSw5bsqZva99egjq0WqsVLXkKiLy2XJMqJTyJB4kw 8nxJmBPA3nHlrKQn6SqoG8JTPG97wcwHiC/gAPjirQj4TQxs6MjIYvGjXiq660kN8nNh 2JQtYZSd9buaGarW5uM/lXTZn1uxh13iWNEcxqdx+FZkIH46heisv59ZSQ5Mi+1G8cS6 DWtWf1NzbQArHFwn+awdN2N8QPwzhayXT7HGOiQjezYLKEgAjlZqjsF0i2mdij3lUWy0 y 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=2EdmCRwK9z1HYEELR2Q3Bg57ibQOkzXIbMfceFoUCzM=; b=YBCcHPfzp1iM7qVusdKsVm+lVEVqTWIg88H+46DjfVBaHkqBBA4hDVcwAW9TWU2s75 4/+kUoiJHaEz5MOD3Rr1QaCwwi3VGpgZPTgzwHXQKx73pUCbBSt12L8Ia4Yq6HxuliYO 7M9YHdxsJcdnAfYm4Aubvqtp/xxrc1EiFHoKwr17hdb9VZ8UGgJRzkwTAbgmjTFgLZGy 3XLace75x3zdYWBZcDCpuusM30jVwxXlteZh98N7xGtnBbXgFTsSxWrTYmnwALhUOLiq 7n0WqjOGn+Hhb8qH9+jb Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACrzQf0sGq5nSZT+G+p5Y/mfZ+pbeKVzErLb00MNPWmTX5RGxdFGdJOA d7MvUi8vkSuyCSBJZ9+dFbc= X-Google-Smtp-Source: AMsMyM79HSP4wvghvq6Z3hD+1eUebfyTUYKVsrFXh7DxhGzfcZZZ71v7ELkZqeuzPqkhQ7VT7Ra+GQ== X-Received: by 2002:a81:6841:0:b0:35c:eeae:a2ba with SMTP id d62-20020a816841000000b0035ceeaea2bamr5982147ywc.327.1665943105492; Sun, 16 Oct 2022 10:58:25 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a81:c213:0:b0:34d:180c:9d3b with SMTP id z19-20020a81c213000000b0034d180c9d3bls3624878ywc.3.-pod-prod-gmail; Sun, 16 Oct 2022 10:58:21 -0700 (PDT) X-Received: by 2002:a81:6387:0:b0:349:21d4:258b with SMTP id x129-20020a816387000000b0034921d4258bmr6122154ywb.318.1665943101316; Sun, 16 Oct 2022 10:58:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665943101; cv=none; d=google.com; s=arc-20160816; b=uGKsUqvlAbKEyaqWDeV48MWoAAe17ybllVqCZ28KcYdH8x3BKjKjgbtWHFD0QtnDYG SF//+DaygAlgG0L40i/6ggl62An6BL9L7mmpJI5Cr1fuwMwLfAYW0NKt5yxbImPbo9q5 yITa94eO9N4UpwIb/REa32ELN/ICqhUWzNG+30tx1Ta3RIXaxRllkgVCed5tngIQwdvR TIkH5esuX/ZG40BZ24jkyI3gYHhlpQjHdYGsVSREDDLTjGTCKicEy6U+SYTT3LMG66j1 4IntlzzwFQdF/VbwcTXe6O+Wg903hcrz0aT9nzta3aqxNT6wpaGsKn8mf6d359zgmSat HjYw== 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=MoLNP6qM25YJPNfONwlcIf7hyr0Mp7XjH31gqd1HVVo=; b=u5pHkPsepBd0guyhyjIcfsgl69nZhC0hnJmxfyFbTLPG14XmNmOuTsy5XDv9/NhwZo gV9Jrmcn2mDpW6Hl9YSFC2KUcpnFdcDtipr8hE7sT3xSNiLheQrPct2jWizhur5GrlOU UaBMA2BiaNQCrokz0jKr+koX3AeWlWZhE74BYjZaWZZ2LdQut5SiWjYvDRFQQDtdNrI6 nOhEBMPDeMJl3W05t1N6BvrTENXUAXabXgVmM8fpnpn449G0CCz3fS+vAEmpqVyF6AgU O/TPfkEO1d1Ir5JS7fFpM+QU7dEpI+rYm1sthBELMV9+0vjwtXFqE9TgcD7JcIzMLvGs bCvQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XSQ9En9X; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::42c 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-pf1-x42c.google.com (mail-pf1-x42c.google.com. [2607:f8b0:4864:20::42c]) by gmr-mx.google.com with ESMTPS id s68-20020a818247000000b00350b92acf33si635093ywf.4.2022.10.16.10.58.21 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 16 Oct 2022 10:58:21 -0700 (PDT) Received-SPF: pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::42c as permitted sender) client-ip=2607:f8b0:4864:20::42c; Original-Received: by mail-pf1-x42c.google.com with SMTP id h13so9216330pfr.7 for ; Sun, 16 Oct 2022 10:58:21 -0700 (PDT) X-Received: by 2002:a05:6a00:27a0:b0:566:9cd9:3843 with SMTP id bd32-20020a056a0027a000b005669cd93843mr8414165pfb.17.1665943100603; Sun, 16 Oct 2022 10:58:20 -0700 (PDT) Original-Received: from smtpclient.apple ([2601:644:400:7c40:8991:bfb3:da08:bd33]) by smtp.gmail.com with ESMTPSA id z11-20020a170903018b00b00172ea8ff334sm5069463plg.7.2022.10.16.10.58.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 16 Oct 2022 10:58:19 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3654.120.0.1.13) 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=XSQ9En9X; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::42c 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:31566 Archived-At: This 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 problems, let u= s know and perhaps we can help. 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 fai= rly 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). > 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. T= his 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.3GB d= ownload), Python, Lua, and many command line utilities. C and C++ programs = can be compiled to WebAssembly on the device and run there. It is also poss= ible to cross-compile for a-Shell, using a [customized WASI-SDK](https://gi= thub.com/holzschu/wasi-sdk). >=20 > [Asterius](https://github.com/tweag/asterius) compiles Haskell to WebAsse= mbly, and there are a couple of demos that use it to run pandoc in a webpag= e, but the WebAssembly files they use offer a simple JavaScript interface t= o the Haskell pandoc function: (input, from format, to format) -> output. I= need the full command line interface to run document builds. It looks poss= ible, 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 Ast= erius 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 everythin= g from scratch using the customized WASI-SDK. After that, I guess I would d= ownload the pandoc source and follow the instructions for building it with = cabal, using `ahc-cabal` in place of `cabal`. But if anything goes wrong wi= th 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 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/bfa54f4a-eedc-4e8e-8671-1aa9f6c63e1dn%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/5346511C-4B5D-42E9-B287-DB005CB4D005%40gmail.com.