From mboxrd@z Thu Jan 1 00:00:00 1970 From: Betty Subject: How to stop Org mode from assuming non-Latin characters after "[[link]]" as part of the link? Date: Fri, 17 Aug 2012 00:01:10 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T22Vz-0004hi-2R for emacs-orgmode@gnu.org; Thu, 16 Aug 2012 12:01:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T22Vr-00022n-DA for emacs-orgmode@gnu.org; Thu, 16 Aug 2012 12:01:42 -0400 Received: from mail-lpp01m010-f41.google.com ([209.85.215.41]:50744) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T22Vr-00022R-29 for emacs-orgmode@gnu.org; Thu, 16 Aug 2012 12:01:35 -0400 Received: by lahd3 with SMTP id d3so1604371lah.0 for ; Thu, 16 Aug 2012 09:01:32 -0700 (PDT) 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 If I don't put a space after a URL, Org always assumes that all characters after the link are part of the link. For example, if I write [[http://example.com]]asdf Org will think the URL is "http://example.com]]asdf" while it should be "http://example.com". In English there is usually a space after each word (including links) anyway, so that might not be a big issue. But what about non-Latin languages? For instance, in Chinese, we don't use spaces to delimit words, and I really don't want to deteriorate the Chinese language by adding extra spaces just to make the links work properly. The result is, If I put a URL in and don't add an extra space after it, Org will think all the (Chinese) characters I enter after the URL is part of the link, until the end of paragraph where I press RET. Well, I know that "]" is a valid URL character, which makes things a bit tricky. But it is very rare that a URL should contain both "]]" and non-Latin characters immediately following the "]]". It is a safer bet to assume the URL is just the part before "]]". On the rare occasions when the URL does contain "]]" followed by non-Latin characters, I'm willing to take the risk of breaking it. In sum, I want Org to take only stuff inside the "[[]]" brackets as the URL, nothing after. Is there a place where I can configure this? Thank you for reading this and for any help you might provide. (English is not my native tongue. I hope I have make myself clear.)