Re: [O] Show presence of zero width spaces using overlay

2016-04-19 Thread timor
Hello Nicolas >> In plain-text parts of org documents (i.e. that would be exported as >> the content of attributes in html, or to plain text paragraphs in >> Markdown, etc.), there shall be a way to treat strings in the same way >> as the surrounding plain text, which would otherwise be handled

Re: [O] Show presence of zero width spaces using overlay

2016-04-19 Thread Nicolas Goaziou
timor writes: > Maybe it is viable to start defining and implementing some obvious > cases, which can later be generalized into a rule, so that code has > not to be rewritten on every level at once. I'd rather define some specifications right from the beginning, i.e., what,

Re: [O] Show presence of zero width spaces using overlay

2016-04-19 Thread timor
Hello Nicolas, 2016-04-19 12:16 GMT+02:00 Nicolas Goaziou : > Actually, this is not really a specification of the problem, which is > quite tricky. The list of characters is but one part of it. Another part > is where escaping should be allowed. Note that allowing to

Re: [O] Show presence of zero width spaces using overlay

2016-04-19 Thread Nicolas Goaziou
Hello, timor writes: > Specification-wise, I cannot think of anything other than > > "Use to prevent any special characters from formatting text." > > I guess one would have to define the list of characters which can be escaped. > I also don't know if backslash is the

Re: [O] Show presence of zero width spaces using overlay

2016-04-19 Thread timor
Hello Nicolas, Sorry for not replying earlier. If my comments don't matter anymore, please ignore. Specification-wise, I cannot think of anything other than "Use to prevent any special characters from formatting text." I guess one would have to define the list of characters which can be

Re: [O] Show presence of zero width spaces using overlay

2015-09-27 Thread Nicolas Goaziou
Hello, timor writes: > I am wondering why there is no simple backslash-escaping of org-mode > syntax? I think a backslash escaping is needed. However, I don't think it is going to be that simple. Do you have some specifications in mind? Regards, -- Nicolas Goaziou

Re: [O] Show presence of zero width spaces using overlay

2015-09-22 Thread timor
Hi, (this is my first post on this list, to a message that I don't have in my inbox, so I don't know if it will thread correctly) 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

Re: [O] Show presence of zero width spaces using overlay

2015-09-19 Thread Kaushal Modi
I got really interested in org-entities (to deal with the case I mentioned in the first email in this thread like \ast{}shrug\ast{}) and came up with this: = (defun modi/org-entity-get-name (char) "Return the entity name for CHAR. For example, return \"ast\" for *." (let ((ll (append

Re: [O] Show presence of zero width spaces using overlay

2015-09-19 Thread Eric Abrahamsen
Kaushal Modi writes: > I got really interested in org-entities (to deal with the case I > mentioned in the first email in this thread like \ast{}shrug\ast{}) > and came up with this: [...] > Question to the list is: Does this advise mask any useful > functionality of

Re: [O] Show presence of zero width spaces using overlay

2015-09-19 Thread Nicolas Goaziou
Kaushal Modi writes: > 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

Re: [O] Show presence of zero width spaces using overlay

2015-09-19 Thread Kaushal Modi
That's correct. That code might be an overkill for people who never needed org entities. I thought that I have never used `C-u` before plain single characters, so why not make use of that in org mode. With that code in place, inserting an org entity is now C-u away :) If I happen to need org

Re: [O] Show presence of zero width spaces using overlay

2015-09-18 Thread Eric Abrahamsen
Kaushal Modi writes: > 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

Re: [O] Show presence of zero width spaces using overlay

2015-09-18 Thread Kaushal Modi
Here's the MWE once again with proper indication ([ZWS]) of where you need to insert the zero width space char. = * Escaping =equal= sign in verbatim formatting. =a\equal{}b+c= ** Here's the same but using zero width spaces instead of /org entities/. =a=[ZWS]b+c= * Here I am trying to have

Re: [O] Show presence of zero width spaces using overlay

2015-09-18 Thread Kaushal Modi
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: = * Escaping =equal= sign in verbatim formatting.

Re: [O] Show presence of zero width spaces using overlay

2015-09-18 Thread Nicolas Goaziou
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: >

Re: [O] Show presence of zero width spaces using overlay

2015-09-18 Thread Kaushal Modi
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