From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31568 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: ffi.appdev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Newsgroups: gmane.text.pandoc Subject: Re: command-line pandoc on iOS Date: Mon, 17 Oct 2022 11:15:21 +0200 Message-ID: References: <5346511C-4B5D-42E9-B287-DB005CB4D005@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 (1.0) 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="24033"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDQLFNXWVILBBLF2WSNAMGQEFXWGINQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Oct 17 11:15:28 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wr1-f58.google.com ([209.85.221.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1okMDX-00064S-Oj for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 17 Oct 2022 11:15:27 +0200 Original-Received: by mail-wr1-f58.google.com with SMTP id h17-20020adfaa91000000b0022e9f2245c8sf3477907wrc.19 for ; Mon, 17 Oct 2022 02:15:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1665998127; cv=pass; d=google.com; s=arc-20160816; b=zeZj2pxcwERhalpgV3OQ3yOy4N15kHc1b4f4zP1DnQQ4Ibss/QYx5ftTcNdtahE8Zd VGGCo2BMNzLeuxfx+fbBqy1w4uq9Q1ZXHzR+cglnvz+MLjFKbCX+KZw8gbYXlZI/25zJ lSi21cpOjM9KcAtwMrYF3u0TZcCbOwFC7Stlo/S98kzHg4PN30kqu8c0NWZ8zU0tlr48 I5FuhYsg3znFZ0Lno8TELZuCzb1P18A7xhGVHbETjcpI77BYRYfbHRc3iI9SFhoSCtj1 p43NS7zQRcjjfLcelEkFuXWhdmITXUYWLeRi/LyOF1H2jHXdZ7ToMg/IDwkxLC63wNwj RHGg== 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:to:in-reply-to:references :message-id:date:subject:mime-version:from:content-transfer-encoding :sender:dkim-signature:dkim-signature; bh=uoL+0gA9W7FLIsLo2yHyoMXT9IWwmYllyO77XQUwO+0=; b=xaNxXmK9J63vEK43rcC2wKQM1UwyG/dcen4VZWlB5nrQp9eEqdftHws5RcOPM5sZlQ T2kE2fobGxSmemHNnoQZTDfbPgxSQtbn5BNoG9CfI8mDwVAVWxLbh89sKcAK6WjK/J3K TVc+hAlUF98EBkLFK0EUzG8ZUn1rSh8NqPxVp1E8CC5lkrW7pxhcuVy0LaZm+KPv2uz0 iuPNFtDBKR2hLXRqWf5VPoD2aZwwh539YdGDviAxxJoWmex6M33Y7MrlcsiCZF8PAMpc UXNfhKwtr3OxcbZGk1NAjTGD7u8AMmU7fuWGnkG+FuHBAuuRVNfLDfwqVYyhBNttiD7l Mj1A== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=k1AXj4jd; spf=pass (google.com: domain of ffi.appdev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::52c as permitted sender) smtp.mailfrom=ffi.appdev-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:to:in-reply-to :references:message-id:date:subject:mime-version:from :content-transfer-encoding:sender:from:to:cc:subject:date:message-id :reply-to; bh=uoL+0gA9W7FLIsLo2yHyoMXT9IWwmYllyO77XQUwO+0=; b=XQkh9s51Lw4XIj+b6P+0oJI+dArzLGzXCLkgI5umJmKJSI4NHH3+eG/1TGdBIHoYrp 64FE6CVcS6M9lnHLi2j+9fSXFiGA8bRuKzTNw6MwQZMUa+5qK8cQxn/YS+kMKTah0Nnh QbJMEua4JlxCAeUjKxQQW2wq5xwNgMXg9cwhP72MoHJ9XXHmSD96hrdXeGolFahgblCQ 5vurGRkVdJOOsP3PRWGBRNFTs7J1KAbbaMzBIGPiwuP6Mg/VcTgJ1+1Hxq4eo5RacDw6 s06rRw8SXW1oRgmC6S5jIIsOrQtywMrG60xr2yvW/Pq+9u4prrCw7t3/i/kKpE1Ia 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:to:in-reply-to :references:message-id:date:subject:mime-version:from :content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=uoL+0gA9W7FLIsLo2yHyoMXT9IWwmYllyO77XQUwO+0=; b=lKBe1dgosXjhBtVy7Jvjk7nyIvCVS8H848IogP0NZdgR2u9NvGhCTHYDs63jYWs4v4 e9El9Z8qKARV2DqgWrp1PEDnwT6WWYjwBl5IioKBZ2q7tqk/IspU+C+SeSyigTPz7+xj Yujip7Oc9dpNsk4PkUfXQf1Wa+eAXuKZO1MnmB2qAuMIPU48yke7PIHxzTjvPzx2pm4Z EEq/ovsBw//70v7tEuzB/W6TtvZXj6ZpRsEzjefRt0BdMdFcaDT22ep8lUcHwPY4AyCp ieDvq2u7jeCbKH2o56qEGVbH8dgBgJ/JdzVsalBcPoxFsQRPTHCU/3mqaYFPh6yUfQRV V 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:to:in-reply-to :references:message-id:date:subject:mime-version:from :content-transfer-encoding:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=uoL+0gA9W7FLIsLo2yHyoMXT9IWwmYllyO77XQUwO+0=; b=jSfcFCGMAKBxVsXzlh9Bo4MZed8lq0dj2uuYERbedzGn5tPJy7+PgMGcjgBlUh0chJ 4kShp/eazCxi+rspu0ypEuhm/LAz1k/y795aPt/7Ph4N/nRbcNST/hKSihd85q8QxFmh Irc28IxfrWrjeykP/uJq+RWCUVM+akkG8bgSzre3UvvyLPelMRJgMg4vuc/Z5riH2qrc D6AHfnV/sz6LL4bFriydkoGWGOFprDFMIQpCL3HALF0favypH8Cj7IecdBhz+rusQB32 IVI4bHrjKVBTzJW8HKIz Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACrzQf1BPk4VIw4uQebROPHaAmYa8jj//9iRxGJdwOgUTcuAGQz5zxt5 PXq3YOCseq3Meg0LDrlMYD0= X-Google-Smtp-Source: AMsMyM4OF8CuDh3jPM8HEHOXnkupFX8P1uKpH454MWnqJcIb017+jVCu/UlhFFpkxcJq4bjKGQvLtw== X-Received: by 2002:a05:600c:4fd2:b0:3c6:db8a:4d2a with SMTP id o18-20020a05600c4fd200b003c6db8a4d2amr6420153wmq.178.1665998127279; Mon, 17 Oct 2022 02:15:27 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6000:69e:b0:22e:5d8a:c92d with SMTP id bo30-20020a056000069e00b0022e5d8ac92dls470211wrb.1.-pod-prod-gmail; Mon, 17 Oct 2022 02:15:23 -0700 (PDT) X-Received: by 2002:a5d:4f8b:0:b0:22e:40fc:bd1b with SMTP id d11-20020a5d4f8b000000b0022e40fcbd1bmr5504280wru.717.1665998123387; Mon, 17 Oct 2022 02:15:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665998123; cv=none; d=google.com; s=arc-20160816; b=QEGrzabPCSQLCqu20RW28PkpksfS7Pds+9CW8Y+iVUl+hD3xMWTq5XSLm8Et/p2WIU MNEFCptrA/1r+ihtOH5R+AC9CuBpOoqkxEjjlfOa6UpaLTSuyG5Jb5OfOWK35kjkB2lP vihyL93JORvEchCpKOH9G9xYFy6lfYaGCTHbT7VNFikCHT7ETxyXZ9zWP/Ax7LuxwcK4 0GNlqHmf82KuHuLkOJmn3Mn0FtP+MaKrBjdLg0a+g2S+YgWHr0g/bvhpy2rUukwDOXRr W1mqwUcNyugR6EEYJsFHYAOuAQzGlz+QBERJyRRqmhGhugOAXWG+eBr4x8WZWjQ/OCn8 Lffw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:in-reply-to:references:message-id:date:subject:mime-version:from :content-transfer-encoding:dkim-signature; bh=4Ud1/EvkjIXKMDkUvLTRkBCVqFfrVF8m607R6E08Mlo=; b=XEg/PBhGbR6TMBGwc36HXgux5gyh30T9ZXRqke/oWQrbJRO/z/Wv2ZdJfYg6FB84Gr NuNYumYREUSkfUV+hvRKfuodO4ScYMsLe7mjRmp8uazFjZD6E43JAu/Ljm6eKV49zjtB tvxIH0W+OFGBiZ27ek52MZuh9kcxBy9y4tgDA3E9gG+N1IK+6ghzK41jd4YYGmy0lPLw o2HLmrC3cD6zIBbvmB0pIE2Bk1V4y4YDyMJhZuBYk1MnPpaKLaNnKJMGRHUvwAp/Kb10 A44WkViH6up3hLwceF4LbSjsWPN5EQUzKSAeAbiYvRpnhN8wwt1UCDv0vefs8jzebaUX HczA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=k1AXj4jd; spf=pass (google.com: domain of ffi.appdev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::52c as permitted sender) smtp.mailfrom=ffi.appdev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com. [2a00:1450:4864:20::52c]) by gmr-mx.google.com with ESMTPS id 6-20020a1c1906000000b003c6e63dcbb3si359469wmz.1.2022.10.17.02.15.23 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Oct 2022 02:15:23 -0700 (PDT) Received-SPF: pass (google.com: domain of ffi.appdev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::52c as permitted sender) client-ip=2a00:1450:4864:20::52c; Original-Received: by mail-ed1-x52c.google.com with SMTP id r14so15088697edc.7 for ; Mon, 17 Oct 2022 02:15:23 -0700 (PDT) X-Received: by 2002:a05:6402:2926:b0:459:675b:38a9 with SMTP id ee38-20020a056402292600b00459675b38a9mr9352377edb.60.1665998123105; Mon, 17 Oct 2022 02:15:23 -0700 (PDT) Original-Received: from smtpclient.apple (host-82-56-18-70.retail.telecomitalia.it. [82.56.18.70]) by smtp.gmail.com with ESMTPSA id b19-20020a17090630d300b0073c0b87ba34sm5775320ejb.198.2022.10.17.02.15.22 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Oct 2022 02:15:22 -0700 (PDT) In-Reply-To: <5346511C-4B5D-42E9-B287-DB005CB4D005-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> X-Mailer: iPad Mail (19G82) X-Original-Sender: ffi.appdev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=k1AXj4jd; spf=pass (google.com: domain of ffi.appdev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::52c as permitted sender) smtp.mailfrom=ffi.appdev-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:31568 Archived-At: I was playing around with pandoc-server before I decided I needed the comma= nd-line program. It would work for some cases, but without Lua scripting, i= t wouldn't be adequate for the document builds. In theory, I could use pand= oc-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 slow an= d conplex. I probably won't work quickly on building pandoc with Asterius. > On Oct 16, 2022, at 7:58 PM, John MacFarlane wro= te: >=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 prob= lems, 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 f= airly full-featured, with the caveat that it runs in "safe mode," so you ha= ve to explicitly send all resources needed for compilation to the server (i= t 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.io= /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++ programs= can be compiled to WebAssembly on the device and run there. It is also pos= sible to cross-compile for a-Shell, using a [customized WASI-SDK](https://g= ithub.com/holzschu/wasi-sdk). >>=20 >> [Asterius](https://github.com/tweag/asterius) compiles Haskell to WebAss= embly, and there are a couple of demos that use it to run pandoc in a webpa= ge, 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 pos= sible, 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 As= terius with about 2000 packages from Stockage (I think I can guess what tha= t is), but I don't know if I can use that, or if I have to rebuild everythi= ng from scratch using the customized WASI-SDK. After that, I guess I would = download the pandoc source and follow the instructions for building it with= cabal, using `ahc-cabal` in place of `cabal`. But if anything goes wrong w= ith 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 Group= s "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n email to pandoc-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/bfa54f4a-eedc-4e8e-8671-1aa9f6c63e1dn%40googlegroups.com. >=20 > --=20 > You received this message because you are subscribed to a topic in the Go= ogle Groups "pandoc-discuss" group. > To unsubscribe from this topic, visit https://groups.google.com/d/topic/p= andoc-discuss/ivgH7zNPlNs/unsubscribe. > To unsubscribe from this group and all its topics, send an email to pando= c-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/5346511C-4B5D-42E9-B287-DB005CB4D005%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/ADB72C63-745E-4D50-9045-E60813FA08EB%40gmail.com.