when_exe 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +36 -33
- data/bin/locales.rb +1 -1
- data/bin/make_ttl.rb.config +1 -1
- data/lib/when_exe.rb +27 -16
- data/lib/when_exe/basictypes.rb +772 -771
- data/lib/when_exe/calendartypes.rb +1485 -1453
- data/lib/when_exe/coordinates.rb +5 -0
- data/lib/when_exe/core/compatibility.rb +1 -1
- data/lib/when_exe/core/duration.rb +147 -116
- data/lib/when_exe/core/extension.rb +499 -497
- data/lib/when_exe/ephemeris.rb +1952 -1951
- data/lib/when_exe/ephemeris/eclipse.rb +5 -4
- data/lib/when_exe/ephemeris/notes.rb +457 -421
- data/lib/when_exe/ephemeris/planets.rb +585 -585
- data/lib/when_exe/ephemeris/sun.rb +214 -214
- data/lib/when_exe/google_api.rb +153 -0
- data/lib/when_exe/icalendar.rb +1640 -1632
- data/lib/when_exe/inspect.rb +42 -20
- data/lib/when_exe/linkeddata.rb +28 -7
- data/lib/when_exe/locales/autoload.rb +2 -1
- data/lib/when_exe/locales/locale.rb +35 -15
- data/lib/when_exe/locales/zh.rb +77 -0
- data/lib/when_exe/mini_application.rb +3 -1
- data/lib/when_exe/{googlecalendar.rb → obsolete/googlecalendar.rb} +144 -144
- data/lib/when_exe/parts/enumerator.rb +498 -486
- data/lib/when_exe/parts/geometric_complex.rb +397 -397
- data/lib/when_exe/parts/timezone.rb +246 -241
- data/lib/when_exe/region/armenian.rb +55 -56
- data/lib/when_exe/region/babylonian.rb +406 -405
- data/lib/when_exe/region/bahai.rb +107 -106
- data/lib/when_exe/region/balinese.rb +624 -622
- data/lib/when_exe/region/chinese.rb +1071 -1026
- data/lib/when_exe/region/chinese/epochs.rb +28 -28
- data/lib/when_exe/region/chinese/notes.rb +219 -0
- data/lib/when_exe/region/chinese/twins.rb +803 -803
- data/lib/when_exe/region/christian.rb +21 -15
- data/lib/when_exe/region/coptic.rb +107 -106
- data/lib/when_exe/region/discordian.rb +218 -218
- data/lib/when_exe/region/east_asian.rb +1 -1
- data/lib/when_exe/region/french.rb +126 -56
- data/lib/when_exe/region/geologicalage.rb +639 -639
- data/lib/when_exe/region/goddess.rb +60 -58
- data/lib/when_exe/region/hanke_henry.rb +2 -2
- data/lib/when_exe/region/indian.rb +1225 -1222
- data/lib/when_exe/region/international_fixed.rb +96 -97
- data/lib/when_exe/region/iranian.rb +206 -203
- data/lib/when_exe/region/islamic.rb +102 -102
- data/lib/when_exe/region/japanese.rb +126 -71
- data/lib/when_exe/region/japanese/epochs.rb +426 -426
- data/lib/when_exe/region/japanese/notes.rb +101 -81
- data/lib/when_exe/region/japanese/residues.rb +1345 -1311
- data/lib/when_exe/region/japanese/twins.rb +225 -225
- data/lib/when_exe/region/japanese/weeks.rb +112 -112
- data/lib/when_exe/region/javanese.rb +230 -230
- data/lib/when_exe/region/jewish.rb +130 -131
- data/lib/when_exe/region/m17n.rb +114 -114
- data/lib/when_exe/region/martian.rb +258 -258
- data/lib/when_exe/region/mayan.rb +11 -8
- data/lib/when_exe/region/pax.rb +4 -5
- data/lib/when_exe/region/pope.rb +1 -1
- data/lib/when_exe/region/positivist.rb +100 -100
- data/lib/when_exe/region/residue.rb +162 -162
- data/lib/when_exe/region/roman.rb +333 -333
- data/lib/when_exe/region/{soviet.rb → russian.rb} +221 -209
- data/lib/when_exe/region/shire.rb +222 -223
- data/lib/when_exe/region/symmetry.rb +50 -50
- data/lib/when_exe/region/thai.rb +336 -336
- data/lib/when_exe/region/tibetan.rb +315 -316
- data/lib/when_exe/region/tranquility.rb +207 -208
- data/lib/when_exe/region/vanishing_leprechaun.rb +3 -1
- data/lib/when_exe/region/vietnamese.rb +449 -440
- data/lib/when_exe/region/weekdate.rb +80 -80
- data/lib/when_exe/region/world.rb +170 -171
- data/lib/when_exe/region/world_season.rb +89 -89
- data/lib/when_exe/region/yerm.rb +3 -3
- data/lib/when_exe/region/zoroastrian.rb +205 -205
- data/lib/when_exe/timestandard.rb +708 -707
- data/lib/when_exe/tmduration.rb +338 -338
- data/lib/when_exe/tmobjects.rb +1356 -1356
- data/lib/when_exe/tmposition.rb +66 -31
- data/lib/when_exe/version.rb +16 -2
- data/test/examples/Residue.m17n +83 -83
- data/test/examples/Terms.m17n +2 -2
- data/test/test.rb +2 -2
- data/test/test/google_api.rb +65 -0
- data/test/test/linkeddata.rb +1 -1
- data/test/test/{googlecalendar.rb → obsolete/googlecalendar.rb} +194 -194
- data/test/test/region/indian.rb +90 -85
- data/test/test/region/m17n.rb +7 -7
- data/test/test/region/mayan.rb +195 -195
- data/test/test/region/residue.rb +153 -153
- data/test/test/tmposition.rb +11 -1
- data/when_exe.gemspec +2 -2
- metadata +95 -8
- data/test/test.rb.config +0 -1
@@ -1,131 +1,130 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
=begin
|
3
|
-
Copyright (C) 2011-
|
4
|
-
|
5
|
-
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
|
-
=end
|
7
|
-
|
8
|
-
module When
|
9
|
-
class BasicTypes::M17n
|
10
|
-
|
11
|
-
Jewish = [self, [
|
12
|
-
"locale:[=en:, ja=ja:, alias]",
|
13
|
-
"names:[Jewish=]",
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
"
|
18
|
-
"[%s
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
"
|
24
|
-
"[
|
25
|
-
"[
|
26
|
-
"[
|
27
|
-
"[
|
28
|
-
"[
|
29
|
-
"[
|
30
|
-
"[
|
31
|
-
"[
|
32
|
-
"[
|
33
|
-
"[
|
34
|
-
"[
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
#
|
43
|
-
#
|
44
|
-
|
45
|
-
|
46
|
-
"
|
47
|
-
"
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
#
|
55
|
-
#
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
@
|
70
|
-
@
|
71
|
-
@
|
72
|
-
@
|
73
|
-
@
|
74
|
-
@
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
@
|
79
|
-
@
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
#
|
103
|
-
#
|
104
|
-
#
|
105
|
-
#
|
106
|
-
#
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
#
|
127
|
-
#
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
end
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
=begin
|
3
|
+
Copyright (C) 2011-2015 Takashi SUGA
|
4
|
+
|
5
|
+
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
|
+
=end
|
7
|
+
|
8
|
+
module When
|
9
|
+
class BasicTypes::M17n
|
10
|
+
|
11
|
+
Jewish = [self, [
|
12
|
+
"locale:[=en:, ja=ja:, zh=zh:, alias]",
|
13
|
+
"names:[Jewish=en:Hebrew_calendar, ユダヤ暦, 希伯來曆]",
|
14
|
+
|
15
|
+
[self,
|
16
|
+
"names:[IntercalaryMonth=en:Intercalation, 閏月]",
|
17
|
+
"[%s I=, 第1=, 第一=]",
|
18
|
+
"[%s II=, 第2=, 第二=]",
|
19
|
+
],
|
20
|
+
|
21
|
+
[self,
|
22
|
+
"names:[month name=en:Month, 月の名前=ja:%%<月_(暦)>, 該月的名稱=, *alias:Month=]",
|
23
|
+
"[Tishrei, ティシュリー=, 提斯利月]",
|
24
|
+
"[Cheshvan, マルヘシュバン=, 瑪西班月]",
|
25
|
+
"[Kislev, キスレーヴ=, 基斯流月]",
|
26
|
+
"[Tevet, テベット=, 提別月 ]",
|
27
|
+
"[Shevat, シュバット=, 細罷特月]",
|
28
|
+
"[Adar, アダル, 亞達月 ]",
|
29
|
+
"[Nisan, ニサン=, 尼散月 ]",
|
30
|
+
"[Iyar, イヤール=, 以珥月 ]",
|
31
|
+
"[Sivan, シバン=, 西彎月 ]",
|
32
|
+
"[Tammuz, タムーズ=, 搭模斯月]",
|
33
|
+
"[Av, アブ=, 埃波月 ]",
|
34
|
+
"[Elul, エルール=, 以祿月 ]"
|
35
|
+
]
|
36
|
+
]]
|
37
|
+
end
|
38
|
+
|
39
|
+
class TM::CalendarEra
|
40
|
+
|
41
|
+
#
|
42
|
+
# Anno Mundi epoch
|
43
|
+
#
|
44
|
+
Jewish = [self, [
|
45
|
+
"locale:[=en:, ja=ja:, alias]",
|
46
|
+
"area:[Israel, イスラエル]",
|
47
|
+
["[AnnoMundi=en:Anno_Mundi, ユダヤ紀元, *alias:HY]1.1.1", '@CE', "01-01-01^Jewish"],
|
48
|
+
]]
|
49
|
+
end
|
50
|
+
|
51
|
+
module CalendarTypes
|
52
|
+
|
53
|
+
#
|
54
|
+
# Jewish Calendar
|
55
|
+
#
|
56
|
+
class Jewish < TableBased
|
57
|
+
|
58
|
+
include Lunar
|
59
|
+
|
60
|
+
private
|
61
|
+
|
62
|
+
# オブジェクトの正規化
|
63
|
+
def _normalize(args=[], options={})
|
64
|
+
@label = 'Jewish'
|
65
|
+
|
66
|
+
# Default Parameters
|
67
|
+
Rational
|
68
|
+
@epoch_in_CE ||= -3760
|
69
|
+
@origin_of_MSC ||= 3761
|
70
|
+
@origin_of_LSC ||= 1721300 + Rational( 9415, 98496)
|
71
|
+
@mean_month ||= 29 + Rational(261307, 492480)
|
72
|
+
@leap_period ||= 19
|
73
|
+
@leap_number ||= 7
|
74
|
+
@leap_base ||= 1
|
75
|
+
|
76
|
+
# Derived Parameters
|
77
|
+
@no_leap_number = @leap_period - @leap_number
|
78
|
+
@date_shift = @mean_month / @leap_period
|
79
|
+
@mean_year = 12 * @mean_month + @leap_number * @date_shift
|
80
|
+
|
81
|
+
# Month & Day Index
|
82
|
+
@indices ||= [
|
83
|
+
When.Index('Jewish::Month', {:branch=>{-1=>When.Resource('_m:Jewish::IntercalaryMonth::*')[0],
|
84
|
+
1=>When.Resource('_m:Jewish::IntercalaryMonth::*')[1]}}),
|
85
|
+
When::Coordinates::DefaultDayIndex
|
86
|
+
]
|
87
|
+
|
88
|
+
# Month & Day Arrangement
|
89
|
+
@rule_table ||= {
|
90
|
+
353 => {'Length'=>[30,29,29,29] + [30,29]*4, 'IDs'=>'1,2,3,4,5,6,7,8,9,10,11,12' },
|
91
|
+
354 => {'Length'=>[30,29,30,29] + [30,29]*4, 'IDs'=>'1,2,3,4,5,6,7,8,9,10,11,12' },
|
92
|
+
355 => {'Length'=>[30,30,30,29] + [30,29]*4, 'IDs'=>'1,2,3,4,5,6,7,8,9,10,11,12' },
|
93
|
+
383 => {'Length'=>[30,29,29,29,30] + [30,29]*4, 'IDs'=>'1,2,3,4,5,6*,6=,7,8,9,10,11,12'},
|
94
|
+
384 => {'Length'=>[30,29,30,29,30] + [30,29]*4, 'IDs'=>'1,2,3,4,5,6*,6=,7,8,9,10,11,12'},
|
95
|
+
385 => {'Length'=>[30,30,30,29,30] + [30,29]*4, 'IDs'=>'1,2,3,4,5,6*,6=,7,8,9,10,11,12'}
|
96
|
+
}
|
97
|
+
|
98
|
+
super
|
99
|
+
end
|
100
|
+
|
101
|
+
# 年初の通日
|
102
|
+
#
|
103
|
+
# @param [Array<Numeric>] date ( 年 )
|
104
|
+
#
|
105
|
+
# @return [Integer] 年初の通日
|
106
|
+
#
|
107
|
+
def _sdn_(date)
|
108
|
+
y = +date[0]
|
109
|
+
g = (((y + @leap_base) % @leap_period) * @no_leap_number) % @leap_period
|
110
|
+
sdn, f = (y * @mean_year + g * @date_shift + @origin_of_LSC).divmod(1)
|
111
|
+
|
112
|
+
case sdn % 7
|
113
|
+
when 2,4,6 # Wed, Fri, Sun
|
114
|
+
sdn += 1
|
115
|
+
when 0 # Mon
|
116
|
+
sdn += 1 if ((f >= Rational(23269, 25920)) && (g > 11))
|
117
|
+
when 1 # Tue
|
118
|
+
sdn += 2 if ((f >= Rational( 1367, 2160)) && (g > 6))
|
119
|
+
else # Thu, Sat
|
120
|
+
end
|
121
|
+
return sdn
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
#
|
126
|
+
# Hebrew Calendar (alias of Jewish Calendar)
|
127
|
+
#
|
128
|
+
Hebrew = Jewish
|
129
|
+
end
|
130
|
+
end
|
data/lib/when_exe/region/m17n.rb
CHANGED
@@ -1,114 +1,114 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
=begin
|
3
|
-
Copyright (C) 2011-
|
4
|
-
|
5
|
-
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
|
-
=end
|
7
|
-
|
8
|
-
module When
|
9
|
-
module BasicTypes
|
10
|
-
class M17n
|
11
|
-
#
|
12
|
-
# 月名
|
13
|
-
#
|
14
|
-
# @param [Numeric] name 指定の月番号の月名を返します
|
15
|
-
# @param [When::BasicTypes::M17n] name name 自身をそのまま返します
|
16
|
-
# @param [String] name 最初の3文字から決定した月名を返します。
|
17
|
-
# 一致する月名がない場合、名前の一致するその他のM17nを探して返します。
|
18
|
-
#
|
19
|
-
# @return [When::BasicTypes::M17n] 月名
|
20
|
-
#
|
21
|
-
def self.month_name(name)
|
22
|
-
return name if name.kind_of?(self)
|
23
|
-
|
24
|
-
months = When.Resource('_m:Calendar::Month').child
|
25
|
-
abbrs = When.Resource('_m:Calendar::Abbr_Month').child
|
26
|
-
return name > 0 ? months[name-1] : abbrs[-name-1] if name.kind_of?(Numeric)
|
27
|
-
|
28
|
-
name = When::EncodingConversion.to_internal_encoding(name)
|
29
|
-
match = name[/\A...|^..\z/]
|
30
|
-
if match
|
31
|
-
(months+abbrs).each do |month|
|
32
|
-
return month if month.=~(/\A#{match}/i)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
ObjectSpace.each_object(self) do |object|
|
37
|
-
return object if object.registered? && object.=~(/\A#{name}\z/)
|
38
|
-
end
|
39
|
-
|
40
|
-
return nil
|
41
|
-
end
|
42
|
-
|
43
|
-
#
|
44
|
-
# 共通的な暦用語
|
45
|
-
#
|
46
|
-
Calendar = [M17n, [
|
47
|
-
"locale:[=en:, ja=ja:, alias]",
|
48
|
-
"names:[Calendar=]",
|
49
|
-
|
50
|
-
"[Intercalary %s=,
|
51
|
-
|
52
|
-
[M17n,
|
53
|
-
"names:[Month,
|
54
|
-
"[January, 1月, /date/month_names/1] ",
|
55
|
-
"[February, 2月, /date/month_names/2] ",
|
56
|
-
"[March, 3月, /date/month_names/3] ",
|
57
|
-
"[April, 4月, /date/month_names/4] ",
|
58
|
-
"[May, 5月, /date/month_names/5] ",
|
59
|
-
"[June, 6月, /date/month_names/6] ",
|
60
|
-
"[July, 7月, /date/month_names/7] ",
|
61
|
-
"[August, 8月, /date/month_names/8] ",
|
62
|
-
"[September, 9月, /date/month_names/9] ",
|
63
|
-
"[October, 10月, /date/month_names/10]",
|
64
|
-
"[November, 11月, /date/month_names/11]",
|
65
|
-
"[December, 12月, /date/month_names/12]"
|
66
|
-
],
|
67
|
-
|
68
|
-
[M17n,
|
69
|
-
"names:[Abbr_Month, 月略称)]",
|
70
|
-
"[Jan, 1月, /date/abbr_month_names/1] ",
|
71
|
-
"[Feb, 2月, /date/abbr_month_names/2] ",
|
72
|
-
"[Mar, 3月, /date/abbr_month_names/3] ",
|
73
|
-
"[Apr, 4月, /date/abbr_month_names/4] ",
|
74
|
-
"[May, 5月, /date/abbr_month_names/5] ",
|
75
|
-
"[Jun, 6月, /date/abbr_month_names/6] ",
|
76
|
-
"[Jul, 7月, /date/abbr_month_names/7] ",
|
77
|
-
"[Aug, 8月, /date/abbr_month_names/8] ",
|
78
|
-
"[Sep, 9月, /date/abbr_month_names/9] ",
|
79
|
-
"[Oct, 10月, /date/abbr_month_names/10]",
|
80
|
-
"[Nov, 11月, /date/abbr_month_names/11]",
|
81
|
-
"[Dec, 12月, /date/abbr_month_names/12]"
|
82
|
-
]
|
83
|
-
]]
|
84
|
-
|
85
|
-
# Events
|
86
|
-
EpochEvents = [M17n, [
|
87
|
-
"locale:[=en:, ja=ja:, alias]",
|
88
|
-
"names:[EpochEvents=]",
|
89
|
-
"[Accession=, 代始]",
|
90
|
-
"[FelicitousEvent=, 祥瑞]",
|
91
|
-
"[NaturalDisaster=, 災異]",
|
92
|
-
"[InauspiciousYear=, 革年]",
|
93
|
-
"[Foundation=, 創業]",
|
94
|
-
"[CalendarReform=, 改暦]",
|
95
|
-
"[CalendarEpoch=, 暦元]"
|
96
|
-
]]
|
97
|
-
|
98
|
-
# Formats
|
99
|
-
CalendarFormats = [M17n, [
|
100
|
-
"locale:[=]",
|
101
|
-
"names:[CalendarFormats=]",
|
102
|
-
"[Date=, /date/formats/default]",
|
103
|
-
"[DateLong=, /date/formats/long ]",
|
104
|
-
"[DateShort=, /date/formats/short ]",
|
105
|
-
"[DateTime=, /time/formats/default]",
|
106
|
-
"[DateTimeLong=, /time/formats/long ]",
|
107
|
-
"[DateTimeShort=, /time/formats/short ]",
|
108
|
-
"[Time=, /time/formats/time ]",
|
109
|
-
"[AM=, /time/am ]",
|
110
|
-
"[PM=, /time/pm ]"
|
111
|
-
]]
|
112
|
-
end
|
113
|
-
end
|
114
|
-
end
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
=begin
|
3
|
+
Copyright (C) 2011-2015 Takashi SUGA
|
4
|
+
|
5
|
+
You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
|
6
|
+
=end
|
7
|
+
|
8
|
+
module When
|
9
|
+
module BasicTypes
|
10
|
+
class M17n
|
11
|
+
#
|
12
|
+
# 月名
|
13
|
+
#
|
14
|
+
# @param [Numeric] name 指定の月番号の月名を返します
|
15
|
+
# @param [When::BasicTypes::M17n] name name 自身をそのまま返します
|
16
|
+
# @param [String] name 最初の3文字から決定した月名を返します。
|
17
|
+
# 一致する月名がない場合、名前の一致するその他のM17nを探して返します。
|
18
|
+
#
|
19
|
+
# @return [When::BasicTypes::M17n] 月名
|
20
|
+
#
|
21
|
+
def self.month_name(name)
|
22
|
+
return name if name.kind_of?(self)
|
23
|
+
|
24
|
+
months = When.Resource('_m:Calendar::Month').child
|
25
|
+
abbrs = When.Resource('_m:Calendar::Abbr_Month').child
|
26
|
+
return name > 0 ? months[name-1] : abbrs[-name-1] if name.kind_of?(Numeric)
|
27
|
+
|
28
|
+
name = When::EncodingConversion.to_internal_encoding(name)
|
29
|
+
match = name[/\A...|^..\z/]
|
30
|
+
if match
|
31
|
+
(months+abbrs).each do |month|
|
32
|
+
return month if month.=~(/\A#{match}/i)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
ObjectSpace.each_object(self) do |object|
|
37
|
+
return object if object.registered? && object.=~(/\A#{name}\z/)
|
38
|
+
end
|
39
|
+
|
40
|
+
return nil
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
# 共通的な暦用語
|
45
|
+
#
|
46
|
+
Calendar = [M17n, [
|
47
|
+
"locale:[=en:, ja=ja:, alias]",
|
48
|
+
"names:[Calendar=]",
|
49
|
+
|
50
|
+
"[Intercalary %s=, *閏, zh:閏]",
|
51
|
+
|
52
|
+
[M17n,
|
53
|
+
"names:[month name=en:Month, 月の名前=ja:%%<月_(暦)>, zh:該月的名稱=, *alias:Month=]",
|
54
|
+
"[January, 1月, /date/month_names/1] ",
|
55
|
+
"[February, 2月, /date/month_names/2] ",
|
56
|
+
"[March, 3月, /date/month_names/3] ",
|
57
|
+
"[April, 4月, /date/month_names/4] ",
|
58
|
+
"[May, 5月, /date/month_names/5] ",
|
59
|
+
"[June, 6月, /date/month_names/6] ",
|
60
|
+
"[July, 7月, /date/month_names/7] ",
|
61
|
+
"[August, 8月, /date/month_names/8] ",
|
62
|
+
"[September, 9月, /date/month_names/9] ",
|
63
|
+
"[October, 10月, /date/month_names/10]",
|
64
|
+
"[November, 11月, /date/month_names/11]",
|
65
|
+
"[December, 12月, /date/month_names/12]"
|
66
|
+
],
|
67
|
+
|
68
|
+
[M17n,
|
69
|
+
"names:[Abbr_Month, 月略称)]",
|
70
|
+
"[Jan, 1月, /date/abbr_month_names/1] ",
|
71
|
+
"[Feb, 2月, /date/abbr_month_names/2] ",
|
72
|
+
"[Mar, 3月, /date/abbr_month_names/3] ",
|
73
|
+
"[Apr, 4月, /date/abbr_month_names/4] ",
|
74
|
+
"[May, 5月, /date/abbr_month_names/5] ",
|
75
|
+
"[Jun, 6月, /date/abbr_month_names/6] ",
|
76
|
+
"[Jul, 7月, /date/abbr_month_names/7] ",
|
77
|
+
"[Aug, 8月, /date/abbr_month_names/8] ",
|
78
|
+
"[Sep, 9月, /date/abbr_month_names/9] ",
|
79
|
+
"[Oct, 10月, /date/abbr_month_names/10]",
|
80
|
+
"[Nov, 11月, /date/abbr_month_names/11]",
|
81
|
+
"[Dec, 12月, /date/abbr_month_names/12]"
|
82
|
+
]
|
83
|
+
]]
|
84
|
+
|
85
|
+
# Events
|
86
|
+
EpochEvents = [M17n, [
|
87
|
+
"locale:[=en:, ja=ja:, alias]",
|
88
|
+
"names:[EpochEvents=]",
|
89
|
+
"[Accession=, 代始]",
|
90
|
+
"[FelicitousEvent=, 祥瑞]",
|
91
|
+
"[NaturalDisaster=, 災異]",
|
92
|
+
"[InauspiciousYear=, 革年]",
|
93
|
+
"[Foundation=, 創業]",
|
94
|
+
"[CalendarReform=, 改暦]",
|
95
|
+
"[CalendarEpoch=, 暦元]"
|
96
|
+
]]
|
97
|
+
|
98
|
+
# Formats
|
99
|
+
CalendarFormats = [M17n, [
|
100
|
+
"locale:[=]",
|
101
|
+
"names:[CalendarFormats=]",
|
102
|
+
"[Date=, /date/formats/default]",
|
103
|
+
"[DateLong=, /date/formats/long ]",
|
104
|
+
"[DateShort=, /date/formats/short ]",
|
105
|
+
"[DateTime=, /time/formats/default]",
|
106
|
+
"[DateTimeLong=, /time/formats/long ]",
|
107
|
+
"[DateTimeShort=, /time/formats/short ]",
|
108
|
+
"[Time=, /time/formats/time ]",
|
109
|
+
"[AM=, /time/am ]",
|
110
|
+
"[PM=, /time/pm ]"
|
111
|
+
]]
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|