From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30602 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Russ Newsgroups: gmane.text.pandoc Subject: Re: ${HOME} in defaults files Date: Mon, 23 May 2022 03:09:14 -0700 (PDT) Message-ID: <6766afed-d65b-4853-a07c-d4400063f2c9n@googlegroups.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_5484_1433664326.1653300554147" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19801"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBC77N3USRAPBBS52VWKAMGQEY5JVSZA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon May 23 12:09:22 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f57.google.com ([209.85.210.57]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nt502-0004so-9S for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 23 May 2022 12:09:18 +0200 Original-Received: by mail-ot1-f57.google.com with SMTP id d7-20020a9d2907000000b0060b11e95a93sf765132otb.23 for ; Mon, 23 May 2022 03:09:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=C6BYsCALb0RG3DDg9JsKJksggm4XzheV1DcKNx13+lk=; b=U1XGKfnM8hZ+r6Mg0vPk/yL7+wdkU3od7LdteD/VtipX2QVY72R65BBS52nPGwp8XD CYO07F+mg4BsV0xcd4WVSrpVWMClapCbloRaOLv5fGnkd6CZFQ+mw5c9CdXGArQx3rU8 QBxRFtgQJ9+NYnjYRxOTIu0kIIysPzbCNQnul2mjfDvbXz0ecMmB5XnxF6edWzQHnxG3 dL+CPkES02U6pTQTdoQNXUsnx48vin4XyEZ2ujMvUhHLguNyvYIbHDZKdmqXUyfjskid M+sISFEWDEvh4fSipLbesgyvolFzuz0C3XynmhyXjEL1p+2Gw/0EUYyx6UX+ki8FGQL9 VnwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=C6BYsCALb0RG3DDg9JsKJksggm4XzheV1DcKNx13+lk=; b=HarqoYqsQm64XODY2qWhmwgVCiWs7hlx+eIWjHCRBpw4aKntF2N/DJw1DuvUhg6eBR kUc+aJDiO+iIy3NmSanXg7LGPiMGCTpz2q4HNx3Tu0BM324yhv3G/Kc95xIj1vLosf4h +Q6Vuc3Si1+pfT7OjpS0wkKxpAJ4oD0dE0/7ijTRUQ43bggVlHJavxmlr+lyXTmQwBZ+ mkB7aFdLnwWLRIogJxRV2wqXoIpG98md3bhietHwJogTKJVMz6F884oXeauw6wmVm5uW Hqw40Z5iGkfiCa/5G8/CohqfHusj8yO0EXBLWVZNi4yXQGjZ70avlhfTwf868ofU16Px TtGg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530SX6OZ6//KN+40lzsceVlJpuwEHrW6lPOO3VZuzN239ORCJcRx 3o6b5TIACq3Iqpfw7bvh54w= X-Google-Smtp-Source: ABdhPJwlQVaQoBNLHIsIZQ1WT0h/W1CTRzHPTY7uD8gcWFBZKbeTFsoXzAWeM265/8dyqhNK8n5tcA== X-Received: by 2002:a05:6808:1491:b0:32b:54b3:f206 with SMTP id e17-20020a056808149100b0032b54b3f206mr1063896oiw.260.1653300557275; Mon, 23 May 2022 03:09:17 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:3709:0:b0:32a:f78c:a9f7 with SMTP id e9-20020aca3709000000b0032af78ca9f7ls3535138oia.5.gmail; Mon, 23 May 2022 03:09:14 -0700 (PDT) X-Received: by 2002:a05:6808:6da:b0:325:9a3d:463c with SMTP id m26-20020a05680806da00b003259a3d463cmr10338750oih.206.1653300554638; Mon, 23 May 2022 03:09:14 -0700 (PDT) In-Reply-To: X-Original-Sender: info-ckBjHRpK5r9MPTj2movljOTW4wlIGRCZ@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:30602 Archived-At: ------=_Part_5484_1433664326.1653300554147 Content-Type: multipart/alternative; boundary="----=_Part_5485_1882701646.1653300554147" ------=_Part_5485_1882701646.1653300554147 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I am not sure if this would help, but we use `${USERDATA}` e.g. ```yaml css: - "${USERDATA}/epub-css.css" epub-fonts:=20 - "${USERDATA}/fonts/fontname-*.ttf" ``` This is the root of your folder with the `defaults` folder/ `defaults.yaml`= =20 file in it. We then call Pandoc with `--data-dir` argument if it is not the default=20 location and of course your desired defaults file with `--defaults=3Dxxxx` On Sunday, 22 May 2022 at 21:15:46 UTC+1 BP wrote: > > > Den s=C3=B6n 22 maj 2022 18:28John MacFarlane skrev: > >> >> I'm pretty sure that the expansion doesn't work for 'defaults:', >> but I can't now recall whether there was a reason for that. >> Maybe submit a bug report? >> > > I will, because this breaks my workflow where I use the same top level=20 > defaults file on different machines. > > > > >> BPJ writes: >> >> > I forgot to mention the vital points that `${HOME}...` works with `css= :=20 >> []` >> > in the same file and that everything works if I use an absolute path i= n=20 >> the >> > `defaults: []` entry. >> > >> > Den l=C3=B6r 21 maj 2022 20:45BPJ skrev: >> > >> >> In a defaults file in the current directory I have the lines: >> >> >> >> ``````yaml >> >> defaults: >> >> - ${HOME}/style/ling-html2pdf.yaml >> >> `````` >> >> >> >> I'm sure that file exists but pandoc complains and says it doesn't.= =20 >> Might >> >> Pandoc's idea of what `${HOME}` expands to differ from the shell's=20 >> idea of >> >> what `$HOME` expands to? >> >> >> >> >> >> >> > >> > --=20 >> > You received this message because you are subscribed to the Google=20 >> Groups "pandoc-discuss" group. >> > To unsubscribe from this group and stop receiving emails from it, send= =20 >> an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To view this discussion on the web visit=20 >> https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhC5X%2BsNjQEFX9mH= PryV93TRYBenqVZreU%2B3BdVb7-5V7w%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/6766afed-d65b-4853-a07c-d4400063f2c9n%40googlegroups.com. ------=_Part_5485_1882701646.1653300554147 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I am not sure if this would help, but we use `${USERDATA}` e.g.
<= div>
```yaml
css:
- "${USERDATA}/epub-css.css"=

epub-fonts:
- "${USERDATA}/fonts/fontname-*.ttf"
```
This is the root of your folder with the `defaults` folder/ = `defaults.yaml` file in it.

We then call Pandoc wi= th `--data-dir` argument if it is not the default location and of course yo= ur desired defaults file with `--defaults=3Dxxxx`
On Sunday, 22 May 2022 at= 21:15:46 UTC+1 BP wrote:


Den s=C3=B6n 22 maj 2022 18:28John MacFar= lane <j...-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org&g= t; skrev:

I'm pretty sure that the expansion doesn't work for 'defaults:&= #39;,
but I can't now recall whether there was a reason for that.
Maybe submit a bug report?
I will, because this brea= ks my workflow where I use the same top level defaults file on different ma= chines.




BPJ <mel...@gmail.= com> writes:

> I forgot to mention the vital points that `${HOME}...` works with `css= : []`
> in the same file and that everything works if I use an absolute path i= n the
> `defaults: []` entry.
>
> Den l=C3=B6r 21 maj 2022 20:45BPJ <mel...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
>
>> In a defaults file in the current directory I have the lines:
>>
>> ``````yaml
>> defaults:
>>=C2=A0 =C2=A0- ${HOME}/style/ling-html2pdf.yaml
>> ``````
>>
>> I'm sure that file exists but pandoc complains and says it doe= sn't. Might
>> Pandoc's idea of what `${HOME}` expands to differ from the she= ll's idea of
>> what `$HOME` expands to?
>>
>>
>>
>
> --
> You received this message because you are subscribed to the Google Gro= ups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send= an email to pandoc-d= iscus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit http= s://groups.google.com/d/msgid/pandoc-discuss/CADAJKhC5X%2BsNjQEFX9mHPryV93T= RYBenqVZreU%2B3BdVb7-5V7w%40mail.gmail.com.

--
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/6766afed-d65b-4853-a07c-d4400063f2c9n%40googlegroups.= com.
------=_Part_5485_1882701646.1653300554147-- ------=_Part_5484_1433664326.1653300554147--