⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lunardata.r

📁 我的Palm OS 5 SDK zhCN_PIMApps代码。 使用codewarrior 开发环境
💻 R
📖 第 1 页 / 共 2 页
字号:
/******************************************************************************
 *
 * Copyright (c) 1995-2003 PalmSource, Inc. All rights reserved.
 *
 * File: LunarData.r
 *
 * Release: 
 *
 * Description:
 *	  This file contains resources used for the (temporary) lunar calendar
 *	support for the Datebook application.  These resources will be part of
 *	Time Manager 6.0.
 *	
 *	Execute the following line in your MPW worksheet to update LunarData.rsrc:
 *
 *	Rez "{PilotDir}Apps:Datebook:Src:LunarData.r" -i "{PilotDir}Incs:Core:UI:" -o "{PilotDir}Apps:Datebook:Rsc:Localized:zhCN:LunarData.rsrc"
 *
 *****************************************************************************/

#include "UIResDefs.r"		// For 'tint' type declaration

#define timMaxChineseLunarMonths		13
#define timChineseLunarCalendarRscType	'luca'
#define timChineseLunarCalendar_luca	19000
#define kLunarCalendarDataVersion		1
#define kLunarCalendarSupportedID		10200
#define kMiscStrListID					10208
#define kLunarStemsStrListID			10209
#define kLunarBranchesStrListID			10210
#define kLunarAnimalsStrListID			10211
#define kLunarMonthsStrListID			10212
#define kLunarDaysStrListID				10213

type timChineseLunarCalendarRscType {
	unsigned hex byte = kLunarCalendarDataVersion % 256;	// version[LSB]
	unsigned hex byte = kLunarCalendarDataVersion / 256;	// version[MSB]
	unsigned hex byte = 40 % 256;					// lunarYearOfYearIndex0[LSB]
	unsigned hex byte = 40 / 256;					// lunarYearOfYearIndex0[MSB]
	unsigned hex byte = $$CountOf(LunarYearArray) % 256;	// numKnownYears[LSB]
	unsigned hex byte = $$CountOf(LunarYearArray) / 256;	// numKnownYears[MSB]
	wide array LunarYearArray {						// lunarYears[1]
		unsigned hex byte;							// yearStartDay[LSB]
		unsigned hex byte;
		unsigned hex byte;
		unsigned hex byte;							// yearStartDay[MSB]
		wide array [timMaxChineseLunarMonths] {		// lunarMonths[timMaxChineseLunarMonths]
			unsigned byte;							// monthNumber - 1..13 (0 if unused)
			unsigned byte;							// daysInThisMonth - 29..30 (0 if unused)
		};
	};
};

resource 'tint' (kLunarCalendarSupportedID, "Is Lunar Calendar Supported?") {
	1,
};

resource 'tSTL' (kMiscStrListID, "/-ovlyAdd/ Miscellaneous Lunar Calendar Strings") {
	"",
	{
		"^0^1^2Year^5^3^4",
		"Leap",
	},
};

resource 'tSTL' (kLunarStemsStrListID, "/-ovlyAdd/ Lunar Year Stems") {
	"",
	{
		"S1",
		"S2",
		"S3",
		"S4",
		"S5",
		"S6",
		"S7",
		"S8",
		"S9",
		"SA",
	},
};

resource 'tSTL' (kLunarBranchesStrListID, "/-ovlyAdd/ Lunar Year Branches") {
	"",
	{
		"B1",
		"B2",
		"B3",
		"B4",
		"B5",
		"B6",
		"B7",
		"B8",
		"B9",
		"BA",
		"BB",
		"BC",
	},
};

resource 'tSTL' (kLunarAnimalsStrListID, "/-ovlyAdd/ Lunar Year Animals") {
	"",
	{
		"A1",
		"A2",
		"A3",
		"A4",
		"A5",
		"A6",
		"A7",
		"A8",
		"A9",
		"AA",
		"AB",
		"AC",
	},
};

resource 'tSTL' (kLunarMonthsStrListID, "/-ovlyAdd/ Lunar Months") {
	"",
	{
		"M1",
		"M2",
		"M3",
		"M4",
		"M5",
		"M6",
		"M7",
		"M8",
		"M9",
		"MA",
		"MB",
		"MC",
	},
};

