From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31020 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "philmac-97jfqw80gc6171pxa8y+qA@public.gmane.org" Newsgroups: gmane.text.pandoc Subject: How to change dumb quotes to smart quotes without converting formats? Date: Mon, 18 Jul 2022 18:33:01 -0700 (PDT) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_68_1537084282.1658194381481" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33074"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCNPLQHPYMLBBTUT3CLAMGQEWHCCTGY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jul 19 03:33:07 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yb1-f187.google.com ([209.85.219.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oDc6k-0008Mv-02 for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 19 Jul 2022 03:33:06 +0200 Original-Received: by mail-yb1-f187.google.com with SMTP id b129-20020a25e487000000b0066e1c52ac55sf9909132ybh.11 for ; Mon, 18 Jul 2022 18:33:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=oXq6KxLX+AIPZp+ROcRLaXbnw4XKngY2ZTuLR6yXnNc=; b=lLFjtl9rd2CKmYy3jpuo5apwJiBCVT890b45q4SLjh3nH52MnHpR+D+IFW6cbccOiM H2LEpvevLs4AguCSl92TQJuyVAWxsxINpSvaFWLrBssm5uXeFBkQWobuqV7snQfUkGuL QhayqX+lOckSaduCf9XlbB9GFdvWDjUGwUYqcGMko4lcysH/EaWxXVt4BDn1TVE3eYRt BXjUGGc4hmW/NcGwK+a48lIc1nUzuJovNww2c9+VoEciyBgnf8JB3GThs4kkr91bMinQ WWQm6XqbNCimIjk2DScKUI/xvEkaENHKYg5guQfSG1jN10l1g7H0r8Tm/RweUCyXYew9 nG0A== 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: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=oXq6KxLX+AIPZp+ROcRLaXbnw4XKngY2ZTuLR6yXnNc=; b=R+LHpErfSiteVBKCSiJra+FYi6Gp/KHzAbL851XtwMlO1qaIwR/w9BdCzlXGPF0iwY 6XlIPLCJrtMgt6GQbh9ZqVLmHRgBhpnUe7sC5vNErIBXKWtbE/oin6tBqidlNFKZxwZo skUpm3f/rb0VIp0EqouNbnDdbMsncorSQKvbnGCnGF5D+NOSIK4De1RtuQ10r76HVI7v yTOVD2/bU5HhsULOoPmSBbX8Cz6U5WRa0X74z2xAlnTbO1Yh9BLBeNKz0x8ieXooKgop M+s6I33jon1ytT/RNt8XAHQ9nNdwezRheTObYA/ZaKFrHnigsq879kDuc0bwN2GC9Lmh 60WA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora96nc9L4WG7wa9fokJ6m5ol2pngnHwjw6/lPHY6rlJWgguaUV2Q 8aV5JmrQ0QTrF7ANJaeFup0= X-Google-Smtp-Source: AGRyM1vag2VsGtkLQWLOVOgu925kNM4FWpPysy21ZV5tMyPf7S9e11Zpe47t0JTuW0G/hTwAbNtfBg== X-Received: by 2002:a81:53d6:0:b0:31c:c750:14f9 with SMTP id h205-20020a8153d6000000b0031cc75014f9mr32891971ywb.248.1658194384985; Mon, 18 Jul 2022 18:33:04 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a25:db05:0:b0:670:7f70:c922 with SMTP id g5-20020a25db05000000b006707f70c922ls195012ybf.4.-pod-prod-gmail; Mon, 18 Jul 2022 18:33:02 -0700 (PDT) X-Received: by 2002:a25:7310:0:b0:66f:fd08:287e with SMTP id o16-20020a257310000000b0066ffd08287emr17116511ybc.219.1658194382187; Mon, 18 Jul 2022 18:33:02 -0700 (PDT) X-Original-Sender: philmac-97jfqw80gc6171pxa8y+qA@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:31020 Archived-At: ------=_Part_68_1537084282.1658194381481 Content-Type: multipart/alternative; boundary="----=_Part_69_175632944.1658194381481" ------=_Part_69_175632944.1658194381481 Content-Type: text/plain; charset="UTF-8" I have text files written in Markdown, and I want to smarten their punctuation. I know that, when *converting to* Markdown, Pandoc does this by default with the smart extension . Is there a way to apply the effect of this extension to a file that is already in Markdown and that I don't want to convert to some other format? A wrinkle: I want to do this to all files in a directory, and I don't want them text-wrapped. The command I'm presently using is: for f in *.md; do pandoc --wrap=none "$f" -s -o "${f%.md}.md"; done I guess it's no suprise that it doesn't do anything. I would appreciate any help! -- 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/defefcc0-b18e-4ffd-a188-472ee4a90963n%40googlegroups.com. ------=_Part_69_175632944.1658194381481 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I have text files written in Markdown, and I want to smarten their punctuat= ion. I know that, when converting to Markdown, Pandoc does this= by default with the smart extension. Is there a way to apply the effect of this extens= ion to a file that is already in Markdown and that I don't want to convert = to some other format?

A wrinkle: I want to do this to al= l files in a directory, and I don't want them text-wrapped. The command I'm= presently using is:

for f in *.md;= do pandoc --wrap=3Dnone "$f" -s -o "${f%.md}.md"; done

I gues= s it's no suprise that it doesn't do anything. I would appreciate any help!=

--
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/defefcc0-b18e-4ffd-a188-472ee4a90963n%40googlegroups.= com.
------=_Part_69_175632944.1658194381481-- ------=_Part_68_1537084282.1658194381481--