From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Exclamation mark not a postmatch ? Date: Mon, 23 Mar 2009 20:50:45 +0100 Message-ID: References: <87eiwolbca.fsf@CPU107.opentrends.net> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LlqAg-0001Gp-RE for emacs-orgmode@gnu.org; Mon, 23 Mar 2009 15:50:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LlqAb-0001BF-CT for emacs-orgmode@gnu.org; Mon, 23 Mar 2009 15:50:53 -0400 Received: from [199.232.76.173] (port=40271 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LlqAb-0001Aw-66 for emacs-orgmode@gnu.org; Mon, 23 Mar 2009 15:50:49 -0400 Received: from ey-out-1920.google.com ([74.125.78.150]:47510) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LlqAa-0005ba-LE for emacs-orgmode@gnu.org; Mon, 23 Mar 2009 15:50:48 -0400 Received: by ey-out-1920.google.com with SMTP id 13so337398eye.24 for ; Mon, 23 Mar 2009 12:50:47 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Baoqiu Cui , Daniel Clemente Cc: emacs-orgmode Mailinglist On Mar 23, 2009, at 6:59 PM, Baoqiu Cui wrote: > Daniel Clemente writes: > >> El dl, mar 23 2009, Baoqiu Cui va escriure: >> >>> Am I missing anything (or do I have to customize variable >>> org-emphasis-regexp-components to support this)? I tried to =20 >>> search the >>> mailing list archive about this, but could not find anything. >>> >> I asked a similar thing but for quotations: >> http://www.mail-archive.com/emacs-orgmode@gnu.org/msg04267.html > > Yes, I read about that thread. The problem you reported has something > to do with Unicode support in Org mode, and Carsten was trying to =20 > limit > Org-mode in plain ASCII characters to avoid things becoming messier. > > The current way of explicitly including the supported characters is > safer and cleaner, at least before Org-mode is enhanced to cover more > international languages. Let me clarify: Org-mode should work fine with files containing text in any encoding, including Asian languages and whatnot. At least this is what I aim for. What you are referring to was a post where I said that I want the basic syntax like todo keywords, tags, list bullets etc to be ASCII as much as possible. I would not mind to include a general class of open-quote and close-quote characters into the character class in the emphasis regular expression. However, as far as I know, this is not possible. Syntax classes can do what Daniel wants, but only partially. However, syntax classes cannot be used in regular expressions. There are a few exceptions like [:digit:], but quotes and parenthesis are not supported, and none of these special [:classes:] are available in XEmacs. I have read mastering regular expressions, and yes, in Perl, syntax classes can be used in regular expression character classes. Not so in Emacs - unless something has changed here. - Carsten > > Baoqiu > >> I think there are regular expressions in Emacs for =E2=80=9Einitial >> quotation sign=E2=80=9C and =E2=80=9Efinal quotation sign=E2=80=9C = which are generic =20 >> and >> work for all possible signs. Since Unicode characters are classified >> and described, this generic detection should be possible without >> having to list all possible characters explicitly. There are many, >> for instance: =C2=AB =E2=80=9E =E3=80=8C =E2=80=98 =E2=80=9C =C2=BF = =C2=A1 etc. >> >> \s. in a regular expression already detects some punctuation >> characters (but not all). This or a better regexp could be part of >> org-emphasis-regexp-components >> >> I should in the book =E2=80=9EMastering regular expressions=E2=80=9C = at which =20 >> level >> are =E2=80=9EUnicode properties=E2=80=9C implemented in Emacs, and = how to access >> them. >> >> >> -- Daniel > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode