Skip to content

Commit

Permalink
current
Browse files Browse the repository at this point in the history
  • Loading branch information
wakaba committed Dec 21, 2024
1 parent 8703444 commit 370d03a
Show file tree
Hide file tree
Showing 13 changed files with 3,363 additions and 2,567 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -321,35 +321,35 @@ local/eras/jp.txt: bin/extract-era-transitions.pl \
local/view/tags.json
mkdir -p local/eras
echo '*jp:\n+$$DEF-jp\n$$DEF-jp:' > $@
TAGS_INCLUDED=日本南朝 $(PERL) $< 神武天皇 >> $@
TAGS_INCLUDED=日本南朝 TAGS_EXCLUDED=異説発生 $(PERL) $< 神武天皇 >> $@
local/eras/jp-south.txt: bin/extract-era-transitions.pl \
local/view/calendar-era-defs.json \
local/view/calendar-era-transitions.json \
local/view/tags.json
mkdir -p local/eras
echo '*jp-south:\n+$$DEF-jp-south\n$$DEF-jp-south:' > $@
TAGS_INCLUDED=日本南朝 $(PERL) $< 神武天皇 >> $@
TAGS_INCLUDED=日本南朝 TAGS_EXCLUDED=異説発生 $(PERL) $< 神武天皇 >> $@
local/eras/jp-north.txt: bin/extract-era-transitions.pl \
local/view/calendar-era-defs.json \
local/view/calendar-era-transitions.json \
local/view/tags.json
mkdir -p local/eras
echo '*jp-north:\n+$$DEF-jp-north\n$$DEF-jp-north:' > $@
TAGS_INCLUDED=日本北朝 TAGS_EXCLUDED=日本南朝 $(PERL) $< 神武天皇 >> $@
TAGS_INCLUDED=日本北朝 TAGS_EXCLUDED=日本南朝,異説発生 $(PERL) $< 神武天皇 >> $@
local/eras/jp-heishi.txt: bin/extract-era-transitions.pl \
local/view/calendar-era-defs.json \
local/view/calendar-era-transitions.json \
local/view/tags.json
mkdir -p local/eras
echo '*jp-heishi:\n+$$DEF-jp-heishi\n$$DEF-jp-heishi:' > $@
TAGS_INCLUDED=平氏,日本南朝 $(PERL) $< 神武天皇 >> $@
TAGS_INCLUDED=平氏,日本南朝 TAGS_EXCLUDED=異説発生 $(PERL) $< 神武天皇 >> $@
local/eras/jp-kyoto.txt: bin/extract-era-transitions.pl \
local/view/calendar-era-defs.json \
local/view/calendar-era-transitions.json \
local/view/tags.json
mkdir -p local/eras
echo '*jp-kyoto:\n+$$DEF-jp-kyoto\n$$DEF-jp-kyoto:' > $@
TAGS_INCLUDED=京都 TAGS_EXCLUDED=日本南朝 $(PERL) $< 神武天皇 >> $@
TAGS_INCLUDED=京都 TAGS_EXCLUDED=日本南朝,異説発生 $(PERL) $< 神武天皇 >> $@
local/eras/jp-east.txt: bin/extract-era-transitions.pl \
local/view/calendar-era-defs.json \
local/view/calendar-era-transitions.json \
Expand Down
10 changes: 10 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,16 @@ digits), sets and maps of characters, and other character related data
are contained in the data-chars repository
<https://github.com/manakai/data-chars>.

* Get generated datasets

Some of data files are not in the Git repository.

Era data files:

$ curl -sSLf https://raw.githubusercontent.com/geocol/ddsd/master/bin/booter | bash
$ ./ddsd add https://raw.githubusercontent.com/manakai/data-locale/master/packref/calendar-era.json
$ ls local/data/calendar-era/

* Author

Wakaba <[email protected]>.
Expand Down
2 changes: 1 addition & 1 deletion bin/calendar-era-kodai-years.pl
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
push @$row, [[$ady eq 'unknown' ? '?' : $ady, ''],
[$ady eq 'unknown' ? '?' : $ady > 0 ? $ady : 'BC'.(1-$ady), ''],
[$ady eq 'unknown' ? '?' : $ady+660, '']];
push @$row, [[$ady eq 'unknown' ? '?' : $IndexToKanshi->{($ady-4)%60}, '']];
push @$row, [[$ady eq 'unknown' ? '?' : $IndexToKanshi->{($ady-4)%60} . ' ' . (($ady-4) % 60), '']];
for my $ref (@$Refs) {
push @$row, $YearData->{$ady}->{$ref} || [];
}
Expand Down
15 changes: 15 additions & 0 deletions intermediate/era-ids.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@
"享和" : 1393,
"享徳" : 336,
"享正" : 1441,
"享永" : 4187,
"享禄" : 43,
"享高" : 1273,
"人慶" : 1449,
Expand Down Expand Up @@ -558,6 +559,7 @@
"元応" : 382,
"元慶" : 1467,
"元文" : 198,
"元明" : 4192,
"元暦" : 1357,
"元朔" : 427,
"元永" : 1080,
Expand Down Expand Up @@ -1518,6 +1520,7 @@
"宝元(癸丑)" : 1241,
"宝寿" : 776,
"宝徳" : 1496,
"宝徳(辛丑)" : 4188,
"宝暦" : 1199,
"宝永" : 1197,
"宝治" : 1189,
Expand Down Expand Up @@ -1633,6 +1636,9 @@
"平侯何" : 3039,
"平侯杜恬" : 3040,
"平原王" : 3914,
"平和" : 4195,
"平和(丙申)" : 4198,
"平和(己巳)" : 4196,
"平定" : 1479,
"平州戴侯福" : 3245,
"平成" : 4,
Expand All @@ -1645,6 +1651,7 @@
"平矦劉信都" : 3299,
"平趙" : 544,
"平都" : 653,
"平静" : 4197,
"幸中" : 4154,
"幽侯嘉" : 3248,
"幽侯審食其" : 3041,
Expand Down Expand Up @@ -2479,6 +2486,7 @@
"東城王" : 3939,
"東川王" : 3940,
"東明聖王" : 3941,
"東暦" : 4201,
"東武" : 890,
"東野侯劉章" : 3712,
"東陽" : 604,
Expand Down Expand Up @@ -2551,6 +2559,7 @@
"欽明天皇" : 683,
"欽淑后称制" : 1841,
"正中" : 1429,
"正中(乙丑)" : 4191,
"正中(辛酉)" : 1114,
"正久" : 265,
"正亨" : 1592,
Expand Down Expand Up @@ -2703,6 +2712,7 @@
"永平(己巳)" : 909,
"永平(戊午)" : 1848,
"永平(戊子)" : 67,
"永平(日本)" : 4189,
"永平(辛亥)" : 279,
"永幻" : 72,
"永康" : 465,
Expand Down Expand Up @@ -2780,6 +2790,7 @@
"永貞(戊辰)" : 1062,
"永道" : 864,
"永長" : 342,
"永長(丁丑)" : 4194,
"永長(丁酉)" : 295,
"永隆" : 1445,
"永隆(丁丑)" : 1890,
Expand Down Expand Up @@ -3197,6 +3208,7 @@
"神瑞" : 268,
"神璽" : 396,
"神紀" : 1732,
"神紀(辛丑)" : 4200,
"神虎" : 1913,
"神護景雲" : 432,
"神鳳" : 215,
Expand Down Expand Up @@ -3363,6 +3375,7 @@
"緋扇" : 2225,
"緣禾" : 313,
"縁禾(癸酉)" : 2011,
"縫武" : 4190,
"總章" : 1272,
"繁侯安國" : 3273,
"繁侯寄" : 3274,
Expand Down Expand Up @@ -3792,6 +3805,7 @@
"開埠" : 2231,
"開埠(壬寅)" : 2232,
"開大" : 1188,
"開天" : 4193,
"開寶(戊辰)" : 436,
"開平" : 479,
"開慶" : 641,
Expand Down Expand Up @@ -4165,6 +4179,7 @@
"천기(丙申)" : 4186,
"천기(乙丑)" : 4183,
"천기(己卯)" : 4184,
"천부" : 4199,
"통일염원" : 4167,
"환기" : 4174
}
Loading

0 comments on commit 370d03a

Please sign in to comment.