resource 'tSTL' (kLunarDaysStrListID, "/-ovlyAdd/ Lunar Days") {
	"",
	{
		"01",
		"02",
		"03",
		"04",
		"05",
		"06",
		"07",
		"08",
		"09",
		"10",
		"11",
		"12",
		"13",
		"14",
		"15",
		"16",
		"17",
		"18",
		"19",
		"20",
		"21",
		"22",
		"23",
		"24",
		"25",
		"26",
		"27",
		"28",
		"29",
		"30",
	},
};

resource timChineseLunarCalendarRscType (timChineseLunarCalendar_luca, "/-ovlyAdd/ Chinese Lunar Calendar Data")
{
	{
		175, -2, -1, -1,
		{
			1, 29,
			2, 30,
			3, 29,
			4, 30,
			5, 29,
			5, 29,
			6, 30,
			7, 29,
			8, 29,
			9, 30,
			10, 30,
			11, 29,
			12, 30,
		},
		46, 0, 0, 0,
		{
			1, 30,
			2, 30,
			3, 29,
			4, 30,
			5, 29,
			6, 29,
			7, 30,
			8, 29,
			9, 29,
			10, 30,
			11, 30,
			12, 29,
			0, 0,
		},
		144, 1, 0, 0,
		{
			1, 30,
			2, 30,
			3, 29,
			4, 30,
			5, 30,
			6, 29,
			7, 29,
			8, 30,
			9, 29,
			10, 30,
			11, 29,
			12, 30,
			0, 0,
		},
		243, 2, 0, 0,
		{
			1, 29,
			2, 30,
			3, 29,
			4, 30,
			4, 30,
			5, 29,
			6, 30,
			7, 29,
			8, 30,
			9, 29,
			10, 30,
			11, 29,
			12, 30,
		},
		115, 4, 0, 0,
		{
			1, 29,
			2, 30,
			3, 29,
			4, 30,
			5, 29,
			6, 30,
			7, 30,
			8, 29,
			9, 30,
			10, 29,
			11, 30,
			12, 29,
			0, 0,
		},
		213, 5, 0, 0,
		{
			1, 30,
			2, 29,
			3, 29,
			4, 30,
			5, 30,
			6, 29,
			7, 30,
			8, 29,
			9, 30,
			10, 30,
			11, 29,
			12, 30,
			0, 0,
		},
		56, 7, 0, 0,
		{
			1, 29,
			2, 30,
			2, 29,
			3, 29,
			4, 30,
			5, 29,
			6, 30,
			7, 29,
			8, 30,
			9, 30,
			10, 30,
			11, 29,
			12, 30,
		},
		184, 8, 0, 0,
		{
			1, 29,
			2, 30,
			3, 29,
			4, 29,
			5, 30,
			6, 29,
			7, 30,
			8, 29,
			9, 30,
			10, 30,
			11, 30,
			12, 29,
			0, 0,
		},
		26, 10, 0, 0,
		{
			1, 30,
			2, 29,
			3, 30,
			4, 29,
			5, 29,
			6, 30,
			6, 29,
			7, 29,
			8, 30,
			9, 30,
			10, 29,
			11, 30,
			12, 30,
		},
		154, 11, 0, 0,
		{
			1, 30,
			2, 29,
			3, 30,
			4, 29,
			5, 29,
			6, 30,
			7, 29,
			8, 29,
			9, 30,
			10, 30,
			11, 29,
			12, 30,
			0, 0,
		},
		252, 12, 0, 0,
		{
			1, 30,
			2, 30,
			3, 29,
			4, 30,
			5, 29,
			6, 29,
			7, 30,
			8, 29,
			9, 29,
			10, 30,
			11, 29,
			12, 30,
			0, 0,
		},
		94, 14, 0, 0,
		{
			1, 30,
			2, 30,
			3, 29,
			4, 30,
			5, 29,
			5, 30,
			6, 29,
			7, 30,
			8, 29,
			9, 29,
			10, 30,
			11, 29,
			12, 30,
		},
		222, 15, 0, 0,
		{
			1, 30,
			2, 29,
			3, 30,
			4, 30,
			5, 29,
			6, 30,
			7, 29,
			8, 30,
			9, 29,
			10, 30,
			11, 29,
			12, 29,
			0, 0,
		},
		64, 17, 0, 0,
		{
			1, 30,
			2, 30,
			3, 29,
			4, 30,
			5, 29,
			6, 30,
			7, 30,
			8, 29,
			9, 30,
			10, 29,
			11, 30,
			12, 29,
			0, 0,
		},
		163, 18, 0, 0,
		{
			1, 30,
			2, 29,
			2, 29,
			3, 30,
			4, 29,
			5, 30,
			6, 30,
			7, 29,
			8, 30,
			9, 30,
			10, 29,
			11, 30,
			12, 29,
		},
		35, 20, 0, 0,
		{
			1, 30,
			2, 29,
			3, 29,
			4, 30,
			5, 29,
			6, 30,
			7, 29,
			8, 30,
			9, 30,
			10, 29,
			11, 30,
			12, 30,
			0, 0,
		},
		134, 21, 0, 0,
		{
			1, 29,
			2, 30,
			3, 29,
			4, 29,
			5, 30,
			6, 29,
			7, 29,
			7, 30,
			8, 30,
			9, 29,
			10, 30,
			11, 30,
			12, 30,
		},
		6, 23, 0, 0,
		{
			1, 29,
			2, 30,
			3, 29,
			4, 29,
			5, 30,
			6, 29,
			7, 29,
			8, 30,
			9, 29,
			10, 30,
			11, 30,
			12, 30,
			0, 0,
		},
		104, 24, 0, 0,
		{
			1, 30,
			2, 29,
			3, 30,
			4, 29,
			5, 29,
			6, 30,
			7, 29,
			8, 29,
			9, 30,
			10, 29,
			11, 30,
			12, 30,
			0, 0,
		},
		202, 25, 0, 0,
		{
			1, 30,
			2, 29,
			3, 30,
			4, 30,
			5, 29,
			5, 29,
			6, 30,
			7, 29,
			8, 29,
			9, 30,
			10, 29,
			11, 30,
			12, 30,
		},
		74, 27, 0, 0,
		{
			1, 29,
			2, 30,
			3, 30,
			4, 29,
			5, 30,
			6, 29,
			7, 30,
			8, 29,
			9, 29,
			10, 30,
			11, 29,
			12, 30,
			0, 0,
		},
		172, 28, 0, 0,
		{
			1, 29,
			2, 30,
			3, 30,
			4, 29,
			5, 30,
			6, 30,
			7, 29,
			8, 30,
			9, 29,
			10, 30,
			11, 29,
			12, 29,
			0, 0,
		},
		14, 30, 0, 0,
		{
			1, 30,
			2, 29,
			3, 30,
			4, 29,
			4, 30,
			5, 30,
			6, 29,
			7, 30,
			8, 30,
			9, 29,
			10, 30,
			11, 29,
			12, 30,
		},
		143, 31, 0, 0,
		{
			1, 29,
			2, 29,
			3, 30,
			4, 29,
			5, 30,
			6, 29,
			7, 30,
			8, 30,
			9, 29,
			10, 30,
			11, 30,
			12, 29,
			0, 0,
		},
		241, 32, 0, 0,
		{
			1, 30,
			2, 29,
			3, 29,
			4, 30,
			5, 29,
			6, 30,
			7, 29,
			8, 30,
			9, 29,
			10, 30,
			11, 30,
			12, 30,
			0, 0,
		},
		84, 34, 0, 0,
		{
			1, 29,
			2, 30,
			2, 29,
			3, 29,
			4, 30,
			5, 29,
			6, 29,
			7, 30,
			8, 29,
			9, 30,
			10, 30,
			11, 30,
			12, 30,
		},
		212, 35, 0, 0,
		{
			1, 29,
			2, 30,
			3, 29,
			4, 29,
			5, 30,
			6, 29,
			7, 29,
			8, 30,
			9, 29,
			10, 30,
			11, 30,
			12, 30,
			0, 0,
		},
		54, 37, 0, 0,
		{
			1, 29,
			2, 30,
			3, 30,
			4, 29,
			5, 29,
			6, 30,
			6, 29,
			7, 29,
			8, 30,
			9, 29,
			10, 30,
			11, 30,
			12, 29,
		},
		181, 38, 0, 0,
		{
			1, 30,
			2, 30,
			3, 29,
			4, 30,
			5, 29,
			6, 30,
			7, 29,
			8, 29,
			9, 30,
			10, 29,
			11, 30,
			12, 29,
			0, 0,
		},
		23, 40, 0, 0,
		{
			1, 30,
			2, 30,
			3, 30,
			4, 29,
			5, 30,
			6, 29,
			7, 30,
			8, 29,
			9, 29,
			10, 30,
			11, 29,
			12, 30,
			0, 0,
		},
		122, 41, 0, 0,
		{
			1, 29,
			2, 30,
			3, 30,
			4, 29,
			5, 30,
			5, 30,
			6, 29,
			7, 30,
			8, 29,
			9, 30,
			10, 29,
			11, 29,
			12, 30,
		},
		250, 42, 0, 0,
		{
			1, 29,
			2, 30,
			3, 29,
			4, 30,
			5, 30,
			6, 29,
			7, 30,
			8, 29,
			9, 30,
			10, 30,
			11, 29,
			12, 30,
			0, 0,
		},
		93, 44, 0, 0,
		{
			1, 29,
			2, 29,
			3, 30,
			4, 29,
			5, 30,
			6, 29,
			7, 30,
			8, 30,
			9, 29,
			10, 30,
			11, 30,
			12, 29,
			0, 0,
		},
		191, 45, 0, 0,
		{
			1, 30,
			2, 29,
			3, 29,
			3, 30,
			4, 29,
			5, 29,
			6, 30,
			7, 30,
			8, 29,
			9, 30,
			10, 30,
			11, 30,
			12, 29,
		},
		63, 47, 0, 0,
		{
			1, 30,
			2, 29,
			3, 29,
			4, 30,
			5, 29,
			6, 29,
			7, 30,
			8, 29,
			9, 30,
			10, 30,
			11, 30,
			12, 29,
			0, 0,
		},
		161, 48, 0, 0,
		{
			1, 30,
			2, 30,
			3, 29,
			4, 29,
			5, 30,
			6, 29,
			7, 29,
			7, 30,
			8, 29,
			9, 30,
			10, 30,
			11, 29,
			12, 30,
		},
		33, 50, 0, 0,
		{
			1, 30,
			2, 30,
			3, 29,
			4, 29,
			5, 30,
			6, 29,
			7, 29,
			8, 30,
			9, 29,
			10, 30,
			11, 29,
			12, 30,
			0, 0,
		},
		131, 51, 0, 0,
		{
			1, 30,
			2, 30,
			3, 29,
			4, 30,
			5, 29,
			6, 30,
			7, 29,
			8, 29,
			9, 30,
			10, 29,
			11, 30,
			12, 29,
			0, 0,
		},
		229, 52, 0, 0,
		{
			1, 30,
			2, 30,
			3, 29,
			4, 30,
			5, 30,
			6, 29,
			6, 30,
			7, 29,
			8, 29,
			9, 30,
			10, 29,
			11, 30,
			12, 29,
		},
		101, 54, 0, 0,
		{
			1, 30,
			2, 29,
			3, 30,
			4, 30,
			5, 29,
			6, 30,
			7, 29,
			8, 30,
			9, 29,
			10, 30,
			11, 29,
			12, 30,
			0, 0,
		},
		200, 55, 0, 0,
		{
			1, 29,
			2, 30,
			3, 29,
			4, 30,
			5, 29,
			6, 30,
			7, 30,
			8, 29,
			9, 30,
			10, 29,
			11, 30,
			12, 29,
			0, 0,
		},
		42, 57, 0, 0,
		{
			1, 30,
			2, 29,
			3, 30,
			4, 29,
			4, 30,
			5, 29,
			6, 30,
			7, 29,
			8, 30,
			9, 30,
			10, 29,
			11, 30,
			12, 30,
		},
		171, 58, 0, 0,
		{
			1, 29,
			2, 29,
			3, 30,
			4, 29,
			5, 29,
			6, 30,
			7, 29,
			8, 30,
			9, 30,
			10, 30,
			11, 29,
			12, 30,
			0, 0,
		},
		13, 60, 0, 0,
		{
			1, 30,
			2, 29,
			3, 29,
			4, 30,
			5, 29,
			6, 29,
			7, 30,
			8, 29,
			9, 30,
			10, 30,
			11, 29,
			12, 30,
			0, 0,
		},
		111, 61, 0, 0,
		{
			1, 30,
			2, 30,
			2, 29,
			3, 29,
			4, 30,
			5, 29,
			6, 29,
			7, 30,
			8, 29,
			9, 30,
			10, 29,
			11, 30,
			12, 30,
		},
		239, 62, 0, 0,
		{
			1, 30,
			2, 29,
			3, 30,
			4, 29,
			5, 30,
			6, 29,
			7, 29,
			8, 30,
			9, 29,
			10, 30,
			11, 29,
			12, 30,
			0, 0,
		},
		81, 64, 0, 0,
		{
			1, 30,
			2, 29,
			3, 30,
			4, 30,
			5, 29,
			6, 30,
			7, 29,
			7, 29,
			8, 30,
			9, 29,
			10, 30,
			11, 29,
			12, 30,
		},
		209, 65, 0, 0,
		{
			1, 29,
			2, 30,
			3, 30,
			4, 29,
			5, 30,
			6, 30,
			7, 29,
			8, 29,
			9, 30,
			10, 29,
			11, 30,
			12, 29,
			0, 0,
		},
		51, 67, 0, 0,
		{
			1, 30,
			2, 29,
			3, 30,
			4, 30,
			5, 29,
			6, 30,
			7, 29,
			8, 30,
			9, 29,
			10, 30,
			11, 29,
			12, 30,
			0, 0,
		},
		150, 68, 0, 0,
		{
			1, 29,
			2, 30,
			3, 29,
			4, 30,
			5, 29,
			5, 30,
			6, 29,
			7, 30,
			8, 30,
			9, 29,
			10, 30,
			11, 29,
			12, 30,
		},
		22, 70, 0, 0,
		{
			1, 29,
			2, 30,
			3, 29,
			4, 29,
			5, 30,
			6, 30,
			7, 29,
			8, 30,
			9, 30,
			10, 29,
			11, 30,
			12, 29,
			0, 0,
		},
		120, 71, 0, 0,
		{
			1, 30,
			2, 29,
			3, 30,
			4, 29,
			5, 29,
			6, 30,
			7, 29,
			8, 30,
			9, 30,
			10, 29,
			11, 30,
			12, 30,
			0, 0,
		},
		219, 72, 0, 0,
		{
			1, 29,
			2, 30,
			3, 29,
			3, 30,
			4, 29,
			5, 29,
			6, 30,
			7, 29,
			8, 30,
			9, 29,
			10, 30,
			11, 30,
			12, 30,
		},
		91, 74, 0, 0,
		{
			1, 29,
			2, 30,
			3, 29,
			4, 30,
			5, 29,
			6, 29,
			7, 30,
			8, 29,
			9, 30,
			10, 29,
			11, 30,
			12, 30,
			0, 0,
		},
		189, 75, 0, 0,
		{
			1, 30,
			2, 29,
			3, 30,
			4, 29,
			5, 30,
			6, 29,
			7, 29,
			8, 30,
			8, 29,
			9, 30,
			10, 29,
			11, 30,
			12, 29,
		},
		60, 77, 0, 0,
		{
			1, 30,
			2, 30,
			3, 30,
			4, 29,
			5, 30,
			6, 29,
			7, 29,
			8, 30,
			9, 29,
			10, 30,
			11, 29,
			12, 30,
			0, 0,
		},
		159, 78, 0, 0,
		{
			1, 29,
			2, 30,
			3, 30,
			4, 29,
			5, 30,
			6, 29,
			7, 30,
			8, 29,
			9, 30,
			10, 29,
			11, 30,
			12, 29,
			0, 0,
		},
		1, 80, 0, 0,
		{
			1, 30,
			2, 29,
			3, 30,
			4, 29,
			5, 30,
			6, 30,
			6, 29,
			7, 30,
			8, 29,
			9, 30,
			10, 29,
			11, 30,
			12, 29,
		},
		129, 81, 0, 0,
		{
			1, 30,
			2, 29,
			3, 30,
			4, 29,
			5, 30,
			6, 29,
			7, 30,
			8, 30,
			9, 29,
			10, 30,
			11, 29,
			12, 30,
			0, 0,
		},
		228, 82, 0, 0,
		{
			1, 29,
			2, 30,
			3, 29,
			4, 29,
			5, 30,
			6, 29,
			7, 30,
			8, 30,
			9, 29,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -