HistoryCal - V0.0.7 Manual
c# Chinese
Home Development V0.0.7 Manual Cal. Definitions c

Under Construction

Calendar Description

The Chinese calendar is a lunisolar calendar with 12 lunar months in a common year and 13 in a leap year. The start of the year occurs just before the Northward/Spring equinox and is tied to the Southern/Winter solstice. Months start on the day of the new moon and have 39 or 30 days.

Use Case

Definition

Record
cyclecyearmonthlmonthday
Branch
ValueName
1
2chǒu
3yín
4mǎo
5chén
6
7
8wèi
9shēn
10yǒu
11
12hài
Stem
ValueName
1Jiǎ
2
3Bǐng
4Dīng
5
6
7Gēng
8Xīn
9Rén
10Guì
Field lmonth
ValueNameAbbrev.
0Common MonthMonth
1Leap MonthLeap

The Record consists of five Fields named cycle, cyear, lmonth, month, and day. There are twelve common months in a year numbered 1 to 12. The lmonth field is set to 0 for these months. In a leap year, one of the months will be repeated with the lmonth field set to 1. Each month starts on day 1, the day of the new moon, and will be 29 or 30 days long.

The Epoch is set at
ccyclecyearmonthlmonthday
11101
=
gyearmonthday
-2636215
=
jdnday
758326
.

Script

Default Script
lexicon cyear { name "Year names"; fieldname cyear; lang en; pseudo Year, Yr; tokens { 1, "Jiǎ-zǐ", "Jia-zi"; 2, "Yǐ-chǒu", "Yi-chou"; 3, "Bǐng-yín", "Bing-yin"; 4, "Dīng-mǎo", "Ding-mao"; 5, "Wù-chén", "Wu-chen"; 6, "Jǐ-sì", "Ji-si"; 7, "Gēng-wǔ", "Geng-wu"; 8, "Xīn-wèi", "Xin-wei"; 9, "Rén-shēn", "Ren-shen"; 10, "Guì-yǒu", "Gui-you"; 11, "Jiǎ-xū", "Jia-xu"; 12, "Yǐ-hài", "Yi-hai"; 13, "Bǐng-zǐ", "Bing-zi"; 14, "Dīng-chǒu", "Ding-chou"; 15, "Wù-yín", "Wu-yin"; 16, "Jǐ-mǎo", "Ji-mao"; 17, "Gēng-chén", "Geng-chen"; 18, "Xīn-sì", "Xin-si"; 19, "Rén-wǔ", "Ren-wu"; 20, "Guì-wèi", "Gui-wei"; 21, "Jiǎ-shēn", "Jia-shen"; 22, "Yǐ-yǒu", "Yi-you"; 23, "Bǐng-xū", "Bing-xu"; 24, "Dīng-hài", "Ding-hai"; 25, "Wù-zǐ", "Wu-zi"; 26, "Jǐ-chǒu", "Ji-chou"; 27, "Gēng-yín", "Geng-yin"; 28, "Xīn-mǎo", "Xin-mao"; 29, "Rén-chén", "Ren-chen"; 30, "Guì-sì", "Gui-si"; 31, "Jiǎ-wǔ", "Jia-wu"; 32, "Yǐ-wèi", "Yi-wei"; 33, "Bǐng-shēn", "Bing-shen"; 34, "Dīng-yǒu", "Ding-you"; 35, "Wù-xū", "Wu-xu"; 36, "Jǐ-hài", "Ji-hai"; 37, "Gēng-zǐ", "Geng-zi"; 38, "Xīn-chǒu", "Xin-chou"; 39, "Rén-yín", "Ren-yin"; 40, "Guì-mǎo", "Gui-mao"; 41, "Jiǎ-chén", "Jia-chen"; 42, "Yǐ-sì", "Yi-si"; 43, "Bǐng-wǔ", "Bing-wu"; 44, "Dīng-wèi", "Ding-wei"; 45, "Wù-shēn", "Wu-shen"; 46, "Jǐ-yǒu", "Ji-you"; 47, "Gēng-xū", "Geng-xu"; 48, "Xīn-hài", "Xin-hai"; 49, "Rén-zǐ", "Ren-zi"; 50, "Guì-chǒu", "Gui-chou"; 51, "Jiǎ-yín", "Jia-yin"; 52, "Yǐ-mǎo", "Yi-mao"; 53, "Bǐng-chén", "Bing-chen"; 54, "Dīng-sì", "Ding-si"; 55, "Wù-wǔ", "Wu-wu"; 56, "Jǐ-wèi", "Ji-wei"; 57, "Gēng-shēn", "Geng-shen"; 58, "Xīn-yǒu", "Xin-you"; 59, "Rén-xū", "Ren-xu"; 60, "Guì-hài", "Gui-hai"; } } lexicon clmon { name "Leap month"; fieldname lmonth; lang en; pseudo LeapMon, LM; tokens { 0, "Month", "Month"; 1, "Leap-month", "Leap"; } } grammar c { lexicons cyear, clmon; alias field { Day, day; Leap, lmonth; Month, month; Year, cyear; Cycle, cycle; } alias pseudo { dd, Day; mm, Month; lm, Leap; yy, Year; cc, Cycle; } format cylmd, "(Cycle),| (Year),| (Leap:clmon:a)| (Month),| (Day)"; format "cylmd+", "(Cycle),| (Year:cyear),| (Leap:clmon:a)| (Month),| (Day)"; format full { output "Cycle (Cycle),| Year (Year:cyear),| (Leap:clmon)| (Month),| Day (Day)"; } } scheme c { name "Chinese"; base chinese; grammar c; }

The script is not dependent on any other script at this time

Home Development V0.0.7 Manual Cal. Definitions c

Managed by WebPageLayout Validated by HTML Validator (based on Tidy)

19th January 2014