From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: export entities inside code/verbatim markup? Date: Fri, 15 Dec 2017 16:19:42 +0000 Message-ID: References: <87tvws11ao.fsf@gmail.com> <874los0z79.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c1a2d6cd6bc4b0560635e25" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40568) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePsiJ-0003n0-1f for emacs-orgmode@gnu.org; Fri, 15 Dec 2017 11:19:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePsiH-0000W0-Rg for emacs-orgmode@gnu.org; Fri, 15 Dec 2017 11:19:55 -0500 Received: from mail-yb0-x22e.google.com ([2607:f8b0:4002:c09::22e]:46062) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ePsiH-0000Tr-LE for emacs-orgmode@gnu.org; Fri, 15 Dec 2017 11:19:53 -0500 Received: by mail-yb0-x22e.google.com with SMTP id r4so6443138ybd.12 for ; Fri, 15 Dec 2017 08:19:53 -0800 (PST) In-Reply-To: <874los0z79.fsf@gmail.com> 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: Matt Price , emacs-org list , Eric S Fraga --94eb2c1a2d6cd6bc4b0560635e25 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Dec 15, 2017 at 10:49 AM Eric S Fraga wrote: > On Friday, 15 Dec 2017 at 10:40, Matt Price wrote: > > tools: Tools \rarr Web Developer \rarr Console or > > So what is the problem? The text in ~...~ markup *is* being exported to > HTML. What did you expect to see instead? I am confused and maybe > misunderstood what you were asking. > I believe that Matt wants to render the entities inside the verbatim/code markup. @Matt: Verbatim/markup blocks simply keep everything inside.. verbatim. Because then how would some literally print \rarr if they wanted too.. Example: What if someone wanted to export: "Type ~\rarr~ to export \rarr". It would be highly confusing if entities got interpreted in verbatim too :) To do what you want, I would unleash the power of C-x 8 RET. If you want to include the right arrow in the verbatim blocks, instead of typing "\rarr", do C-x 8 RET, type "right arrow" and hit return again.. \rarr will be inserted in the buffer.. I mean =E2=86=92 will be inserted li= terally. I like inserting verbatim arrows too. So after I got tired of C-x 8 RET "right arrow", I just bound the key binding in the C-x 8 map to directly insert . =3D=3D=3D=3D=3D (use-package iso-transl :defer 10 :config (progn ;; Add custom bindings to "C-x 8" map (dolist (binding '( ;; ;; arrows ("" . [?=E2=86=92]) ; rightwards arrow ("" . [?=E2=86=90]) ; leftwards arrow ("" . [?=E2=86=91]) ; upwards arrow ("" . [?=E2=86=93]) ; downwards arrow ;; )) (define-key iso-transl-ctl-x-8-map (kbd (car binding)) (cdr binding))))) =3D=3D=3D=3D=3D With the above code, I just do C-x 8 to insert =E2=86=92. Full code: https://github.com/kaushalmodi/.emacs.d/blob/master/setup-files/setup-unico= de.el Hope that helps. --=20 Kaushal Modi --94eb2c1a2d6cd6bc4b0560635e25 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Dec 15= , 2017 at 10:49 AM Eric S Fraga <e= sflists@gmail.com> wrote:
On= Friday, 15 Dec 2017 at 10:40, Matt Price wrote:
> tools: <code>= ;Tools \rarr Web Developer \rarr Console</code> or

So what is the problem?=C2=A0 The text in ~...~ markup *is* being exported = to
HTML.=C2=A0 What did you expect to see instead?=C2=A0 I am confused and may= be
misunderstood what you were asking.

I b= elieve that Matt wants to render the entities inside the verbatim/code mark= up.

@Matt: Verbatim/markup blocks simply keep ever= ything inside.. verbatim. Because then how would some literally print \rarr= if they wanted too.. Example: What if someone wanted to export: "Type= ~\rarr~ to export \rarr". It would be highly confusing if entities go= t interpreted in verbatim too :)

To do what you wa= nt, I would unleash the power of C-x 8 RET.

If you= want to include the right arrow in the verbatim blocks, instead of typing = "\rarr", do C-x 8 RET, type "right arrow" and hit retur= n again.. \rarr will be inserted in the buffer.. I mean =E2=86=92 will be i= nserted literally.

I like inserting verbatim arrow= s too. So after I got tired of C-x 8 RET "right arrow", I just bo= und the <right> key binding in the C-x 8 map to directly insert .

=3D=3D=3D=3D=3D
(use-package iso-transl=
=C2=A0 :defer 10
=C2=A0 :config
=C2=A0 (progn
=C2=A0=C2=A0=C2= =A0 ;; Add custom bindings to "C-x 8" map
=C2=A0=C2=A0=C2=A0 (= dolist (binding
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 '(
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;; <snip>=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;; arrows
=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 ("<right>" . [?=E2=86=92]) ; rightwards arrow
=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 ("<left>"=C2=A0 . [?=E2=86=90]) ; leftwards arrow=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 ("<up>"=C2=A0=C2=A0=C2=A0 . [?=E2=86=91]) ; up= wards arrow
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 ("<down>"=C2=A0 . [?=E2=86=93]) ; = downwards arrow
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;; <snip>
=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ))
=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 (define-key iso-transl-ctl-x-8-map (kbd (car bindi= ng)) (cdr binding)))))
=3D=3D=3D=3D=3D

With the above code, I just do C-x 8 <right> to insert =E2=86=92.<= /div>


Hope that helps.
-- =

Kaushal Modi

--94eb2c1a2d6cd6bc4b0560635e25--