From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23690 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jeff Mcneill Newsgroups: gmane.text.pandoc Subject: Re: supporting dinkus in markdown to epub and pdf Date: Sat, 26 Oct 2019 01:06:26 -0700 (PDT) Message-ID: References: <1850e0db-100f-7d36-f338-6ad3379e8c00@gmail.com> <8f36859b-536b-51b4-1c3c-e3e339becea3@gmail.com> <9818aeda-5d0a-456d-9129-0fb746f39008@googlegroups.com> <6ca8408c-b797-3007-647f-9ea939666067@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_766_1151909760.1572077187136" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="52636"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBD55PPHQS4BBBBH5Z7WQKGQENXBYDII-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Oct 26 10:06:31 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oi1-f190.google.com ([209.85.167.190]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1iOH5i-000DST-0M for gtp-pandoc-discuss@m.gmane.org; Sat, 26 Oct 2019 10:06:30 +0200 Original-Received: by mail-oi1-f190.google.com with SMTP id c190sf2537287oig.9 for ; Sat, 26 Oct 2019 01:06:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=M2qeAZctfyV5g7sLuEmCVXehEPZJmbaDgsD4ke77AQc=; b=e7cSiSbTWEBozUFstLmG/5FWkmIPGhTs0T1B30fksobA4YgrBxTEuuEYMXmI4HtLac JiFPkygaxugjxIzNUjvZgOa/r3TIbW+OB+6C53+snnwW7+wva9LLFn+6Ua6J9+GHbCL5 S1Utuekap0ZeV4T8kmiNhWCKcPss2nzPiqQOu648ZPJz+Wkbv1RSg4P5NjxWt774HVZ7 3SJkHM03Anum9cBHGvnh/1qy3ZLkJsRg+fRDeKZ08EgEMIoznJDBQrhnn9cQZrt0w2Br vsa08Ug1KXNU2Q60BL8uQKoJA6t1JkgXTIgsjRvNEuJuh7u57gUjkILM/ofGKziAbr9R jfjw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=berkeley-edu.20150623.gappssmtp.com; s=20150623; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=M2qeAZctfyV5g7sLuEmCVXehEPZJmbaDgsD4ke77AQc=; b=wXOnfQG2IEy/PHXEqYsF2AeJKNiMy+jeOit6W8HDI3B+wsf/8aqyCLbdsQWeX+znfH HHK1h8cjelRHMxBmR/jRu3fDSfTQKHMK99/+bT6bVbBwzW/q/C84UsuUtg2Hyl8wJAhX sB+phQ4RfvlNuBiO+tfpqE86+s1DrsoKbdOsgL4hPwsL5h0qjZWPOQ739bhJoEyPlcpD 9dbew0GtY8jWT2HaY+bxjssZoNIBOY9dE0cPI3oeGLEa3haudtm9gIGDB0ZiVe0P7unu 4x6FVnUk9ztGyAYrG7T8biQuvFmQSDI6BymdtOz8wz50lHM/nrvWLOekAxsPJMNvG420 63wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references: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=M2qeAZctfyV5g7sLuEmCVXehEPZJmbaDgsD4ke77AQc=; b=YiuI9TqbAAoGrldaQ7NmfzS3j/xn9VHiYog5ZWnAj3ipErxaTlCPvfZo1KjGE4P4fi ojwgFCjs5l/Dsjeb43DxFI1WXH3gXMYq1q47it53PI0D2wESdKxtsqs5lQYsTp6ORGzc 1ScqiPKaR8C61e0VEw6fRydtl+TFriF9ZGFbBMGiAp89AhRNtAsAub2xjapNimu3q6w+ E2D9mg4upAuzqjkz5L4pyWNPr1W6SDup4JiYNZLnw8fwLsE+y7GH1EsZdfR9p/uWh/pN b4a+9BP38YkEXcEuIJfz1y7VaqjnW+sc7VWLEMFoAmY+kKhqmjbg49OaUzmyMwfkic7r 4dWA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAUuDv+t15lw4/M6jCJxdbk890aLcqJdZbEXwnZzyM2FMH60eEdX CBTqNU66QNHM8Elkf6PQqak= X-Google-Smtp-Source: APXvYqwDwgYt3hrMgheYz9T95l6dyiZD1k5OwMza92QKS/vzMKuKAzGetdJGiawtHtN8NIquX02iFw== X-Received: by 2002:a9d:6048:: with SMTP id v8mr6149426otj.92.1572077188695; Sat, 26 Oct 2019 01:06:28 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:4783:: with SMTP id b3ls2969295otf.5.gmail; Sat, 26 Oct 2019 01:06:27 -0700 (PDT) X-Received: by 2002:a05:6830:18ea:: with SMTP id d10mr5818040otf.271.1572077187751; Sat, 26 Oct 2019 01:06:27 -0700 (PDT) In-Reply-To: <6ca8408c-b797-3007-647f-9ea939666067-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> X-Original-Sender: jeffmcneill-TVLZxgkOlNX2fBVCVOL8/A@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.org gmane.text.pandoc:23690 Archived-At: ------=_Part_766_1151909760.1572077187136 Content-Type: multipart/alternative; boundary="----=_Part_767_1389352898.1572077187137" ------=_Part_767_1389352898.1572077187137 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Aha, I've found a fix, referenced at:=20 https://stackoverflow.com/questions/48083724/pandoc-markdown-ignore-text-in= -pdf-but-include-in-html-updated Here is what I put, and the epub ignores the latex content and the latex=20 ignores the epub (html) content. Magical indeed. `

