emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: [calfw] Better use of space
Date: Fri, 22 Jul 2011 11:12:46 +0200	[thread overview]
Message-ID: <87hb6e7k6p.fsf@gmail.com> (raw)
In-Reply-To: 20110722070359.2BC7F13C54E@vps1.kiwanami.net

Hi Masashi,

> I like here
We're trilled that you're here! 

> Thanks for your request and good images.
> I think this request involves 3 functions.

You are probably right. 

> * Time table layout
>
> I think this function is very difficult, because it needs many study
> for me to implement, including following functions.
> Of course, I consider the time table view is one of the goal of calfw.

Oh, right; it could be done as a seperate view or layout. 

> * Display multiple-lines items (the source splits an item multiple lines.)
>
> This is not so difficult. In this mechanism, the source objects can
> propose some formats, for example, "15:00 appointment" and ("15:00-15:30" 
> "appointment"). Then, calfw chooses the suitable format and displays 
> in the current layout algorithm.

It could be a string similar to how BBDB, Gnus and other Emacs mode does
it. See for example (describe-variable 'gnus-summary-line-format).

User could specify calfw:timeview-format "%Starttime-%Endtime: %Event"
or whatever. 

> * Word-wrapping and folding lines (calfw splits lines within a column.)
>
> This is little difficult. I think word-wrapping, folding lines and
> truncating strings can not be achieved in the narrow columns
> straightforwardly. I need a time to study this issue.

Hmm, 
I guess the width of column is calculated when generating the view. 
I'll use pseudo-code as my Emacs Lisp isn't great.  
#+begin_src emacs-lisp
  (if (> (calfw:timeview-entry-length) (calfw:column-length))
   (#split-entry after column-length, preferbly after word
    # and retur
   )    
#+end_src
I hope it makes sense. . . 

–Rasmus

-- 
Sent from my Emacs

  reply	other threads:[~2011-07-22  9: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 [this message]
2011-07-25  3:41     ` SAKURAI Masashi
2011-09-06  2:11       ` SAKURAI Masashi
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=87hb6e7k6p.fsf@gmail.com \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.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.
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).