From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23661 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?V=c3=a1clav_Haisman?= Newsgroups: gmane.text.pandoc Subject: Re: supporting dinkus in markdown to epub and pdf Date: Wed, 23 Oct 2019 08:30:06 +0200 Message-ID: <1850e0db-100f-7d36-f338-6ad3379e8c00@gmail.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------50976713C7FBB3B48D952127" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="181291"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDV2RLWEXUEBB4PGX7WQKGQEZ7RBT2Y-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Oct 23 08:30:10 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-wr1-f60.google.com ([209.85.221.60]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1iNA9q-000l1d-BA for gtp-pandoc-discuss@m.gmane.org; Wed, 23 Oct 2019 08:30:10 +0200 Original-Received: by mail-wr1-f60.google.com with SMTP id i10sf10386599wrb.20 for ; Tue, 22 Oct 2019 23:30:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1571812209; cv=pass; d=google.com; s=arc-20160816; b=U8poibTDKRy4w5inhPgTyLnIcGxxLHQzNJJbRtNxaaGlD/spKEFvUSv6KkyholGOL6 0LRxWkRNwCnfuCJSPSqte45Ro/ydUj6FG0BOtqttzjg2MDS7U3cY4WzSQKhMMlmS2M0T DIBr2CIF4UrtwYNrXxVYMUSOXFkDE8SfJDHLy6M4WIrYROcsHFXCYFx4/Tsldn87dupb tminu8zvdySVBC8s/wNIpYTyGjtM/tfJ4gbT9KP3rVvnOSXPGioA1PaJLCdrPcIKlntV feFhJSdQ3+JqXUf20rb4ThNpeacqtw4bHxJe7BPoitZFphOmzAoPamtuK4LSB457shO3 Ziaw== 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:content-language :in-reply-to:mime-version:user-agent:date:message-id:autocrypt :openpgp:from:references:to:subject:sender:dkim-signature :dkim-signature; bh=0oqvHBKZ0Pht/r/aSEMFCdf8fEYCt9gOCpQQ/+czyWE=; b=GrOJTPvi44nQ6AWfDrt4v2YVhXZN8BX2fP9H3utuFlhKBr60VfOSJFQZKf+cPxDXAh We3bs7gDHvIBibmBPILYkYIeWUIB5RL15mL9Ix+92V32hkzJgxBgCzZWLY+HNA8ObGYF +Trjt2TCl6e+KUwCjvocFY6q054jXFanGou5J+GEfk54JN7wfu/EVBzLQQgopR5d67t9 mo1KPX1Oc1S/odWaAFjigCP4QPlUT71+cppKdQEW2hLY1NH24vsMBcZJUXKiGSFmdwwO 2mV1Hkte80yfvlLrJYBCEyGYF44aL2mjqck3vJPKUuthD7U3hG4QJ9Yk3i+aWPN74Uj6 HvMA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=olhLTmmn; spf=pass (google.com: domain of vhaisman-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::329 as permitted sender) smtp.mailfrom=vhaisman-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:subject:to:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :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=0oqvHBKZ0Pht/r/aSEMFCdf8fEYCt9gOCpQQ/+czyWE=; b=W3eA1ZYAmM4ZqVJyJgiEvJqn0iYbCdUZAfxuNAgz18RPUFPx1hOAUCIOCPqjfYnyv2 XWARehL7WEH5nwGnPZOOmVUXjS9GX5N0PluLE3BJdvqndKjXEgICsSqszYJV8SBVRiI2 dpBtafieq2zcmYTa6mWCikZrRGrFUw7DTg7Z0rAljrjk93Z9rkTfws6ATNxggPKidd0n uSoY8yAV4PyTvqZLQllt/hZUfDQRGsk0cFH5UDc5J7IFuWbAhdh/H9yreioqCIHJo7fN VZYwhGt45AVupNfNZKyI/SxYd0kRpu8ACDvoDy4eCWIvRmdhQ/1c3/ORWRmBXcxErUeQ 5qGQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :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=0oqvHBKZ0Pht/r/aSEMFCdf8fEYCt9gOCpQQ/+czyWE=; b=gKULAWbYrvrWzDXn2DjuiwR2m/d8obyhNKGG48rYdueZWb8GX87UijOElLD7L5dp68 1F3E8Ax0YpX1jl7aeHRu9cOXdVLrEJgyZm7m2ZFjqs+pq+fvWB1cCjT432bBaanQ/d68 n+9N3DI0szilDrFDS0RV3tRJlOPba1Q/VX0aAEuVXLClhOOBR03DSBU50r4mL6LewbZr voRDku4k1jJAGv0iLYyqSYfGh9itAusc0G93zPEBAuuYybY+FaiCmKdNHFJx9ycJkgW7 fGywfcbmraB8Ts+/ta4kZU1spTdGRK/vAuNAcgcl1C6HqEw700RbobQpPhrLb3gCLfqC 49mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:subject:to:references:from:openpgp :autocrypt:message-id:date:user-agent:mime-version:in-reply-to :content-language: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=0oqvHBKZ0Pht/r/aSEMFCdf8fEYCt9gOCpQQ/+czyWE=; b=S6lznR6c4hCXCSl4IZ2cGquwnxOaS0c/ooavd+8NXhMd/nWDYfBAt3kuapz6ldiJCr sTGWsNDuavYkb38H2FqhbNmrfwtmMhspaW/CHd324HVPObAoxpU1uUM37cKRzSbCOF/o AzeMh/dXlOF9wSZ/LFfy5mVNgEf/IzJnPgUTfDjERsAPyJGOngTvcTr2x73kokBK0zIN YoHLboUzhGHfKdRNToGv6vWqqy1dXcFl+HMTwME0knLL4jmCu1wIFUE5u7ltP7A8jKXM hSuJ32TpX7tmOMNBlAsOkTwOIlNkwVP1tl2yYvrJAMpw Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAXozWuEgZuuK/+QFm8/0DEMuDuTDzG1p4mKLqmop5ySD6Ug19CT OkXZJOJVqxHg+D45W1VNjzA= X-Google-Smtp-Source: APXvYqzhDxstPB69RggCmD9qwt+ML/BamPSZN2vHLBleioevtg9w3nEoBc+Pt7KzLewKJSLEP4/bDQ== X-Received: by 2002:adf:e64f:: with SMTP id b15mr6304169wrn.372.1571812209500; Tue, 22 Oct 2019 23:30:09 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:adf:8b1d:: with SMTP id n29ls405254wra.8.gmail; Tue, 22 Oct 2019 23:30:08 -0700 (PDT) X-Received: by 2002:a5d:6b03:: with SMTP id v3mr3946217wrw.182.1571812208615; Tue, 22 Oct 2019 23:30:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571812208; cv=none; d=google.com; s=arc-20160816; b=EkQoqF702nhEK0gyyIKnpRpThH9AZfuDqPoqNicPJ9rrAqsyIXNg8z44ujRet0NAPz KWgLShujNoMp346A3/VbSNnxPQbdeLhEQLZRvzqMLfygwROo7zotaCspmcmVdGs7XB0c k8yVWVUfeQgUF62MdJHmjgZW2LzlNB/1puNtlZ9KC2RDfpw7m9MD8dnZ5HmMKvII9B78 ozsb0xjQ1wZB7ywkZT8HwtHqZe6JS5qFnRWNHCK0rVgJ+rbcgQXCBJgpVhQSXy3B6wUg TDBJGb+rHOusPRpCR0aOFLQD5dpEPKmLWuziiidPi93K+Xq/PbOaz+d33qntDsYtV5mL RcLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:to:subject :dkim-signature; bh=tSis3HE6MSHgRU5u3aWMxfcwf+9vXODvj0sCyjeryuU=; b=ktgjbYJBNUyaNVOGyPz1iuBRq3P0k+5RnBX1TsJWOKTQ9rBDNO1fNkB0oXSZ8ezTDO oXnrMI2r8PNsZJ5FpWqUkEdwIV/qEL9IQZnQJOpjXy/mVq8R2RdOVXgO+3ds7X8yLXbf j0vlsluIpIMHjboRaetUKaIn229tlB+QBewHZHwnAcSvdQIsl91Pb6GtyZTs9adQVMWj Iav54VAU2TCtWxGyKsKzSMfl7UmuKcFK0WXELHsbyq8B1gm/t2BgWp7UcW3np2Y+gqiz 9WR7z3e0MsL4bsZRgL1IWNoBR533IaU+eE8Z/7NwM9YLuse8VCNG5mhbF65QZkJKgxXv cdkg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=olhLTmmn; spf=pass (google.com: domain of vhaisman-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::329 as permitted sender) smtp.mailfrom=vhaisman-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com. [2a00:1450:4864:20::329]) by gmr-mx.google.com with ESMTPS id c12si955445wrn.2.2019.10.22.23.30.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Oct 2019 23:30:08 -0700 (PDT) Received-SPF: pass (google.com: domain of vhaisman-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::329 as permitted sender) client-ip=2a00:1450:4864:20::329; Original-Received: by mail-wm1-x329.google.com with SMTP id i13so4525548wmd.3 for ; Tue, 22 Oct 2019 23:30:08 -0700 (PDT) X-Received: by 2002:a7b:cf28:: with SMTP id m8mr6651584wmg.161.1571812208251; Tue, 22 Oct 2019 23:30:08 -0700 (PDT) Original-Received: from [192.168.0.11] (ip-86-49-251-129.net.upcbroadband.cz. [86.49.251.129]) by smtp.googlemail.com with ESMTPSA id w15sm12871169wro.65.2019.10.22.23.30.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Oct 2019 23:30:06 -0700 (PDT) Openpgp: preference=signencrypt Autocrypt: addr=vhaisman-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; prefer-encrypt=mutual; keydata= mDMEWf3f1RYJKwYBBAHaRw8BAQdA+8IStMkkgNpf51nGCCVfGgaiznOp+xPcQtrfgfGLS9K0 JFbDoWNsYXYgSGFpc21hbiA8dmhhaXNtYW5AZ21haWwuY29tPoisBBMWCABUAhsDBQsJCAcC BhUICQoLAgQWAgMBAh4BAheAAhkBFiEE5AYpL30Iu7AIRhMUBLidUd/lohUFAl06FI4YGGhr cHM6Ly9rZXlzLm9wZW5wZ3Aub3JnAAoJEAS4nVHf5aIV808A/1l7d86hIkuruaSD6xfzPIA/ Ek/qiGKRGA+zU8qUb5dYAP9sVhbw9SvJwcsDuIJGeXrFVi8yx6S+Y8H0CPIUR0teB7gzBFxx EXYWCSsGAQQB2kcPAQEHQHNoV/g/DTLLJmHpsfoKqTajSEcyom6262+IcyWEvwXtiPUEGBYI ACYWIQTkBikvfQi7sAhGExQEuJ1R3+WiFQUCXHERdgIbAgUJAeEzgACBCRAEuJ1R3+WiFXYg BBkWCAAdFiEEiS0mueUrnYasq0ymeljZNwTVywYFAlxxEXYACgkQeljZNwTVywb+3QD9F8Th busNyRcanAFNL0hdHC8/I1WsNfD6EoFkGYZOPnsBAJClKZoemHMhpHmBQl3OKLwJwIGL3HtG T1+O2/c8IVoN8SIBAIDgPfzGbbjAtZDoZtbVsNgqeC+s35pF0aOC6PY5sV/YAQCcxrhzJBIg FUowGCEEY4o8B03+QZnmv4r9qoLFlVkUA7hzBFxxEbwSBSuBBAAiAwMEPibQKKv8V3BQAmZ0 dm8xkedIVQ3gl0VVF In-Reply-To: Content-Language: en-GB X-Original-Sender: vhaisman-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=olhLTmmn; spf=pass (google.com: domain of vhaisman-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::329 as permitted sender) smtp.mailfrom=vhaisman-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:23661 Archived-At: This is a multi-part message in MIME format. --------------50976713C7FBB3B48D952127 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On 23. 10. 19 6:30, Jeff Mcneill wrote: > In markdown, I markup a dinkus as such: > >

