-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhandates.py
More file actions
executable file
·202 lines (198 loc) · 15.3 KB
/
handates.py
File metadata and controls
executable file
·202 lines (198 loc) · 15.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
# -*- coding: utf-8 -*-
"""Table of han dates with dateFld ranges."""
"""
Copyright 2014 OCLC Online Computer Library Center
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
handates = {'江戸時代後期'.decode('utf-8'): ([1801, '', ''], [1868, '', ''], 'flourished'),
'江戸時代中期'.decode('utf-8'): ([1716, '', ''], [1800, '', ''], 'flourished'),
'江戸末期'.decode('utf-8'): ([1853, '', ''], [1868, '', ''], 'flourished'),
'江戸中期'.decode('utf-8'): ([1716, '', ''], [1800, '', ''], 'flourished'),
'江戸後期'.decode('utf-8'): ([1801, '', ''], [1868, '', ''], 'flourished'),
'江戸時代'.decode('utf-8'): ([1615, '', ''], [1868, '', ''], 'flourished'),
'文化頃'.decode('utf-8'): ([1804, '', ''], [0, '', ''], 'flourished'),
'寛政頃'.decode('utf-8'): ([1789, '', ''], [0, '', ''], 'flourished'),
'文政頃'.decode('utf-8'): ([1818, '', ''], [0, '', ''], 'flourished'),
'江戸時代前期'.decode('utf-8'): ([1615, '', ''], [1715, '', ''], 'flourished'),
'享保頃'.decode('utf-8'): ([1716, '', ''], [0, '', ''], 'flourished'),
'天保頃'.decode('utf-8'): ([1830, '', ''], [0, '', ''], 'flourished'),
'元禄頃'.decode('utf-8'): ([1688, '', ''], [0, '', ''], 'flourished'),
'平安時代'.decode('utf-8'): ([805, '', ''], [1185, '', ''], 'flourished'),
'宝暦頃'.decode('utf-8'): ([1751, '', ''], [0, '', ''], 'flourished'),
'江戸時代末期'.decode('utf-8'): ([1853, '', ''], [1868, '', ''], 'flourished'),
'安政頃'.decode('utf-8'): ([1854, '', ''], [0, '', ''], 'flourished'),
'鎌倉時代'.decode('utf-8'): ([1185, '', ''], [1333, '', ''], 'flourished'),
'天明頃'.decode('utf-8'): ([1781, '', ''], [0, '', ''], 'flourished'),
'安永頃'.decode('utf-8'): ([1772, '', ''], [0, '', ''], 'flourished'),
'室町時代'.decode('utf-8'): ([1336, '', ''], [1573, '', ''], 'flourished'),
'明和頃'.decode('utf-8'): ([1764, '', ''], [0, '', ''], 'flourished'),
'江戸前期'.decode('utf-8'): ([1615, '', ''], [1715, '', ''], 'flourished'),
'嘉永頃'.decode('utf-8'): ([1848, '', ''], [0, '', ''], 'flourished'),
'享和頃'.decode('utf-8'): ([1801, '', ''], [0, '', ''], 'flourished'),
'奈良時代'.decode('utf-8'): ([715, '', ''], [806, '', ''], 'flourished'),
'文化-文政頃'.decode('utf-8'): ([1804, '', ''], [1818, '', ''], 'flourished'),
'江戸初期'.decode('utf-8'): ([1615, '', ''], [1715, '', ''], 'flourished'),
'南北朝時代'.decode('utf-8'): ([1336, '', ''], [1392, '', ''], 'flourished'),
'寛政-文化頃'.decode('utf-8'): ([1789, '', ''], [1804, '', ''], 'flourished'),
'平安時代中期'.decode('utf-8'): ([969, '', ''], [1086, '', ''], 'flourished'),
'弘化頃'.decode('utf-8'): ([1844, '', ''], [0, '', ''], 'flourished'),
'平安中期'.decode('utf-8'): ([969, '', ''], [1086, '', ''], 'flourished'),
'文久頃'.decode('utf-8'): ([1861, '', ''], [0, '', ''], 'flourished'),
'天明-寛政頃'.decode('utf-8'): ([1781, '', ''], [1789, '', ''], 'flourished'),
'平安時代後期'.decode('utf-8'): ([1086, '', ''], [1185, '', ''], 'flourished'),
'正徳頃'.decode('utf-8'): ([1711, '', ''], [0, '', ''], 'flourished'),
'寛政-享和頃'.decode('utf-8'): ([1789, '', ''], [1801, '', ''], 'flourished'),
'明和-安永頃'.decode('utf-8'): ([1764, '', ''], [1772, '', ''], 'flourished'),
'宝永頃'.decode('utf-8'): ([1704, '', ''], [0, '', ''], 'flourished'),
'平安末期'.decode('utf-8'): ([1086, '', ''], [1185, '', ''], 'flourished'),
'文政-天保頃'.decode('utf-8'): ([1818, '', ''], [1830, '', ''], 'flourished'),
'戦国時代'.decode('utf-8'): ([0, '', ''], [0, '', ''], 'flourished'),
'室町時代後期'.decode('utf-8'): ([0, '', ''], [1573, '', ''], 'flourished'),
'徳川中期'.decode('utf-8'): ([1716, '', ''], [1800, '', ''], 'flourished'),
'室町末期'.decode('utf-8'): ([0, '', ''], [1573, '', ''], 'flourished'),
'延宝頃'.decode('utf-8'): ([1673, '', ''], [0, '', ''], 'flourished'),
'安土桃山時代'.decode('utf-8'): ([0, '', ''], [0, '', ''], 'flourished'),
'平安後期'.decode('utf-8'): ([1086, '', ''], [1185, '', ''], 'flourished'),
'宝暦-明和頃'.decode('utf-8'): ([1751, '', ''], [1764, '', ''], 'flourished'),
'鎌倉時代後期'.decode('utf-8'): ([1288, '', ''], [1333, '', ''], 'flourished'),
'寛文頃'.decode('utf-8'): ([1661, '', ''], [0, '', ''], 'flourished'),
'慶長頃'.decode('utf-8'): ([1596, '', ''], [0, '', ''], 'flourished'),
'寛保頃'.decode('utf-8'): ([1741, '', ''], [0, '', ''], 'flourished'),
'安永-天明頃'.decode('utf-8'): ([1772, '', ''], [1781, '', ''], 'flourished'),
'江戸時代初期'.decode('utf-8'): ([1615, '', ''], [1715, '', ''], 'flourished'),
'江戸末期-明治時代'.decode('utf-8'): ([1853, '', ''], [1868, '', ''], 'flourished'),
'寛永頃'.decode('utf-8'): ([1624, '', ''], [0, '', ''], 'flourished'),
'慶安頃'.decode('utf-8'): ([1648, '', ''], [0, '', ''], 'flourished'),
'室町後期'.decode('utf-8'): ([0, '', ''], [1573, '', ''], 'flourished'),
'鎌倉時代中期'.decode('utf-8'): ([1222, '', ''], [1287, '', ''], 'flourished'),
'平安時代末期'.decode('utf-8'): ([1086, '', ''], [1185, '', ''], 'flourished'),
'鎌倉時代前期'.decode('utf-8'): ([1185, '', ''], [1268, '', ''], 'flourished'),
'天正頃'.decode('utf-8'): ([1573, '', ''], [0, '', ''], 'flourished'),
'寛永-明暦頃'.decode('utf-8'): ([1624, '', ''], [1655, '', ''], 'flourished'),
'文禄頃'.decode('utf-8'): ([1592, '', ''], [0, '', ''], 'flourished'),
'室町時代前期'.decode('utf-8'): ([1336, '', ''], [1429, '', ''], 'flourished'),
'嘉永-安政頃'.decode('utf-8'): ([1848, '', ''], [1854, '', ''], 'flourished'),
'治承頃'.decode('utf-8'): ([1177, '', ''], [0, '', ''], 'flourished'),
'元禄時代'.decode('utf-8'): ([1688, '', ''], [0, '', ''], 'flourished'),
'元和頃'.decode('utf-8'): ([1615, '', ''], [0, '', ''], 'flourished'),
'幕末-明治時代'.decode('utf-8'): ([1853, '', ''], [1868, '', ''], 'flourished'),
'元文頃'.decode('utf-8'): ([1736, '', ''], [0, '', ''], 'flourished'),
'飛鳥時代'.decode('utf-8'): ([592, '', ''], [710, '', ''], 'flourished'),
'寛政-文政頃'.decode('utf-8'): ([1789, '', ''], [1818, '', ''], 'flourished'),
'天保-嘉永頃'.decode('utf-8'): ([1830, '', ''], [1848, '', ''], 'flourished'),
'貞享頃'.decode('utf-8'): ([1684, '', ''], [0, '', ''], 'flourished'),
'宝暦-安永頃'.decode('utf-8'): ([1751, '', ''], [1772, '', ''], 'flourished'),
'天明-文化頃'.decode('utf-8'): ([1781, '', ''], [1804, '', ''], 'flourished'),
'正徳-享保頃'.decode('utf-8'): ([1711, '', ''], [1716, '', ''], 'flourished'),
'慶応頃'.decode('utf-8'): ([1865, '', ''], [0, '', ''], 'flourished'),
'享和-文化頃'.decode('utf-8'): ([1801, '', ''], [1804, '', ''], 'flourished'),
'幕末'.decode('utf-8'): ([1853, '', ''], [1868, '', ''], 'flourished'),
'江戸末期-明治初期'.decode('utf-8'): ([1853, '', ''], [1868, '', ''], 'flourished'),
'延享頃'.decode('utf-8'): ([1744, '', ''], [0, '', ''], 'flourished'),
'室町末期-江戸初期'.decode('utf-8'): ([1573, '', ''], [1615, '', ''], 'flourished'),
'平安前期'.decode('utf-8'): ([805, '', ''], [0, '', ''], 'flourished'),
'元禄-正徳頃'.decode('utf-8'): ([1688, '', ''], [1711, '', ''], 'flourished'),
'江戸時代後期-明治時代'.decode('utf-8'): ([1853, '', ''], [1868, '', ''], 'flourished'),
'安永-寛政頃'.decode('utf-8'): ([1772, '', ''], [1789, '', ''], 'flourished'),
'貞応頃'.decode('utf-8'): ([1222, '', ''], [0, '', ''], 'flourished'),
'桃山時代'.decode('utf-8'): ([0, '', ''], [0, '', ''], 'flourished'),
'永正頃'.decode('utf-8'): ([1504, '', ''], [0, '', ''], 'flourished'),
'文永頃'.decode('utf-8'): ([1264, '', ''], [0, '', ''], 'flourished'),
'享和-天保頃'.decode('utf-8'): ([1801, '', ''], [1830, '', ''], 'flourished'),
'鎌倉-南北朝時代'.decode('utf-8'): ([1185, '', ''], [1392, '', ''], 'flourished'),
'鎌倉中期'.decode('utf-8'): ([1222, '', ''], [1287, '', ''], 'flourished'),
'元禄-安永頃'.decode('utf-8'): ([1688, '', ''], [1772, '', ''], 'flourished'),
'奈良時代前期'.decode('utf-8'): ([715, '', ''], [0, '', ''], 'flourished'),
'享保-宝暦頃'.decode('utf-8'): ([1716, '', ''], [1751, '', ''], 'flourished'),
'南唐頃'.decode('utf-8'): ([0, '', ''], [0, '', ''], 'flourished'),
'享保-寛政頃'.decode('utf-8'): ([1716, '', ''], [1789, '', ''], 'flourished'),
'鎌倉時代末期'.decode('utf-8'): ([1288, '', ''], [1333, '', ''], 'flourished'),
'寛政から文政頃'.decode('utf-8'): ([1789, '', ''], [0, '', ''], 'flourished'),
'鎌倉末期'.decode('utf-8'): ([1288, '', ''], [1333, '', ''], 'flourished'),
'明暦-元禄頃'.decode('utf-8'): ([1655, '', ''], [1688, '', ''], 'flourished'),
'江戸代後期'.decode('utf-8'): ([1801, '', ''], [1868, '', ''], 'flourished'),
'"享保頃,"'.decode('utf-8'): ([1716, '', ''], [0, '', ''], 'flourished'),
'文政-嘉永頃'.decode('utf-8'): ([1818, '', ''], [1848, '', ''], 'flourished'),
'嘉永-天保頃'.decode('utf-8'): ([1848, '', ''], [1830, '', ''], 'flourished'),
'江戸時代後記'.decode('utf-8'): ([1801, '', ''], [1868, '', ''], 'flourished'),
'文化文政頃'.decode('utf-8'): ([1804, '', ''], [0, '', ''], 'flourished'),
'弘安頃'.decode('utf-8'): ([1278, '', ''], [0, '', ''], 'flourished'),
'桃山-江戸初期'.decode('utf-8'): ([1603, '', ''], [1615, '', ''], 'flourished'),
'江戸文化期'.decode('utf-8'): ([1804, '', ''], [1818, '', ''], 'flourished'),
'元治頃'.decode('utf-8'): ([1864, '', ''], [0, '', ''], 'flourished'),
'嘉元頃'.decode('utf-8'): ([1303, '', ''], [0, '', ''], 'flourished'),
'江戸初期頃'.decode('utf-8'): ([1615, '', ''], [1715, '', ''], 'flourished'),
'天明-文政頃'.decode('utf-8'): ([1781, '', ''], [1818, '', ''], 'flourished'),
'寛正頃'.decode('utf-8'): ([1460, '', ''], [0, '', ''], 'flourished'),
'春秋時代'.decode('utf-8'): ([0, '', ''], [0, '', ''], 'flourished'),
'寛政-天保時代'.decode('utf-8'): ([1789, '', ''], [1830, '', ''], 'flourished'),
'宝永-享保頃'.decode('utf-8'): ([1704, '', ''], [1716, '', ''], 'flourished'),
'慶安-享保頃'.decode('utf-8'): ([1648, '', ''], [1716, '', ''], 'flourished'),
'弘化-万延頃'.decode('utf-8'): ([1844, '', ''], [1860, '', ''], 'flourished'),
'"寛政-文政頃,"'.decode('utf-8'): ([1789, '', ''], [1818, '', ''], 'flourished'),
'文治頃'.decode('utf-8'): ([1185, '', ''], [0, '', ''], 'flourished'),
'安政-慶応頃'.decode('utf-8'): ([1854, '', ''], [1865, '', ''], 'flourished'),
'宝暦-天明頃'.decode('utf-8'): ([1751, '', ''], [1781, '', ''], 'flourished'),
'永仁頃'.decode('utf-8'): ([1293, '', ''], [0, '', ''], 'flourished'),
'延喜-康保頃'.decode('utf-8'): ([901, '', ''], [964, '', ''], 'flourished'),
'明治時代'.decode('utf-8'): ([1868, '', ''], [0, '', ''], 'flourished'),
'元禄-明和頃'.decode('utf-8'): ([1688, '', ''], [1764, '', ''], 'flourished'),
'文永-弘安頃'.decode('utf-8'): ([1264, '', ''], [1278, '', ''], 'flourished'),
'永禄-慶長頃'.decode('utf-8'): ([1558, '', ''], [1596, '', ''], 'flourished'),
'寛永年間'.decode('utf-8'): ([1624, '', ''], [0, '', ''], 'flourished'),
'宝徳-文明頃'.decode('utf-8'): ([1449, '', ''], [1469, '', ''], 'flourished'),
'応永頃'.decode('utf-8'): ([1394, '', ''], [0, '', ''], 'flourished'),
'貞享頃?'.decode('utf-8'): ([1684, '', ''], [0, '', ''], 'flourished'),
'-天保末頃'.decode('utf-8'): ([0, '', ''], [1830, '', ''], 'flourished'),
'文安頃'.decode('utf-8'): ([1444, '', ''], [0, '', ''], 'flourished'),
'天暦頃'.decode('utf-8'): ([947, '', ''], [0, '', ''], 'flourished'),
'寛政-天保頃'.decode('utf-8'): ([1789, '', ''], [1830, '', ''], 'flourished'),
'-享保頃'.decode('utf-8'): ([0, '', ''], [1716, '', ''], 'flourished'),
'明暦頃'.decode('utf-8'): ([1655, '', ''], [0, '', ''], 'flourished'),
'-江戸末期'.decode('utf-8'): ([1853, '', ''], [1868, '', ''], 'flourished'),
'近世後期'.decode('utf-8'): ([0, '', ''], [1615, '', ''], 'flourished'),
'弘化-安政頃'.decode('utf-8'): ([1844, '', ''], [1854, '', ''], 'flourished'),
'天文頃'.decode('utf-8'): ([1532, '', ''], [0, '', ''], 'flourished'),
'鎌倉後期'.decode('utf-8'): ([1288, '', ''], [1333, '', ''], 'flourished'),
'元禄-享保頃'.decode('utf-8'): ([1688, '', ''], [1716, '', ''], 'flourished'),
'天保-安政頃'.decode('utf-8'): ([1830, '', ''], [1854, '', ''], 'flourished'),
'江戸中期頃'.decode('utf-8'): ([1716, '', ''], [1800, '', ''], 'flourished'),
'鎌倉初期'.decode('utf-8'): ([1185, '', ''], [1268, '', ''], 'flourished'),
'室町中期'.decode('utf-8'): ([1430, '', ''], [1572, '', ''], 'flourished'),
'安政-文久頃'.decode('utf-8'): ([1854, '', ''], [1861, '', ''], 'flourished'),
'天明寛政頃'.decode('utf-8'): ([1781, '', ''], [0, '', ''], 'flourished'),
'寛永延宝頃'.decode('utf-8'): ([1624, '', ''], [0, '', ''], 'flourished'),
'寛保-寛延頃'.decode('utf-8'): ([1741, '', ''], [1748, '', ''], 'flourished'),
'"慶長年間,"'.decode('utf-8'): ([1596, '', ''], [0, '', ''], 'flourished'),
'鎌倉前期'.decode('utf-8'): ([1185, '', ''], [1268, '', ''], 'flourished'),
'寛保-延亨頃'.decode('utf-8'): ([1741, '', ''], [0, '', ''], 'flourished'),
'建長頃'.decode('utf-8'): ([1249, '', ''], [0, '', ''], 'flourished'),
'宝暦-文化頃'.decode('utf-8'): ([1751, '', ''], [1804, '', ''], 'flourished'),
'[江戸時代後期]'.decode('utf-8'): ([1801, '', ''], [1868, '', ''], 'flourished'),
'万延頃'.decode('utf-8'): ([1860, '', ''], [0, '', ''], 'flourished'),
'享保年間'.decode('utf-8'): ([1716, '', ''], [0, '', ''], 'flourished'),
'正徳-宝暦頃'.decode('utf-8'): ([1711, '', ''], [1751, '', ''], 'flourished'),
'李朝初期'.decode('utf-8'): ([0, '', ''], [0, '', ''], 'flourished'),
'-安政末頃'.decode('utf-8'): ([0, '', ''], [1854, '', ''], 'flourished'),
'幕末頃'.decode('utf-8'): ([1853, '', ''], [1868, '', ''], 'flourished'),
'天保弘化頃'.decode('utf-8'): ([1830, '', ''], [0, '', ''], 'flourished'),
'寛文-延宝頃'.decode('utf-8'): ([1661, '', ''], [1673, '', ''], 'flourished'),
'弘化-嘉永頃'.decode('utf-8'): ([1844, '', ''], [1848, '', ''], 'flourished'),
'前漢頃'.decode('utf-8'): ([0, '', ''], [0, '', ''], 'flourished'),
'天和-元禄頃'.decode('utf-8'): ([1681, '', ''], [1688, '', ''], 'flourished'),
'天和頃'.decode('utf-8'): ([1681, '', ''], [0, '', ''], 'flourished'),
'元和-寛永頃'.decode('utf-8'): ([1615, '', ''], [1624, '', ''], 'flourished'),
'延文頃'.decode('utf-8'): ([1356, '', ''], [0, '', ''], 'flourished'),
'永正-天文頃'.decode('utf-8'): ([1504, '', ''], [1532, '', ''], 'flourished'),
'江戸時代末期-明治頃'.decode('utf-8'): ([0, '', ''], [1868, '', ''], 'flourished'),
'享保-寛延頃'.decode('utf-8'): ([1716, '', ''], [1748, '', ''], 'flourished'),
'延享-宝暦頃'.decode('utf-8'): ([1744, '', ''], [1751, '', ''], 'flourished'),
'貞観頃'.decode('utf-8'): ([859, '', ''], [0, '', ''], 'flourished'),}