From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18618 Path: news.gmane.org!.POSTED!not-for-mail From: BP Jonsson Newsgroups: gmane.text.pandoc Subject: Re: smarter smart quotes please :) Date: Sat, 11 Nov 2017 16:04:11 +0100 Message-ID: References: <4a9afb56-e91e-4ae3-9089-b67da347f178@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11c17984985d57055db659bd" X-Trace: blaine.gmane.org 1510412652 9726 195.159.176.226 (11 Nov 2017 15:04:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 11 Nov 2017 15:04:12 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDIY76M674FRB3FCTTIAKGQE55ARHFI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Nov 11 16:04:08 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-it0-f60.google.com ([209.85.214.60]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDXKI-0002GL-4i for gtp-pandoc-discuss@m.gmane.org; Sat, 11 Nov 2017 16:04:06 +0100 Original-Received: by mail-it0-f60.google.com with SMTP id f187sf4037855itb.6 for ; Sat, 11 Nov 2017 07:04:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1510412653; cv=pass; d=google.com; s=arc-20160816; b=nGI38dASDozyqTJgMkCE3dUy7oFzFo2A3Slj3zPCbwWNwxPYfkG7u9RMx6tvCanI+J cprZXXnGk4CBQEvdTFLiuHHgWI1xGS/qS9PZ/6l/yhACytSU0yeR1hgm3aU2AM/oAvHJ tnRkUaQMvk6ssjZ16b6MAv4L2pqPyIuy2RMc0hOVbRPlMZSOqsJl6rAF0FMAzAVbpGfg 3uWfh41fzzqgzky3JUXepWV+5JFMWv6w/kOjKUTZzf08KzMPjmtOIoS89ltOIE6A+osQ tuBAdg/cDw1gsJMzrZGs3GfSsdksvtR+sXOYs9WuAsc1GR/Hyq0zDGg2t6q/nVd/+Pmj Oylw== 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:references:in-reply-to:mime-version:arc-authentication-results :arc-message-signature:sender:dkim-signature:dkim-signature :arc-authentication-results; bh=3SKvAyb9TYmPO+xBGwHHGR7VVE1HBy4CzaAP8gulgXs=; b=f8RMOpQEdSdewPJpypYlMSGmVuWrje1dJXVvGN9OikFO8E4rNA0ABl6ZLHI99quCe9 Mb2lblg8hqyrfHkhSXtfaJ4NmUARf1pSY/NI/f+sKjFzovWauAg4p7sKGsunL275yN1c nc/96SrRdhDzZLUvMLQIaUQVGlrfSxckyanp6E7h/nLcCqQs8wWB09Nf9Ts3XymYpiNa Hrkt4nl3GzpYezRHzznFMYt+FA1P3LNs3DWHRMtANXFUGk6o+rwodjlTYfZzW1Olm2f5 cW7qYGqPw6BZhmS/DojKiL7C/ExuxPy1GmESxlu5h+dyvlJhFLWjsoBt2PpaQqEr7iTo xeXA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dLQvL+ho; spf=pass (google.com: domain of bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4003:c06::22b as permitted sender) smtp.mailfrom=bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=NONE 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:in-reply-to:references: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=3SKvAyb9TYmPO+xBGwHHGR7VVE1HBy4CzaAP8gulgXs=; b=d1534cKHAIStQlk8JORFcEKGvaPzb2QEVgN0kJ2z48ygN5dF/9MLhIrIF/x3wQ2u2f ME3l73nkZwUgQIaGF7vCjm0lkmM0J9NrxISjunaUD+MhOPdS9OwlwPxpQaPE4a8LSdJo lOOqMTgafeCJFiA03fGmDnoXb9KhpFErJV4EBIl4i4Qv7nNfXbftfvIFIXPK/71Se4PW yPNmA8RVx9pDkpwVSQVBQtSKqQQOP0Zzncq3B50iRUr4k2/ymL2WxLtF+lzOdhYyDEwz hvQ25zJnfn/RJplgbkXMvJj9phunnGDtcg7KZc7ISLepT42dFVgN4MixWVqhUyRhLGoo /MqA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references: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=3SKvAyb9TYmPO+xBGwHHGR7VVE1HBy4CzaAP8gulgXs=; b=QlZTlJxnEy3jpSQ77M7/PGR3pj9JJoMgjlVAJm5IMEW+UaEA8gElqTN8CHP2KdElp1 YLDGpq7zBKwFTBDu6qW3j8h3a83VJHg8AUweRja+hUa/E+jEVoPqgS3QEq1ErzwWZka5 SupKBiNGtg2BbluqkPk4s768uuDNiCHH/rbLT98wsAWYiP9MRhZVvdNspSbTug1g1TBF nVfQWKgmnl27LzvNvR8emGyCXnQkDPGPo+lbWh0qfF/kxtcr0prV2Cf3sshZmp3dfAe4 +6meH1TXGuxJTNzsbhdJeodME6GSabqAXPVIsj07PtvcR0y16ilNk+tKkKaQEorIednG QnMQ== 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:in-reply-to:references: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=3SKvAyb9TYmPO+xBGwHHGR7VVE1HBy4CzaAP8gulgXs=; b=QOZt6IpHcFQwxjCBeTKJ8gU1iwEvftxcfjV3smNVwsFrW0iA3vSn8yLkKsu3Y0+iIP U9l7UcZcZxwCkAVBmtMwTtft9UPpwyVI1lJE86elpKNXaedfHHykyw+MoQuaovcvUTPT Gigp2zBCktR4LCD7G39LEXoHiY/aoFPbw0LtLRFYeK5kMKFgphcVrwZP4KXwNFXF0WNY 9G1CRw+Vxj0tERt4npBeHhd0c9SLq0SZB5p6DVGkUt5rysCZCn98eQOOeVEUjSsuaHzq 0Hpjv+rpb/GP+f8eKN63c8ojz6+yQNoLp/D/7fHKeSaLs9ez0b38IC83Bc81BAb2ipDB e6mg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJaThX4FltyaHCmYeJrUcY9RMxwN23q4zKtlkW+E7C9FraBfGdd9uKQT nCslCiqHKOPe8kCvnTl2dIM= X-Google-Smtp-Source: AGs4zMbolmGSWFJGSNe+85qZBMjcjifNsuR8Y9AB8Sl2ycXkXNhdl2xEKW9KObv/ZZf3a1droqsXyg== X-Received: by 10.36.7.65 with SMTP id f62mr67814itf.1.1510412653492; Sat, 11 Nov 2017 07:04:13 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.36.117.197 with SMTP id y188ls296724itc.10.gmail; Sat, 11 Nov 2017 07:04:12 -0800 (PST) X-Received: by 10.107.129.162 with SMTP id l34mr8738040ioi.125.1510412652585; Sat, 11 Nov 2017 07:04:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510412652; cv=none; d=google.com; s=arc-20160816; b=LGHaiTtPPAER9tmy7wn1R6QVO1BwIi0ODMB4qIUoC2z90BQp4DnDKHM4UppQGpQgn3 aff859IwCuZBnEe0+ty0LDa7cCvhbFdjVhYGPLKtXm2BgBdztQgOzY80zQMUUq7iCw52 nSc0M3h1bG4Ncz7PQ7wwn4SvRXJ36TU00ZUPED+wL+TBOSVERMNq03C2nL+Sjy6ibmf8 Pb1tgWZrlj83FPf5d+zWxh8MDI9OtNYSq7uAxn6vCGTcQabSvQdoVhY0YcmZHkfts58p 0TOtr9XD9JVqqx7Vo6X8nWIJrS5u9e6CbwPUeJ5cz8H0tw383ApVsiPpxQXARWx1ofVq AaSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=BNAOc2ig8IPY2X+sZ0rwZKvFdv8QGfCwf0bUUOozt9U=; b=AwmOoKLWLxkF3w3EfqvVaG09hwx2xkb/NCCCfu+eq/7TCYY7gJ7vLg87V8Y1O/n0gl tCRKnTkkqJ9pBx2FIq2Nv4z4uY6cESQWYFa268dBHx5mALaZLEoKvVD+g0DsOhx51XsO Yhfg0lpuqD6g7F3PTTbUwi/VnCgiCUJEOE4ymhQtZeGcY9obWMhHRey5gqizBXlcHS5b /ieAza+EQLy8jWz9C5bvTxmz1km7NmbRhn7IE5pQYN3TFSJwdMzB55qwLNA/m1CEnPu0 ibspBfqLKr7SES4qhoWbnkq+HTfkPu2KbvMbNcSA2sBXe8jA/vLDtImrX/rGWNKufGpe XHTQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dLQvL+ho; spf=pass (google.com: domain of bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4003:c06::22b as permitted sender) smtp.mailfrom=bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Original-Received: from mail-oi0-x22b.google.com (mail-oi0-x22b.google.com. [2607:f8b0:4003:c06::22b]) by gmr-mx.google.com with ESMTPS id w8si798092iof.1.2017.11.11.07.04.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 11 Nov 2017 07:04:12 -0800 (PST) Received-SPF: pass (google.com: domain of bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4003:c06::22b as permitted sender) client-ip=2607:f8b0:4003:c06::22b; Original-Received: by mail-oi0-x22b.google.com with SMTP id i192so3169871oib.12 for ; Sat, 11 Nov 2017 07:04:12 -0800 (PST) X-Received: by 10.202.117.141 with SMTP id q135mr205749oic.109.1510412652131; Sat, 11 Nov 2017 07:04:12 -0800 (PST) Original-Received: by 10.157.16.49 with HTTP; Sat, 11 Nov 2017 07:04:11 -0800 (PST) Original-Received: by 10.157.16.49 with HTTP; Sat, 11 Nov 2017 07:04:11 -0800 (PST) In-Reply-To: <4a9afb56-e91e-4ae3-9089-b67da347f178-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dLQvL+ho; spf=pass (google.com: domain of bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4003:c06::22b as permitted sender) smtp.mailfrom=bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=NONE 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:18618 Archived-At: --001a11c17984985d57055db659bd Content-Type: text/plain; charset="UTF-8" I have a filter which lets you define your own quotes in the metadata. You can even use different quotes in different parts of a document by setting a variable in a surrounding div. It is in need of some documentation though. /bpj Den 9 nov 2017 17:56 skrev "Mikolaj Machowski" : > Hello, > > First of all: thank you for pandoc. > > > Second: > > Any progress with configurable smart quotes? > > https://github.com/jgm/pandoc/issues/2620 > https://github.com/jgm/pandoc/issues/3559 > > (I se 3559 was closed only with regard to translations of some envs.) > > default when changing quotes pandoc defaults to US combination of: > > 66-upper 99-upper > > But there are many other variations, for example: > > Lang: opening-q closing-q > Input: " " > German: 99-lower 66-upper > Polish: 99-lower 99-upper > French: << >> > English: 6-upper 9-upper > Danish: >> << > > In HTML it is partially fixed with `--html-q-tags` but more advanced > typography, nbsp before/after some entities would be also great in: > > html, docx, odt, rtf, epub > > For example lines 1186+ from Docx.hs are: > > https://github.com/jgm/pandoc/blob/3897df868ad1e0ca5409e8fffd86c7 > 3dbf6f2b31/src/Text/Pandoc/Writers/Docx.hs#L1186 > > where (open, close) = case quoteType of > SingleQuote -> ("\x2018", "\x2019") > DoubleQuote -> ("\x201C", "\x201D") > > It would be great if those where lang dependent. Same for title of toc: > BTW - with regard to discussion about French quotation - do arguments here > accept > two characters: ? > > https://github.com/jgm/pandoc/blob/3897df868ad1e0ca5409e8fffd86c7 > 3dbf6f2b31/src/Text/Pandoc/Writers/Docx.hs#L150 > > > I am sorry, looks like I cannot setup Haskell environment on my maching to > test some things myself. > > > ... -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAFC_yuQD80-CKPY6GUgEU6i_kL0tySkUoPjhzJvE-E6_2h%2B21w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. --001a11c17984985d57055db659bd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have a filter which lets you define your own quotes in = the metadata. You can even use different quotes in different parts of a doc= ument by setting a variable in a surrounding div. It is in need of some doc= umentation though.