∗ ∗ ∗

What version of Pandoc are you using? If I test with |echo '

∗ ∗ ∗

' | pandoc -f html -t latex | od -t x1| I can see the UTF-8 characters U+2217 make it through into the LaTeX output. =E2=80=8B > > The class simply centers the text.=C2=A0 > > However, for pdf output, I have to mark up in latex as: > > \begin{center} > * * * > \end{center} > > This is not a true dinkus, as it uses an asterisk rather than a ∗.= =C2=A0 > > I've got two issues here: > > 1. How do I make latex (and pdflatex) suppor the dinkus html or > unicode entity? > > 2. Does anyone know a clever way of marking up the pandoc markdown so > that I can use a single source to properly generate both epub and pdf > dinkus? > > Note that if I leave the latex text in, the dinkus is not displayed in > epub, and if I leave only the markdown in, then the literal `

class=3D"dinkus">∗ ∗ ∗

` is displayed in pdf. > > Any thoughts are deeply appreciated. > > Note: because of some issues I am experiencing with xelatex and images > in pdf (they don't display), I cannot use that to solve any of these > issues. > --=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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > . > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/c65ec88e-4c98-4fb1-8c9e-= 46a3553293ff%40googlegroups.com > . --=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/1850e0db-100f-7d36-f338-6ad3379e8c00%40gmail.com. --------------50976713C7FBB3B48D952127 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On 23. 10. 19 6:30, Jeff Mcneill wrote:<= br>
In markdown, I markup a dinkus as such:

<p class=3D"dinkus">&lowast; &lowast; &lowast;</p>

What version of Pandoc are you using? If I test with echo '<p class=3D"dinkus">&lowast; &lowast; &lowast= ;</p>' | pandoc -f html -t latex | od -t x1 I can see the UTF-8 characters U+2217 make it through into the LaTeX output.

=E2=80=8B



The class simply centers the text.=C2=A0

However, for pdf output, I have to mark up in latex as:

\begin{center}
* * *
\end{center}

This is not a true dinkus, as it uses an asterisk rather than a &lowast;.=C2=A0

I've got two issues here:

1. How do I make latex (and pdflatex) suppor the dinkus html or unicode entity?

2. Does anyone know a clever way of marking up the pandoc markdown so that I can use a single source to properly generate both epub and pdf dinkus?

Note that if I leave the latex text in, the dinkus is not displayed in epub, and if I leave only the markdown in, then the literal `<p class=3D"dinkus">&lowast; &lowast; &lowast;</p>` is displayed in pdf.

Any thoughts are deeply appreciated.

Note: because of some issues I am experiencing with xelatex and images in pdf (they don't display), I cannot use that to solve any of these issues.
--
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-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-d= iscuss/c65ec88e-4c98-4fb1-8c9e-46a3553293ff%40googlegroups.com.


--=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/p= andoc-discuss/1850e0db-100f-7d36-f338-6ad3379e8c00%40gmail.com.
--------------50976713C7FBB3B48D952127--