From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23366 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Staal Newsgroups: gmane.text.pandoc Subject: Re: Can't access keys containing spaces in pandoc Date: Tue, 3 Sep 2019 12:35:23 -0400 Message-ID: <330c5975-5678-26fa-e517-2a9ca612a383@usa.net> References: <92055fd0-049b-4943-a51a-2eb0905b59ca@googlegroups.com> <5E6256F2-6354-43F9-9A49-2328471A9D2B@gmail.com> <68fbd484-0729-4ee2-a7a2-0846cd0bbd28@googlegroups.com> <7c15c170-1b08-4274-b24e-280b4585c0c6@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="234208"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.0 To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCGYLPE23UARBTFMXLVQKGQED2YDRKY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Sep 03 18:35:28 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-vk1-f186.google.com ([209.85.221.186]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1i5BmA-000ylF-M1 for gtp-pandoc-discuss@m.gmane.org; Tue, 03 Sep 2019 18:35:26 +0200 Original-Received: by mail-vk1-f186.google.com with SMTP id d21sf8028303vkf.5 for ; Tue, 03 Sep 2019 09:35:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1567528525; cv=pass; d=google.com; s=arc-20160816; b=i0+0uBtiTRH6lb6iIRLVhD/Sq0ty3Emk0+JZicDgHMhq1sxQczJCu6/S20Y25RHdJ2 vin4w1phgDR/OhvSjYA5uz4aBLkcloEqB7eqcC/8Brd2POteszKeT39ZNh0X3N3GnuMN gcJE1Vjb8D1rQAukRA1G+xpaB84U4qzzzTzJl4oQALD9aZMgrvbyyupu4oorvBAcwTr/ wj4JPDv0yz34ESbTyj0PDZdBHDxGgCHe2HUCbyTWBX8SOG4o1zhGZFVepf3T3hRDsy85 OsSTR0EZETIWx0cmR71LYjNY6MobgWcgV3PIK+sM2/NyEcNvJ12lXCfofZNFQmEcUyFu HlZA== 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:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:sender:dkim-signature; bh=xqQFG52HLo0PFi0ZORD6ARotnIh6STT6gYhUpDM+zGg=; b=S5yweE+LeF8jpqydS8/YecuYjPrXM9dJuJboOAhYrUViv7EdRkFWw34QiLqVqRv6XN /biavG+4YUPkJTlAdTt/18besnKMau6I9Z2CwcbnkVDYGuCHla9AMzpXU5XhOzFCywxR uNMuqR9d2lX9gOv7hssnXyK9tD/kEPUGZBto0sV+TShbTuuxGFg8Phjk9fWaQxbzdpe9 5tDwaaXyT4Z+Rderbe4gxpvxjKz4KNf5RSa13zxCEp5nYSkvF86PAHKjJT1+nkSfvaw9 v+L1eAiN386FwjCZjBaFMEkzsz2faGzDSUAX2KHOxJB1Ym9v8aW/dpyFnaU6yJ3y3VVg qSBg== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 71.191.170.84 is neither permitted nor denied by domain of dstaal-Jdbf3xiKgS8@public.gmane.org) smtp.mailfrom=DStaal-Jdbf3xiKgS8@public.gmane.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=usa.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language: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=xqQFG52HLo0PFi0ZORD6ARotnIh6STT6gYhUpDM+zGg=; b=leTNiaOfB3XpRXd28XjQYpWZhxZQsv0rdlrXVnji3yGpGvUb/eeIFpH5qIGJWtTVGI fPBHJ00q1Zo7GZ98kspvjthXWeN5LUPUqQCxvjn6jcIeaQ4H8FcRuyfYh0FXwKxG9mRZ /LvNZOC3fvicxAuvrlHgVQIspaAsh7ysLWBW0SitwBzbUIdmyYqukmIeAdBeYfYwkIKD hf1cIzV2E4BlhNOcDMBdN8YPVoQv+FOUrIEXoVqTRMWmNYBX81c6qqZWxc71H2kOdOpb mYokI1nXbAj1/ci9s2NRJ7ienr8FEMY5tfq2p7JfIg4J83kTSSGy2V+QXnJHdZoxLnzh wH2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :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=xqQFG52HLo0PFi0ZORD6ARotnIh6STT6gYhUpDM+zGg=; b=Z3Sz1n8QMwYDNoFrccAdBnMNibz/LsvCexQejQ3ZUzb3amCGNtZHiOgFXZX3q2mz7Z yHlAMrg9LA1gT6NhT/4sHLJlmiX3ZxKJryN+iHP5zZLJAIegPgrFGkmC3k3tmmS3JLOg Xf5rlEIlOcyDuLTrfxJBgGlVkkFZ4S5hLyCyOHrR74pr87rAMiqdhivpBZA6kOq/eWVJ SvmEzwUxIEturgKH/1GXOVRLWjQ72arxeEQQ/D6VxbO50BFo6gHv2xZ8nTRV6Wag6Yaj fsNQlndYSayKsKn6a36/VpDTUNuyzR1vx2w78E5VCj6VqIe2xyA1lFsZPOFzfC8ee3Rp Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAU8yg8Z1kvCSFAPflkqTw4M3AgfmHt3LwJLEztELN84sPaNofEA OPWp8hier7QSwG2Xzjv31Qs= X-Google-Smtp-Source: APXvYqzBifFUCPWEbCslEj8Ks7g6VsnIr2H8/czI4uHOinu2I6cE7bIVvwY3+E5jaTM+isKc54Yc8Q== X-Received: by 2002:a67:ead5:: with SMTP id s21mr5366907vso.188.1567528525386; Tue, 03 Sep 2019 09:35:25 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a67:c485:: with SMTP id d5ls365607vsk.13.gmail; Tue, 03 Sep 2019 09:35:24 -0700 (PDT) X-Received: by 2002:a67:b409:: with SMTP id x9mr796672vsl.197.1567528524483; Tue, 03 Sep 2019 09:35:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567528524; cv=none; d=google.com; s=arc-20160816; b=I9W+3+k5IPgFc0KX13Zm3v6gN878y69j05dKSwxB2rVRNIjVbET5sL8+mnXtcZB0Qd nw6jjtOK8BmAY2joWcfJaNJGkaZm7AVrtMqsiiQW6Hn+CY/R6BoMbHsHaEoXiDfmG3bf Po3cM14+1zpbUS0v8/GAfoTNpV/9TLhS5IGw6HPpXsMhDIEqcGB8lvZoW3LH5asH+Q91 8q+JMO7iEpa04HGnx7dM1pBktwsO1MgpqAGOpdfpNuEhzJu+x2pXqAXYtG6qV9ku1z9c okP1lphZXH3MTcDG91pHQPxDJ19tLFiU7Vo4mdbZeoaYoBr0Ccfa0xnhhaPQ2Lu+Bngy 8l/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject; bh=DEH+iSQPki3KCwFMO2YgFm7i/eHO470940ZhHCvYWbU=; b=PSgKm78GGxMWWBhBMwQTZ7nhaSoHq2t34/hy/E2KU2ITQlW2aj/E67dBc3xDgbdoNy PuIaMWtNJqeC8HnioXG+JFAnxlDJjrmrTy9S+FPjDRokIxiDOer5WbWvgSLFMpwGBnXW /LUyS8vKgiaduPgwLSKHVkr3N8thEK3xedWYbfGfJJ0seMXT2yxv858ke7j2lA5QkJos WXywNNFi9bydSZy6q/hvYEeOXqP69loCO2JlhOF3hE6V//mcwmCVuImfdMZhGujUU+lv D3AL9CIt+2DTkCk0oclbf4yZCkVTxxyo9gCiThIT4LSMf/HOqH4ZZBSn6i2YCVsexK71 bT5Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 71.191.170.84 is neither permitted nor denied by domain of dstaal-Jdbf3xiKgS8@public.gmane.org) smtp.mailfrom=DStaal-Jdbf3xiKgS8@public.gmane.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=usa.net Original-Received: from mail.magehandbook.com (static-71-191-170-84.washdc.fios.verizon.net. [71.191.170.84]) by gmr-mx.google.com with ESMTP id g27si69243vkm.2.2019.09.03.09.35.24 for ; Tue, 03 Sep 2019 09:35:24 -0700 (PDT) Received-SPF: neutral (google.com: 71.191.170.84 is neither permitted nor denied by domain of dstaal-Jdbf3xiKgS8@public.gmane.org) client-ip=71.191.170.84; Original-Received: from MacBook-Pro.fios-router.home (hamakua.magehandbook.com [192.168.1.1]) by mail.magehandbook.com (Postfix) with ESMTP id 46NCHH6yr8z3dS for ; Tue, 3 Sep 2019 12:35:23 -0400 (EDT) In-Reply-To: Content-Language: en-US X-Original-Sender: DStaal-Jdbf3xiKgS8@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 71.191.170.84 is neither permitted nor denied by domain of dstaal-Jdbf3xiKgS8@public.gmane.org) smtp.mailfrom=DStaal-Jdbf3xiKgS8@public.gmane.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=usa.net 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.org gmane.text.pandoc:23366 Archived-At: On 9/3/19 12:25 PM, John MacFarlane wrote: > There are two possible approaches here. > > 1. Modify doctemplates (our templating engine) to allow spaces in > variables. This would mean allowing things like > > $this is a long variable name$ > > in a template. I think this kind of thing makes it less clear > where the variables are, but it shouldn't pose any problem in principle. > > 2. Modify pandoc so that, when metadata is used to populate > template variables, spaces are automatically replaced by > underscores. In this case you'd use > > $this_is_a_long_variable_name$ > > in your template. I'd *strongly* prefer the latter. I can't think of any programming or templating language that allows spaces in names - and it's pretty rare in human names as well. (It's used in 'long-form' names, but very rare in commonly used names.) Daniel T. Staal -- --------------------------------------------------------------- This email copyright the author. Unless otherwise noted, you are expressly allowed to retransmit, quote, or otherwise use the contents for non-commercial purposes. This copyright will expire 5 years after the author's death, or in 30 years, whichever is longer, unless such a period is in excess of local copyright law. ---------------------------------------------------------------