From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31331 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John Newsgroups: gmane.text.pandoc Subject: Re: single underscores remain converting from commonmark to plain Date: Mon, 5 Sep 2022 13:12:36 -0700 (PDT) Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2002_1957494192.1662408756704" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1756"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCKPB4FD2MFRBNNQ3GMAMGQEHJZQETI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Sep 05 22:12:41 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qv1-f55.google.com ([209.85.219.55]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oVISW-0000I3-Q5 for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 05 Sep 2022 22:12:40 +0200 Original-Received: by mail-qv1-f55.google.com with SMTP id w19-20020a0562140b3300b0049cad77df78sf4089854qvj.6 for ; Mon, 05 Sep 2022 13:12:40 -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; bh=oWgW+FftqsSYvCjsCvMIdacKRWISEByRRk+Q8omwpOc=; b=DOFfMtD83imRNvC8VSD7SdwPSNTgm28XGN2eVzw/9PDDtzKmzkeHhrgq7NMf5WeqlS vqJbTOx2o72LZHOf/iwgIU+7xxq8M/eylDqh2TkzT8yisrp7GITiFRZ8M9kxUVaewY0c 02RYRjgKsWKdc8urdFpnTWlLLMbtnnCfHxHexuENTObZ8D+p66whRBRZZw6pTRbT/pZ1 vp/yCmpB/X8aA+iaPNTJEtdNQWh/Oa8ZHGO288Ze5Tqjhauz40ZnJG3esDi8cJRyXz96 Xqv0ppsO2PFeiH2HuMtwo/bnK6l65dqAzfGhVoP6fQz6LbMLPQ8UyC7ksYsevcIdfSai +CgA== 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; bh=oWgW+FftqsSYvCjsCvMIdacKRWISEByRRk+Q8omwpOc=; b=M+qmEGf1v0qkD0h3khxIW9our1RFns1CVXPj3vgjfQ4kl/eZD/s/hIidqkJF1jcEC9 j2XZvf+Bjvmi5X6Aj5fXTRQl6y+bIRSyiqPMjCkIZAPgVq1lBd+RQPWya0FqPQ0ZNMMq h9MgftqIaSNz07LUo5B0tDOkJkLk/WfBu+aHb3ySTWxOhgeegobAw2JmwSVG2CP21Oqc XT67Ag81zm1Vm1/BdSGPsn8UjGmrboSBpNcGaoVpw0v0yC74y9icI/kPHBdgkA8Oc6Kb H6xKMqh+QuqGf5U6VNie7Os2zMjZjR82mxElWP/fskYz1tJ3+VInY0WDP6KZ9cf4Cjot Bbqg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACgBeo0dwWZJ75XLKS72ayIIVK+WM2G6v/dUie2B6+IvagYtSqE1F6uI fc/sJpI8rE3ePbhBaQnttMI= X-Google-Smtp-Source: AA6agR6XxBQ1CxsI5tqIDCpLkoijuUDSlIWKOlZAZgPwsxOtIFJDkA3JcrzaJvq0jo3dlI4gI5dCDQ== X-Received: by 2002:ad4:5de2:0:b0:477:f5e6:e13 with SMTP id jn2-20020ad45de2000000b00477f5e60e13mr41809632qvb.31.1662408759781; Mon, 05 Sep 2022 13:12:39 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:ae9:e70d:0:b0:6b9:57ca:5d1 with SMTP id m13-20020ae9e70d000000b006b957ca05d1ls8283055qka.0.-pod-prod-gmail; Mon, 05 Sep 2022 13:12:37 -0700 (PDT) X-Received: by 2002:a05:620a:2703:b0:6bc:6a30:cc0f with SMTP id b3-20020a05620a270300b006bc6a30cc0fmr33553852qkp.66.1662408757283; Mon, 05 Sep 2022 13:12:37 -0700 (PDT) In-Reply-To: X-Original-Sender: urbanjost-Wuw85uim5zDR7s880joybQ@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:31331 Archived-At: ------=_Part_2002_1957494192.1662408756704 Content-Type: multipart/alternative; boundary="----=_Part_2003_444384757.1662408756704" ------=_Part_2003_444384757.1662408756704 Content-Type: text/plain; charset="UTF-8" Well, that appears to be perfect! Exactly what I needed; I thought I was going to have to create a filter for the output. Thanks! On Monday, September 5, 2022 at 3:15:14 PM UTC-4 fiddlosopher wrote: > No. Plain output roughly follows Project Gutenberg plain text conventions. > > However, if you want all emphasis to be removed entirely, you can use a > small Lua filter: > > function Emph(el) > return el.content > end > > save as deEmph.lua and use --lua-filter deEmph.lua on the command line. > > > > On Sep 4, 2022, at 9:43 PM, John wrote: > > > > When I convert to plain text from commonmark the _word_ strings retain > their underscores. > > I expect them to just become the word without the underscores. Is their > an option for this? > > > > pandoc -f commonmark -t plain test.md > > > > test.md: > > > > **word** > > __word__ > > *word* > > _word_ > > > > output > > > > WORD WORD _word_ _word_ > > > > > > > > -- > > 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/d2501388-9bbd-4fe2-abf8-5224d0d957can%40googlegroups.com > . > > -- 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/a876b4e1-148f-470f-b49a-db02458d4078n%40googlegroups.com. ------=_Part_2003_444384757.1662408756704 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Well, that appears to be perfect!  Exactly what I needed; I t= hought I was going to have to create a filter for the output.
Tha= nks!
On Monday, September 5, 2022 at 3:15:14 PM UTC-4 fiddlosopher wrote:
No. Plain out= put roughly follows Project Gutenberg plain text conventions.

However, if you want all emphasis to be removed entirely, you can use a= small Lua filter:

function Emph(el)
return el.content
end

save as deEmph.lua and use --lua-filter deEmph.lua on the command line.


> On Sep 4, 2022, at 9:43 PM, John <urba...-Wuw85uim5zDR7s880joybQ@public.gmane.org> wrote:
>=20
> When I convert to plain text from commonmark the _word_ strings re= tain their underscores.
> I expect them to just become the word without the underscores. Is = their an option for this?
>=20
> pandoc -f commonmark -t plain test.md
>=20
> test.md:
>=20
> **word**
> __word__
> *word*
> _word_
>=20
> output
>=20
> WORD WORD _word_ _word_
>=20
>=20
>=20
> --=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 email to pandoc-discus..= .@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/d2501388-9= bbd-4fe2-abf8-5224d0d957can%40googlegroups.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/a876b4e1-148f-470f-b49a-db02458d4078n%40googlegroups.= com.
------=_Part_2003_444384757.1662408756704-- ------=_Part_2002_1957494192.1662408756704--