From: SAKURAI Masashi <m.sakurai@kiwanami.net>
To: rasmus@gmx.us
Cc: emacs-orgmode@gnu.org
Subject: Re: [calfw] Better use of space
Date: Tue, 06 Sep 2011 11:11:17 +0900 [thread overview]
Message-ID: <20110906021117.4A41B13C55D@vps1.kiwanami.net> (raw)
In-Reply-To: <20110725034144.4073713C51B@vps1.kiwanami.net>
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
next prev parent reply other threads:[~2011-09-06 2:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-21 8:57 [calfw] Better use of space Rasmus
2011-07-22 7:03 ` SAKURAI Masashi
2011-07-22 9:12 ` Rasmus
2011-07-25 3:41 ` SAKURAI Masashi
2011-09-06 2:11 ` SAKURAI Masashi [this message]
2011-09-07 8:32 ` Rasmus
2011-09-08 1:50 ` SAKURAI Masashi
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110906021117.4A41B13C55D@vps1.kiwanami.net \
--to=m.sakurai@kiwanami.net \
--cc=emacs-orgmode@gnu.org \
--cc=rasmus@gmx.us \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).