From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: Show presence of zero width spaces using overlay Date: Fri, 18 Sep 2015 22:39:32 +0000 Message-ID: References: <87twqrtou5.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b33d3183756c905200d3520 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46475) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zd4Jl-0008Aj-2d for emacs-orgmode@gnu.org; Fri, 18 Sep 2015 18:39:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zd4Jj-00055z-Ou for emacs-orgmode@gnu.org; Fri, 18 Sep 2015 18:39:45 -0400 Received: from mail-ob0-x22d.google.com ([2607:f8b0:4003:c01::22d]:36487) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zd4Jj-00055v-Ie for emacs-orgmode@gnu.org; Fri, 18 Sep 2015 18:39:43 -0400 Received: by obbmp4 with SMTP id mp4so13677612obb.3 for ; Fri, 18 Sep 2015 15:39:43 -0700 (PDT) In-Reply-To: <87twqrtou5.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou , emacs-org list --047d7b33d3183756c905200d3520 Content-Type: text/plain; charset=UTF-8 My most common uses are escaping double quotes (") and equals (=) within org verbatim blocks (=VERBATIM=) Examples: 1. =var=[ZWS]val= 2. =[ZWS]"something"[ZWS]= 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 = in the above 2 examples? On Fri, Sep 18, 2015 at 5:09 PM Nicolas Goaziou wrote: > Hello, > > Kaushal Modi writes: > > > The suggestion to use zero width spaces to sort of "escape" stuff in org > > mode has come up many times. I have started using it a lot and suggest > that > > to other people now. > > > > Here is one such recent QnA on emacs.SE: > > http://emacs.stackexchange.com/a/16702/115 > > > > The OP of that question made a valid point that while using zero width > > spaces is convenient, it is not apparent where it has been used in the > > document. > > > > To resolve that, I am requesting a feature. > > > > Can the zero width spaces be optionally represented with something like a > > single space overlay with a colored background (like purple)? > > > > Making this officially part of org-mode will probably make more people > make > > use of it. > > > > .. Or should people use zero width spaces? > > Entities can be used to escape most Org syntax, e.g. > > \ast{}shrug\ast > > I see no compelling reason to treat zero width spaces specially. > > > Regards, > > -- > Nicolas Goaziou > --047d7b33d3183756c905200d3520 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
My most common uses are escaping double quotes (") an= d equals (=3D) within org verbatim blocks (=3DVERBATIM=3D)

Examples:

1. =3Dvar=3D[ZWS]val=3D
2. = =3D[ZWS]"something"[ZWS]=3D

Here [ZWS] i= s the 0x200b zero width space unicode char.

I foun= d [ZWS] useful as a generic escape char for org mode. There are few other c= ases where this has been useful, but I can't recall right now.

In any case, what would be the recommended way to escape &= quot; and =3D in the above 2 examples?

=
On Fri, Sep 18, 2015 at 5:09 PM Nicolas Goaziou <mail@nicolasgoaziou.f= r> wrote:
Hello,

Kaushal Modi <kaushal.modi@gmail.com> writes:

> The suggestion to use zero width spaces to sort of "escape" = stuff in org
> mode has come up many times. I have started using it a lot and suggest= that
> to other people now.
>
> Here is one such recent QnA on emacs.SE:
> http://emacs.stackexchange.com/a/16702/115
>
> The OP of that question made a valid point that while using zero width=
> spaces is convenient, it is not apparent where it has been used in the=
> document.
>
> To resolve that, I am requesting a feature.
>
> Can the zero width spaces be optionally represented with something lik= e a
> single space overlay with a colored background (like purple)?
>
> Making this officially part of org-mode will probably make more people= make
> use of it.
>
> .. Or should people use zero width spaces?

Entities can be used to escape most Org syntax, e.g.

=C2=A0 \ast{}shrug\ast

I see no compelling reason to treat zero width spaces specially.


Regards,

--
Nicolas Goaziou
--047d7b33d3183756c905200d3520--