From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31606 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?V=C3=ADt_Novotn=C3=BD?= Newsgroups: gmane.text.pandoc Subject: Re: Plain TeX writer Date: Thu, 20 Oct 2022 02:13:15 -0700 (PDT) Message-ID: References: <51539828-c876-437b-bb1e-a5efcf752762n@googlegroups.com> <84C142C7-20EF-411E-AF94-D0AA008FA9DA@gmail.com> <5e9dfe75-ea0e-4287-a6a0-47842700f292n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_7870_1282276115.1666257195467" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2396"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDONFQGBUMIRBLFCYSNAMGQE6E5CICI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Oct 20 11:13:21 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f56.google.com ([209.85.160.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1olRc8-0000Ty-Na for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 20 Oct 2022 11:13:20 +0200 Original-Received: by mail-oa1-f56.google.com with SMTP id 586e51a60fabf-13305999f45sf9454292fac.18 for ; Thu, 20 Oct 2022 02:13:20 -0700 (PDT) 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:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=oHxDf7tQegwUB4e2lvfsZ1R68vSHrSmmbJXVQl8k/1c=; b=klh8ORWb64pL/cfkHA+0yRzsvy7iH1thQaPXIvx0Xp/GYc06XTzws5yVVLa76xePF4 4Ds4A+OgXhB5zMR8U778Tr4giJiRxiiLPZU898MC2l2RRTNX+mjyfw8hiHJ/ECuhFwuW Es8ktoPDhbgPX/8HRcZ/U0gTcVq3jqLz5Fbs1KwEIpsUfzdG5cZc5WxSjm88/3KwigCM i8CsQK1V8h1yN0ApTewXHGpobRAWwRBwf5YbY6vaOHPkL7pJqn9zf67mE1Jv/IouUxAD zKzlMlehgf3adLGYUe3uextpnEkqyaY/GmKo3Dvtux6otVNLhdcEAmj9mzqW050mtxyI ZsJA== 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:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=oHxDf7tQegwUB4e2lvfsZ1R68vSHrSmmbJXVQl8k/1c=; b=ihXmsYT0aeub0JsRIvctvn4NATW0pZsPYDHEZCI3aKvWqRQbo4kFyEGgVqvrCZkXzq cU/PsL4VuriCbSnFhK/a+LJcy/EOYndO28AST+et+y/HJEuHh/KuNGioiHaCNdlaZ9pN TC3zE8gh1bR3giKq53xj2oFCap/sLMVmxiYuzapH6tQa2ASqtA1VFqJCb74M2hqu1POH 8eGEoxElBNMVulN8R5IRwnYf0srMZF22w5Uw2d6S3VbVYfOvHf0iP+/lDibG9CkkMRNM A8GYF6HbG/j21OFzgUuECr3IFKXOMUWoEBk5qw5zZjbp7/Z85cJuQD5DoBslDi0g6QKD vIeA== 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:references:in-reply-to :message-id:to:from:date:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=oHxDf7tQegwUB4e2lvfsZ1R68vSHrSmmbJXVQl8k/1c=; b=N/h5t8tNfruwZst2XD05Bx+QwN7d7S7GuCmQycc6nFzFC08vFufZ/agFZT/cctoMfl NJ0d0x+0bt5m8iFSkVijjJvwXZYoC/sngeVDk9eub0RIkEcFTmjOFAMjYEX+0Wpj/YR0 Rjw+nJJj4WdcabqHxfp27AZ9VEEPYtpD+5wXTpgJbWuB95EhUXVjjsY4/39jvsboMBp3 GljEXNuDzYRtrzp4ucrlDQhV3tC3zXOvwJ1RM8cExM+03UGm7pO5y56sDUdV05muPhkX 0fPrpd78vORfqHLJxmMeQIsg0s6D/IpgvYYuAs2R6MLuswZuCHj/FvUnlYyQDD1WWjWc GVOw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACrzQf3Mygez1eLhZWuUBEGNnMUbWnn9hBQ1FIbcrE+5R6qj8HJ9T+II vDtguKlTLBZzI7K9mnnkRDo= X-Google-Smtp-Source: AMsMyM4LbopXN5WSQ0Y+IilMCxN42lplcCPjrF0+1xgvmiHft+dnr9tndzqvXL/xTI6+hUv42mF7wA== X-Received: by 2002:a05:6830:698d:b0:660:d8a3:c484 with SMTP id cy13-20020a056830698d00b00660d8a3c484mr6377387otb.342.1666257199596; Thu, 20 Oct 2022 02:13:19 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6808:551:b0:354:d7cd:c5e5 with SMTP id i17-20020a056808055100b00354d7cdc5e5ls1259182oig.3.-pod-prod-gmail; Thu, 20 Oct 2022 02:13:16 -0700 (PDT) X-Received: by 2002:a05:6808:1809:b0:354:7023:584c with SMTP id bh9-20020a056808180900b003547023584cmr21361098oib.166.1666257196346; Thu, 20 Oct 2022 02:13:16 -0700 (PDT) In-Reply-To: X-Original-Sender: witiko-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:31606 Archived-At: ------=_Part_7870_1282276115.1666257195467 Content-Type: multipart/alternative; boundary="----=_Part_7871_1098230692.1666257195467" ------=_Part_7871_1098230692.1666257195467 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dne =C4=8Dtvrtek 20. =C5=99=C3=ADjna 2022 v 10:06:23 UTC+2 u=C5=BEivatel Ba= stien Dumont napsal: > I don't understand either the rationale for \pandocSpace and=20 > \pandocLinebreak. Since Markdown and TeX agree on handling simple line=20 > breaks and repeated spaces like single spaces, in what cases would it be= =20 > useful? I was going to give an example of a Word document with the text=20 *Hello=E2=90=A3=E2=90=A3=E2=90=A3world!* and show that it would produce the= output *Hello=20 \pandocSpace{}\pandocSpace{}\pandocSpace{}world!*, which would allow us to= =20 preserve the repeated spaces. Howover, running *pandoc -i example.docx -t= =20 pandoc-to-markdown.lua* produces *Hello\pandocSpace{}world!* as the output.= =20 This indicates that not only Markdown and TeX fold repeated spaces, but=20 Pandoc's AST in general does. In that case, it seems reasonable to replace= =20 *\pandocSpace{}* with *=E2=90=A3* and *\pandocLineBreak{}* with *=E2=A4=B6*= in the TeX=20 output as John also suggested. Thanks to the package xkeyval, the key-value argument could be handled=20 > quite easily in all formats that include Plain TeX. > The xkeyval package is one option. I am partial to the expl3 programming=20 language from the LaTeX3 project, which= =20 provides many programming extensions to TeX, including key--value=20 interfaces (see the l3keys module in the LaTeX3 Interface Documentation=20 ).=20 However, some would call the syntax of expl3 arcane. --=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/a7d769e7-083c-4cb9-a9a2-b5a21b62c8f0n%40googlegroups.com. ------=_Part_7871_1098230692.1666257195467 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Dne =C4= =8Dtvrtek 20. =C5=99=C3=ADjna 2022 v 10:06:23 UTC+2 u=C5=BEivatel= Bastien Dumont napsal:
I don't understand either the rationale for \pandocSpace and \pan= docLinebreak. Since Markdown and TeX agree on handling simple line breaks a= nd repeated spaces like single spaces, in what cases would it be useful?

I was going to give an example of a Word docu= ment with the text Hello=E2=90=A3=E2=90=A3=E2=90=A3world! and s= how that it would produce the output Hello \pandocSpace{}\pandocSpa= ce{}\pandocSpace{}world!, which would allow us to preserve the repeated= spaces. Howover, running pandoc -i example.docx -t pandoc-to-markd= own.lua produces Hello\pandocSpace{}world! as the= output. This indicates that not only Markdown and TeX fold repeated spaces= , but Pandoc's AST in general does. In that case, it seems reasonable to re= place \pandocSpace{} with =E2=90=A3 and&n= bsp;\pandocLineBreak{} with =E2=A4=B6 in the TeX ou= tput as John also suggested.

Thanks to the package xkeyval, the key-value argu= ment could be handled quite easily in all formats that include Plain TeX.

The xkeyval package is one option. I am = partial to the expl3 programm= ing language from the LaTeX3 project, which provides many programming e= xtensions to TeX, including key--value interfaces (see the l3keys module in= the LaTeX3 Interface Documentation). However, some would call th= e syntax of expl3 arcane.

--
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/a7d769e7-083c-4cb9-a9a2-b5a21b62c8f0n%40googlegroups.= com.
------=_Part_7871_1098230692.1666257195467-- ------=_Part_7870_1282276115.1666257195467--