From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jay Dixit Subject: Re: bug in org-export-smart-quotes Date: Fri, 27 Mar 2015 16:23:59 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1135293c6a6d6c05124aebb2 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49091) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ybanw-0005BJ-7v for emacs-orgmode@gnu.org; Fri, 27 Mar 2015 16:24:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ybanu-0002q6-Q0 for emacs-orgmode@gnu.org; Fri, 27 Mar 2015 16:24:32 -0400 Received: from mail-ob0-x236.google.com ([2607:f8b0:4003:c01::236]:34467) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ybanu-0002py-Jg for emacs-orgmode@gnu.org; Fri, 27 Mar 2015 16:24:30 -0400 Received: by obbgh1 with SMTP id gh1so17790129obb.1 for ; Fri, 27 Mar 2015 13:24:30 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org-mode org --001a1135293c6a6d6c05124aebb2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable =E2=80=8BHi Nick, Thanks for the suggestion. Putting extra spaces in the original solves the smart quotes issue, but creates unwanted spaces on either side of the em dash: A new study published in Social Psychological and Personality Science has found that helping other people =E2=80=94 what scientists call being =E2=80=9Cprosocial=E2=80= =9D =E2=80=94 increases your odds of finding a long-term relationship. Thanks, Jay --- Jay Dixit jaydixit.com (646) 355-8001 Jay Dixit On Fri, Mar 27, 2015 at 2:45 PM, Jay Dixit wrote: > Hi everyone, > > I've noticed that when I use quotation marks in conjunction with an em > dash (=E2=80=94), org-export-smart-quotes gets confused and forgets to ac= tivate > smart quotes for the closing quotation mark. > > If my org-mode file contains a sentence like this... > > A [[ > http://spp.sagepub.com/content/early/2015/01/23/1948550614568867.abstract= ][new > study]] published in Psychological and Personality Science has found that > helping other people---what scientists call being "prosocial"---increases > your odds of finding a long-term relationship. > > ...then it exports to HTML like this: > > A new study > published > in Social Psychological and Personality Science has found that helping > other people=E2=80=94what scientists call being =E2=80=9Cprosocial"=E2=80= =94increases your odds of > finding a long-term relationship. > > Note the non-smart closing quotation mark. Does anyone know a fix for > this? > > Thanks! > > Jay > > --- > Jay Dixit > jaydixit.com > (646) 355-8001 > Jay Dixit > > --001a1135293c6a6d6c05124aebb2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
=E2=80=8BHi Nick,

Thanks = for the suggestion. Putting extra spaces in the original solves the smart q= uotes issue, but creates unwanted spaces on either side of the em dash:=C2= =A0

A=C2=A0new study=C2=A0published in Social Psycholog= ical and Personality Science has found that helping other people =E2=80=94 = what scientists call being =E2=80=9Cprosocial=E2=80=9D =E2=80=94 increases = your odds of finding a long-term relationship.

=
Thanks,
Jay




On Fri, Mar 27, 2015 at 2:45 PM, Jay Dixit <= span dir=3D"ltr"><dixit@aya.yale.edu> wrote:
Hi everyone,

I've noticed that when I= use quotation marks in conjunction with an em dash (=E2=80=94),=C2=A0org-export-smart-quotes gets c= onfused and forgets to activate smart quotes for the closing quotation mark= .

If my org-mod= e file contains a sentence like this...

A [[http://spp.sagepub.com/content/early/2015/01/23/194855= 0614568867.abstract][new study]] published in=C2=A0Psychological and Personality Science has found that helping ot= her people---what scientists call being "prosocial"---increases y= our odds of finding a long-term relationship.

...then it exports to HTM= L like this:

A=C2=A0new study=C2=A0published in Social Psychological and Person= ality Science has found that helping other people=E2=80=94what scientists c= all being =E2=80=9Cprosocial"=E2=80=94increases your odds of finding a= long-term relationship.

Note the non-smart closing quotation mark. Does anyone= know a fix for this?=C2=A0

Thanks!

Jay

---
<= div>Jay Dixit=C2=A0
=
Jay Dixit


--001a1135293c6a6d6c05124aebb2--