From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30993 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: Apologize if not really pabdoc but instead rst Date: Sun, 17 Jul 2022 08:11:19 +0000 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11418"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRBKUIZ6LAMGQEXM5NJLA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Jul 17 10:11:27 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f62.google.com ([209.85.167.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oCzN8-0002rV-U8 for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 17 Jul 2022 10:11:26 +0200 Original-Received: by mail-lf1-f62.google.com with SMTP id y8-20020ac24208000000b0047f9fc8f632sf3318876lfh.11 for ; Sun, 17 Jul 2022 01:11:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1658045486; cv=pass; d=google.com; s=arc-20160816; b=HjwzYa+pauWbkqxSogAvSIAho00m/JaZr/dLmzYR8/453hb1L27Gy+koBJIAHzGTEU Auqybcw7/9aR+4ja7sO+zUtRJDNcfLo+S3k+MDgITR1KM31AGegiwLnq1F/rlpMuakae SdUWiDKqzitXjer2AdkCnDsAk+8nJKy88cIj7gXIYVNKFF+DbZwmdSPXsZ2owk4mk9zv wgQZPTvxLmR9jHRAbemvcVSoGDDZayXFBw9nXKwdquwBTZVh2nzcxnGU15OJTfu0IPFT tdP9YD+I8hiwM2e5lRlm5RaMH7QwQaFbsMEX1WDFXxWmS1BLP4VGdGqQ03ZqkctUVR9B CTew== 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=pRvir13YQwiFyKHVThHGdIEfKsRbmWXCrIK9bDR4m1s=; b=nTUiYonDd3uUx5qyCf5B/HFeDzmGrL8VJ31TkFiddNNMpsEp/TsT7/4ienPIUy/9oz FqAvF6kV8aa0Po+jKxH8hacoQQrKgEL0pAI5yelt3nRxI4GtB0g/NKAy+CGl+Cgah90a RCjSWmObXF5mQ208qJeK+gdq7Tw4wfj49EkPzfMJ+s+6vzg7UR2Edv3IsnOyShFz3mVQ N8PWprwtzAMTOZXsMRtphHtpAfSDRhNoNFkW2vdF+iVFmvkJ5ptFEgEmZSTe5ALqWHDL WuuvsH01C2edM9N2PJsziBRx87U8keh4giwHeiKfXljjvj8sWl9NjGr86AV1TMrroKHl N+cA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=HoUbSJTD; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-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=pRvir13YQwiFyKHVThHGdIEfKsRbmWXCrIK9bDR4m1s=; b=jwe196JM7DzMBDQr/SmZqclG0Nre+f85WqF0X++wWo58gcrVJKzqIxYbJSjdNXpjmR e4LLq3W8nxwUL/EABisQoKGza2kQbCFs5nwdIjq++b+frPrLDF5ELFLXN8ZyxTO/uxMc o0QsCfhYYkwHRyVNcIKPWkiXeJn0ckfSHQnXUqPbjtPdwG2qWSdFo9bgAOxMI8ffTThB 2W3AywgFocXCZyCSREBGGg7Ik3BqgpYAVnMmT+yyC/Y/r+NNQN/bz74gllsfP66T/gI5 ZaHGaLmK0NGtkbYgEV2nEneIGPFHszL9+rjmQWQTwN7LTVRA+DNP/g4ezcMBfifJBN2v yzCQ== 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:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-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=pRvir13YQwiFyKHVThHGdIEfKsRbmWXCrIK9bDR4m1s=; b=6VOd39nQkcxNBZAcGPPmeq/ayzQqs3+J4sGn1MXXmvRzS6PFpNdmNlkrxo7U8EIxyG zm/Td0YdOPo0sjLwX7rjWkBsc/dZdPn/Fkin2spnhXuIyku8ibTr0bmgENKJdOXzKkJ8 3vrBQhFmepnqdaqGe6fhS9r/bTq2IhV+Ek905wLKQcdm7aj2S0TSgR0MRDwyVyISlnAU 1apYCnDGOLOvfcZmmLM45RFwxwNblWYZeDO+MZ/4UMEcFMjsICdnRM7/Ci7az0Pf1WF6 xMISmfOWp8tLlHoWb5wpuf3gJNv5Kp44hhKzQgBTf155 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora8ObYq6xYcPjJmlvH9J21MM9E7WynqZXF7oqSZSACMjpktqWRMZ moQr7rc9vqNOic8P0sQSi4A= X-Google-Smtp-Source: AGRyM1uRG5XWZjz6D8KWvYk6BmaFSwT/jQlrlPS900wR1itWS/4f4WWVUz0aq2D5+F1bCRhe6uMlnw== X-Received: by 2002:a05:651c:b1e:b0:25d:9ec9:4f58 with SMTP id b30-20020a05651c0b1e00b0025d9ec94f58mr6887296ljr.75.1658045486283; Sun, 17 Jul 2022 01:11:26 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a2e:90d0:0:b0:25d:5eb3:cf1b with SMTP id o16-20020a2e90d0000000b0025d5eb3cf1bls2588213ljg.2.gmail; Sun, 17 Jul 2022 01:11:21 -0700 (PDT) X-Received: by 2002:a2e:9218:0:b0:25d:6180:ce62 with SMTP id k24-20020a2e9218000000b0025d6180ce62mr10540008ljg.402.1658045481289; Sun, 17 Jul 2022 01:11:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658045481; cv=none; d=google.com; s=arc-20160816; b=HWHJlCqKyLLYc3KktZRMqrKkjEPc9rsiNrwgtaAeAbCrZyugZc3qkKqZe9l3GdHWyq Fl/qLdcPTYRBIaXG67Kz5Ls1ERMUbLG/h9TYnSD2bC9FVrHXJsIFT95Z2GDAnK87uemf WAkQ2F5JjBQnkZ1p552SzVeQJfrvZmrrDzMi8PE5VKvpWW3RYwH3UtIoZ615Ftm79Qzn /Fea0R4MguMEjkr+waLxdsoNg0NJcyci8S5q4WHSHkLBQaL9fIdjmKc5OmF9XAAhEWNu 9+WsZBTXfwBkUAOWC1b2Rs1EuwhMnA/2HFqAK6JN7nW0BgnyBAwS0Ost9ZnjsujUxQXX LYbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=z+xNza25m3xcRGBBxdMWThQcG/xv0oRPHSv2Mh6HrVg=; b=g44NBMfoty1WD74RxvLzmdco/onLRfOn3TjEwsA8KvZjTptMtB3MLNJU+zE+VjdGro l5y1VGsEp2sEpN+ApPYAFNrIguNu9HH2euNuwSNj+3NBHezNLus6FQyhpqXHuzoaCyeY t2fmHnP8/UqbnRJeK2mKsD6PK8ZXH0UgwkqK0DIui8mCnlIyWpaJDENmOFrGX2st38v+ EhbSOOwDEfrf1VXmhE6OdXvOjIi7AmsM3wHcfpN8IY1wmbGrnIduuK7/edRDvqhi4Pw+ sjI02ckZvA87TtsSjPbLD6ruHiZ4H1H8O8nCDCg7yeT7RW/2wrllb/hat3uJec0+b3tN tp9g== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=HoUbSJTD; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout01.posteo.de (mout01.posteo.de. [185.67.36.65]) by gmr-mx.google.com with ESMTPS id k18-20020a05651c10b200b0025a70508721si270801ljn.7.2022.07.17.01.11.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Jul 2022 01:11:21 -0700 (PDT) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) client-ip=185.67.36.65; Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 953B5240026 for ; Sun, 17 Jul 2022 10:11:20 +0200 (CEST) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4LlyV00QJzz6tmM for ; Sun, 17 Jul 2022 10:11:20 +0200 (CEST) Content-Disposition: inline In-Reply-To: X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=HoUbSJTD; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.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.io gmane.text.pandoc:30993 Archived-At: Actually, my explanation was not accurate. I just saw that Pandoc renders C= ode in LaTeX with \texttt, which allows line breaks. However, it prevents t= hem by escaping the blank spaces in the argument of \textt. So the solution= is to alter the behaviour of the Pandoc LaTeX writer. You can use the foll= owing Lua filter to do this (I assume that classes and attributes on code s= pans are ignored by the LaTeX writer anyway): ``` function Code(code) if FORMAT:match 'latex' then return { pandoc.RawInline('tex', '\\texttt{'), pandoc.Str(code.text), p= andoc.RawInline('tex', '}') } end end ``` So indeed, it is a Pandoc question ;-) Le Saturday 16 July 2022 =C3=A0 10:29:35PM, almaghfuur lahu a =C3=A9crit : > Wonder if there's a rst command to force a line break at any point in rst > document which latex hence pandoc can produce PDF as it has that >=20 > On Thursday, 14 July 2022 at 15:57:59 UTC+7 Bastien Dumont wrote: >=20 > The problem is that the whole series of keywords are marked up as one= span > of raw code, and LaTeX does not insert line breaks into raw code. In = the > rst file, replace >=20 > These keywords are also operators: > `and or not xor shl shr div mod in notin is isnot of as from`. >=20 > with >=20 > These keywords are also operators: > `and` `or` `not` `xor` `shl` `shr` `div` `mod` `in` `notin` `is` `isn= ot` > `of` `as` `from`. >=20 >=20 > Le Thursday 14 July 2022 =C3=A0 09:47:07AM, William Lupton a =C3=A9cr= it : > > This paragraph is parsed as shown below, i.e., as a code block with= a > 'nim' > > class. It might be possible to use this info to control how it's re= ndered > in > > the PDF? Or use a different PDF engine, e.g., I just tried it > with=C2=A0wkhtmltopdf > > (and no special CSS) and the text wraps as expected ("from" is form= atted > in a > > different colour but perhaps that's intended). > > > > =C2=A0 [130] Para { > > =C2=A0 =C2=A0 content: Inlines { > > =C2=A0 =C2=A0 =C2=A0 [1] Str text: "These" > > =C2=A0 =C2=A0 =C2=A0 [2] Space {} > > =C2=A0 =C2=A0 =C2=A0 [3] Str text: "keywords" > > =C2=A0 =C2=A0 =C2=A0 [4] Space {} > > =C2=A0 =C2=A0 =C2=A0 [5] Str text: "are" > > =C2=A0 =C2=A0 =C2=A0 [6] Space {} > > =C2=A0 =C2=A0 =C2=A0 [7] Str text: "also" > > =C2=A0 =C2=A0 =C2=A0 [8] Space {} > > =C2=A0 =C2=A0 =C2=A0 [9] Str text: "operators:" > > =C2=A0 =C2=A0 =C2=A0 [10] SoftBreak {} > > =C2=A0 =C2=A0 =C2=A0 [11] Code { > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 attr: Attr { > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 attributes: AttributeList {} > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 classes: List { > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [1] "nim" > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 } > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 identifier: "" > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 } > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 text: "and or not xor shl shr div mod i= n notin is isnot of as > from" > > =C2=A0 =C2=A0 =C2=A0 } > > =C2=A0 =C2=A0 =C2=A0 [12] Str text: "." > > =C2=A0 =C2=A0 } > > =C2=A0 } > > > > On Thu, 14 Jul 2022 at 01:16, almaghfuur lahu <[1]budik...-Re5JQEeQqe8@public.gmane.org= m> > wrote: > > > > > > This's, just now, the result of Github issue=C2=A0[2][1]https://git= hub.com/jgm > / > > pandoc/issues/8172 > > > > Now after leading steps getting solved, next step is need to fix a > > imperfection on some lines overrun the right alignment margin > > > > How actually is the rst's width and margin alignment setting comman= d to > > correctly have the max column number laid out, or that is determine= d > > implicitly by pandoc on the run when trying accomplishing it by: > > > > pandoc -f rst -t pdf -o manual.pdf manual.rst > > > > ?=C2=A0 improper line is e.g: > > > > These keywords are also operators: and or not xor shl shr div mod i= n > notin > > is isnot of as from. > > > > ... notin <=3D longer than it > > > > Real PDF document being viewed: > > > > These keywords are also operators: and or not xor shl shr div mod i= n > notin > > is isnot of as from. > > > > Needed wrapped/broken to: > > > > These keywords are also operators: and or not xor shl shr div mod i= n > notin > > =C2=A0is isnot of as from. > > > > Please show the logical way to solve correctly so that can be done = in > batch > > by find-replace regex tool > > > > the rst: > > [3][2]https://drive.google.com/file/d/19DJ8at1Fze8-HEEzg3n9xLrSB9tI= aqW5/ > view? > > usp=3Dsharing > > > > -- > > 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, s= end an > > email to [4]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit [5][3]https://groups.googl= e.com/ > d/ > > msgid/pandoc-discuss/ > > e63b0064-87dd-431a-b346-de9e4c220785n%[4]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, s= end an > email > > to [6]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit [7][5]https://groups.googl= e.com/ > d/msgid/ > > pandoc-discuss/ > > CAEe_xxi%3D4ZT%2BRyhGPAtWiWFE1phYgshYubzA-%2BG7B2mESXJrpA%[6] > 40mail.gmail.com. > > > > References: > > > > [1] mailto:budik...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > > [2] [7]https://github.com/jgm/pandoc/issues/8172 > > [3] [8]https://drive.google.com/file/d/19DJ8at1Fze8-HEEzg3n9xLrSB9t= IaqW5/ > view?usp=3Dsharing > > [4] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [5] [9]https://groups.google.com/d/msgid/pandoc-discuss/ > e63b0064-87dd-431a-b346-de9e4c220785n%40googlegroups.com?utm_medium= =3Demail& > utm_source=3Dfooter > > [6] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [7] [10]https://groups.google.com/d/msgid/pandoc-discuss/ > CAEe_xxi%3D4ZT%2BRyhGPAtWiWFE1phYgshYubzA-%2BG7B2mESXJrpA%40mail.gmai= l.com? > utm_medium=3Demail&utm_source=3Dfooter >=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 [11]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit [12]https://groups.google.com/d/= msgid/ > pandoc-discuss/a2c95871-daca-41e5-a971-deb1f3085eb4n%40googlegroups.com. >=20 > References: >=20 > [1] https://github.com/jgm/ > [2] https://drive.google.com/file/d/19DJ8at1Fze8-HEEzg3n9xLrSB9tIaqW5/vie= w > [3] https://groups.google.com/d/ > [4] http://40googlegroups.com/ > [5] https://groups.google.com/d/msgid/ > [6] http://40mail.gmail.com/ > [7] https://github.com/jgm/pandoc/issues/8172 > [8] https://drive.google.com/file/d/19DJ8at1Fze8-HEEzg3n9xLrSB9tIaqW5/vie= w?usp=3Dsharing > [9] https://groups.google.com/d/msgid/pandoc-discuss/e63b0064-87dd-431a-b= 346-de9e4c220785n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter > [10] https://groups.google.com/d/msgid/pandoc-discuss/CAEe_xxi%3D4ZT%2BRy= hGPAtWiWFE1phYgshYubzA-%2BG7B2mESXJrpA%40mail.gmail.com?utm_medium=3Demail&= utm_source=3Dfooter > [11] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [12] https://groups.google.com/d/msgid/pandoc-discuss/a2c95871-daca-41e5-= a971-deb1f3085eb4n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfoote= r --=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/YtPEJ6Ggm3p3Ze2C%40localhost.