Gnus development mailing list
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
To: ding@gnus.org
Subject: Re: shr.el: folding Japanese text
Date: Thu, 14 Oct 2010 17:16:25 +0900	[thread overview]
Message-ID: <b4mfww9b352.fsf@jpl.org> (raw)
In-Reply-To: <m3ocaxq5m6.fsf@quimbies.gnus.org>

[-- Attachment #1: Type: text/plain, Size: 1729 bytes --]

Lars Magne Ingebrigtsen wrote:
>> Yes, I think that should work, but I think using
>> `fill-find-break-point-function-table' instead of "[^\000-\377]" and
>> stuff will probably give you better results when mixing, say, Japanese
>> and Russian.

I see.  It's much smarter.

> I've now tweaked the filling algorithm slightly, and it seems to do the
> right thing in the Han Han group (with Chinese text), but I haven't
> tested it in any groups with mixed European/Japanese text.  What's a
> good test group?

Try gwene groups of which the group names contain ".jp.".  For
instance: gwene.jp.gr.gentoo.gentoojp-news

If you don't think very troublesome, I'd like to recommend
nnshimbun.el.  It makes html articles from contents obtained
from web sites.  You don't have to alter `mm-text-html-renderer'.
My recommendation is:

M-x gnus-group-make-shimbun-group RET asahi RET rss RET

Cf. (info "(emacs-w3m)Gnus"), (info "(emacs-w3m)Nnshimbun")

> Also, what font(s) should I install on Debian to get a display that has
> the traditional kanji-are-twice-as-wide-as-non-kanji buffer?

I believe there should be such fonts, if you've installed all
the fonts Debian distributes. ;-)  I use Fedora and have all the
fonts installed.  My favorites are:

-*-fixed-medium-r-normal-*-16-*-*-*-*-*-iso8859-1
-*-fixed-medium-r-normal-*-16-*-*-*-*-*-jisx0208.1983-0

BTW, the present shr.el code deletes CJK characters that are at
the end of lines, inserts useless SPC between wide characters,
and doesn't seem to do kinsoku.  So, I tried improving them.  A
patch follows.  I think it is near completion.  WDYT?

Though I suspect there are wrong assignments for some Chinese
characters in the kinsoku configuration.  I'll ask Handa-san
later.


[-- Attachment #2: shr.el.patch.gz --]
[-- Type: application/x-gzip, Size: 775 bytes --]

  reply	other threads:[~2010-10-14  8:16 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-08  8:10 Katsumi Yamaoka
2010-10-08 17:05 ` Lars Magne Ingebrigtsen
2010-10-08 17:23   ` Ted Zlatanov
2010-10-09 16:09     ` Lars Magne Ingebrigtsen
2010-10-09 21:35       ` Lars Magne Ingebrigtsen
2010-10-09 21:48         ` Lars Magne Ingebrigtsen
2010-10-10  4:57         ` CHENG Gao
2010-10-10 13:42         ` Andreas Schwab
2010-10-10 13:47           ` Lars Magne Ingebrigtsen
2010-10-10 16:22             ` Andreas Schwab
2010-10-11  4:03             ` James Cloos
2010-10-11  7:23         ` Kan-Ru Chen
2010-10-11 18:07           ` Lars Magne Ingebrigtsen
2010-10-12  8:19             ` Katsumi Yamaoka
2010-10-12 12:48               ` Lars Magne Ingebrigtsen
2010-10-12 14:13                 ` Katsumi Yamaoka
2010-10-13  8:13                   ` Katsumi Yamaoka
2010-10-13 16:53                     ` Lars Magne Ingebrigtsen
2010-10-13 19:01                       ` Lars Magne Ingebrigtsen
2010-10-14  8:16                         ` Katsumi Yamaoka [this message]
2010-10-14 10:12                           ` Katsumi Yamaoka
2010-10-14 14:13                           ` Katsumi Yamaoka
2010-10-14 18:34                           ` Lars Magne Ingebrigtsen
2010-10-14 19:10                             ` Lars Magne Ingebrigtsen
2010-10-15  0:40                               ` Katsumi Yamaoka
2010-10-15  7:35                                 ` Lars Magne Ingebrigtsen
2010-10-15 10:28                                   ` Lars Magne Ingebrigtsen
2010-10-15 10:48                                     ` Lars Magne Ingebrigtsen
2010-10-15  1:28                               ` Kan-Ru Chen
2010-10-15  6:29                               ` Reiner Steib
2010-10-15 18:05                                 ` Andreas Schwab
2010-10-15 20:16                                   ` Reiner Steib
2010-10-15  1:18                             ` Katsumi Yamaoka
2010-10-14 19:05                           ` Lars Magne Ingebrigtsen
2010-10-15  8:08                             ` Katsumi Yamaoka
2010-10-15 14:02                               ` Lars Magne Ingebrigtsen
2010-10-17  1:04                                 ` Lars Magne Ingebrigtsen
2010-10-18  5:19                                   ` Katsumi Yamaoka
2010-10-18 19:01                                     ` Lars Magne Ingebrigtsen
2010-10-18  5:19                                 ` Katsumi Yamaoka
2010-10-19  7:52                                   ` Katsumi Yamaoka
2010-10-19 18:12                                     ` Lars Magne Ingebrigtsen
2010-10-20  7:29                                       ` Katsumi Yamaoka
2010-10-20 17:22                                         ` Lars Magne Ingebrigtsen

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b4mfww9b352.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --cc=ding@gnus.org \
    /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.
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 NNTP newsgroup(s).