HistoryCal - V0.0.7 Manual
eng# English Hybrid
Home Development V0.0.7 Manual Cal. Definitions eng

Calendar Description

The English Hybrid calendar is a hybrid variant combining the Julian Annunciation, the Julian and the Gregorian calendars.

Use Case

Definition

Record
schemeyearmonthdaywdayunshift
Historic Era
CalendarStartFinishNotes
jaJulian Annunciationpast31 Dec 1751Year 1751 is 282 days long
jJulian1 Jan 17522 Sep 1752
gGregorian14 Sep 1752futureYear 1752 is 355 days long

The Record consists of four Fields named scheme, year, month, and day and two read only Fields wday, and unshift. The unshift field holds the historical year as calculated by the underlying Julian calendar.

As a Hybrid calendar, it has no single epoch.

Script

Default Script
lexicon jajg { name "Scheme names"; fieldname scheme; lang en; pseudo Scheme, Sch; tokens { 0, "Julian Ann", "ja"; 1, "Julian", "j"; 2, "Gregorian", "g"; } } grammar hy { optional unshift, wday; lexicons w, m, jajg; alias field { WDay, wday; Day, day; Month, month; Year, year; "Hist-Year", unshift; Scheme, scheme; } alias pseudo { w, WDay; dd, Day; mm, Month; yyyy, Year; y, "Hist-Year"; s, Scheme; } format dmyh, "(Day) |(Month:m:a) |(Year/Hist-Year)"; format dmy, "(Day) |(Month:m:a) |(Year)"; format dmys, "(Day) |(Month:m:a) |(Year) |(Scheme:jajg:a)"; format wdmyh, "(WDay:w:a) |(Day) |(Month:m:a) |(Year/Hist-Year)"; format wdmyhs,"(WDay:w:a) |(Day) |(Month:m:a) |(Year/Hist-Year) |(Scheme:jajg)"; pref dmyh; } scheme eng { name "English Hybrid"; hybrid { fields year, month, day; scheme ja; change 2360976; // j# 1 Jan 1752 scheme j; change 2361222; // g# 14 Sep 1752 scheme g; } grammar hy; }

The script makes use of the globally available read-only field wday to output weekdays.

The "hy" grammar uses the "m" (Julian months) and "w" (Weekdays) lexicons.

Home Development V0.0.7 Manual Cal. Definitions eng

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

28th March 2014