From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28611 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Announcing asciidoc-hs, an AsciiDoc parser in Haskell Date: Wed, 16 Jun 2021 08:01:49 -0700 Message-ID: References: <1cee20e4-c8f5-9f6f-9903-a2ae35c1dc28@mailbox.org> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17483"; mail-complaints-to="usenet@ciao.gmane.io" To: 'Guillem Marpons' via pandoc-discuss , pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB25EVCDAMGQESGF2IRI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jun 16 17:02:05 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qk1-f192.google.com ([209.85.222.192]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ltX3N-0004GJ-5j for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 16 Jun 2021 17:02:05 +0200 Original-Received: by mail-qk1-f192.google.com with SMTP id 81-20020a370e540000b02903aacdbd70b7sf1958987qko.23 for ; Wed, 16 Jun 2021 08:02:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1623855724; cv=pass; d=google.com; s=arc-20160816; b=a0BZXpB4Y2ApQEenMsLdnAh2GgxwSy0txQkMgBlNsgd/4rfJiKYr2nP5wuR0FABfc3 Vdll4xvSd1DJCsiWgLCNWRNg5pQnr/9MsEKk+RJ1H2XLJs1+/FqZR8dELTNlIfZTaE2G +9d6IRp+MqyMQVA8NBN9DboulwCW+8epfRI5HuP+1Ahrp7wB3CnOLEAxbQUQi7UOEIgc VLgbP2MlvmKx7CmrDVjqNVvldIk/aGx0X0MA9mtzbVKypuKwClpz5LC6o2WYMy5GbMPW RiHBXhcDl/3u+W2bQxEi68dHrcS89XNIVRpifNRAXwW45GiJUdzIFLHGBU3MB/mItIMs g7iw== 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:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=i23SOvGLG6Qb/XLrPeDQWcNWLZdl35fIAFTQXKA8djg=; b=IeeGEuBjmXO4aKDXR+g8iEvTUozhphXfasnaWqdevEpqKSYoeig0b/bCvbAVBRO2Vs DZKHRWrXk5A0FbWoNfdPG+oIejtfGS1/CDKr8dQ2tRjzeKrNq9kaZ0rWbLtQjTlNZsZA ASnuiaRmnK4pFJQiqohhQt38AMY0IJZLpof75/+P4zdBwnG1nLXt0kq6RB5t9f6BF+6Q J+5zMzXtYyS3pP6oLefCZ8Wdj+19Rn3e2OS14T+76hgLoFl3Q2OwGi9Hys8SbZvFWX80 gw/1l1t0OCqsb0nRfI9F2fAP25gYyLf13ljb/50w0DamZMqUd5tXfHCtWCgYi46Bh8UH ICLQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=Q0K1M9aB; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102a as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=i23SOvGLG6Qb/XLrPeDQWcNWLZdl35fIAFTQXKA8djg=; b=EJ4w19m9y5Ho2ks38tAhpuAT4Faiqh8kKoBwXeWIxaGv9tzCAjrKk8ZrYQ2VVMOatf 1nOoAcQG2VO1aw5QhvzDy7HSv1oe4MAYg1arY/OmGoI3/YWN5I7jgR5ApFtIg3dPpghP ypgfyKOvrvsSY9V32E+wvio/nbzE8mgxdwWSk0RsiB9TR+nncNyNiZldte6tTq/mrK8M rah719ZyO/VwcxkmAZK4JnG2nCqoDm3kMvr0JEojcdvzczlFAwMFnxdLVZzaQWa5JwUv 82juc+BsDrmVNN5sWRMdu0cWKJI0uvWJ2h5r0TvLQqDp0nCHPio2+Zu2czaUNptQ44Yb QYIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=i23SOvGLG6Qb/XLrPeDQWcNWLZdl35fIAFTQXKA8djg=; b=YYQVYu6rtcYW+g6sFYpjz9zUrYQdSHRfN538ca7V/wBPFtCarLdIzNr4sNuMEiz8ku 4XxgUslGXNzjjmpvHkBZLkh5C0RlTC8qnPi+R7Bg2BOB88gxEjL6rQEsYmhcFkaOlHhf BQ7kQKlCPMwbzNR/CYLkqu15K64WSA5+zmkwt4Ar1rdBYGZLBVhs/Lz5dwQ/qfJH5a+U M/TUn55jRIrZ5ddgUPhlFmce9yM0PTBnZS7kKr9pN2BIWBvrCdeghfwQhhxqu8jnNGCh igmZZic7Qf7wZgnqmG4QtTyPelrOEQRW+1wc7toiFQWWCVeIJPiW9/c3W+ZAw4nKjUL7 +O6w== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532pV+Q8ppy90NFiNGDOnzxeyijYLCiYekl+AstlqWmHzwNPcE2i si2IDPGS3jztczMLYzuoOUM= X-Google-Smtp-Source: ABdhPJz8q4bEv7ns7gqY7Xp1XbSD6aJjhAfs0AuBJAaKrJQQ8duDbGlTJI74haDgiQTlH40juwDygg== X-Received: by 2002:a05:620a:10b1:: with SMTP id h17mr439939qkk.267.1623855724321; Wed, 16 Jun 2021 08:02:04 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:ae9:e407:: with SMTP id q7ls1912458qkc.9.gmail; Wed, 16 Jun 2021 08:02:02 -0700 (PDT) X-Received: by 2002:a05:620a:12ef:: with SMTP id f15mr412340qkl.461.1623855722522; Wed, 16 Jun 2021 08:02:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623855722; cv=none; d=google.com; s=arc-20160816; b=LL+iKcm+m/7UuwnkPKNTNtEjCC02fkrgHeyPhEWoa8TNFveLgtn81KmTT4ucxojhY9 3NXQsYOQA5y+8EvGvyiHQHW/m8tURz37uLrKvX//K38ObDKabBmSyLg9N6A4Yd4L4NcN 4hiKqH6gGOxNRC56kXJQifspH+qpdmfB1xgrO6CZQP4UlxhBCp8yeAZglZGD2MKCsToW P0IDKz2GYq3rKRyhxUPt2tgEgWG+zDxWhL5WuFfDNhwWrVJ78374UtczGdL/8PxjI1ia aExbvJBv3fE3rFJkgLkmif5kE6UldZ91u+Mk66J7pdWyu1oJCiL/Hr3GgnOrS7W2uUXK +yvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=PE3VISfCm2acecWsHYPAr6wArxm4Wf+F6aveaF85HqM=; b=DZd5KZX+wxwCZ179sgvP7R3NmSzFiatAtrIgLvgJEDFaJz130TQTATcg4w7d3h8ZM/ C1Mr0+kNgGDWC4qT6hxMAHzPJA1Nn/nN9sqoM9YUYKb8sNnYifCZYbtki81ST2Z2Vmzj qnOPW/CRsBAPsvxz5RJJI+8pnfVt9FKMj9X5/MNlC/C9P4M7U3mhoeChvXKPawGz9Zsd VKwd0W56b0/x/w8DZhiX2K85uPsRmnWe9UZfsxlK1eJQ5dGuXGsroZer+nGQcoFB+XwZ TJO9yHebEW4N6XR9zl87FOKz6CqlAnc5BurmmU6eUkvXqWkkSVwQZaKjkWFFlAPr9LCD kRqw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=Q0K1M9aB; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102a as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com. [2607:f8b0:4864:20::102a]) by gmr-mx.google.com with ESMTPS id o23si210515qka.0.2021.06.16.08.02.02 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Jun 2021 08:02:02 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102a as permitted sender) client-ip=2607:f8b0:4864:20::102a; Original-Received: by mail-pj1-x102a.google.com with SMTP id s17-20020a17090a8811b029016e89654f93so4173549pjn.1 for ; Wed, 16 Jun 2021 08:02:02 -0700 (PDT) X-Received: by 2002:a17:90a:901:: with SMTP id n1mr11190157pjn.44.1623855721529; Wed, 16 Jun 2021 08:02:01 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id l128sm2627241pgl.18.2021.06.16.08.02.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Jun 2021 08:02:00 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id D2074A23E; Wed, 16 Jun 2021 11:01:49 -0400 (EDT) In-Reply-To: <1cee20e4-c8f5-9f6f-9903-a2ae35c1dc28-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org> X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=Q0K1M9aB; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102a as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org 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:28611 Archived-At: This is exciting news, and I look forward to seeing this develop! It would be great if the library allowed us to integrate asciidoc reading directly into pandoc, and I'd be happy to help with any pandoc integration questions. One issue concerns includes. The pandoc readers are parameterized on any instance of PandocMonad, so they can be run either "pure" or in an IO context. PandocMonad provides an abstraction for reading from the file system -- an ersatz file system is used in "pure" instances. So, for purposes of eventual integration in pandoc, it would be great if your library was compatible with this (rather than, e.g., exporting a parser that requires MonadIO). "'Guillem Marpons' via pandoc-discuss" writes: > I'm pleased to finally post here my attempt at an AsciiDoc parser and > processor in Haskell: > > https://github.com/gmarpons/asciidoc-hs > > It is meant to be both a library that some day could be integrated as a > Pandoc dependency (similarly to commonmark-hs) and a separated executable. > > My vision for the executable is that, in addition to generate Pandoc > JSON, it can be used to generate AsciiDoc (for source-to-source > transformations) and support other use cases needed by IDEs. > > There's still a lot of work to do, but I'm reasonably confident this > time we can finally get AsciiDoc input support for Pandoc. > > I've tried to explain in a blog post the context in which this project > has been developed (there's an ongoing standardization effort for > AsciiDoc), the difficulties I've found, and how I've resolved them: > > https://www.tweag.io/blog/2021-06-15-asciidoc-haskell-pandoc/ > > Contributions are very welcome! > > -- > Guillem > > -- > 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/msgid/pandoc-discuss/1cee20e4-c8f5-9f6f-9903-a2ae35c1dc28%40mailbox.org.