Skip to content

Commit

Permalink
Added era data
Browse files Browse the repository at this point in the history
  • Loading branch information
wakaba committed Feb 20, 2025
1 parent 117a16a commit d2a7f4d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions bin/calendar-era-codes.pl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
{key => 'code17', type => 'int', id => 17},
{key => 'code25', type => 'int', id => 25},
{key => 'code26', type => 'int', id => 26},
{key => 'code27', type => 'int', id => 27},
{key => 'code19', type => 'int', id => 19},
{key => 'code16', type => 'int', id => 16},
{key => 'code18', type => 'int', id => 18},
Expand Down
3 changes: 2 additions & 1 deletion doc/calendar-era-defs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ It is a JSON object with following name/value pairs:
code24 [integer?]
code25 [integer?]
code26 [integer?]
code27 [integer?]

The era code for the era, in #1, #2, #4, #5, #6, #7, #9, #16,
#17, #18, #19, #20, #24, #25, or #26 code sets [CODES],
#17, #18, #19, #20, #24, #25, #26, or #27 code sets [CODES],
respectively, if any.

code10 [integer?]
Expand Down
4 changes: 4 additions & 0 deletions src/era-data-japan.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1573,6 +1573,7 @@ code #16 1
code #17 1
code #18 1
code #19 1
code #27 1
code #25 1
code #26 1
code #4 1
Expand Down Expand Up @@ -1635,6 +1636,7 @@ code #16 2
code #17 2
code #18 2
code #19 2
code #27 2
code #25 2
code #26 2
code #4 3
Expand Down Expand Up @@ -1711,6 +1713,7 @@ code #16 3
code #17 3
code #18 3
code #19 3
code #27 3
code #25 3
code #26 3
code #4 5
Expand Down Expand Up @@ -1842,6 +1845,7 @@ code #16 4
code #17 4
code #18 4
code #19 4
code #27 4
code #25 4
code #26 4
code #4 7
Expand Down
9 changes: 6 additions & 3 deletions src/era-data.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@

def[unknown]
#y~1764
code #18 9
code #6 9

#unknown
code #26 0
code #27 9

#other
code #18 9
code #6 9



Expand Down Expand Up @@ -158,7 +162,6 @@ sw 西暦
# e.g. 442 BCE

code #17 0
#code #19 0
code #25 9
code #26 9

Expand Down

0 comments on commit d2a7f4d

Please sign in to comment.