From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei-Wei Guo Subject: Re: Re: How to set a entry with Chinese calender? Date: Wed, 06 May 2009 13:27:47 +0800 Message-ID: <4A011FD3.4030107@gmail.com> References: <49F9591D.2010101@gmail.com> <4A0044C8.7010107@gmail.com> <4A00CC9C.60105@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M1ZV4-00071O-Qa for emacs-orgmode@gnu.org; Wed, 06 May 2009 01:16:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M1ZUz-0006zl-Vr for emacs-orgmode@gnu.org; Wed, 06 May 2009 01:16:58 -0400 Received: from [199.232.76.173] (port=49623 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1ZUz-0006zi-Nv for emacs-orgmode@gnu.org; Wed, 06 May 2009 01:16:53 -0400 Received: from wa-out-1112.google.com ([209.85.146.182]:24912) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M1ZUz-0003bP-EX for emacs-orgmode@gnu.org; Wed, 06 May 2009 01:16:53 -0400 Received: by wa-out-1112.google.com with SMTP id m34so1928926wag.26 for ; Tue, 05 May 2009 22:16:52 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Leo Cc: emacs-orgmode@gnu.org Leo 写道: > On 2009-05-06 00:32 +0100, Wei-Wei Guo wrote: >>>> 1. The calculation of Chinese year is not right. >>>> >>>> For example, if I born in 1982.11 of *solar* calendar and my father born >>>> in 1952.12 of *lunar* calendar. My age is calculated as 27 and my father's >>>> age is calculated as 58, which should be 57. Because my father's birthday >>>> is in the next year of *solar* calender, his age is calculated one year >>>> more. >>>> >> This bug cannot be reproduced without loading cal-china-plus for it uses the >> diary-chinese-anniversary of your package. For example. >> >> %%(diary-anniversary 11 1 1982) I'm %d years old. >> %%(diary-chinese-anniversary 12 1 1952) Dad is %d years old. >> >> Could you give me some hints on how to present the bug without your package? > > How do you make calendar show the age of your father? > > I put %%(diary-chinese-anniversary 12 1 1952) in my diary file and on > 2008.12.27 (solar calendar), it says '56 years old', isn't this correct? > Saturday 27 December 2008 Birthday: Dad is 56 years old. Friday 15 January 2010 Birthday: Dad is 58 years old. There is no '57 years old'. > There are different ways of counting ages. The diff var in the > diary-chinese-anniversary holds the age value. > > Incidentally I found a bug in diary-chinese-anniversary. Could you test > the attached version? > The new version cause .org very slow and shows "Bad sexp at line 36 in ...". What do you want to test? Best wishes, Wei-Wei