From mboxrd@z Thu Jan 1 00:00:00 1970 From: SAKURAI Masashi Subject: Re: [calfw] Better use of space Date: Tue, 06 Sep 2011 11:11:17 +0900 Message-ID: <20110906021117.4A41B13C55D@vps1.kiwanami.net> References: <87tyag57ue.fsf@gmail.com> <20110722070359.2BC7F13C54E@vps1.kiwanami.net> <87hb6e7k6p.fsf@gmail.com> <20110725034144.4073713C51B@vps1.kiwanami.net> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([140.186.70.92]:41682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0l8G-0005MQ-K8 for emacs-orgmode@gnu.org; Mon, 05 Sep 2011 22:11:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R0l8F-0000cO-5Q for emacs-orgmode@gnu.org; Mon, 05 Sep 2011 22:11:24 -0400 Received: from vps1.kiwanami.net ([182.48.41.71]:18933) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0l8E-0000c3-Oq for emacs-orgmode@gnu.org; Mon, 05 Sep 2011 22:11:23 -0400 In-Reply-To: <20110725034144.4073713C51B@vps1.kiwanami.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: rasmus@gmx.us Cc: emacs-orgmode@gnu.org Hi Rasmus, I implemented simple multi line breaking. Here is a screenshot. http://twitpic.com/6gpgz7/full I pushed the multiline branch on the github. https://github.com/kiwanami/emacs-calfw/tree/multiline (including some minor updating) I have studied some line breaking algorithms. - Word wrap - Wikipedia, the free encyclopedia - http://en.wikipedia.org/wiki/Word_wrap - Other implementations - Python implementation - Perl Text::Reflow - The Knuth/Plass line-breaking Algorithm - http://defoe.sourceforge.net/folio/knuth-plass.html - Some command line programs - fmt, groff Then, I found that the complicated algorithms, such as 'Knuth/Plass line-breaking Algorithm', are difficult to implement on the Emacs Lisp efficiently, because the line breaking function is called many time during rendering the view. (I hope that Emacs support native line-breaking function.) So, I introduced a pluggable design for the line breaking algorithm and I just implement simple line breaking code. I will use this code for a while and evaluate use-feeling. If you have a time, will you check it out? I would like to hear feeling from the not East Asians users, using line breaking without no smart word-wrapping and hyphenation. Thank you, -- SAKURAI, Masashi (family, given) m.sakurai@kiwanami.net