[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to avoid auto-linking in non-ascii URLs
On March 23, 2006 at 01:36, Masao Takaku wrote:
> MHonArc outputs links of URL-like strings automatically.
> When a message includes a string "See http://www.example.com/foo/bar/",
> MHonARC process this as follows;
> See <a href="http://www.example.com/foo/bar/">http://www.example.com/foo/bar/
> It works well, but in case of an URL-like string followed by non-ASCII
> text without space, this feature is not usefull;
> e.g. "http://www.example.com/foo/bar/$B$r8+$F(B.", which means
> "See http://www.example.com/foo/bar/" in Japanese, goes to as follows:
> <a href="http://www.example.com/foo/bar/を見て">http://www.e
> In this example, the outputs should be like the following:
> <a href="http://www.example.com/foo/bar/">http://www.example.com/foo/bar/</a>
> My environment is Perl-5.8.0 and MHonArc-2.6.15 (default setting).
> Does anyone know how to do this, or any workarounds?
First, you may want to check out <http://www.mhonarc.jp/> for
Japanese-specific usage information MHonArc. There should also
be links to a Japanese-based mailing list which may be useful.
As for your specific problem, you may need disable URL linking.
This can be done by specify -nourl on the command-line or
<NOURL> in your resource file. The '&' is a legal URL character,
and MHonArc does not try to interpret what character entity reference
values resolve to to determine if it should be included.
The URL linking code is a single regex operation.
I'm not sure at this time on what code changes could be done.
If you go with ISO-2022-JP encoding for your archives, it may
avoid this problem.
[Index of Archives]