emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* ~"~ doesn't register as verbatim
@ 2014-02-22 16:06 Oleh
  2014-02-24 17:38 ` Oleh
  0 siblings, 1 reply; 8+ messages in thread
From: Oleh @ 2014-02-22 16:06 UTC (permalink / raw)
  To: org mode

Hi all,

I'm using verbatim markers to export them as <kbd> in HTML.
But ~"~ isn't recognized as verbatim. I've tried fiddling with org-verbatim-re,
but it doesn't update on revert-buffer.

Can someone hep me with this?
Maybe a workaround inline snippet that transforms to <kbd>"</kbd> on
HTML export?

regards,
Oleh

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: ~"~ doesn't register as verbatim
  2014-02-22 16:06 ~"~ doesn't register as verbatim Oleh
@ 2014-02-24 17:38 ` Oleh
  2014-02-25  7:45   ` Alan Schmitt
  0 siblings, 1 reply; 8+ messages in thread
From: Oleh @ 2014-02-24 17:38 UTC (permalink / raw)
  To: org mode

Found the work-around:

@@html:<kbd>"</kbd>@@

will do what I want.

regards,
Oleh

On Sat, Feb 22, 2014 at 5:06 PM, Oleh <ohwoeowho@gmail.com> wrote:
> Hi all,
>
> I'm using verbatim markers to export them as <kbd> in HTML.
> But ~"~ isn't recognized as verbatim. I've tried fiddling with org-verbatim-re,
> but it doesn't update on revert-buffer.
>
> Can someone hep me with this?
> Maybe a workaround inline snippet that transforms to <kbd>"</kbd> on
> HTML export?
>
> regards,
> Oleh

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: ~"~ doesn't register as verbatim
  2014-02-24 17:38 ` Oleh
@ 2014-02-25  7:45   ` Alan Schmitt
  2014-02-25  8:18     ` Sebastien Vauban
  0 siblings, 1 reply; 8+ messages in thread
From: Alan Schmitt @ 2014-02-25  7:45 UTC (permalink / raw)
  To: Oleh; +Cc: org mode

Hello,

Oleh <ohwoeowho@gmail.com> writes:

> Found the work-around:
>
> @@html:<kbd>"</kbd>@@
>
> will do what I want.
>
> regards,
> Oleh
>
> On Sat, Feb 22, 2014 at 5:06 PM, Oleh <ohwoeowho@gmail.com> wrote:
>> Hi all,
>>
>> I'm using verbatim markers to export them as <kbd> in HTML.
>> But ~"~ isn't recognized as verbatim. I've tried fiddling with org-verbatim-re,
>> but it doesn't update on revert-buffer.
>>
>> Can someone hep me with this?
>> Maybe a workaround inline snippet that transforms to <kbd>"</kbd> on
>> HTML export?

