[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] suggestion for org-emphasis-regexp-components: *U*nited *N*ations

From: Stefan Vollmar
Subject: [O] suggestion for org-emphasis-regexp-components: *U*nited *N*ations
Date: Wed, 05 Sep 2012 10:05:20 +0200


I am using Org-mode 7.9 and found that with a small change in org.el, it is 
then possible to create HTML output corresponding to "*U* nited *N* ations" - 
but without the spaces after the bold initial letters. This kind of feature is 
useful for defining acronyms, also to emphasize syllables or unusual spellings: 
"ye old /e/ church" (without the space before the emphasized "e") and a 
possible solution to "[O] how to create bold initial characters (for explaining 
an acronym)" posted by me on Sep 3.

It is possible to use the same trick that Łukasz Stelmach mentioned in the 
context of "=" markers in 2010: 

> But fear
> not and use unicode. There is
> <U200B>     /xe2/x80/x8b ZERO WIDTH SPACE
> When you put (C-x 8 RET 200b RET) it next to equality signs [...]

In Emacs, the org source on screen then does look like "*U*nited", too, when 
that unicode character has been inserted after the second "*".

I modified org.el, line 3731 like this:

(defcustom org-emphasis-regexp-components
 '(" ​\t('\"{" "- ​\t.,:!?;'\")}\\" " \t\r\n,\"'" "." 1)


(defcustom org-emphasis-regexp-components
 '(" #​\t('\"{" "- #​\t.,:!?;'\")}\\" " \t\r\n,\"'" "." 1)
where "#" is the unicode character <U200B>.

Warm regards,
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleueler Str. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
E-Mail: address@hidden   http://www.nf.mpg.de

Attachment: smime.p7s
Description: S/MIME cryptographic signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]