/bpj
<= div dir=3D"auto">


Den 9 nov 2017 17:56 skrev &quo= t;Mikolaj Machowski" <mikmach@= gmail.com>:
<= div dir=3D"ltr">Hello,

First of all: thank you for pandoc.

Second:

Any progress with configurable smart quotes?

https://g= ithub.com/jgm/pandoc/issues/2620
https://github.com/jgm/pandoc/issues/3559

(I se 3559 was closed only with regard to translat= ions of some envs.)

default when changing quotes pandoc defaults to = US combination of:

66-upper 99-upper

But there are many other= variations, for example:

Lang:=C2=A0=C2=A0=C2=A0 opening-q closing-= q
Input:=C2=A0=C2=A0 "=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 "
German:=C2=A0 99-lower=C2=A0 66-upper
Polish:=C2=A0 99-low= er=C2=A0 99-upper
French:=C2=A0 <<=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 >>
English: 6-upper=C2=A0=C2=A0 9-upper
Danish:=C2= =A0 >>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <<

In H= TML it is partially fixed with `--html-q-tags` but more advanced
typogra= phy, nbsp before/after some entities would be also great in:

html, d= ocx, odt, rtf, epub

For example lines 1186+ from Docx.hs are:
https= ://github.com/jgm/pandoc/blob/3897df868ad1e0ca5409e8fffd86c7= 3dbf6f2b31/src/Text/Pandoc/Writers/Docx.hs#L1186

=C2=A0=C2= =A0=C2=A0 where (open, close) =3D case quoteType of
=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 SingleQuote -> ("\x2018&= quot;, "\x2019")
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 DoubleQuote -> ("\x201C", "\x201D")<= br>
It would be great if those where lang dependent. Same for title of t= oc:
BTW - with regard to discussion about French quotation - do argument= s here accept
two characters: <opening-quote><nbsp> ?
https:= //github.com/jgm/pandoc/blob/3897df868ad1e0ca5409e8fffd86c73= dbf6f2b31/src/Text/Pandoc/Writers/Docx.hs#L150


I am sor= ry, looks like I cannot setup Haskell environment on my maching to test som= e things myself.


...

--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://group= s.google.com/d/msgid/pandoc-discuss/CAFC_yuQD80-CKPY6GUgEU6i_kL0tySkUoPjhzJ= vE-E6_2h%2B21w%40mail.gmail.com.
For more options, visit http= s://groups.google.com/d/optout.
--001a11c17984985d57055db659bd--