I had a similar question recently
(http://thread.gmane.org/gmane.emacs.orgmode/82300). The trick is to
change the variable org-emphasis-regexp-components such that the borders
part no longer include ".

Alan

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: ~"~ doesn't register as verbatim
  2014-02-25  7:45   ` Alan Schmitt
@ 2014-02-25  8:18     ` Sebastien Vauban
  2014-02-25  8:42       ` Oleh
  0 siblings, 1 reply; 8+ messages in thread
From: Sebastien Vauban @ 2014-02-25  8:18 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hello Alan,

Alan Schmitt wrote:
> Oleh <ohwoeowho-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>> On Sat, Feb 22, 2014 at 5:06 PM, Oleh <ohwoeowho-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>>> I'm using verbatim markers to export them as <kbd> in HTML.
>>> But ~"~ isn't recognized as verbatim. I've tried fiddling with org-verbatim-re,
>>> but it doesn't update on revert-buffer.
>>>
>>> Can someone hep me with this?
>>> Maybe a workaround inline snippet that transforms to <kbd>"</kbd> on
>>> HTML export?
>>
>> Found the work-around:
>>
>> @@html:<kbd>"</kbd>@@
>>
>> will do what I want.
>
> I had a similar question recently
> (http://thread.gmane.org/gmane.emacs.orgmode/82300). The trick is to
> change the variable org-emphasis-regexp-components such that the borders
> part no longer include ".

Could you maybe share your customization, then?

Best regards,
  Seb

-- 
Sebastien Vauban

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: ~"~ doesn't register as verbatim
  2014-02-25  8:18     ` Sebastien Vauban
@ 2014-02-25  8:42       ` Oleh
  2014-02-25  9:17         ` Alan Schmitt
  0 siblings, 1 reply; 8+ messages in thread
From: Oleh @ 2014-02-25  8:42 UTC (permalink / raw)
  To: Sebastien Vauban; +Cc: emacs-orgmode

> Hello Alan,
>
> Alan Schmitt wrote:
>> Oleh <ohwoeowho@gmail.com> writes:
>>> On Sat, Feb 22, 2014 at 5:06 PM, Oleh <ohwoeowho@gmail.com> wrote:
>>>> I'm using verbatim markers to export them as <kbd> in HTML.
>>>> But ~"~ isn't recognized as verbatim. I've tried fiddling with org-verbatim-re,
>>>> but it doesn't update on revert-buffer.
>>>>
>>>> Can someone hep me with this?
>>>> Maybe a workaround inline snippet that transforms to <kbd>"</kbd> on
>>>> HTML export?
>>>
>>> Found the work-around:
>>>
>>> @@html:<kbd>"</kbd>@@
>>>
>>> will do what I want.
>>
>> I had a similar question recently
>> (http://thread.gmane.org/gmane.emacs.orgmode/82300). The trick is to
>> change the variable org-emphasis-regexp-components such that the borders
>> part no longer include ".
>
> Could you maybe share your customization, then?
>

I can share it:

    (setcar (nthcdr 2 org-emphasis-regexp-components) " \t\n,'")
    (custom-set-variables `(org-emphasis-alist ',org-emphasis-alist))

regards,
Oleh

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: ~"~ doesn't register as verbatim
  2014-02-25  8:42       ` Oleh
@ 2014-02-25  9:17         ` Alan Schmitt
  2014-02-25  9:20           ` Oleh
  0 siblings, 1 reply; 8+ messages in thread
From: Alan Schmitt @ 2014-02-25  9:17 UTC (permalink / raw)
  To: Oleh; +Cc: Sebastien Vauban, emacs-orgmode

Oleh <ohwoeowho@gmail.com> writes:

>> Could you maybe share your customization, then?

It was clearly not as elegant as this:

> I can share it:
>
>     (setcar (nthcdr 2 org-emphasis-regexp-components) " \t\n,'")
>     (custom-set-variables `(org-emphasis-alist ',org-emphasis-alist))

However I don't understand why the second line is necessary (but when
testing it, I found it necessary).

Alan

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: ~"~ doesn't register as verbatim
  2014-02-25  9:17         ` Alan Schmitt
@ 2014-02-25  9:20           ` Oleh
  2014-02-25  9:33             ` Alan Schmitt
  0 siblings, 1 reply; 8+ messages in thread
From: Oleh @ 2014-02-25  9:20 UTC (permalink / raw)
  To: Alan Schmitt; +Cc: Sebastien Vauban, emacs-orgmode

>>> Could you maybe share your customization, then?
>
> It was clearly not as elegant as this:
>
>> I can share it:
>>
>>     (setcar (nthcdr 2 org-emphasis-regexp-components) " \t\n,'")
>>     (custom-set-variables `(org-emphasis-alist ',org-emphasis-alist))
>
> However I don't understand why the second line is necessary (but when
> testing it, I found it necessary).
>

`org-emphasis-alist` has a :set handler `org-set-emph-re` which will do the job
of setting up the regexps. I don't want to call `org-set-emph-re` directly,
instead I set `org-emphasis-alist` to itself and let the customize interface
call the handler for me.

regards
Oleh

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: ~"~ doesn't register as verbatim
  2014-02-25  9:20           ` Oleh
@ 2014-02-25  9:33             ` Alan Schmitt
  0 siblings, 0 replies; 8+ messages in thread
From: Alan Schmitt @ 2014-02-25  9:33 UTC (permalink / raw)
  To: Oleh; +Cc: Sebastien Vauban, emacs-orgmode

Oleh <ohwoeowho@gmail.com> writes:

>>>     (setcar (nthcdr 2 org-emphasis-regexp-components) " \t\n,'")
>>>     (custom-set-variables `(org-emphasis-alist ',org-emphasis-alist))
>>
>> However I don't understand why the second line is necessary (but when
>> testing it, I found it necessary).
>>
>
> `org-emphasis-alist` has a :set handler `org-set-emph-re` which will do the job
> of setting up the regexps. I don't want to call `org-set-emph-re` directly,
> instead I set `org-emphasis-alist` to itself and let the customize interface
> call the handler for me.

Quite interesting! Thanks a lot for the very clear explanation.

Alan

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-02-25  9:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-22 16:06 ~"~ doesn't register as verbatim Oleh
2014-02-24 17:38 ` Oleh
2014-02-25  7:45   ` Alan Schmitt
2014-02-25  8:18     ` Sebastien Vauban
2014-02-25  8:42       ` Oleh
2014-02-25  9:17         ` Alan Schmitt
2014-02-25  9:20           ` Oleh
2014-02-25  9:33             ` Alan Schmitt

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).