From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31996 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Isaac Van Doren Newsgroups: gmane.text.pandoc Subject: Adding a reader for Cooklang and a question about Megaparsec Date: Sun, 15 Jan 2023 19:07:33 -0800 (PST) Message-ID: <08647ee9-9616-482c-bae8-2657d16df33fn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_834_1726182456.1673838453502" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26690"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCSKD2532ANRB5X6SKPAMGQE2VR6HGQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Jan 16 04:07:38 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f61.google.com ([209.85.161.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pHFqU-0006pG-0n for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 16 Jan 2023 04:07:38 +0100 Original-Received: by mail-oo1-f61.google.com with SMTP id a10-20020a4a9b0a000000b004e737f7a017sf10466464ook.0 for ; Sun, 15 Jan 2023 19:07:37 -0800 (PST) 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-sender :mime-version:subject:message-id:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=8xZhkjBaH//LMNd61WxNAIJA2qHf+D+lzPv4XcFDNF0=; b=eti3NgdNPHzCMvfab872ipfakvsCJo+KLzVL9nI3XkTSRdeOj/sokGwW3w7l/1MN7Y J6IEzA19hRDRgzN6SYZQNmio7qpZafvWccpeeSgKw+yFAzdcoKXMmk5nZ87L4vN9Y+E7 bYFG904FfAD93zSefUD10s2MMahi9xj/7Zb1o+ogsFF5/0ldUK67svnKGCLm1E2D0LsX AgkbRfl1Io3E8X4D1N3ILX8d/um8zoQQo4vCLYZtzXYRDNCR+4r4lxKbclECYWNXcGg4 Ie7acFHH9360xnJsTcMR7q0bZ6d4wT0k6Nkcile9LWPJG7FNjM7mcTfeC2GifiI2bXTV gsag== 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-sender :mime-version:subject:message-id:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=8xZhkjBaH//LMNd61WxNAIJA2qHf+D+lzPv4XcFDNF0=; b=Ka3/wqQnK+Q5j2i3na7NbkebSvMHDp+ROAW6iJdoJ5n3OSOGBxrLG9k874aRA1fFrS eTd3HgwZ+LnBue4+M56YWduaVhWtXm66IQVcIKWFkufedBLy+t+4kDB2N9fAlHQHZvuB URShEJom/LIBNo30CQvyhiDIf70wysQVvkpC3rlUpDKHf7BwuGlfY9orOhVMSPWT0uaz LNNWnlOE/eJSZ5sVVA8ID6huxBltNQdBpGiD/U2V5RJwMHXNrRqSBoDCGf2TD6IfEX9j AikBFjwy8umH3bjoNNcl8Sna4rISNrgWwe6bHCggWOlnd7wmqymU7LOGN2BlsDIwnXTn Z4hg== 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-sender:mime-version:subject:message-id:to:from:date :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=8xZhkjBaH//LMNd61WxNAIJA2qHf+D+lzPv4XcFDNF0=; b=iIKdP69IdloA9Vn7Um38Fov2L8jHovrvn9/LRpY/DjN4pj42MnjTcQDc61b/fKug0w 0BGhxFS3DQ/R34Y7xC1UVS7zHW66DYsIqq+qrQ+L8xE14lAOW2uENsigZXUBVWOVMK+9 pcYKG3BaFVsBxrKpmiLlXiMMqIAZiYgn67GvvAzz1BXUQub2rsftF7t/YAsR9Kead2G6 TllD6gl1w/vmBHAucyOksuLaYWp2I1MNfuxkcS4Ni+U8d6UsZavddSasjVUxecXLxL0y tT92gAHRO8nG+joca1rab6XT6Rs2kJ4jziKYq0iZUqZIao0BWSrATila6eY1wTvQXwee 7gHQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AFqh2kpx5LLmyH0tzo5X4DSqLp92pmTkjB++c5m+zgi1XxW7p+8vE8Qj axuNFcF7Qt7Hat6kpaeXhSo= X-Google-Smtp-Source: AMrXdXtcC1bsgVv9bLJOOfS8OykazAcPVNxwMQIqpWgyMcgS3scMB6KljPMB/FXMFgpqYGrP78XQnw== X-Received: by 2002:a05:6808:f10:b0:363:f0ed:bb7e with SMTP id m16-20020a0568080f1000b00363f0edbb7emr2129595oiw.220.1673838456769; Sun, 15 Jan 2023 19:07:36 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:39dd:b0:661:91c7:c50b with SMTP id bt29-20020a05683039dd00b0066191c7c50bls2250378otb.0.-pod-prod-gmail; Sun, 15 Jan 2023 19:07:34 -0800 (PST) X-Received: by 2002:a05:6830:1199:b0:686:16ed:3e2a with SMTP id u25-20020a056830119900b0068616ed3e2amr145060otq.175.1673838454130; Sun, 15 Jan 2023 19:07:34 -0800 (PST) X-Original-Sender: ivando5522-Re5JQEeQqe8AvxtiuMwx3w@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:31996 Archived-At: ------=_Part_834_1726182456.1673838453502 Content-Type: multipart/alternative; boundary="----=_Part_835_905871150.1673838453502" ------=_Part_835_905871150.1673838453502 Content-Type: text/plain; charset="UTF-8" Hello, *About Cooklang:* I am interested in adding a reader to Pandoc for the Cook markdown language. Cooklang is a concise, standardized way to format recipes. You write down the instructions for a recipe and whenever you mention a new ingredient or piece of cookware you annotate it and can specify the quantity and more. Then that document can be rendered by a variety of tools (e.g. a vscode extension I wrote) into a consistent format. This language seems like a natural addition to Pandoc and one that the Cooklang community would benefit from greatly. I've written a parser for Cook in Haskell which would be a good start. It complies with the official Cooklang canonical tests. *Questions:* Currently my parser uses Megaparsec. Do I need to refactor it to use Parsec instead or is it okay to add Megaparsec as a dependency? Currently my parser uses String instead of Text. Is it necessary for the parser to use Text to be used by Pandoc or could I get away with the reader converting its Text input to String when parsing? Is there anything else I should know before I start working on a PR? Does this seem like a suitable addition to Pandoc? Thanks! Isaac Van Doren -- 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/08647ee9-9616-482c-bae8-2657d16df33fn%40googlegroups.com. ------=_Part_835_905871150.1673838453502 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello,

About Cooklang:
I am intereste= d in adding a reader to Pandoc for the Coo= k markdown language. Cooklang is a concise, standardized way to format = recipes. You write down the instructions for a recipe and whenever you ment= ion a new ingredient or piece of cookware you annotate it and can specify t= he quantity and more. Then that document can be rendered by a variety of to= ols (e.g. a vscode extension I wrote) into a consistent f= ormat. This language seems like a natural addition to Pandoc and one that t= he Cooklang community would benefit from greatly.=C2=A0

I've written a parser for Cook in Haskell which would be a good start. It complies w= ith the official Cooklang canonical tests.=C2=A0

Questions:
Currently my parser uses Megaparsec. Do I need= to refactor it to use Parsec instead or is it okay to add Megaparsec as a = dependency?

Currently my parser uses String inst= ead of Text. Is it necessary for the parser to use Text to be used by Pando= c or could I get away with the reader converting its Text input to String w= hen parsing?

Is there anything else I should kno= w before I start working on a PR? Does this seem like a suitable addition t= o Pandoc?

Thanks!
Isaac Van Doren

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/08647ee9-9616-482c-bae8-2657d16df33fn%40googlegroups.= com.
------=_Part_835_905871150.1673838453502-- ------=_Part_834_1726182456.1673838453502--