From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
Received: from mp1 ([2001:41d0:8:6d80::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms0.migadu.com with LMTPS
	id oElgH6IPsWBncQEAgWs5BA
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Fri, 28 May 2021 17:43:30 +0200
Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp1 with LMTPS
	id IH7TGqIPsWAwaQAAbx9fmQ
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Fri, 28 May 2021 15:43:30 +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 C371510043
	for <larch@yhetil.org>; Fri, 28 May 2021 17:43:29 +0200 (CEST)
Received: from localhost ([::1]:53006 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 1lmedy-0006We-H1
	for larch@yhetil.org; Fri, 28 May 2021 11:43:26 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:32810)
 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 1lmeda-0006Vu-51
 for emacs-orgmode@gnu.org; Fri, 28 May 2021 11:43:02 -0400
Received: from mail-qv1-xf31.google.com ([2607:f8b0:4864:20::f31]:35572)
 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 1lmedX-0004QG-T3
 for emacs-orgmode@gnu.org; Fri, 28 May 2021 11:43:01 -0400
Received: by mail-qv1-xf31.google.com with SMTP id q6so2097924qvb.2
 for <emacs-orgmode@gnu.org>; Fri, 28 May 2021 08:42:59 -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=hLtqOkAl0AblZOkg1CekDUg2cxGXvnTI31MfJ39BwnU=;
 b=gCvzzb+D2yxPYtBuADpnT8Av8Bi8B4PsYNIN7FB5kMYWLvOsK9rwXT89njiOhq5jNU
 0emXelvqCNDCKX7lPl4iOaRTPr1RXyOWNrXrqaHGLEk+D8uVZ3tFETbyb5KRpmYufAda
 FMVRbn+UwdZGdZZ3KmWm6Sr/GCT56jHXu/Yuimwo7MgfQvMQerBoXRHo8ccpLdiOMFz+
 wbDvJmPqsbi0v5oh7wOD16GCLl/9+jRU9K4T06UcCi0g1AOXr8K8pEueHDIWYEJHrnW9
 aFxkBNuzZpAyyKBmDjArS1Uc45TLSRHUcOPup6pExHiHEdBVzoH8c0uVPKh8gFrsS/D3
 0PGw==
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=hLtqOkAl0AblZOkg1CekDUg2cxGXvnTI31MfJ39BwnU=;
 b=nX6ylp31ezINgEDkF1cMBYZbt6TCsYydST0/BMuCylcggLnkJZrJQ1o7n+sLPAJK4y
 uhqeXwG42f15csBWC46XeixIIsASgxhpVwFkNk5VciDn7OAGeTgL1PyEz/SxSWJQnD/Y
 HdeifZswaz+rYxDcWUToTh7pLU2h8eqk9PAd/xciCgUUtHnLzaTN/ifHx1Jt1ynMjHQ7
 fXfoPGxXdcY/XPSLWCGp5+8Koo3+joavajRo97+uOL1q0R6MdE+sV+xwryeLdmNTORE1
 EO5JrULxLdbnVFOkpEjuyFV8xaAgJKm0F1UKAYg6UvlDCbewiFi5SdXN25P9knuzQgxl
 Xg0Q==
X-Gm-Message-State: AOAM5338pZVRsMqO5fF1BYs7Abe6ZJSDzT7i/6AK3Zz+G9QEbwUoWHFa
 WniclekCYkzysLElZqTmkpr/DcTE/fUJSQ==
X-Google-Smtp-Source: ABdhPJwstc8X4v6ablbA3eMeuiR3+kewHwrSD/Ys9Hh3v28r6E9Xgy4MHrugFO5Nh+hCGL7lZ6C24Q==
X-Received: by 2002:a0c:f792:: with SMTP id s18mr4548190qvn.46.1622216578427; 
 Fri, 28 May 2021 08:42:58 -0700 (PDT)
Received: from ag ([2603:301d:801:b400:ad9c:c76e:a230:2353])
 by smtp.gmail.com with ESMTPSA id w7sm3444585qtn.91.2021.05.28.08.42.57
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 28 May 2021 08:42:57 -0700 (PDT)
From: "Andreas =?utf-8?Q?G=C3=B6sele?=" <agoesele@sju.edu>
X-Google-Original-From: Andreas =?utf-8?Q?G=C3=B6sele?= <goesele@hfph.mwn.de>
To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= <maciaschain@posteo.net>
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>
Date: Fri, 28 May 2021 11:42:56 -0400
In-Reply-To: <87wnrjf9sg.fsf@posteo.net> ("Juan Manuel =?utf-8?Q?Mac=C3=AD?=
 =?utf-8?Q?as=22's?= message of "Fri, 28 May 2021 10:10:55 +0000")
Message-ID: <871r9qrhj3.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::f31;
 envelope-from=agoesele@sju.edu; helo=mail-qv1-xf31.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: orgmode <emacs-orgmode@gnu.org>
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=1622216610;
	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=hLtqOkAl0AblZOkg1CekDUg2cxGXvnTI31MfJ39BwnU=;
	b=hgBJJ2UKm/7cLrm4thGAsA1XJsCWrtsVEzhq6v0RRTkx7XxI+ht635ZTnIi+RMRBsnwoT5
	8uvbS93ItykvRuJ/B/abTAuXBSOP6z8VCPL6wcx3GJ3+auZzB06kUef6etk1IvtMWLnhZq
	9cA18MKA37MkIE/rrZc0htOnPsvKpYqGn9rdvbi7e5cbPUWoq2thvZTITG+rBvo+xb6AyY
	q+tKYJt7CRdr2bg3YDDlPzH61qWfxWL92PVhPmAzKXCmBQQcBwNEu4xZruQrmelHAAnf0F
	ZG2VHuV7i2ViePz93lqqPUD/oAwtDWbV47G9OYKnJ12tD4CsrChV5pHK2IZpzQ==
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622216610; a=rsa-sha256; cv=none;
	b=S6LB+DgXZ3N+CcBfnpD/1mYGBLnASKWyMQ69GysTlcfg+d6Oa9MtF/MxRFEr2Dp+g7lYH8
	VGt2WuwwS2yD/5BtPlosWl9coeNUm3zQUdfOyP27fO6Fbq/e9vgDwyoXQOzj+WOnmOGqzW
	UDvlRiobFkORew/E5cMFLD3PNE3WSaIG5T4mIs/vxlQb4ckdTmceWQAP1/a15gPXmsTT4I
	KEX6gqxV1FVXa/v65pFFMnEq+iUfQfe6wrblrJUVn/ttiCq5b8n7dPz09SbmSR0aMU2/+6
	J7PgLivh7U5qqLu7B5zPhyoTDm90XH2DvuEk4D6aFS1J4LwwZw7x2jBYciJkwQ==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=sju-edu.20150623.gappssmtp.com header.s=20150623 header.b=gCvzzb+D;
	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-Spam-Score: -2.53
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=sju-edu.20150623.gappssmtp.com header.s=20150623 header.b=gCvzzb+D;
	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: C371510043
X-Spam-Score: -2.53
X-Migadu-Scanner: scn0.migadu.com
X-TUID: wXljirww3n9C

Thanks Juan Manuel!

Your suggestion works for LaTeX, but I need the other formats too. 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.

Thanks again!

Andreas

Juan Manuel Mac=C3=ADas <maciaschain@posteo.net> writes:

> Hi Andreas,
>
> I don't know if this is a bug, but I would say that in principle it's
> the expected result. Single quotes are understood here as inner quotes
> or second-level quotation marks, therefore they are only activated
> nested in text with first level quotes: " ... '...' ... "
>
> lorem "ipsum 'dolor sit' amet"
>
> For LaTeX output, however, the csquotes package is a more powerful
> option to control the correct quotation marks for each language. For
> example:
>
> #+LaTeX_Header: \usepackage[german,english]{babel}
> #+LaTeX_Header: \usepackage[babel=3Dtrue,autostyle=3Dtrue,german=3Dquotes=
]{csquotes}
> #+LaTeX_Header: \MakeOuterQuote{"}
> #+LaTeX_Header: \MakeInnerQuote{=C2=B4}
>
> #+LaTeX: \selectlanguage{german}\EnableQuotes
> It's a =C2=B4test=C2=B4. "Please".
>
> lorem "ipsum =C2=B4dolor=C2=B4 sit" amet
>
> Best regards,
>
> Juan Manuel=20
>
> Andreas G=C3=B6sele writes:
>
>> Hi,
>>
>> even using "smart quotes", single quotes are not correctly exported into
>> html, odt or latex.
>>
>> I have as document:
>>
>> | #+LANGUAGE: de
>> | #+OPTIONS: ':t
>> | #+OPTIONS: toc:nil
>> | It's a 'test'. "Please".
>>
>> If I export it to html I get:
>>
>> | It&rsquo;s a &rsquo;test&rsquo;. &bdquo;Please&ldquo;.
>>
>> I should get:
>>
>> | It&rsquo;s a &sbquo;test&lsquo;. &bdquo;Please&ldquo;.
>>
>> If I export to latex I get:
>>
>> | It's a 'test'. "`Please"'.
>>
>> I should get:
>>
>> | It's a \glq{}test\grq{}. "`Please"'.
>>
>> If I export to odt I get:
>>
>> | It=E2=80=99s a =E2=80=99test=E2=80=99. =E2=80=9EPlease=E2=80=9C.
>>
>> I should get:
>>
>> | It=E2=80=99s a =E2=80=9Atest=E2=80=98. =E2=80=9EPlease=E2=80=9C.
>>
>> (The odt example outputs use utf8, I hope it gets transmitted.)
>>
>> So in all three cases apostrophes and double quotes are correctly
>> exported, but not single quotes. Similar problem if I use "#+LANGUAGE:
>> en".
>>
>> I have org-mode 9.3 with emacs 27.1.
>>
>> What could I do to get single quotes to be exported correctly?
>>
>> Thanks a lot!
>>
>> Andreas
>>