[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Chinese lunar calender support and improvement for existing
From:       LiuCougar <liucougar () gmail ! com>
Date:       2005-04-29 17:31:30
Message-ID: 9558067805042910313da557c6 () mail ! gmail ! com
[Download RAW message or body]

Another question:
I want to based my work on latest development branch. Which I should
use? CVS or SVN?

Thanks,
Cougar

On 4/29/05, LiuCougar <liucougar@gmail.com> wrote:
> thanks a lot for your detailed reply,very helpful.
> 
> On 4/29/05, Cornelius Schumacher <schumacher@kde.org> wrote:
> > On Friday 29 April 2005 05:23, LiuCougar wrote:
> > >
> > > I am investigating implementing a Chinese lunar calender in a
> > > dedicated library (if necessary). However my final goal is to merge it
> > > into KDE.
> >
> > Sounds like a good plan.
> Do you think it is necessary to split the core to a dedicated library?
> AFAICT, KCalendarSystemJalali (shipped with kdelibs) does not rely on
> any other libraries, or am I wrong?
> 
> > > Anyone could give me some advice about what's the optimal way to achieve
> > > this?
> >
> > There are two aspects. One is the calendar system itself, that's how the year
> > is separated into months, where weeks start etc. This is covered by the
> > KCalendarSystem class and its subclasses in kdelibs/kdecore.
> >
> > Another aspect are holidays. Holidays which have a fixed date or are relative
> > to easter can be handled by a simple holiday file for KOrganizer (see
> > kdepim/libkholidays).
> it seems to me that the core of chinese lunar calendar should be
> derived from KCalendarSystem. As some of Chinese holidays are
> gergorian calendar based, while others are chinese lunar calendar
> based, so I think I need to write a sub-class of KHolidays to handle
> lunar calendar based holidays.
> 
> > If more complex calculations are required, they can be done in a
> > CalendarDecoration plugin for KOrganizer (see
> > kdepim/korganizer/plugins/hebrew for an example).
> This plugin seems to handle holidays itself. Do you think it is better
> to sub-class KHolidays or use this kind of hardcoded one?
> 
> > > I hope when this calender is done, it will find its way to be merged
> > > into the existing calander (appear after clicking the clock applet).
> > >
> > > I have another suggestion about the existing calender: it would be
> > > better to show festivals in your country (depends on your locale?). Of
> > > course this feature should be optional.
> >
> > Yes, we already have lots of code there, but most of it isn't available
> > desktop-wide, but only in the kdepim applications. We have to improve that.
> > (see also the "Extending KDatePicker" section of
> > http://www.kdedevelopers.org/node/view/974).
> 
> The idea of "Extending KDatePicker" is what I am looking for: with
> this kind of capability, it is possible to add extra info to a date,
> such as the name of the chinese lunar day, and some other important
> date for a users: say parents' birthday :)
> 
> I'd like to contribute in this aspect.
> 
> Ok, I have to start with chinese KCalendarSystem first :)
> 
> thanks again for your direction.
> 
> Regards,
> Cougar
> --
> "People's characters are strengthened through struggle against
> difficulties; they are weakened by comfort."
> - Old Chinese adage
> 


-- 
"People's characters are strengthened through struggle against
difficulties; they are weakened by comfort."
- Old Chinese adage
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic