From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23252 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Rudi C Newsgroups: gmane.text.pandoc Subject: =?UTF-8?Q?Re=3A_Isn=E2=80=99t_there_a_plain_text_reader=3F_Why=3F?= Date: Fri, 16 Aug 2019 10:37:15 +0430 Message-ID: References: <255f893b-1048-4de9-aaeb-e9778187e701@googlegroups.com> <4be8dffb-2e8c-3ba3-d584-a06928a48af7@usa.net> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f0a584059035cdfa" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="145505"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCX4H4EJZ4KRBHUQ3HVAKGQET76LKRI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Aug 16 08:07:30 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-qk1-f190.google.com ([209.85.222.190]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hyVOa-000bhy-NZ for gtp-pandoc-discuss@m.gmane.org; Fri, 16 Aug 2019 08:07:29 +0200 Original-Received: by mail-qk1-f190.google.com with SMTP id t2sf4408452qkd.3 for ; Thu, 15 Aug 2019 23:07:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1565935647; cv=pass; d=google.com; s=arc-20160816; b=dsMeZri3cVKSL0fD05Mqw9IOHK8Vp/ssA7rNL2zlK5zwfbImxpx5wmzgN0GH5epbec GD6zKfXOXPHDYk00XF4WgMpXXGh7Dvn0xXPSOteec/AhfVtk9oFGmNl1N6r7r0lH6Rx9 8ONGAU7e5E1yBZlzw08XpNUVdIQnyPHULy0WcDW5bCfacsaEr8EaZJuDmI7/009/57PU VeZEYm6QkgAVhK5XX9fZiQWpcWY5sopyMEAKuE+hfRmZ6qtD4KJ1cIb47KnQ06lsBONn jx0rAnF9Cz6EaHjmuJO2wWjDIS5jZN4/INQSvSUMxg0lOFYXDPJgrubX6dx47T6VBeka 4c8w== 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:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=yZpU4mJ18SRvHVl1y6unmbtuN+V4GAVRAo1VweipIDc=; b=l2NX3kHoNwSgY/tmVg22sutQTJk8iNvXMSh5uDzzng/1kI7EXbTr+OF3LfcQqyQV+5 Rf0nAX/yHWEjI8wSFJqAk/kjGWYPkuXittyKPioMC+7p9ZF5HIDBWQ+mfn0vUrLYmPnL ICr8SoMspfH9Il71Vl8a1arynLbTA/sxhDW1QitVawYBhhqcRyVpetWrdXWp8ANsH0ER uArJN1afknFkDKAY5xHvzbRz4B3PG5z48CdYV35Yv/2fPT+7BJ7Ej7TGNYpMFIM+g9X3 uCeicInlazDr7ozzSZhp61ZQ1zfzYRI+qewToAb1p8sZoDkmuqky9/VpvtjaDTVjcmyH uWuw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HErwVM3F; spf=pass (google.com: domain of rudiwillalwaysloveyou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::32e as permitted sender) smtp.mailfrom=rudiwillalwaysloveyou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to: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=yZpU4mJ18SRvHVl1y6unmbtuN+V4GAVRAo1VweipIDc=; b=EjKFkTZTrnp1SlHCtG8Gu9PSmCV3k/9uQI/KyUCtt/++g0DcTIbVe/RJCcrv1tmpWP D5s6TG3tq90oe49CfzWMpjexHu4BvQCw5XRnZ8tlBXaUyxJBAC4q7j4UzRQSVC/ugcfb nsTn/p2i5X9RSgRmF19fB8hrFKNzqKiR0n0yAXJmmnGKrL0ym8JcbWAckQht2zE3Uwjf cXQUHNZHLrFW3Psq3Wwm+Ps+w7JiM8oaFsLGijiKD0z9eQiaAZEimfTdDu7tIao9A93l LaYS1/tSY9evKHXHt+DbBZXNReeL40kV7u2QNwwMrjgEcDtHl6l/rrVwRotDaTrPJbDU 7QFA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :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=yZpU4mJ18SRvHVl1y6unmbtuN+V4GAVRAo1VweipIDc=; b=hpyY1l0ar4aJRoBbLE90jP7im5s1pX1YWZqDOo4fFOMuSYycjMmo27KLy4dofNibV6 0GKTYo+W2/z2v/Bymy3d6onsnfPP6sOIm0zzZeOoYMnxcXFD3reD9ozsSAYJUpXFgGrA wE1twBY2ETG1fgH7qDqp1rr6Fi0zfNSCHJ59q8RlheEXtmJb2hKeb09rI1U28LzlJRIc L9D5VoeBbiqMmdX0ShH0YqTQCKjl8IG83bo1jI7XxaEvo8RPvdhBM8tXkBwRSBPnFU+E pEPKijQ7CTCPRw9VKRObauCygivnykgumRHN6w59o3G/u6CmtmlNhjTMYD2MNTfVcccX VT1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to: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=yZpU4mJ18SRvHVl1y6unmbtuN+V4GAVRAo1VweipIDc=; b=eihzjcq+f671fXmn2e0iDkHYWYVkZZMqAnNTYE7z7PSiY3CDh+RVf6jC69LeQ9CPM3 7KjP2PP8Om3utfeEXOEcn2in9/lxjfS2Hhp2+cZZ4XdEmb5z2wao800ueMIq0azXfCYH f3rqAvII20Zpn7qcChnQaH/Muekp0SsjF2P4VkXM+Ztea0KeTAhUhlygqozRmFxwA/vK 6dWi0p3/mGYsDK3Xjapcl7Z1+H62lFWR2wj/H2G5X0P7KEew2CBVk1b/i/csLSF2LTow KEFzBkuT0aTkb7sgbuDdhmN7Ug1yaa74IaqghU1jCm6j42Klv5SsXJEpVDS0mqPqFMFa lj0g== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAU5XgBpF3ODwA+rztG7jDE2qQiSyubyQs+92aC3FBzJNJvdPfa8 QanaFV9sg7iLZQ3hSyxmsqU= X-Google-Smtp-Source: APXvYqx5VVerfUXLwivk85+t5O+nH5rwILOJDDeqcCQblPjBRX29PBTarkuwNtLiwpLeiCjYiqsLcw== X-Received: by 2002:a0c:f705:: with SMTP id w5mr766624qvn.30.1565935647517; Thu, 15 Aug 2019 23:07:27 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a37:bf42:: with SMTP id p63ls1238067qkf.14.gmail; Thu, 15 Aug 2019 23:07:26 -0700 (PDT) X-Received: by 2002:a05:620a:158c:: with SMTP id d12mr7305821qkk.381.1565935646776; Thu, 15 Aug 2019 23:07:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565935646; cv=none; d=google.com; s=arc-20160816; b=F9Gc14rl0VZ8nXcYIZ+ODwe46ueHe9ceDBHt7E7TjWtdcmnmniXJSoeta/f1yvpOcB JMAdgkZ/Yh8NO0egZZ7rHekVjQJe51ai0Kzy3bzH6GwHer6fYIdeaJ1IjS+20tvV8P4I hxkz+aEa40u52cpcGGIo5Sao8fZOaqRgHJDy7qMtrzJtsjAYWv6xltrKssgond5VoON0 I/dDJ9gkMS1kF+o0N6+HS74EW0W0mvErLJKDl/E4AGKcXcfES0XjR3i5z9xf/rsSxM1b qRwpIAB/Mb29GcMb4ouYS5ZJ8k5wLpoKlqMzJ8/e8skxDKbBwMBo6G/NR5jP/QKk0nAY W2YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=/SdsxBlKSzpTc7Upf4q6ke82vJu6NiV7CH1S8g65A/0=; b=ymEwkPXX8YKIhsuDqUGw86eVvZ8RJJNRgHWYFCyw941pUB9wMHUYkLCy7FHGfe+Ub+ UDqo8WpzRGn/2T1hDrf4zGrn1R163LmdLgeqvcMK3yHyxXHRas/NT4FfA08wOcJQ1eOn /Hol11EPdVrAOx2FuRxJv5L8ufdqFqdWl5TbnTy2m9NTxAkIUku3je8TytEb34AQSZAk nMOjMcpjGQIcHFd66rFXqe8tJqzs9ecfpXPO5/8C6pycyGTD73qlcI2PVA+/zm6KNQnx 098qa76z0wxFVOizgw6qxkNNBtaXv3htzNNr10Bt5M0wr9eL9xdkueIeUZWXSo1ShHtu uPpw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HErwVM3F; spf=pass (google.com: domain of rudiwillalwaysloveyou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::32e as permitted sender) smtp.mailfrom=rudiwillalwaysloveyou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com. [2607:f8b0:4864:20::32e]) by gmr-mx.google.com with ESMTPS id 135si427847qki.6.2019.08.15.23.07.26 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Aug 2019 23:07:26 -0700 (PDT) Received-SPF: pass (google.com: domain of rudiwillalwaysloveyou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::32e as permitted sender) client-ip=2607:f8b0:4864:20::32e; Original-Received: by mail-ot1-x32e.google.com with SMTP id q20so7870384otl.0 for ; Thu, 15 Aug 2019 23:07:26 -0700 (PDT) X-Received: by 2002:a9d:5a82:: with SMTP id w2mr5994227oth.240.1565935646318; Thu, 15 Aug 2019 23:07:26 -0700 (PDT) In-Reply-To: <4be8dffb-2e8c-3ba3-d584-a06928a48af7-Jdbf3xiKgS8@public.gmane.org> X-Original-Sender: RudiWillAlwaysLoveYou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HErwVM3F; spf=pass (google.com: domain of rudiwillalwaysloveyou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::32e as permitted sender) smtp.mailfrom=rudiwillalwaysloveyou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:23252 Archived-At: --000000000000f0a584059035cdfa Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I currently use a script to create a markdown with this structure: # filename ```file-extension file-content ``` # ... Does your solution have advantages over this? Btw, is there a table of supported things I can put after the triple `s? Putting =E2=80=9Cel=E2=80=9D, for example, did not activate EmacsLisp highl= ighting. Ps: By plain text, I mean text that always wraps, and keeps its source indentation. The kind of I thing I=E2=80=99ll see when I use `less` on a fi= le. On Thu, Aug 15, 2019 at 9:59 PM Daniel Staal wrote: > On 8/15/19 1:08 PM, Rudi C wrote: > > I want to read source code on my Kindle, and I was hoping to just use > `pandoc -s -f txt *.py -o a.mobi` but it seems pandoc lacks a plain text > reader?! > > > > Define plain text. Do you just want it passed through with no changes? > Do you want emphasis? Do you want indents? Do you want wrapping? > Wrapping in some places but not others? > > Pandoc reads several different formats that look like plain text. > > In your case, I'd probably create a couple of files, each with just one > line: > > 00000.py: > ~~~{.python} > > ZZZZZZ.py > ~~~~ > > Then use `-f markdown` - that should enclose the whole thing inside a > fenced code block and have it treat the interior as python code. > > 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. > --------------------------------------------------------------- > > -- > You received this message because you are subscribed to a topic in the > Google Groups "pandoc-discuss" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/pandoc-discuss/DSRfQkWBlFE/unsubscribe. > To unsubscribe from this group and all its topics, 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/4be8dffb-2e8c-3ba3-d584-= a06928a48af7%40usa.net > . > --=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/CAE9z9A1PhS%3DxsySFLDMNUf8SPogT2Ka9SCoWE41XHYjmeKZFoA%40mail= .gmail.com. --000000000000f0a584059035cdfa Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I currently use a script to create a markdown with t= his structure:

# f= ilename

```file-extensio= n
file-content
```

# ...

<= /div>
Does your solution have advantages over this?
<= div dir=3D"auto">Btw, is there a table of supported things I can put after = the triple `s? Putting =E2=80=9Cel=E2=80=9D, for example, did not activate = EmacsLisp highlighting.=C2=A0

Ps: By plain text, I mean text that always wraps, and keeps its sourc= e indentation. The kind of I thing I=E2=80=99ll see when I use `less` on a = file.=C2=A0

On Thu, Aug 15, 2019 at 9:59 PM Daniel Staal <DStaal-Jdbf3xiKgS8@public.gmane.org> wrote:
On 8/15/19 1:08 PM, Rudi C wrote:
> I want to read source code on my Kindle, and I was hoping to just use = `pandoc -s -f txt *.py -o a.mobi` but it seems pandoc lacks a plain text reader?! >

Define plain text.=C2=A0 Do you just want it passed through with no changes= ?
Do you want emphasis?=C2=A0 Do you want indents?=C2=A0 Do you want wrapping= ?
Wrapping in some places but not others?

Pandoc reads several different formats that look like plain text.

In your case, I'd probably create a couple of files, each with just one=
line:

00000.py:
~~~{.python}

ZZZZZZ.py
~~~~

Then use `-f markdown` - that should enclose the whole thing inside a
fenced code block and have it treat the interior as python code.

Daniel T. Staal

--
---------------------------------------------------------------
This email copyright the author.=C2=A0 Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.=C2=A0 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.
---------------------------------------------------------------

--
You received this message because you are subscribed to a topic in the Goog= le Groups "pandoc-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pandoc-discuss/DSRfQkWBlFE/un= subscribe.
To unsubscribe from this group and all its topics, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pando= c-discuss/4be8dffb-2e8c-3ba3-d584-a06928a48af7%40usa.net.

--
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://group= s.google.com/d/msgid/pandoc-discuss/CAE9z9A1PhS%3DxsySFLDMNUf8SPogT2Ka9SCoW= E41XHYjmeKZFoA%40mail.gmail.com.
--000000000000f0a584059035cdfa--