From mboxrd@z Thu Jan 1 00:00:00 1970 From: William Henney Subject: Re: force italic mode? Date: Fri, 18 Nov 2016 18:39:19 -0600 Message-ID: References: <87bmxet61h.fsf@ericabrahamsen.net> <874m36t4w9.fsf@ericabrahamsen.net> <87mvgwn8a2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114153963c3e9605419ca770 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7tgg-0001QR-0M for emacs-orgmode@gnu.org; Fri, 18 Nov 2016 19:39:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7tge-000741-Q0 for emacs-orgmode@gnu.org; Fri, 18 Nov 2016 19:39:22 -0500 Received: from mail-qk0-x229.google.com ([2607:f8b0:400d:c09::229]:34188) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c7tge-00073v-Jx for emacs-orgmode@gnu.org; Fri, 18 Nov 2016 19:39:20 -0500 Received: by mail-qk0-x229.google.com with SMTP id q130so285461177qke.1 for ; Fri, 18 Nov 2016 16:39:20 -0800 (PST) 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" To: hymie! Cc: emacs-org --001a114153963c3e9605419ca770 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, Nov 18, 2016 at 12:31 PM, hymie! wrote: > In our last episode, the evil Dr. Lacto had captured our hero, > Aaron Ecay , who said: > > You can accomplish this by using an entity that expands to nothing. Th= e > > closest entry in org-entities is \zwj (zero width word-joining space): > > > > foo\zwj{}/bar/\zwj{}baz > > This doesn't work for me. :( > > It works to the left of the zwj, such as > =3Dfoo=3D\zwj{}bar > > ...but not to the right as you did above. > > It's hard to read the value I have for org-emphasis-regexp-components > but it looks like } is in there, so I guess it should be working? > > No, it is only in the POSTMATCH part. If you add it to the PREMATCH part too, then your example would work. But I think it would be neater to put a pair of literal "zero width space" characters in your file. I managed to get this to work by doing: (setq org-emphasis-regexp-components '("[:space:][:cntrl:]('\"{}" "[:space:][:cntrl:]-.,:!?;'\")}\\[" "[:space:][:cntrl:]" "." 1)) This means you can write "fuzzy=E2=80=8B/wuzzy/=E2=80=8Bwuzzabear" where th= ere is a 0x200B character (ZERO WIDTH SPACE) either side of /wuzzy/ (hopefully this will survive in the email). I inserted the characters with "C-x 8 RET ...". In case you prefer to have something more visible in the source file, I also made it so you can use any ascii control character to bracket the delimiters. For instance, the NULL character: "fuzzy^@/wuzzy/^@bear". Note that those are not real NULLs, but are how they appear in the emacs buffer. You can insert them with "C-q 0 RET". Will > --hymie! http://lactose.homelinux.net/~hymie > hymie@lactose.homelinux.net > > > --=20 Dr William Henney, Instituto de Radioastronom=C3=ADa y Astrof=C3=ADsica, Universidad Nacional Aut=C3=B3noma de M=C3=A9xico, Campus Morelia --001a114153963c3e9605419ca770 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Fri, Nov 18, 2016 at 12:31 PM, hymie! <hymie= @lactose.homelinux.net> wrote:
=
In our last episode, the evil D= r. Lacto had captured our hero,
=C2=A0 Aaron Ecay <aaronecay@gmail.com>, who said:
> You can accomplish this by using an entity that expands to nothing.=C2= =A0 The
> closest entry in org-entities is \zwj (zero width word-joining space):=
>
> foo\zwj{}/bar/\zwj{}baz

This doesn't work for me. :(

It works to the left of the zwj, such as
=3Dfoo=3D\zwj{}bar

...but not to the right as you did above.

It's hard to read the value I have for org-emphasis-regexp-components but it looks like } is in there, so I guess it should be working?


No, it is only in the POSTMATCH part. = If you add it to the PREMATCH part too, then your example would work.=C2=A0= But I think it would be neater to put a pair of literal "zero width s= pace" characters in your file.=C2=A0 I managed to get this to work by = doing:=C2=A0

(setq org-emphasis-regexp-components = '("[:space:][:cntrl:]('\"{}" "[:space:][:cntrl:= ]-.,:!?;'\")}\\[" "[:space:][:cntrl:]" "."= ; 1))

This means you can write "fuzzy=E2= =80=8B/wuzzy/=E2=80=8Bwuzzabear" where there is a=C2=A00x200B characte= r (ZERO WIDTH SPACE) either side of /wuzzy/ (hopefully this will survive in= the email).=C2=A0 I inserted the characters with "C-x 8 RET ..."= .=C2=A0

In case you prefer to have something more = visible in the source file, I also made it so you can use any ascii control= character to bracket the delimiters.=C2=A0 For instance, the NULL characte= r: "fuzzy^@/wuzzy/^@bear".=C2=A0 Note that those are not real NUL= Ls, but are how they appear in the emacs buffer.=C2=A0 You can insert them = with "C-q 0 RET". =C2=A0


= Will




=

=C2=A0
--hymie!=C2=A0 =C2=A0 http://lactose.homelinux.net/~hymie<= /a>=C2=A0 =C2=A0 hymie@lacto= se.homelinux.net





--

=C2=A0 Dr William Henney, In= stituto de Radioastronom=C3=ADa y Astrof=C3=ADsica,
=C2=A0 Universidad N= acional Aut=C3=B3noma de M=C3=A9xico, Campus Morelia
--001a114153963c3e9605419ca770--