Re: [O] export entities inside code/verbatim markup?
On Fri, Dec 15, 2017 at 11:28 AM, Eric S Fraga wrote: > On Friday, 15 Dec 2017 at 16:19, Kaushal Modi wrote: > > I believe that Matt wants to render the entities inside the verbatim/code > > markup. > > Ah, I did completely misunderstand his question! Thanks. > > > To do what you want, I would unleash the power of C-x 8 RET. > > I like your suggestion of adding bindings to the C-x 8 map. In general, > however, I find using the tex input method works really well, allowing > me to simply type \to when I want a right arrow. The whole input method > mechanism in Emacs is fantastic. > > Anyway, sorry Matt for misunderstanding your question. > oops sorry I tried to send that last email earlier. I think my question was unclear. And thank you Kaushal! i might even define an abbrev to replace \rarr with the unicode arrow. > eric > > -- > Eric S Fraga via Emacs 27.0.50, Org release_9.1.4-214-ge8b71b >
Re: [O] export entities inside code/verbatim markup?
On Fri, Dec 15, 2017 at 10:48 AM, Eric S Fraga wrote: > On Friday, 15 Dec 2017 at 10:40, Matt Price wrote: > > Of particular value in both Chrome and Firefox is the "Javascript > > Consoles," accessible from the developer tools: ~Tools \rarr Web > Developer > > \rarr Console~ or ~Menu \rarr More Tools \rarr Developer \rarr Console~ > > > > test.html (excluding head, postamble, etc): > > > > Of particular value in both Chrome and Firefox is > > the “Javascript Consoles,” accessible from the developer > > tools: Tools \rarr Web Developer \rarr Console or > > Menu \rarr More Tools \rarr Developer \rarr > > Console > > 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. > > ah, I meant, the \rarr entities are not exported as html arrow entities, but instead as plain text, \rarr. My question was poorly phrased, I think. And yes, I think this is the expected result. It's just that I would like to process the entities on export. > -- > Eric S Fraga via Emacs 27.0.50, Org release_9.1.4-214-ge8b71b >
Re: [O] export entities inside code/verbatim markup?
On Friday, 15 Dec 2017 at 16:19, Kaushal Modi wrote: > I believe that Matt wants to render the entities inside the verbatim/code > markup. Ah, I did completely misunderstand his question! Thanks. > To do what you want, I would unleash the power of C-x 8 RET. I like your suggestion of adding bindings to the C-x 8 map. In general, however, I find using the tex input method works really well, allowing me to simply type \to when I want a right arrow. The whole input method mechanism in Emacs is fantastic. Anyway, sorry Matt for misunderstanding your question. eric -- Eric S Fraga via Emacs 27.0.50, Org release_9.1.4-214-ge8b71b signature.asc Description: PGP signature
Re: [O] export entities inside code/verbatim markup?
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 → will be inserted literally. 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 . = (use-package iso-transl :defer 10 :config (progn ;; Add custom bindings to "C-x 8" map (dolist (binding '( ;; ;; arrows ("" . [?→]) ; rightwards arrow ("" . [?←]) ; leftwards arrow ("". [?↑]) ; upwards arrow ("" . [?↓]) ; downwards arrow ;; )) (define-key iso-transl-ctl-x-8-map (kbd (car binding)) (cdr binding) = With the above code, I just do C-x 8 to insert →. Full code: https://github.com/kaushalmodi/.emacs.d/blob/master/setup-files/setup-unicode.el Hope that helps. -- Kaushal Modi
Re: [O] export entities inside code/verbatim markup?
On Friday, 15 Dec 2017 at 10:40, Matt Price wrote: > Of particular value in both Chrome and Firefox is the "Javascript > Consoles," accessible from the developer tools: ~Tools \rarr Web Developer > \rarr Console~ or ~Menu \rarr More Tools \rarr Developer \rarr Console~ > > test.html (excluding head, postamble, etc): > > Of particular value in both Chrome and Firefox is > the “Javascript Consoles,” accessible from the developer > tools: Tools \rarr Web Developer \rarr Console or > Menu \rarr More Tools \rarr Developer \rarr > Console 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. -- Eric S Fraga via Emacs 27.0.50, Org release_9.1.4-214-ge8b71b signature.asc Description: PGP signature
Re: [O] export entities inside code/verbatim markup?
On Fri, Dec 15, 2017 at 10:03 AM, Eric S Fraga wrote: > On Friday, 15 Dec 2017 at 09:52, Matt Price wrote: > > IIUC, org does not by default export entities contained inside ~code~ and > > =verbatim= markup. > > it does for me... what happens when you try? can you post a small > example? > > test.org: Of particular value in both Chrome and Firefox is the "Javascript Consoles," accessible from the developer tools: ~Tools \rarr Web Developer \rarr Console~ or ~Menu \rarr More Tools \rarr Developer \rarr Console~ test.html (excluding head, postamble, etc): Of particular value in both Chrome and Firefox is the “Javascript Consoles,” accessible from the developer tools: Tools \rarr Web Developer \rarr Console or Menu \rarr More Tools \rarr Developer \rarr Console org-export-filter-entity-functions is nil org-export-with-entities is t org release_9.1.4-206-g4b80c6 emacs 27.0.50 I guess there may be other parts of my setup which are screwed up, but am not sure where else to look? > -- > Eric S Fraga via Emacs 27.0.50, Org release_9.1.4-214-ge8b71b >
Re: [O] export entities inside code/verbatim markup?
On Friday, 15 Dec 2017 at 09:52, Matt Price wrote: > IIUC, org does not by default export entities contained inside ~code~ and > =verbatim= markup. it does for me... what happens when you try? can you post a small example? -- Eric S Fraga via Emacs 27.0.50, Org release_9.1.4-214-ge8b71b signature.asc Description: PGP signature
Re: [O] export entities inside code/verbatim markup?
On Fri, Dec 15, 2017 at 9:52 AM, Matt Price wrote: > IIUC, org does not by default export entities contained inside ~code~ and > =verbatim= markup. Is there any way to get around that? I have lots of > markup like this: > > ~Tools \rarr Web Developer \rarr Console~ > > in various help texts. If there's a way to push this out to markdown or > HTML I'd be very grateful to learn of it! Should I maybe be advising > org-md-verbatim, for instance? Or am I just misusing hte markup here? > > Thank you all! > meant to say, you can find an example of why I use that markup here: https://digitalhistory.github.io/dh-website/tools/setup/#web-browser (thanks to Kaushal for ox-hugo, which makes this possible! site and deploy are still WIP though!) matt >
[O] export entities inside code/verbatim markup?
IIUC, org does not by default export entities contained inside ~code~ and =verbatim= markup. Is there any way to get around that? I have lots of markup like this: ~Tools \rarr Web Developer \rarr Console~ in various help texts. If there's a way to push this out to markdown or HTML I'd be very grateful to learn of it! Should I maybe be advising org-md-verbatim, for instance? Or am I just misusing hte markup here? Thank you all! matt