From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
Received: from mp0 ([2001:41d0:2:4a6f::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms0.migadu.com with LMTPS
	id iEKhESNjsWD3pAAAgWs5BA
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Fri, 28 May 2021 23:39:47 +0200
Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp0 with LMTPS
	id mDsaDSNjsWBqJwAA1q6Kng
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Fri, 28 May 2021 21:39:47 +0000
Received: from lists.gnu.org (lists.gnu.org [209.51.188.17])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by aspmx1.migadu.com (Postfix) with ESMTPS id 944A21244D
	for <larch@yhetil.org>; Fri, 28 May 2021 23:39:46 +0200 (CEST)
Received: from localhost ([::1]:58504 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	id 1lmkCm-0007nQ-TW
	for larch@yhetil.org; Fri, 28 May 2021 17:39:44 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:56134)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <agoesele@sju.edu>) id 1lmkCC-0007ky-TN
 for emacs-orgmode@gnu.org; Fri, 28 May 2021 17:39:12 -0400
Received: from mail-qt1-x82d.google.com ([2607:f8b0:4864:20::82d]:45600)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <agoesele@sju.edu>) id 1lmkC9-00046A-Q8
 for emacs-orgmode@gnu.org; Fri, 28 May 2021 17:39:08 -0400
Received: by mail-qt1-x82d.google.com with SMTP id h24so3733425qtm.12
 for <emacs-orgmode@gnu.org>; Fri, 28 May 2021 14:39:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=sju-edu.20150623.gappssmtp.com; s=20150623;
 h=from:to:cc:subject:organization:references:date:in-reply-to
 :message-id:user-agent:mime-version:content-transfer-encoding;
 bh=RLyac3gOR7X8ogO2TlUGi9SCGi+Gi4lRX+HqEYAZCts=;
 b=zsky42fQz6D8b0XNju/qNasAyg0RGD3MZJQfSjzxvbwBQESjKs0nBj5/AODP4njqxF
 wP5OFM5eSw+df5JHQmyOVUaurYCu1R5GxOaUzGHJb2EpnpFB+IoFPfj4hLBFBOuEl7Kc
 FR6hkAi98RdhvosfJIBO4zBH6xMmRcrU2nofMvYgpvq0RFYgRW5Ea8IAMZJr18IPn2ea
 JHQRXnnsDJ9sVWn+5OT77yKuEw/9Y725VGGMAv5DLrNAxU/ix+HCEpQFMsQPyQ5zObW0
 RlAlH/ShMbK5pLCp3f7YZUKnjqV/RaCHdkJCspfMoj1B36avONXlViGKO9A8Qf5z+Th6
 +35A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:organization:references:date
 :in-reply-to:message-id:user-agent:mime-version
 :content-transfer-encoding;
 bh=RLyac3gOR7X8ogO2TlUGi9SCGi+Gi4lRX+HqEYAZCts=;
 b=JYFksyWYFO0G5zHswSKKY+MWmLC0Pd0DSmHyXUcWoI6QRft6K2pxsM0k2d6hIwFNUG
 SMvhSsNh3zrz+8RpIpDcR0lVVTtimztKopHRnsGDFT47y3BNVg+sICe27n45Tb3iJcxT
 /1XngEnzxzipB/7l5y/6bWz6EmBEKylSrG/Far3TffHZRTdvQK/Ho/ZjgHGVyV79eTa7
 Vj8OuqtGO3CR2gdszTrLGPjoZkQomYUaDIiwg0jXLqFA0Nk8GROt18hVFY5Q0B9aOXZA
 VzSwKiL469WFCUeWEr97KkAsaBF+itslI8i3/Q9KdesNqXeCaJ8Rrn1jlX9hr0zDRRqq
 WbsA==
X-Gm-Message-State: AOAM531mYGqUwpIt1mzp5OqvySZkceu2kPBw1cUWDC9gvpSkDSXdY0tK
 TvsdP7Pxx3dLR7/LLAUbzHnkVP0s7Q2Y5A==
X-Google-Smtp-Source: ABdhPJx1Rvzeyil0RLgecG+T7Je9NbXne7njwoZRcJxKdK+O4E3amidvCBJLU/P3DByDc2/e0VMQIw==
X-Received: by 2002:ac8:5bd5:: with SMTP id b21mr5278560qtb.317.1622237944544; 
 Fri, 28 May 2021 14:39:04 -0700 (PDT)
Received: from ag ([2603:301d:801:b400:ad9c:c76e:a230:2353])
 by smtp.gmail.com with ESMTPSA id v18sm4246792qkv.34.2021.05.28.14.39.04
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 28 May 2021 14:39:04 -0700 (PDT)
From: Andreas =?utf-8?Q?G=C3=B6sele?= <agoesele@sju.edu>
To: emacs-orgmode@gnu.org
Subject: Re: Smart quotes not working correctly with single quotes
Organization: Saint Joseph's University
References: <87bl8vr2j2.fsf@hfph.mwn.de> <87wnrjf9sg.fsf@posteo.net>
 <871r9qrhj3.fsf@sju.edu> <87mtsespym.fsf@zeitkraut.de>
