From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Subject: Re: allow italic quote marks? org-emphasis-regexp-components Date: Thu, 18 Jun 2015 03:19:55 +0000 Message-ID: References: <87ioap46w5.fsf@gmail.com> <87zj3x7mz5.fsf@stevenarntson.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114084eab75e6d0518c248ed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51098) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5QN6-0001pQ-G9 for emacs-orgmode@gnu.org; Wed, 17 Jun 2015 23:20:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5QN5-00017V-5E for emacs-orgmode@gnu.org; Wed, 17 Jun 2015 23:20:08 -0400 Received: from mail-yk0-x22a.google.com ([2607:f8b0:4002:c07::22a]:33191) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5QN4-000166-VX for emacs-orgmode@gnu.org; Wed, 17 Jun 2015 23:20:07 -0400 Received: by ykfr66 with SMTP id r66so56413577ykf.0 for ; Wed, 17 Jun 2015 20:20:06 -0700 (PDT) In-Reply-To: <87zj3x7mz5.fsf@stevenarntson.com> 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: Steven Arntson , emacs-orgmode@gnu.org --001a114084eab75e6d0518c248ed Content-Type: text/plain; charset=UTF-8 The solution is simpler than you think; you simply need to add ZERO WIDTH SPACE unicode char between / and " (beginning) and " and / (end). The default way to do it is C-x 8 RET zero width space RET or C-x 8 RET 200b RET But I need to use this priceless unicode char to escape stuff like this in org-mode and so I have bound "0" in "C-x 8" map to insert this char. Here is how I do it in my init: https://github.com/kaushalmodi/.emacs.d/blob/f3c44e933f45dfdb760540e9f86acc91b55ab94a/setup-files/setup-editing.el#L637 Thus I simply need to do C-x 8 0 to insert the ZERO WIDTH SPACE. To elaborate more, <0> below is where you insert the 200b unicode characters: I would like to see /<0>"these surrounding quotes in italics"<0>/. On Wed, Jun 17, 2015 at 10:46 PM Steven Arntson wrote: > I am not helpful here, but would simply like to add that I would also > love an answer to this, as well as times when italics don't seem to work > around periods and commas, like "and /then,/ well, ..." (which does not > italicize for me on emacs 24.5.1, org 8.2.1). > > Myles English writes: > > > Hello, > > > > Can anyone tell me what to set org-emphasis-regexp-components to in > > order to allow italic quote marks? > > > > i.e. /"like this"/ > > > > I don't understand the documentation and am just not in the mood to > > spend the next hour or so working it out. (That is a rule of thumb for > > me; if it involves a regular expression, it will take at least an hour, > > and three cups of tea.) > > > > Thanks, > > Myles > > > --001a114084eab75e6d0518c248ed Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
The solution is simpler than you think; you simply need to= add ZERO WIDTH SPACE unicode char between / and " (beginning) and &qu= ot; and / (end).

The default way to do it is

C-x 8 RET zero width space RET=C2=A0

or

C-x 8 RET 200b RET

But I nee= d to use this priceless unicode char to escape stuff like this in org-mode = and so I have bound "0" in "C-x 8" map to insert this c= har.
Thus I simply need to do C-x 8 0 to insert the ZERO WIDTH= SPACE.

To elaborate more, <0> below is wher= e you insert the 200b unicode characters:

I would = like to see /<0>"these surrounding quotes in italics"<0&= gt;/.



On Wed, Jun 17, 2015 at 10:46 PM Steven Arntson <= ;steven@stevenarntson.com&g= t; wrote:
I am not helpful here, bu= t would simply like to add that I would also
love an answer to this, as well as times when italics don't seem to wor= k
around periods and commas, like "and /then,/ well, ..." (which do= es not
italicize for me on emacs 24.5.1, org 8.2.1).

Myles English <mylesenglish@gmail.com> writes:

> Hello,
>
> Can anyone tell me what to set org-emphasis-regexp-components to in > order to allow italic quote marks?
>
> i.e. /"like this"/
>
> I don't understand the documentation and am just not in the mood t= o
> spend the next hour or so working it out.=C2=A0 (That is a rule of thu= mb for
> me; if it involves a regular expression, it will take at least an hour= ,
> and three cups of tea.)
>
> Thanks,
> Myles


--001a114084eab75e6d0518c248ed--