From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/72919 Path: news.gmane.org!not-for-mail From: Kan-Ru Chen Newsgroups: gmane.emacs.gnus.general Subject: Re: shr.el: folding Japanese text Date: Mon, 11 Oct 2010 15:23:48 +0800 Message-ID: <87eibxkxa3.fsf@anar.kanru.info> References: <8762xcvbsp.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1286802529 24140 80.91.229.12 (11 Oct 2010 13:08:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 11 Oct 2010 13:08:49 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M21291=ding+2Daccount=gmane.org@lists.math.uh.edu Mon Oct 11 15:08:47 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 1P5I7Q-000425-Pn for ding-account@gmane.org; Mon, 11 Oct 2010 15:08:45 +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 1P5I7Q-0001UY-5E for ding-account@gmane.org; Mon, 11 Oct 2010 08:08:44 -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 1P5Cue-0007LL-Mr for ding@lists.math.uh.edu; Mon, 11 Oct 2010 02:35:12 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1P5Cua-0002ZI-Cj for ding@lists.math.uh.edu; Mon, 11 Oct 2010 02:35:12 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1P5CuZ-0005Dg-00 for ; Mon, 11 Oct 2010 09:35:07 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P5CuV-0004sm-Qf for ding@gnus.org; Mon, 11 Oct 2010 09:35:03 +0200 Original-Received: from 61-30-10-70.static.tfn.net.tw ([61.30.10.70]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Oct 2010 09:35:03 +0200 Original-Received: from kanru by 61-30-10-70.static.tfn.net.tw with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Oct 2010 09:35:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 36 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 61-30-10-70.static.tfn.net.tw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:zDz5lZq7M2zo0FRzkHLYz+RElb4= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:72919 Archived-At: Lars Magne Ingebrigtsen writes: > I tried yanking some text from an article in > gwene.cn.com.sina.blog.hanhan (Chinese text, I guess) into a .txt > buffer, and then just `M-q'-ing it. It didn't look very nice. It > looked as if thought the characters were much narrower than they really > were, because it filled the lines way too late. Like this: > > 最近一个月没有更新,是因为不知道说什么好,我本人也正在赶新的小说,会在9月 > 出版,前几天去香港书展,长望着维港,更觉得应该有好的作品奉献给大家,虽然 > 他人无德无能,但我又何德何能,我深感忧虑,何以解愁,唯有作品。 > > (I hope that's not a naughty text and I'll end up in jail now for > threatening terroristey behaviour...) The text displayed totally OK with the terminal emulator, because historically the ideographics are `double-width'. If you use a monospace CJK font which is exactly twice wide of the latin font, you will find the text is wrapped around 73th column as well. (The text itself is OK, too ;-) > In my Emacs, that text is displayed at least five characters too wide > before the lines were folded. But that probably depends on what font > you use. > > Doesn't Emacs have any way to say "how many pixels have I left now"? That would be better than counting characters. But consider that we can use both GUI and terminal interfaces at the same time (multi-tty), counting pixels seems bogus, too. Kanru -- Q: Why are my replies five sentences or less? A: http://five.sentenc.es/