* * *

`{=3Dhtml} > \begin{center} =E2=88=97 =E2=88=97 =E2=88=97 \end{center} Thanks for your help. Your suggestions are very useful.=20 --Jeff Mcneill On Saturday, October 26, 2019 at 2:24:17 PM UTC+7, V=C3=A1clav Haisman wrot= e: > On 26. 10. 19 9:09, Jeff Mcneill wrote: > > I suggest you add the following to your LaTeX preamble: >> >> \usepackage{newunicodechar} >> \newunicodechar{=E2=88=97}{\textasteriskcentered} >> >> and then use the raw character in your document >> >> \begin{center} >> =E2=88=97 =E2=88=97 =E2=88=97 >> \end{center} >> >> =E2=80=8B >> >> >> --=20 >> VH >> >> > This indeed fixes my issue with latex in terms of producing the correct= =20 > dinkus display (*) when md->pdf, however this still is discarded b= y=20 > pandoc when producing an md->epub. The lines are simply removed (there is= =20 > no dinkus and no additional space added between the separated sections). = --=20 > > > You will have to write a filter that will implement the dingus differentl= y=20 > for each output format. Pandoc is not magical, it cannot translate=20 > everything. > > One more comment about the LaTeX dingus: I have found one more=20 > sophisticated implementation, see=20 > https://tex.stackexchange.com/a/101240/28495. > =E2=80=8B > > > > --=20 > VH > > --=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/e119c11f-a1a0-4005-aec4-beaf76381aa1%40googlegroups.com. ------=_Part_767_1389352898.1572077187137 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Aha, I've found a fix, referenced at:=C2= =A0https://stackoverflow.com/q= uestions/48083724/pandoc-markdown-ignore-text-in-pdf-but-include-in-html-up= dated

Here is what I put, and the epub ignores the latex content and the latex = ignores the epub (html) content. Magical indeed.

`<p clas= s=3D"dinkus">&midast; &midast; &midast;</p>`= {=3Dhtml}
\begin{center} =E2=88=97 =E2=88=97 =E2= =88=97 \end{center}

Thanks for your help. Your suggestions are very useful= .
--Jeff Mcneill


On Saturday, October 26, 2019 at 2:24:17 PM U= TC+7, V=C3=A1clav Haisman wrote:
=20 =20 =20
On 26. 10. 19 9:09, Jeff Mcneill wrote:
=20

I suggest you add the following to your LaTeX preamble:

\usepackage{newunicodechar}
\newunicodechar{=E2=88=97}{\textasteriskcentered}

and then use the raw character in your document

\begin{center}
=E2=88=97 =E2=88=97 =E2=88=97
\end{center}
=E2= =80=8B


--=20
VH

This indeed fixes my issue with latex in terms of producing the correct dinkus display (&midast;) when md->pdf, however this still is discarded by pandoc when producing an md->epub. The lines are simply removed (there is no dinkus and no additional space added between the separated sections). --

You will have to write a filter that will implement the dingus differently for each output format. Pandoc is not magical, it cannot translate everything.

One more comment about the LaTeX dingus: I have found one more sophisticated implementation, see https://tex.stackexchange.com/a/101240/28495.

=E2=80=8B



--=20
VH

--
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/e119c11f-a1a0-4005-aec4-beaf76381aa1%40googlegroups.co= m.
------=_Part_767_1389352898.1572077187137-- ------=_Part_766_1151909760.1572077187136--