emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to stop Org mode from assuming non-Latin characters after "[[link]]" as part of the link?
@ 2012-08-16 16:01 Betty
  2012-08-19 14:58 ` Bastien
  2012-08-19 16:17 ` Takaaki ISHIKAWA
  0 siblings, 2 replies; 3+ messages in thread
From: Betty @ 2012-08-16 16:01 UTC (permalink / raw)
  To: emacs-orgmode

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.)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to stop Org mode from assuming non-Latin characters after "[[link]]" as part of the link?
  2012-08-16 16:01 How to stop Org mode from assuming non-Latin characters after "[[link]]" as part of the link? Betty
@ 2012-08-19 14:58 ` Bastien
  2012-08-19 16:17 ` Takaaki ISHIKAWA
  1 sibling, 0 replies; 3+ messages in thread
From: Bastien @ 2012-08-19 14:58 UTC (permalink / raw)
  To: Betty; +Cc: emacs-orgmode

Hi Betty,

Betty <xlu.2007@gmail.com> writes:

> If I don't put a space after a URL, Org always assumes that all
> characters after the link are part of the link. 

This should be fixed now.

Thanks for reporting this,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to stop Org mode from assuming non-Latin characters after "[[link]]" as part of the link?
  2012-08-16 16:01 How to stop Org mode from assuming non-Latin characters after "[[link]]" as part of the link? Betty
  2012-08-19 14:58 ` Bastien
@ 2012-08-19 16:17 ` Takaaki ISHIKAWA
  1 sibling, 0 replies; 3+ messages in thread
From: Takaaki ISHIKAWA @ 2012-08-19 16:17 UTC (permalink / raw)
  To: Betty; +Cc: emacs-orgmode

Dear Betty,

I have the same problem. To avoid it, I just simply 
comment out the following line in org.el.

; (if (memq 'plain lk) '(org-activate-plain-links))

I think this approach is not the best answer for all,
but this will help you.

Best regards,
Takaaki Ishikawa

On 2012/08/17, at 1:01, Betty <xlu.2007@gmail.com> wrote:

> 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.)
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-08-19 16:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-16 16:01 How to stop Org mode from assuming non-Latin characters after "[[link]]" as part of the link? Betty
2012-08-19 14:58 ` Bastien
2012-08-19 16:17 ` Takaaki ISHIKAWA

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).