From: Carsten Dominik <carsten.dominik@gmail.com>
To: Baoqiu Cui <cbaoqiu@yahoo.com>, Daniel Clemente <n142857@gmail.com>
Cc: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: Re: Exclamation mark not a postmatch ?
Date: Mon, 23 Mar 2009 20:50:45 +0100 [thread overview]
Message-ID: <DAF55F53-8E4A-44D3-97BC-BC6589595A1A@gmail.com> (raw)
In-Reply-To: <byceiwot91s.fsf@muchbodyking-lm.gateway.2wire.net>
On Mar 23, 2009, at 6:59 PM, Baoqiu Cui wrote:
> Daniel Clemente <n142857@gmail.com> 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
>>> 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
> 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 „initial
>> quotation sign“ and „final quotation sign“ which are generic
>> 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: « „ 「 ‘ “ ¿ ¡ 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 „Mastering regular expressions“ at which
>> level
>> are „Unicode properties“ 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
next prev parent reply other threads:[~2009-03-23 19:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-23 7:24 Exclamation mark not a postmatch ? Baoqiu Cui
2009-03-23 11:36 ` Daniel Clemente
2009-03-23 17:59 ` Baoqiu Cui
2009-03-23 19:50 ` Carsten Dominik [this message]
2009-03-23 13:47 ` Carsten Dominik
2009-03-23 17:59 ` Baoqiu Cui
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DAF55F53-8E4A-44D3-97BC-BC6589595A1A@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=cbaoqiu@yahoo.com \
--cc=emacs-orgmode@gnu.org \
--cc=n142857@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).