From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30695 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.text.pandoc Subject: AW: Custom readers and writer paths Date: Mon, 6 Jun 2022 20:02:40 +0000 Message-ID: References: <874k0xpszm.fsf@zeitkraut.de> , Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 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="7972"; mail-complaints-to="usenet@ciao.gmane.io" Cc: To: Original-X-From: pandoc-discuss+bncBCZ27W53TUFBBYV27GKAMGQE4ZEILPY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Jun 06 22:02:46 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f56.google.com ([209.85.128.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nyIw2-0001qX-AT for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 06 Jun 2022 22:02:46 +0200 Original-Received: by mail-wm1-f56.google.com with SMTP id c187-20020a1c35c4000000b003970013833asf5169681wma.1 for ; Mon, 06 Jun 2022 13:02:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1654545766; cv=pass; d=google.com; s=arc-20160816; b=tn8mElqL55URktN/3vJTZaXx3hREprrY5kWc4P4f5EvXfn1r3FkP2PzUhuqBjWXvWf /6+KvbTXfoamEes73wd0L0xhT7VLGI/8j7gzka2TcV7l/btiiJ9g/J2/R9ycn5scLAco QEIDhA1JY6GjnJVmtVz/0dT+gKyD9e5xsn2+qpjMCPXu2rFHvbJIyOC5GbC/2qdFXxr3 acXrxjnSt+/PcnCKQF1SzDMU2+5fjnUNyM1DtUwO3i58hFI9aFKajYt4LprKUq2LzJ// yS5VPQb4TZD/Kij64KM1TTQXy+FnWAKk05X6uNhBbE3Mh25ePkLGwxfs5D51rZcFWBKp ZCCw== 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 :content-transfer-encoding:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from:sender:dkim-signature; bh=g2uu5PmWxchnlM1MJSePL+IMF6ScTOwFq4E2JlUAp7o=; b=Cw02d95NkRG8Z72JCrN96NF2HcXewnc0cBigujjKMDY2hqp9U6OAH91EN/g3LGTlaz Z7udmRrJz7yAZaiDUQMJTpZClO3GgpLkQd0dBGQaNEDvwYW0cJoQvplQXX6+HAQqB6AG aPoLl3T2ha/vEqe962rOOD3dviPJCpJrwu4MddL3F1K1yE55NZh/e0ftx3TL5O1pssiC P6AhEVpJwAS7CLdVbBlTIk85H93Q1v7rG099X4Z78w4n8FqdcWbS5KDhOefALqmzlDxv VhzpQzIeq7JsKs7MulmUoUzg5IOSPTspaBgx3JxfpXJSQ5p+qTzsRmsfv328RsjqKtB6 2KIw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.83 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:cc:subject:thread-topic:thread-index:date:message-id :references:in-reply-to:accept-language:content-language :content-transfer-encoding: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=g2uu5PmWxchnlM1MJSePL+IMF6ScTOwFq4E2JlUAp7o=; b=EvNJM2N5mKzM2XXkSuRKdIlFXt+Que1xmRL/3stIBVSG87MQo9DcuE4NllI+4r8GVk 2IbDks4VfYhl2GcGEKVwJwbeAfDJyx7y9jGMXTh8etPa21fP1C0Lxk5uYxwAEYmMIyQs jgMdclGyJ01I71E/JA/CAuSsLi3mP2HV8p2I/V4PO2g7Mgxj6/ZvYezoDgimGjo7sPpI IKttkutvZsEtR4ze9tDOifZ9kxEFsac3ieUPvfcM5ypXzWk8iBi9NtSMB+0QL4jrFDt1 41FQdqUMc2Sh1NX9l7Pvg1AQC8OIUY2iPPcJpwM8NV/ivx5 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:cc:subject:thread-topic :thread-index:date:message-id:references:in-reply-to:accept-language :content-language:content-transfer-encoding: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=g2uu5PmWxchnlM1MJSePL+IMF6ScTOwFq4E2JlUAp7o=; b=QDH6buIYkl1eph6Bnbp67gm0KhyjefB40UmigL08QaAqRsxUnGen8UQ8/6CTuxg64f AbQV/az7Vllt3AuhdGUOttlzJobYqvOmYsZKj34R3OZ+WDEwKNpD6YEJW92mq3Y7dqn6 +yTnLO8GOKGQjQAOrHQ2mrxBpceW1HdBHxuQ9dZ4KCG83/Wsdr874BX3eHdc/iVb7NoZ pXnPJ44iYAd/5pGmucEEMXmxNvgATR+60GnZOyJ0YncGbq/VhdqbnqvVDFsbPtLgYE5G XP Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533BeAxO2fiAJx3U3iTxA/rDCzuQMgNkFkx5GsyYrFhc6m8aaZfk cXWTTFlWV76Nn5yTUA3uuSc= X-Google-Smtp-Source: ABdhPJzZ1XwjrQByC2zqHe10drA3Jzp13Y8NG/e2AWD83kCp3hDJJjO3y0YvQWqxCjrc4szY5u2tzQ== X-Received: by 2002:adf:eac4:0:b0:217:737b:e77a with SMTP id o4-20020adfeac4000000b00217737be77amr9891022wrn.121.1654545765872; Mon, 06 Jun 2022 13:02:45 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6000:144a:b0:20f:f1e7:c71c with SMTP id v10-20020a056000144a00b0020ff1e7c71cls1660017wrx.0.gmail; Mon, 06 Jun 2022 13:02:42 -0700 (PDT) X-Received: by 2002:adf:f40e:0:b0:218:3ea6:2d4d with SMTP id g14-20020adff40e000000b002183ea62d4dmr6879525wro.309.1654545762163; Mon, 06 Jun 2022 13:02:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654545762; cv=none; d=google.com; s=arc-20160816; b=s3PjS/iyEjR49LfXWtgJfKgjF8tvxvDr059KGbYyz9DrzopHYrbaYtTQvLyv8ZMh1E RUJ126Oj0RjCbcTK2V8MaZ7dLtJ2+cIX/oqwiBHkdcHDA1MvxTmESQiYALQ8pCOn3lV9 9TpG1hSyG2HIA+OGATn9O9Z0xy2ZxhF2+xOZxxoe3fidCfBMoYPuxleTG7KN3mZy/9mU 59kOeOuWXtnys3dWuh1zvu1W6PIFbGOQ6U+dcbIP/rv3stBw/ivWl6e+XSUKIjNIpsd1 WLJVXhbURtx0g0c84DYc4x4eFh1FyMCtIzKA7OIxflN8hkhjnOcODsFsa6QTcxKvKMMI SWUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-transfer-encoding:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=r1wsMck/Ar3GP9b1n+zPu2rLZQVXIEbCfnj2z7rpBUs=; b=koM3MTU0ApJdVSrPvKZYo3MBeYMomsOmu5yCvKUAlnZFTj8069gxGC0OjfDu4SM72/ tl0BybHN+0VyFUnXTedLCb2VwG/zFsG4mr7nDFttjJp3/AjvT0LZR7TCOwNQd3zZLn1R DwKvlZHuNO9zfc+pDlgcaPKmV0wueck9Ncbe/9ctsyw2ymVfSH74DWV3CJm6nkc5opNJ ytds7GZrPCkewYdIqstLlX9lePMEurnyVxmuKMxIKqHphaOcP+8qhhDHSEaP0Ex0YBkQ KCiknucYL0A6hgNRAUO8y+f/J3CKD54fzZdH8RVtrXGHgCKs+3DUPTlJdks/aXIyJp0d XNLQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.83 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch Original-Received: from mailhub-lb2.unibe.ch (mailhub-lb2.unibe.ch. [130.92.0.83]) by gmr-mx.google.com with ESMTPS id i10-20020adff30a000000b002132c766fd7si524300wro.4.2022.06.06.13.02.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 13:02:42 -0700 (PDT) Received-SPF: pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.83 as permitted sender) client-ip=130.92.0.83; X-Virus-Scanned: By University of Bern - MGW Original-Received: from mail.campus.unibe.ch (aai-edge-01.campus.unibe.ch [130.92.13.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailhub-lb2.unibe.ch (Postfix) with ESMTPS id DDC00500078; Mon, 6 Jun 2022 22:02:40 +0200 (CEST) Thread-Topic: Custom readers and writer paths Thread-Index: AQHYecafnHnsLMOTb0iuaAVG3FoLhq1ChB4AgAAP/4CAABTuAIAAI6qt In-Reply-To: Accept-Language: de-CH, en-US Content-Language: de-CH x-originating-ip: [130.92.13.161] X-Original-Sender: denis.maier-NSENcxR/0n0@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.83 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch 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:30695 Archived-At: Yes please. Not Luarocks, at least unless someone can show an easy way to i= nstall it on Windows? Denis ________________________________________ Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org im A= uftrag von BPJ Gesendet: Montag, 6. Juni 2022 21:53:16 An: pandoc-discuss Cc: Albert Krewinkel Betreff: Re: Custom readers and writer paths Den m=C3=A5n 6 juni 2022 20:39John MacFarlane > skrev: Albert Krewinkel > writes: > I'm not sure if it's better or worse, but we could also look for the > reader in LUA_PATH (via `require`). Using a bit of pseudo-code: > > if file_exists(reader_path) then > dofile(reader_path) > reader =3D Reader > else > reader =3D require (reader_path:gsub('.lua$', '')) > end > > The reader library would have to `return` the Reader function instead of > just defining it as a global. Probably better not to change the interface in this way. Maybe treating these like filters is the most sensible/least surprising thing to do. IMO the most sensible. That way you can just clone readers/writers off GitH= ub without authors needing to go through the hassle of setting up a Lua roc= k. Having to do that will likely discourage people from publishing their co= de at all. Also of course templates, filters, defaults all work that way al= ready. I have my data dir in my dropbox directory and symlink it in ~/.loca= l/share, or rclone it on my Android devices (via Termux) where dropbox isn'= t a regular storage directory. Should we have readers/ and writers/ subdirectories of user data? Or custom-readers/ custom-writers/ ? Since they are already subdirectories of the dedicated pandoc data director= y `readers/` and `writers/` should suffice. Seven characters less to type f= or each compared to `custom-*`. -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org. To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/yh480kv8tdd4de.fsf%40johnmacfarlane.net. -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org. To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/CADAJKhDdwHuvBjTCAAwrFY6RcaZ%2Bd_FRMnkVp3MMUtntrsBdYg%40mail= .gmail.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/f27c064156a4413ba048992ce0338c68%40unibe.ch.