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:07:52 +0000 Message-ID: References: <87twqrtou5.fsf@nicolasgoaziou.fr> <87io772n8w.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e013a14ea6d120a052011cbd0 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zd9RV-0005AD-Ax for emacs-orgmode@gnu.org; Sat, 19 Sep 2015 00:08:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zd9RT-0005LZ-U0 for emacs-orgmode@gnu.org; Sat, 19 Sep 2015 00:08:05 -0400 Received: from mail-ob0-x22d.google.com ([2607:f8b0:4003:c01::22d]:36365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zd9RT-0005LR-MV for emacs-orgmode@gnu.org; Sat, 19 Sep 2015 00:08:03 -0400 Received: by obbmp4 with SMTP id mp4so16736727obb.3 for ; Fri, 18 Sep 2015 21:08:03 -0700 (PDT) In-Reply-To: <87io772n8w.fsf@ericabrahamsen.net> 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 --089e013a14ea6d120a052011cbd0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks 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 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 > > > --089e013a14ea6d120a052011cbd0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks for letting me know about org-entities. That is awe= some. I now know how to escape various characters in general, but unfortuna= tely this does not work within verbatim formatting (which makes sense).
Here's a minimum working example:

<= div>=3D=3D=3D=3D=3D

* Escaping =3Dequal=3D si= gn in verbatim formatting.
=3Da\equal{}b+c=3D
** Here&#= 39;s the same but using zero width spaces instead of /org entities/.
<= div>=3Da=3Db+c=3D

* Here I am trying to have doubl= e quotes in verbatim formatting.
=3D\quot{}This is inbetween doub= le quotes\quot{}=3D.
** Here's the same but using zero width = spaces instead of /org entities/.
=3D=E2=80=8B"This is inbet= ween double quotes"=E2=80=8B=3D.

* And here&#= 39;s to escapes asterisks
This is *bold*. But this is \ast{}not b= old\ast{}.
This works!

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

Here's what it looks like when exported= :=C2=A0https://dl.dropboxusercontent.com/u/10985/escape-chars.pdf

On Fri, Sep 18, 2015 at 9= :48 PM Eric Abrahamsen <eric@= ericabrahamsen.net> wrote:
K= aushal 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


--089e013a14ea6d120a052011cbd0--