From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/73041 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: shr.el: folding Japanese text Date: Wed, 13 Oct 2010 17:13:16 +0900 Organization: Emacsen advocacy group Message-ID: References: <8762xcvbsp.fsf@lifelogs.com> <87eibxkxa3.fsf@anar.kanru.info> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1286957699 30123 80.91.229.12 (13 Oct 2010 08:14:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 13 Oct 2010 08:14:59 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M21413@lists.math.uh.edu Wed Oct 13 10:14:58 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P5wU6-0004hp-Lk for ding-account@gmane.org; Wed, 13 Oct 2010 10:14:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1P5wTM-0007CI-JL; Wed, 13 Oct 2010 03:14:04 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1P5wTJ-0007By-E3 for ding@lists.math.uh.edu; Wed, 13 Oct 2010 03:14:01 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1P5wTC-0004dQ-5j for ding@lists.math.uh.edu; Wed, 13 Oct 2010 03:13:58 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1P5wTB-0002ln-00 for ; Wed, 13 Oct 2010 10:13:53 +0200 Original-Received: from localhost ([127.0.0.1]:55907) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1P5wSd-0003kT-IH for ding@gnus.org; Wed, 13 Oct 2010 03:13:19 -0500 X-Hashcash: 1:20:101013:ding@gnus.org::xaRbSg6mH6hE02f2:00001wzp X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:bepM61clnRHvFrY6m0W3PQ2FPqQ= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:73041 Archived-At: Katsumi Yamaoka wrote: > Lars Magne Ingebrigtsen wrote: >> I was hoping to avoid using the fill functions so that all the things >> that need start-end regions (, , etc) could rely on the start >> point never changing (much) after it's been set. > Agreed. I feel it possible to achieve. AFAICT, what the present > `shr-insert' code should do or should not do for CJK text are: > 1. Don't insert SPC between wide characters; simply concatenate > short lines. But SPC inserted between wide character and ASCII > word is ok (I like that style, though there may be those who do > not like it). > 2. Fold long lines; we can chop wide characters text anywhere. > 3. Do kinsoku. Here's my next try that conforms to what you intended to, and does 1, 2, and 3. It may not be complete yet though. ftp://ftp.jpl.org/pub/tmp/shr-insert.el or http://www.jpl.org/ftp/pub/tmp/shr-insert.el