From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Matthias Subject: Default emphasis regexp problems Date: Fri, 8 Jun 2012 02:06:56 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ScojH-0002zz-7p for emacs-orgmode@gnu.org; Thu, 07 Jun 2012 22:15:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ScojF-0003TZ-2n for emacs-orgmode@gnu.org; Thu, 07 Jun 2012 22:15:10 -0400 Received: from plane.gmane.org ([80.91.229.3]:48086) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ScojE-0003T4-Rz for emacs-orgmode@gnu.org; Thu, 07 Jun 2012 22:15:08 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ScojA-0007gV-AG for emacs-orgmode@gnu.org; Fri, 08 Jun 2012 04:15:04 +0200 Received: from n058152184192.netvigator.com ([58.152.184.192]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Jun 2012 04:15:04 +0200 Received: from matthias by n058152184192.netvigator.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Jun 2012 04:15:04 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, the following cases fail to display italics correctly in org-mode 7.4: ----------------------------- snip ----------------------------- 1. The user would also certainly think that “it’s all actually happening,” simply because it /would be happening,/ albeit in an environment that is different from the physical one his body is located in. We seem to have much less difficulty than Jones acknowledging that one is able to perform such activities in a /shared/ environment. 2. Obviously, cooking a dish presupposes that there /is/ a dish to be cooked. Therefore, a crucial question in evaluating the possibility of cooking a dish would be /whether there is food inside the kitchen,/ which the user could process without leaving the virtual world. If this were the case, and we would still uphold Jones’s judgement that cooking in a virtual world is impossible, then indeed we would be confronted with something or other. If, on the other hand, the impossibility of cooking a dish is due to the fact that there simply /are/ no dishes inside that environment, then Jones’s criticism does not apply to virtual environments at all. 3. This is another way in which we can understand Jones’s remark about there being “no way [the dish] /is./” This is not an uncommon position. ----------------------------- snip ----------------------------- Including punctuation in italics passages is (as I understand it) preferred from a typography point of view, but it breaks org-mode's emphasis regexp. An ad-hoc adjustment of the default Emphasis Regexp Components solves the problem: ------------------------------ fix begin ------------------------ Org Emphasis Regexp Components: Hide Value Allowed chars in pre : " ('\"{" Allowed chars in post : "- .,:!?;'\")}\\”" Forbidden chars in border : " ^M\n'" Regexp for body : "." ------------------------------ fix end -------------------------- As far as I can see, the change does not break anything, but I am not sure, because I don't really understand the rationale behind all the choices in the original regexp. Perhaps its author can have a look at my changes? I suggest that the default be changed to fix the above problems, since the normal user cannot be expected to fix the regexp himself. Thanks! A.M.