From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28508 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Interpolation in default file paths -- the current output format? Date: Tue, 1 Jun 2021 10:56:32 +0200 Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000004e690f05c3b08591" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6424"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBSXM26CQMGQE5VMPJ5Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jun 01 10:56:45 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f64.google.com ([209.85.167.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lo0Cb-0001Rk-1X for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 01 Jun 2021 10:56:45 +0200 Original-Received: by mail-lf1-f64.google.com with SMTP id z1-20020a195e410000b0290229c07c3305sf4737930lfi.11 for ; Tue, 01 Jun 2021 01:56:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1622537804; cv=pass; d=google.com; s=arc-20160816; b=Ji2zAjWTqjFnwElhDV7TV71jB09RZ8L45RPSP5U3zdYJdEKMC0n9IM7WnOg4YoHSXu +mJOpde1OCdf7sGEMMyhvTkMSy4GHnNhSLDQmQ8N79cI8hkKjXN7cDfX3zIDOa42VDQ4 Tf1fUx7fhWvoXFnwg4aSARPg3/4X4Gcly36zkg/CkZfOHsZClqkczK6Wit44/8lGgXHu WLBizmAiz5ZUuJ4Z/JHtqNkua2Ilq//XqaoS4YGmZqH0U9OEt2YhPUhkYGN5B2h6/t3z NHwS9o44035iO1o69brcCbyh0cLYQ9b5A7lISh+Km1fo9yrxCXDHKOgR8iljfD6Nsv7/ qRzw== 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:subject:message-id:date :from:mime-version:sender:dkim-signature:dkim-signature; bh=GWHMkNCkTEp6X/UMYUIwYlPCfN808f3SnKbDedDGlC8=; b=QHXjYFV5MWHcoBHd2sgfNmg9N6iTkmduFm6xwS6P/9pwXxze0GNq2qANI2B83W35PZ bf65BqLLiR/0MKoUYlNTbNBXfGMcX7UQfEAmuyhPOGCwW72TJvz977yj3LnlicXQ89av uBe8Crfnkyu//aFprwX4HCdZr8JaN5yjHDUZAOmCS9SA9m6SzeBhdt5Om/9DyRevNfhZ Gc4+VB6df+ArM+rBJoRhIWnSZGveIUcabKQXD8ZmYvC+vMd+ZIbRH1CPz+4DSfzd5wf+ +3Ctzt9e9C+3NpgVWwO0j11tcZdCrh87Wr7MjTapNuG6XQnhlhY6HGIzfZoCKaBq3YH2 AlIA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="eDHE/eR4"; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::133 as permitted sender) smtp.mailfrom=melroch-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=20161025; h=sender:mime-version:from:date:message-id:subject:to :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=GWHMkNCkTEp6X/UMYUIwYlPCfN808f3SnKbDedDGlC8=; b=IRmYPNc+c7Km+Wl5Er03zCB6tnDaNoICHheeG2EuUBpqCEWWfIRuKde66drnjvR2Lg p4NKLXG5uJWk25u331pmvZF2qK4D6soBlkxQLNXvA2PNQvsWjySxXO0nLTSXmrBPm+gB z4PDklwbDXiW9PKkxSNy7rYKi2ZnmartmiDexOdDShoya0G+pJC6nddZwz1+ISx3FZ8n HWe0FD+BlS6wljIGrXX694mTSqFd7385CCPM+z/MpN0uYuqSVBhM9iIdVSlp0NLRCFZF 4p8gE9DPVg+CswNdykcM1GcpUGpn/EFOizMX9rk9NvEfVqedJhuhrpR2qo5dkNOpRpyd 6cog== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to: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=GWHMkNCkTEp6X/UMYUIwYlPCfN808f3SnKbDedDGlC8=; b=eSRBST23fFihmVEKfX2TqfJtgGzf59oFWVZyeuYzEIBIpjp+vIUJITGKEgkMzbB3mn 0NFlQIpZsuNBA92tqzV+0wpNrDysxYk4vaR98D13li6SXliCK5XdoT1dcesWKQ0OSciH 0Gsao65ny5F+5VT3RsCzCghCQxeTWecTsWjltISadW8WKErnePzV1Tgf9MBrff/F7dwb u9eEdrXyUI8MSNK4F/VCu3QSB7NeaV8w/HFw/G4CzFQk8k6aRvASsoI8LrTM5B6DMnOr cOe84r4ZOP4Bw18TkSDYBadRNp9tkhqjMBTCPH0yHXnyI/0vb8T9Yvqka04iE9ou+VDi QdJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:from:date:message-id:subject :to: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=GWHMkNCkTEp6X/UMYUIwYlPCfN808f3SnKbDedDGlC8=; b=IuL3R67LdirvzgTJdDkUQ1o6SyEMB327vecjXlsOaAB/NQHCgPR+7fRSgNzIuYh3bV 13HhjYZdRJg4mXLNL6ixldzvd4m9Op46eGlOnOjIL6fF+27jicUJYHHLc/8rSDVFMgrg 356npsyZWvhcBrDAkcYCDgQV2R6VPVHAt/eByj0w9P68ClzYCYm1BeXH01Cga0WXu6yZ WR76pMapV9ckSNfHCH/eKQEnTTt2js362yuCJTc8mlzzCBVqKecGz3hKHjAcNODvfGlF 0tFndYTahUzw+UYMU+5q8QYOrI727l7zMl6BnMQ9hEKFn4jbq16hVwMncdfIkF6RWE/P jKRQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530nzpCvMVkpCxUYYTJdnr5ttCNxPJnLdORmQjmkv7miDkHU7jhO l/LcwQElYQix235ev30u9XE= X-Google-Smtp-Source: ABdhPJx9PHVWEgnh+MnI8g9Ueyi4OwriaAoqN65CW4kcqLOwVshynC2CQRaxiLrSXCidSreUGZ32ew== X-Received: by 2002:a05:6512:1150:: with SMTP id m16mr17733935lfg.486.1622537804601; Tue, 01 Jun 2021 01:56:44 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a19:701a:: with SMTP id h26ls874793lfc.3.gmail; Tue, 01 Jun 2021 01:56:42 -0700 (PDT) X-Received: by 2002:ac2:5182:: with SMTP id u2mr9083267lfi.134.1622537802025; Tue, 01 Jun 2021 01:56:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622537802; cv=none; d=google.com; s=arc-20160816; b=sg/g+cgQsvRoU8GhXWSBE7ZMaX2XSeMfLw9Ra1Vad54rs7uqsJK/CUUi1lYk/TxJ/h QcsasHkjCh2LC57xSUJrftmr8M1rTAqT2Pk9b4d/BnX63MJVR/A//0fS8JXm2ZO+QZUu 8rv51dVa3rWttzc+1MwMy1SbkY8CMVJaJzhafLx9UImUD1BnI1z7PNUDAA+IkTWhcAU+ CS5V+FPcl82F4XZIvQXhLQve1N9pEHClV1VFYKys0vskyel3bLQhjxJ/SP/i7l2s5AAg Gq71eZSCwLL5ToG3Z93Pnu9OlphPqXrXgfQjdjXi/8DgWiZkSJek1lmTgW8N2c9YYydB B1QQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=F/JxnIUKF/LHDGXI7dspvtTpzTNJnwOMOq51FJgLvuk=; b=flKa6DYGraCW9lY+Ez87HPaLgqkUxU5DtAJOvVsyF2zoSqslQApRphnZOBIYpVt+CM dn3pW5tDWhJQz0//mueDQDb6JYvdZVWXZNlkADfdPz3oXOpwTmqT4ZvtsULUo0Istsd/ s1jAACJNngmO5LpG2bGEgTFVybFdA1LY0KtX5qgxLtClX+zD+Iu568FbuGLynqI3Ag8Q Zn+3INwmfQwAZrG+OvHiFTM0aTieyvNyG6VoBPC7wahgGoKACRJ8cbRWIG10EhNhxzIP xbVCe0KWrJKiu2BvW2kOPM4bIB5y9bG9i7eCcwVByu1/3RFCZxvsMUNa3MNtnDPTlAa4 dvuA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="eDHE/eR4"; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::133 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com. [2a00:1450:4864:20::133]) by gmr-mx.google.com with ESMTPS id a1si642715ljb.5.2021.06.01.01.56.42 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Jun 2021 01:56:42 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::133 as permitted sender) client-ip=2a00:1450:4864:20::133; Original-Received: by mail-lf1-x133.google.com with SMTP id a5so20645343lfm.0 for ; Tue, 01 Jun 2021 01:56:42 -0700 (PDT) X-Received: by 2002:a19:f611:: with SMTP id x17mr18238817lfe.313.1622537801720; Tue, 01 Jun 2021 01:56:41 -0700 (PDT) X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="eDHE/eR4"; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::133 as permitted sender) smtp.mailfrom=melroch-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:28508 Archived-At: --0000000000004e690f05c3b08591 Content-Type: text/plain; charset="UTF-8" I have been thinking about the feature with `${HOME}` etc. in default file paths. It would be good to also have `${OUTPUTFORMAT}` (or just `${FORMAT}` like the Lua variable) so that you could do things like this: ``````yaml defaults: - ${.}/defaults/${FORMAT}.yaml `````` Filters, CSS, includes and metadata/variables come to mind as things which often should be different based on the output format in a single-source scenario which could be handled this way, but there probably would be other uses which at least I can't foresee. While there certainly are situations where you could invert this and say ``````yaml defaults: - ${.}/defaults/common.yaml `````` in `./defaults/latex.yaml` there certainly are situations where including the format-specific file from the common file will be more intuitive. /bpj -- 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/CADAJKhB3zWPC_601kJYNjFO7_y2%2BxK1M7x_YG6AvJnRDe_BrGw%40mail.gmail.com. --0000000000004e690f05c3b08591 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have been thinking about the feature with `${HOME}` etc= . in default file paths. It would be good to also have `${OUTPUTFORMAT}` (o= r just `${FORMAT}` like the Lua variable) so that you could do things like = this:

``````yaml
defaults:
=C2=A0 - ${.}/defaults/${FORMAT}= .yaml
``````

Filters, CSS, includes and metadata/variables come to mind as t= hings which often should be different based on the output format in a singl= e-source scenario which could be handled this way, but there probably would= be other uses which at least I can't foresee.
<= br>
While there certainly are situations where you c= ould invert this and say

``````yaml
defaults:
=C2=A0 = - ${.}/defaults/common.yaml
``````

in `./defaults/latex.yaml` there certainl= y are situations where including the format-specific file from the common f= ile will be more intuitive.

/bpj

--
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://group= s.google.com/d/msgid/pandoc-discuss/CADAJKhB3zWPC_601kJYNjFO7_y2%2BxK1M7x_Y= G6AvJnRDe_BrGw%40mail.gmail.com.
--0000000000004e690f05c3b08591--