Date: Fri, 28 May 2021 17:39:03 -0400
In-Reply-To: <87mtsespym.fsf@zeitkraut.de> (Albert Krewinkel's message of
 "Fri, 28 May 2021 19:55:29 +0200")
Message-ID: <87lf7ypmh4.fsf@sju.edu>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=2607:f8b0:4864:20::82d;
 envelope-from=agoesele@sju.edu; helo=mail-qt1-x82d.google.com
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: emacs-orgmode@gnu.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=subscribe>
Cc: Albert Krewinkel <albert+org-mode@zeitkraut.de>
Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org
Sender: "Emacs-orgmode" <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
X-Migadu-Flow: FLOW_IN
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1622237986;
	h=from:from:sender:sender:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:cc:mime-version:mime-version:
	 content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references:list-id:list-help:
	 list-unsubscribe:list-subscribe:list-post:dkim-signature;
	bh=RLyac3gOR7X8ogO2TlUGi9SCGi+Gi4lRX+HqEYAZCts=;
	b=XlCyzEj1xioPxwGx3FSC70j537nrcAd0o0aFoVzLVOcDlcVVBv0CnvQO68yOGw/9Vd/gEe
	Df4L7esM/+zKjopGFmXeWdKwQRewsifaJ0TFtCZMQU0MduIb6sCFhJ/0051/HY2KBDv28q
	sOx0UXQEpcnrFEWpZHPNv5BWWGVO2k+of60cId0tTHSr1XdgWkGLnAUVIoMUUkRSqWF4GP
	Zp4+O0ErGMdqm8qDBTgYjtZHeGCv9e5TKfW/NAA1kcbnrQMWMqcZ2m/DHxZD0Kytluumg6
	IYQ0nc1K0ep55NW+vFLTBNH9pkxfTr7p7syB7GPK1CgDpxy4NqKFJ9qyz3iosQ==
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622237986; a=rsa-sha256; cv=none;
	b=kvtpX3hmsPbdOb26CAFMayjiBHDEkIdHboE5ZrWwJnjBED2PHczslZdniSoYG+Wy8+/jZ5
	kSSnHN5Zwq4Z78Vx9VEy7VITU33PYMJQgbD2wYW+E2hBzlb/GhD3eYdnuFk5aSBl3tL3fA
	z48F7KBwlCUxJLJiHfNRn9bZ2HLLeR6yQnRDl9iaAUKvvEugguKcOMs8Oojpm5QYTJfMeK
	37ZKKDhxXb8oO/0rJt5bocDG/Cayb6RNd1nbLGAEmiW925PaL24LCKhdsGXPnou+i0/aeG
	VVIS3Sa3BjPkyrVVOR6Uq4mZ5vubuwI67KF9zYVfdDeYrQ7Z6gTcA9tRFYTwNA==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=sju-edu.20150623.gappssmtp.com header.s=20150623 header.b=zsky42fQ;
	spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org
X-Migadu-Spam-Score: -2.53
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=sju-edu.20150623.gappssmtp.com header.s=20150623 header.b=zsky42fQ;
	dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=sju.edu (policy=none);
	spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org
X-Migadu-Queue-Id: 944A21244D
X-Spam-Score: -2.53
X-Migadu-Scanner: scn0.migadu.com
X-TUID: hoXPg3bTDcE4

Albert Krewinkel <albert+org-mode@zeitkraut.de> writes:

> Andreas G=C3=B6sele <agoesele@sju.edu> writes:
>
>> [...] I tried to convert the LaTeX document with pandoc, tex4h and
>> latex2html to odt and html but none of them produces the correct
>> output.
>>
>> So I'm wondering whether there is any way to make org export to
>> recognize single quotes also outside from double quote. It should be
>> possible as inner quotes is not the only use of simple quotes.
>
> I apologize for the non-Emacs solution, but you can use pandoc in
> combination with the following Lua filter to get the desired result:
> https://github.com/pandoc/lua-filters/tree/master/pandoc-quotes.lua
> For LaTeX output, you can also pass -Vcsquotes as a parameter to force
> pandoc to make use of the csquotes package. Both should give you the
> desired results.

Thanks for the suggestion. I would be happy to use pandoc.

I tried it and it works well for quotes (double and single). But the
apostrophe only is correctly treated if I convert to LaTeX/PDF. (That's
because LaTeX transforms the "typewriter apostrophe" into the correct
typographic apostrophe.)

From:

 #+LANGUAGE: de
 #+OPTIONS: ':t
 #+OPTIONS: toc:nil
 It's a 'test'.

I get for html/odt:

 It's a =E2=80=9Atest=E2=80=98.

But I should get:

 It=E2=80=99s a =E2=80=9Atest=E2=80=98.

Directly using the org export I get:

 It=E2=80=99s a =E2=80=99test=E2=80=99.

So with pandoc and the Lua filter the single quotes are correct, with
the direct export from org the apostrophe is correct.

Is there a way with pandoc to get correct quotes and apostrophes?

Thanks again!

Andreas