From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: Show presence of zero width spaces using overlay Date: Sat, 19 Sep 2015 04:11:24 +0000 Message-ID: References: <87twqrtou5.fsf@nicolasgoaziou.fr> <87io772n8w.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c2ef9afb0c4e052011d76e Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zd9Ut-0006FM-HD for emacs-orgmode@gnu.org; Sat, 19 Sep 2015 00:11:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zd9Us-0006qt-DE for emacs-orgmode@gnu.org; Sat, 19 Sep 2015 00:11:35 -0400 Received: from mail-ob0-x229.google.com ([2607:f8b0:4003:c01::229]:33771) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zd9Us-0006qp-7F for emacs-orgmode@gnu.org; Sat, 19 Sep 2015 00:11:34 -0400 Received: by obbbh8 with SMTP id bh8so51217258obb.0 for ; Fri, 18 Sep 2015 21:11:33 -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: Eric Abrahamsen , emacs-orgmode@gnu.org --001a11c2ef9afb0c4e052011d76e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Here's the MWE once again with proper indication ([ZWS]) of where you need to insert the zero width space char. =3D=3D=3D=3D=3D * Escaping =3Dequal=3D sign in verbatim formatting. =3Da\equal{}b+c=3D ** Here's the same but using zero width spaces instead of /org entities/. =3Da=3D[ZWS]b+c=3D * Here I am trying to have double quotes in verbatim formatting. =3D\quot{}This is inbetween double quotes\quot{}=3D. ** Here's the same but using zero width spaces instead of /org entities/. =3D[ZWS]"This is inbetween double quotes"[ZWS]=3D. * And here's to escapes asterisks This is *bold*. But this is \ast{}not bold\ast{}. This works! =3D=3D=3D=3D=3D On Sat, Sep 19, 2015 at 12:07 AM Kaushal Modi wrote: > Thanks for letting me know about org-entities. That is awesome. I now kno= w > how to escape various characters in general, but unfortunately this does > not work within verbatim formatting (which makes sense). > > Here's a minimum working example: > > =3D=3D=3D=3D=3D > > * Escaping =3Dequal=3D sign in verbatim formatting. > =3Da\equal{}b+c=3D > ** Here's the same but using zero width spaces instead of /org entities/. > =3Da=3Db+c=3D > > * Here I am trying to have double quotes in verbatim formatting. > =3D\quot{}This is inbetween double quotes\quot{}=3D. > ** Here's the same but using zero width spaces instead of /org entities/. > =3D=E2=80=8B"This is inbetween double quotes"=E2=80=8B=3D. > > * And here's to escapes asterisks > This is *bold*. But this is \ast{}not bold\ast{}. > This works! > > =3D=3D=3D=3D=3D > > Here's what it looks like when exported: > https://dl.dropboxusercontent.com/u/10985/escape-chars.pdf > > On Fri, Sep 18, 2015 at 9:48 PM Eric Abrahamsen > wrote: > >> Kaushal Modi writes: >> >> > My most common uses are escaping double quotes (") and equals (=3D) >> > within org verbatim blocks (=3DVERBATIM=3D) >> > >> > Examples: >> > >> > 1. =3Dvar=3D[ZWS]val=3D >> > 2. =3D[ZWS]"something"[ZWS]=3D >> > >> > Here [ZWS] is the 0x200b zero width space unicode char. >> > >> > I found [ZWS] useful as a generic escape char for org mode. There are >> > few other cases where this has been useful, but I can't recall right >> > now. >> > >> > In any case, what would be the recommended way to escape " and =3D in >> > the above 2 examples? >> >> Check out the variable `org-entities' for all the replaceable escape >> codes. It's got quotes and equal! >> >> E >> >> >> --001a11c2ef9afb0c4e052011d76e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Here's the MWE once again with proper indication ([ZWS= ]) of where you need to insert the zero width space char.

=3D=3D=3D=3D=3D

* Escaping =3Dequal=3D= sign in verbatim formatting.
=3Da\equal{}b+c=3D
** Her= e's the same but using zero width spaces instead of /org entities/.
=3Da=3D[ZWS]b+c=3D

* Here I am trying to ha= ve double quotes in verbatim formatting.
=3D\quot{}This is inbetw= een double quotes\quot{}=3D.
** Here's the same but using zer= o width spaces instead of /org entities/.
=3D[ZWS]"This is inbet= ween double quotes"[ZWS]= =3D.

* And = here's to escapes asterisks
This is *bold*. But this is \ast{= }not bold\ast{}.
This works!

=3D= =3D=3D=3D=3D



On Sat, Sep 19, 2015 at 12:07 AM Kaushal = Modi <kaushal.modi@gmail.com> wrote:
Than= ks for letting me know about org-entities. That is awesome. I now know how = to escape various characters in general, but unfortunately this does not wo= rk within verbatim formatting (which makes sense).

Here&= #39;s a minimum working example:

=3D=3D=3D=3D=3D

* Escaping =3Dequal=3D sign in verbatim format= ting.
=3Da\equal{}b+c=3D
** Here's the same but usi= ng zero width spaces instead of /org entities/.
=3Da=3Db+c=3D

* Here I am trying to have double quotes in verbatim = formatting.
=3D\quot{}This is inbetween double quotes\quot{}=3D.<= /div>
** Here's the same but using zero width spaces instead of /or= g entities/.
=3D=E2=80=8B"This is inbetween double quotes&qu= ot;=E2=80=8B=3D.

* And here's to escapes aster= isks
This is *bold*. But this is \ast{}not bold\ast{}.
= This works!

=3D=3D=3D=3D=3D
On Fri, Sep 18, 2015 at 9:48 P= M Eric Abrahamsen <eric@ericabrahamsen.net> wrote:
Kaushal Modi <kaushal.modi@gmail.com> writes:

> My most common uses are escaping double quotes (") and equals (= =3D)
> within org verbatim blocks (=3DVERBATIM=3D)
>
> Examples:
>
> 1. =3Dvar=3D[ZWS]val=3D
> 2. =3D[ZWS]"something"[ZWS]=3D
>
> Here [ZWS] is the 0x200b zero width space unicode char.
>
> I found [ZWS] useful as a generic escape char for org mode. There are<= br> > few other cases where this has been useful, but I can't recall rig= ht
> now.
>
> In any case, what would be the recommended way to escape " and = =3D in
> the above 2 examples?

Check out the variable `org-entities' for all the replaceable escape codes. It's got quotes and equal!

E


--001a11c2ef9afb0c4e052011d76e--