pubid 2.0.46 → 2.0.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1923b6653772f65938f75205038aa3df3e1b4eb51222654f53f2799361d14b4
4
- data.tar.gz: 53cc9a5459c690d57d920fec14e5ca7c6cc7e396e07ae0dd5261f1a7461ec7f3
3
+ metadata.gz: 14cacbfe26bb38df44afa230ee01ae45d89ca1b4c2fcf70f8673ba140d39fa4c
4
+ data.tar.gz: 2a88cd958a39b727212ed14d96fd16e9ce5f21d8becaa500a9886bdb1b97be26
5
5
  SHA512:
6
- metadata.gz: d6c9266103290134f70796057cd084467f64a83b570ef4eab00629cac69ceb9d21a67489032909224e542ceb048c83942c5cfb6e7e140b29d7fb5629906488a5
7
- data.tar.gz: 342eba260901def2fe694b9405f36a92820c8f83e8ffbec9d26a5f904b40eb82b0c3e3ed188651c6e7b484b6e4b8086306d82c46701a1f1c5977073617471f0f
6
+ metadata.gz: 12f927b0cc58ebb883eab5e023500b5d05e3505565132b9d4bf745aaf6568de2c8d8152ec01db2ea805ce17209ec57201570f34955cd3d1101032e6b1ca088ae
7
+ data.tar.gz: b56b3746bb0e142b467803458a3821a798b276d419369844fbef66ddab9d0efd08028d443645fff1e7683d26fb5ff68611c5816d72b9336cf5b32d0d90bcfb2b
@@ -2,3 +2,176 @@
2
2
  # Rules: entries need reason + ref; a pending case that passes raises
3
3
  # the pending-satisfied alarm and MUST be unmarked (TODO.correct-test-suite/04).
4
4
  ---
5
+ # relaton#45: a trailing -YYYY is the year, not a part. These testsuite
6
+ # rows still record part: 'YYYY'; unmark them after the pubid-testsuite
7
+ # ANSI round (the pending-satisfied alarm names them).
8
+ ansi.standard.0001: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
9
+ ansi.standard.0002: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
10
+ ansi.standard.0003: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
11
+ ansi.standard.0004: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
12
+ ansi.standard.0005: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
13
+ ansi.standard.0006: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
14
+ ansi.standard.0007: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
15
+ ansi.standard.0008: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
16
+ ansi.standard.0009: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
17
+ ansi.standard.0010: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
18
+ ansi.standard.0011: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
19
+ ansi.standard.0012: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
20
+ ansi.standard.0013: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
21
+ ansi.standard.0014: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
22
+ ansi.standard.0015: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
23
+ ansi.standard.0016: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
24
+ ansi.standard.0017: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
25
+ ansi.standard.0018: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
26
+ ansi.standard.0019: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
27
+ ansi.standard.0020: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
28
+ ansi.standard.0021: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
29
+ ansi.standard.0022: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
30
+ ansi.standard.0023: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
31
+ ansi.standard.0024: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
32
+ ansi.standard.0025: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
33
+ ansi.standard.0026: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
34
+ ansi.standard.0027: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
35
+ ansi.standard.0028: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
36
+ ansi.standard.0029: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
37
+ ansi.standard.0030: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
38
+ ansi.standard.0031: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
39
+ ansi.standard.0032: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
40
+ ansi.standard.0033: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
41
+ ansi.standard.0034: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
42
+ ansi.standard.0035: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
43
+ ansi.standard.0036: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
44
+ ansi.standard.0037: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
45
+ ansi.standard.0038: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
46
+ ansi.standard.0039: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
47
+ ansi.standard.0040: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
48
+ ansi.standard.0041: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
49
+ ansi.standard.0042: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
50
+ ansi.standard.0043: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
51
+ ansi.standard.0044: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
52
+ ansi.standard.0045: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
53
+ ansi.standard.0046: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
54
+ ansi.standard.0047: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
55
+ ansi.standard.0048: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
56
+ ansi.standard.0049: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
57
+ ansi.standard.0050: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
58
+ ansi.standard.0051: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
59
+ ansi.standard.0052: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
60
+ ansi.standard.0053: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
61
+ ansi.standard.0054: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
62
+ ansi.standard.0055: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
63
+ ansi.standard.0056: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
64
+ ansi.standard.0057: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
65
+ ansi.standard.0058: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
66
+ ansi.standard.0059: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
67
+ ansi.standard.0060: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
68
+ ansi.standard.0061: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
69
+ ansi.standard.0062: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
70
+ ansi.standard.0063: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
71
+ ansi.standard.0064: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
72
+ ansi.standard.0065: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
73
+ ansi.standard.0066: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
74
+ ansi.standard.0067: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
75
+ ansi.standard.0068: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
76
+ ansi.standard.0069: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
77
+ ansi.standard.0070: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
78
+ ansi.standard.0071: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
79
+ ansi.standard.0072: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
80
+ ansi.standard.0073: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
81
+ ansi.standard.0074: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
82
+ ansi.standard.0075: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
83
+ ansi.standard.0076: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
84
+ ansi.standard.0077: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
85
+ ansi.standard.0078: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
86
+ ansi.standard.0079: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
87
+ ansi.standard.0080: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
88
+ ansi.standard.0081: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
89
+ ansi.standard.0082: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
90
+ ansi.standard.0083: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
91
+ ansi.standard.0084: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
92
+ ansi.standard.0085: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
93
+ ansi.standard.0086: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
94
+ ansi.standard.0087: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
95
+ ansi.standard.0088: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
96
+ ansi.standard.0089: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
97
+ ansi.standard.0090: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
98
+ ansi.standard.0091: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
99
+ ansi.standard.0092: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
100
+ ansi.standard.0093: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
101
+ ansi.standard.0094: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
102
+ ansi.standard.0095: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
103
+ ansi.standard.0096: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
104
+ ansi.standard.0097: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
105
+ ansi.standard.0098: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
106
+ ansi.standard.0099: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
107
+ ansi.standard.0100: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
108
+ ansi.standard.0101: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
109
+ ansi.standard.0102: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
110
+ ansi.standard.0103: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
111
+ ansi.standard.0104: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
112
+ ansi.standard.0105: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
113
+ ansi.standard.0106: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
114
+ ansi.standard.0107: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
115
+ ansi.standard.0108: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
116
+ ansi.standard.0109: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
117
+ ansi.standard.0110: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
118
+ ansi.standard.0111: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
119
+ ansi.standard.0112: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
120
+ ansi.standard.0113: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
121
+ ansi.standard.0114: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
122
+ ansi.standard.0115: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
123
+ ansi.standard.0116: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
124
+ ansi.standard.0117: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
125
+ ansi.standard.0118: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
126
+ ansi.standard.0119: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
127
+ ansi.standard.0120: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
128
+ ansi.standard.0121: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
129
+ ansi.standard.0122: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
130
+ ansi.standard.0123: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
131
+ ansi.standard.0124: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
132
+ ansi.standard.0125: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
133
+ ansi.standard.0126: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
134
+ ansi.standard.0127: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
135
+ ansi.standard.0128: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
136
+ ansi.standard.0129: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
137
+ ansi.standard.0130: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
138
+ ansi.standard.0131: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
139
+ ansi.standard.0132: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
140
+ ansi.standard.0133: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
141
+ ansi.standard.0137: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
142
+ ansi.standard.0138: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
143
+ ansi.standard.0139: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
144
+ ansi.standard.0140: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
145
+ ansi.standard.0141: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
146
+ ansi.standard.0142: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
147
+ ansi.standard.0143: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
148
+ ansi.standard.0144: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
149
+ ansi.standard.0145: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
150
+ ansi.standard.0146: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
151
+ ansi.standard.0147: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
152
+ ansi.standard.0148: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
153
+ ansi.standard.0149: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
154
+ ansi.standard.0150: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
155
+ ansi.standard.0151: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
156
+ ansi.standard.0152: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
157
+ ansi.standard.0153: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
158
+ ansi.standard.0154: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
159
+ ansi.standard.0155: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
160
+ ansi.standard.0156: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
161
+ ansi.standard.0157: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
162
+ ansi.standard.0158: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
163
+ ansi.standard.0159: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
164
+ ansi.standard.0160: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
165
+ ansi.standard.0161: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
166
+ ansi.standard.0162: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
167
+ ansi.standard.0163: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
168
+ ansi.standard.0164: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
169
+ ansi.standard.0165: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
170
+ ansi.standard.0166: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
171
+ ansi.standard.0167: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
172
+ ansi.standard.0168: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
173
+ ansi.standard.0169: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
174
+ ansi.standard.0170: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
175
+ ansi.standard.0171: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
176
+ ansi.standard.0172: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
177
+ ansi.standard.0173: {reason: "trailing -YYYY now parses as the year (date + date_separator), not part", since: "2026-11-20", ref: "handoff pubid__pubid-testsuite__ansi-year-and-corpus"}
data/data/parg/ansi.json CHANGED
@@ -1 +1 @@
1
- {"bindings":null,"version":"0.1.0","grammar":"PubidAnsi","shape":"parsanol-tree/v2","binding_version":1,"entries":{"identifier":{"root":"identifier","grammar":{"atoms":[{"Entity":{"atom":85}},{"Str":{"pattern":"ANSI"}},{"Named":{"name":"publisher","atom":1}},{"Entity":{"atom":18}},{"Entity":{"atom":16}},{"Str":{"pattern":"/"}},{"Str":{"pattern":" "}},{"Repetition":{"atom":6,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"ISO"}},{"Str":{"pattern":"IEC"}},{"Str":{"pattern":"IEEE"}},{"Str":{"pattern":"SAE"}},{"Str":{"pattern":"ASME"}},{"Str":{"pattern":"ASTM"}},{"Alternative":{"atoms":[8,9,10,11,12,13]}},{"Named":{"name":"copublisher","atom":14}},{"Sequence":{"atoms":[5,7,15]}},{"Repetition":{"atom":4,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"copublishers","atom":17}},{"Str":{"pattern":" "}},{"Str":{"pattern":"Std "}},{"Repetition":{"atom":20,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":58}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Repetition":{"atom":23,"min":1,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":25,"min":1,"max":null,"tag":"Repetition"}},{"Str":{"pattern":"."}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":28,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[27,29]}},{"Repetition":{"atom":30,"min":0,"max":3,"tag":"Repetition"}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Repetition":{"atom":32,"min":0,"max":1,"tag":"Repetition"}},{"Repetition":{"atom":33,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"-"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":36,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[35,37]}},{"Repetition":{"atom":38,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[24,26,31,34,39]}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":41,"min":1,"max":null,"tag":"Repetition"}},{"Str":{"pattern":"."}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":44,"min":1,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Repetition":{"atom":46,"min":0,"max":1,"tag":"Repetition"}},{"Repetition":{"atom":47,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[43,45,48]}},{"Repetition":{"atom":49,"min":0,"max":2,"tag":"Repetition"}},{"Str":{"pattern":"-"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":52,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[51,53]}},{"Repetition":{"atom":54,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[42,50,55]}},{"Alternative":{"atoms":[40,56]}},{"Named":{"name":"number_with_part","atom":57}},{"Entity":{"atom":70}},{"Str":{"pattern":":"}},{"Str":{"pattern":"19"}},{"Str":{"pattern":"20"}},{"Alternative":{"atoms":[61,62]}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":64,"min":2,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Lookahead":{"atom":66,"positive":false}},{"Sequence":{"atoms":[63,65,67]}},{"Named":{"name":"date","atom":68}},{"Sequence":{"atoms":[60,69]}},{"Repetition":{"atom":59,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":83}},{"Str":{"pattern":"("}},{"Entity":{"atom":81}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Repetition":{"atom":75,"min":2,"max":null,"tag":"Repetition"}},{"Str":{"pattern":","}},{"Repetition":{"atom":77,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[76,78]}},{"Repetition":{"atom":79,"min":0,"max":null,"tag":"Repetition"}},{"Named":{"name":"languages","atom":80}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[73,74,82]}},{"Repetition":{"atom":72,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[2,3,19,21,22,71,84]}},{"Entity":{"atom":97}},{"Str":{"pattern":"ANSI"}},{"Named":{"name":"publisher","atom":87}},{"Str":{"pattern":" "}},{"Str":{"pattern":"Std "}},{"Repetition":{"atom":90,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":58}},{"Entity":{"atom":70}},{"Repetition":{"atom":93,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":83}},{"Repetition":{"atom":95,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[88,89,91,92,94,96]}},{"Alternative":{"atoms":[0,86]}}],"root":98},"bindings":[{"capture":"publisher","path":"publisher","type":"string","card":null,"preprocess":null},{"capture":"copublisher","path":"copublishers[].copublisher","type":"string","card":null,"preprocess":null},{"capture":"number_with_part","path":"number_with_part","type":"string","card":null,"preprocess":null},{"capture":"date","path":"date","type":"string","card":null,"preprocess":null},{"capture":"languages","path":"languages","type":"string","card":null,"preprocess":null}]}},"preprocess":{},"tables":{},"lint":{"order_warnings":["rule organization: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule organization: branches 1 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule organization: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule organization: branches 5 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)"]},"default_entry":"identifier","render":{},"derive":{},"tests":[{"entry":"identifier","kind":"accept","input":"ANSI C63.4","expect":{}},{"entry":"identifier","kind":"accept","input":"ANSI/IEEE C63.4","expect":{}},{"entry":"identifier","kind":"accept","input":"ANSI Std A119.1","expect":{}},{"entry":"identifier","kind":"reject","input":"nonsense","expect":{}}],"docs":{},"source":"# Port of lib/pubid/ansi/parser.rb: ANSI [copublishers] [Std] number\n# [:year][(languages)]. The number alternatives cover letter-prefixed\n# forms (C37.06.1, N323A) and plain dotted forms (802.1b-1995).\n#\n# Edition-2 notes: letter_head_part / plain_part / year_digits bodies are\n# inlined at the capture sites (a capture wrapping a rule ref expands to\n# element hashes, while the inlined body binds as one scalar string).\n# The copublishers wrapper stays a capture so the tree keeps the\n# {copublishers: [...]} shape the builder reads; the repeats collect by\n# occurrence under copublishers[].copublisher.\n\ngrammar PubidAnsi version \"0.1.0\" edition 2 {\n organization = \"ISO\" / \"IEC\" / \"IEEE\" / \"SAE\" / \"ASME\" / \"ASTM\"\n # The copublisher body is inlined to raw terms: bare rule refs next to\n # a capture drop the capture or materialize stray {slash:} nodes.\n copublisher_item = \"/\" [\" \"] ( \"ISO\" / \"IEC\" / \"IEEE\" / \"SAE\" / \"ASME\" / \"ASTM\" ) as copublisher\n copublishers = ( 1*copublisher_item ) as copublishers\n std_keyword = [\"Std \"]\n number_with_part = {\n (\n ( 1*(%x41-5A) 1*(%x30-39) *3(\".\" 1*(%x30-39)) [*1(%x41-5A)] [(\"-\" 1*(%x30-39))] )\n / ( 1*(%x30-39) *2(\".\" 1*(%x30-39) [*1(%x61-7A)]) [(\"-\" 1*(%x30-39))] )\n ) as number_with_part\n }\n date = \":\" ( (\"19\" / \"20\") 2*(%x30-39) !(%x30-39) ) as date\n languages = ( *( 2*(%x61-7A) [\",\"] ) ) as languages\n language = \"(\" languages \")\"\n identifier_with_copublishers = {\n \"ANSI\" as publisher copublishers \" \" [\"Std \"] number_with_part [date] [language]\n }\n identifier_sole = {\n \"ANSI\" as publisher \" \" [\"Std \"] number_with_part [date] [language]\n }\n identifier = identifier_with_copublishers / identifier_sole\n upper = %x41-5A\n lower = %x61-7A\n digit = %x30-39\n dot = \".\"\n dash = \"-\"\n colon = \":\"\n slash = \"/\"\n space = \" \"\n entry identifier: identifier\n\n bindings identifier {\n publisher -> publisher (string)\n copublisher -> copublishers[].copublisher (string)\n number_with_part -> number_with_part (string)\n date -> date (string)\n languages -> languages (string)\n }\n\n test {\n accept \"ANSI C63.4\"\n accept \"ANSI/IEEE C63.4\"\n accept \"ANSI Std A119.1\"\n reject \"nonsense\"\n }\n}\n","source_hash":"7af31e7ba304c87eeb0d2ca1b94e534831a333153e1cb8db789e7c55eda6cc07","unicode_tables":"onigmo (Ruby 3.4.8)","compiler_version":"1.5.1.0","edition":2,"semantics_hash":"sha256:3871a8d8fe4577b6f268aedc1d5c0011206f37aff7b3dc0aeeb3ed146f26acad","checksum":"sha256:a545e04d1dca9458894cf7a5a06fc6b4897772df3ab2d31c2b45114fab0dc3b0","validated":{"lint_errors":0,"lint_warnings":5,"tests_total":4,"tests_failures":0,"self_test":true}}
1
+ {"bindings":null,"version":"0.1.0","grammar":"PubidAnsi","shape":"parsanol-tree/v2","binding_version":1,"entries":{"identifier":{"root":"identifier","grammar":{"atoms":[{"Entity":{"atom":121}},{"Str":{"pattern":"ANSI"}},{"Named":{"name":"publisher","atom":1}},{"Entity":{"atom":17}},{"Entity":{"atom":15}},{"Str":{"pattern":"/"}},{"Str":{"pattern":" "}},{"Repetition":{"atom":6,"min":0,"max":1,"tag":"Maybe"}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Alternative":{"atoms":[9,10]}},{"Repetition":{"atom":11,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[8,12]}},{"Named":{"name":"copublisher","atom":13}},{"Sequence":{"atoms":[5,7,14]}},{"Repetition":{"atom":4,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"copublishers","atom":16}},{"Str":{"pattern":" "}},{"Str":{"pattern":"-"}},{"Named":{"name":"number_separator","atom":19}},{"Alternative":{"atoms":[18,20]}},{"Str":{"pattern":"Std "}},{"Repetition":{"atom":22,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":84}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Repetition":{"atom":25,"min":1,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":27,"min":1,"max":null,"tag":"Repetition"}},{"Str":{"pattern":"."}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":30,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[29,31]}},{"Repetition":{"atom":32,"min":0,"max":3,"tag":"Repetition"}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Repetition":{"atom":34,"min":0,"max":1,"tag":"Repetition"}},{"Repetition":{"atom":35,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"-"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":38,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[37,39]}},{"Repetition":{"atom":40,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"-"}},{"Str":{"pattern":"19"}},{"Str":{"pattern":"20"}},{"Alternative":{"atoms":[43,44]}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":46,"min":2,"max":2,"tag":"Repetition"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Str":{"pattern":":"}},{"Alternative":{"atoms":[48,49]}},{"Lookahead":{"atom":50,"positive":false}},{"Sequence":{"atoms":[42,45,47,51]}},{"Repetition":{"atom":52,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[26,28,33,36,41,53]}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":55,"min":1,"max":null,"tag":"Repetition"}},{"Str":{"pattern":"."}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":58,"min":1,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Repetition":{"atom":60,"min":0,"max":1,"tag":"Repetition"}},{"Repetition":{"atom":61,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[57,59,62]}},{"Repetition":{"atom":63,"min":0,"max":2,"tag":"Repetition"}},{"Str":{"pattern":"-"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":66,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[65,67]}},{"Repetition":{"atom":68,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"-"}},{"Str":{"pattern":"19"}},{"Str":{"pattern":"20"}},{"Alternative":{"atoms":[71,72]}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":74,"min":2,"max":2,"tag":"Repetition"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Str":{"pattern":":"}},{"Alternative":{"atoms":[76,77]}},{"Lookahead":{"atom":78,"positive":false}},{"Sequence":{"atoms":[70,73,75,79]}},{"Repetition":{"atom":80,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[56,64,69,81]}},{"Alternative":{"atoms":[54,82]}},{"Named":{"name":"number_with_part","atom":83}},{"Entity":{"atom":93}},{"Str":{"pattern":"-"}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Named":{"name":"revision","atom":87}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Alternative":{"atoms":[89,90]}},{"Lookahead":{"atom":91,"positive":false}},{"Sequence":{"atoms":[86,88,92]}},{"Repetition":{"atom":85,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Str":{"pattern":":"}},{"Str":{"pattern":"19"}},{"Str":{"pattern":"20"}},{"Alternative":{"atoms":[97,98]}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":100,"min":2,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Lookahead":{"atom":102,"positive":false}},{"Sequence":{"atoms":[99,101,103]}},{"Named":{"name":"date","atom":104}},{"Sequence":{"atoms":[96,105]}},{"Repetition":{"atom":95,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":119}},{"Str":{"pattern":"("}},{"Entity":{"atom":117}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Repetition":{"atom":111,"min":2,"max":null,"tag":"Repetition"}},{"Str":{"pattern":","}},{"Repetition":{"atom":113,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[112,114]}},{"Repetition":{"atom":115,"min":0,"max":null,"tag":"Repetition"}},{"Named":{"name":"languages","atom":116}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[109,110,118]}},{"Repetition":{"atom":108,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[2,3,21,23,24,94,107,120]}},{"Entity":{"atom":135}},{"Str":{"pattern":"ANSI"}},{"Named":{"name":"publisher","atom":123}},{"Str":{"pattern":" "}},{"Str":{"pattern":"Std "}},{"Repetition":{"atom":126,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":84}},{"Entity":{"atom":93}},{"Repetition":{"atom":129,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":131,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":119}},{"Repetition":{"atom":133,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[124,125,127,128,130,132,134]}},{"Alternative":{"atoms":[0,122]}}],"root":136},"bindings":[{"capture":"publisher","path":"publisher","type":"string","card":null,"preprocess":null},{"capture":"copublisher","path":"copublishers[].copublisher","type":"string","card":null,"preprocess":null},{"capture":"number_separator","path":"number_separator","type":"string","card":null,"preprocess":null},{"capture":"number_with_part","path":"number_with_part","type":"string","card":null,"preprocess":null},{"capture":"revision","path":"revision","type":"string","card":null,"preprocess":null},{"capture":"date","path":"date","type":"string","card":null,"preprocess":null},{"capture":"languages","path":"languages","type":"string","card":null,"preprocess":null}]}},"preprocess":{},"tables":{},"lint":{"order_warnings":["rule identifier: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)"]},"default_entry":"identifier","render":{},"derive":{},"tests":[{"entry":"identifier","kind":"accept","input":"ANSI C63.4","expect":{}},{"entry":"identifier","kind":"accept","input":"ANSI/IEEE C63.4","expect":{}},{"entry":"identifier","kind":"accept","input":"ANSI Std A119.1","expect":{}},{"entry":"identifier","kind":"accept","input":"ANSI X9.62-2005","expect":{}},{"entry":"identifier","kind":"accept","input":"ANSI/UL 94-2023","expect":{}},{"entry":"identifier","kind":"accept","input":"ANSI/NISO Z39.88-2004","expect":{}},{"entry":"identifier","kind":"accept","input":"ANSI/ASHRAE/IES 90.1-2019","expect":{}},{"entry":"identifier","kind":"accept","input":"ANSI/AAMI ST79:2017","expect":{}},{"entry":"identifier","kind":"accept","input":"ANSI/ISA-5.1-2009","expect":{}},{"entry":"identifier","kind":"accept","input":"ANSI/ANS-8.1-2014","expect":{}},{"entry":"identifier","kind":"accept","input":"ANSI/ISA-61511-1-2018","expect":{}},{"entry":"identifier","kind":"accept","input":"ANSI/TIA-568.2-D","expect":{}},{"entry":"identifier","kind":"accept","input":"ANSI X9.8-1-2007","expect":{}},{"entry":"identifier","kind":"reject","input":"ANSI/TIA-568.2-DE","expect":{}},{"entry":"identifier","kind":"reject","input":"ANSI X9.8-1-2007:2009","expect":{}},{"entry":"identifier","kind":"reject","input":"ANSI/ul 94-2023","expect":{}},{"entry":"identifier","kind":"reject","input":"nonsense","expect":{}}],"docs":{},"source":"# Port of lib/pubid/ansi/parser.rb: ANSI [copublishers] [Std] number\n# [:year][(languages)]. The number alternatives cover letter-prefixed\n# forms (C37.06.1, N323A) and plain dotted forms (802.1b-1995).\n#\n# Edition-2 notes: letter_head_part / plain_part / year_digits bodies are\n# inlined at the capture sites (a capture wrapping a rule ref expands to\n# element hashes, while the inlined body binds as one scalar string).\n# The copublishers wrapper stays a capture so the tree keeps the\n# {copublishers: [...]} shape the builder reads; the repeats collect by\n# occurrence under copublishers[].copublisher.\n\ngrammar PubidAnsi version \"0.1.0\" edition 2 {\n # Any uppercase developer acronym co-publishes (relaton#45): ASHRAE,\n # UL, NISO, INCITS, HL7, ASC ... An uppercase letter, then uppercase\n # letters or digits. The copublisher body is inlined to raw terms: bare\n # rule refs next to a capture drop the capture or materialize stray\n # {slash:} nodes.\n copublisher_item = \"/\" [\" \"] ( %x41-5A 1*(%x41-5A / %x30-39) ) as copublisher\n copublishers = ( 1*copublisher_item ) as copublishers\n std_keyword = [\"Std \"]\n number_with_part = {\n (\n ( 1*(%x41-5A) 1*(%x30-39) *3(\".\" 1*(%x30-39)) [*1(%x41-5A)] [(\"-\" 1*(%x30-39))] [(\"-\" (\"19\" / \"20\") 2*2(%x30-39) !(%x30-39 / \":\"))] )\n / ( 1*(%x30-39) *2(\".\" 1*(%x30-39) [*1(%x61-7A)]) [(\"-\" 1*(%x30-39))] [(\"-\" (\"19\" / \"20\") 2*2(%x30-39) !(%x30-39 / \":\"))] )\n ) as number_with_part\n }\n # A revision letter after a dash: \"ANSI/TIA-568.2-D\". One uppercase\n # letter, not the start of a word.\n revision = \"-\" ( %x41-5A ) as revision !(%x41-5A / %x30-39)\n date = \":\" ( (\"19\" / \"20\") 2*(%x30-39) !(%x30-39) ) as date\n languages = ( *( 2*(%x61-7A) [\",\"] ) ) as languages\n language = \"(\" languages \")\"\n identifier_with_copublishers = {\n \"ANSI\" as publisher copublishers ( \" \" / ( \"-\" as number_separator ) ) [\"Std \"] number_with_part [revision] [date] [language]\n }\n identifier_sole = {\n \"ANSI\" as publisher \" \" [\"Std \"] number_with_part [revision] [date] [language]\n }\n identifier = identifier_with_copublishers / identifier_sole\n upper = %x41-5A\n lower = %x61-7A\n digit = %x30-39\n dot = \".\"\n dash = \"-\"\n colon = \":\"\n slash = \"/\"\n space = \" \"\n entry identifier: identifier\n\n bindings identifier {\n publisher -> publisher (string)\n copublisher -> copublishers[].copublisher (string)\n number_separator -> number_separator (string)\n number_with_part -> number_with_part (string)\n revision -> revision (string)\n date -> date (string)\n languages -> languages (string)\n }\n\n test {\n accept \"ANSI C63.4\"\n accept \"ANSI/IEEE C63.4\"\n accept \"ANSI Std A119.1\"\n accept \"ANSI X9.62-2005\"\n accept \"ANSI/UL 94-2023\"\n accept \"ANSI/NISO Z39.88-2004\"\n accept \"ANSI/ASHRAE/IES 90.1-2019\"\n accept \"ANSI/AAMI ST79:2017\"\n accept \"ANSI/ISA-5.1-2009\"\n accept \"ANSI/ANS-8.1-2014\"\n accept \"ANSI/ISA-61511-1-2018\"\n accept \"ANSI/TIA-568.2-D\"\n accept \"ANSI X9.8-1-2007\"\n reject \"ANSI/TIA-568.2-DE\"\n reject \"ANSI X9.8-1-2007:2009\"\n reject \"ANSI/ul 94-2023\"\n reject \"nonsense\"\n }\n}\n","source_hash":"7f83a90c91a2f4d44f6f237f6846c459b2f7267bca93dfe4d35d398acc86bac4","unicode_tables":"onigmo (Ruby 3.4.10)","compiler_version":"1.5.1.0","edition":2,"semantics_hash":"sha256:a06924c35d3c09a9312502da2680f1b4443a6e9ed883b9d65677669c4765f845","checksum":"sha256:413a04b672bf55462edfc6a5113b7327d6d35652f9382402db5da6f8cae964c1","validated":{"lint_errors":0,"lint_warnings":1,"tests_total":17,"tests_failures":0,"self_test":true},"byte_checksum":"sha256:0f3b757b5be0845eda845232fa5e887e987d340876434de8f0acb6a8eb7b39a0"}
@@ -0,0 +1 @@
1
+ {"bindings":null,"version":"0.1.0","grammar":"PubidWmo","shape":"parsanol-tree/v2","binding_version":1,"entries":{"identifier":{"root":"identifier","grammar":{"atoms":[{"Entity":{"atom":47}},{"Entity":{"atom":7}},{"Str":{"pattern":"S-"}},{"Entity":{"atom":4}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":3,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"doc_number","atom":5}},{"Sequence":{"atoms":[2,6]}},{"Entity":{"atom":9}},{"Str":{"pattern":" "}},{"Str":{"pattern":"Annex"}},{"Str":{"pattern":"ANNEX"}},{"Alternative":{"atoms":[10,11]}},{"Named":{"name":"annex_marker","atom":12}},{"Entity":{"atom":9}},{"Entity":{"atom":16}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Named":{"name":"annex_letter","atom":15}},{"Entity":{"atom":19}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Lookahead":{"atom":18,"positive":false}},{"Sequence":{"atoms":[14,17,20]}},{"Repetition":{"atom":21,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":37}},{"Entity":{"atom":9}},{"Entity":{"atom":35}},{"Entity":{"atom":4}},{"Repetition":{"atom":26,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":29}},{"Str":{"pattern":"."}},{"Entity":{"atom":4}},{"Repetition":{"atom":30,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[28,31]}},{"Repetition":{"atom":32,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[27,33]}},{"Named":{"name":"edition_value","atom":34}},{"Sequence":{"atoms":[24,25]}},{"Named":{"name":"edition","atom":36}},{"Entity":{"atom":44}},{"Entity":{"atom":40}},{"Str":{"pattern":":"}},{"Str":{"pattern":"ed"}},{"Entity":{"atom":35}},{"Sequence":{"atoms":[39,41,42]}},{"Named":{"name":"edition","atom":43}},{"Alternative":{"atoms":[23,38]}},{"Repetition":{"atom":45,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[1,8,13,22,46]}},{"Entity":{"atom":77}},{"Entity":{"atom":51}},{"Str":{"pattern":"WMO-No."}},{"Named":{"name":"wmomarker","atom":50}},{"Entity":{"atom":9}},{"Entity":{"atom":56}},{"Entity":{"atom":4}},{"Repetition":{"atom":54,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"doc_number","atom":55}},{"Entity":{"atom":68}},{"Entity":{"atom":59}},{"Str":{"pattern":","}},{"Repetition":{"atom":58,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":9}},{"Entity":{"atom":65}},{"Entity":{"atom":4}},{"Repetition":{"atom":63,"min":4,"max":4,"tag":"Repetition"}},{"Named":{"name":"edition_value","atom":64}},{"Str":{"pattern":" edition"}},{"Sequence":{"atoms":[60,61,62,66]}},{"Named":{"name":"edition","atom":67}},{"Entity":{"atom":74}},{"Entity":{"atom":40}},{"Str":{"pattern":"ed"}},{"Entity":{"atom":65}},{"Sequence":{"atoms":[70,71,72]}},{"Named":{"name":"edition","atom":73}},{"Alternative":{"atoms":[57,69]}},{"Repetition":{"atom":75,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[49,52,53,76]}},{"Entity":{"atom":84}},{"Entity":{"atom":7}},{"Entity":{"atom":37}},{"Entity":{"atom":44}},{"Alternative":{"atoms":[80,81]}},{"Repetition":{"atom":82,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[79,83]}},{"Alternative":{"atoms":[0,48,78]}}],"root":85},"bindings":[{"capture":"wmomarker","path":"wmomarker","type":"string","card":null,"preprocess":null},{"capture":"doc_number","path":"doc_number","type":"string","card":null,"preprocess":null},{"capture":"edition_value","path":"edition_value","type":"string","card":null,"preprocess":null},{"capture":"annex_marker","path":"annex_marker","type":"string","card":null,"preprocess":null},{"capture":"annex_letter","path":"annex_letter","type":"string","card":null,"preprocess":null}]}},"preprocess":{},"tables":{},"lint":{"order_warnings":["rule identifier: branches 1 and 3 are order-dependent (shared first bytes; ordered choice is decisive)"]},"default_entry":"identifier","render":{},"derive":{},"tests":[{"entry":"identifier","kind":"accept","input":"WMO-No. 1364","expect":{}},{"entry":"identifier","kind":"accept","input":"WMO-No. 1364, 2025 edition","expect":{}},{"entry":"identifier","kind":"accept","input":"WMO-No. 1364 2025 edition","expect":{}},{"entry":"identifier","kind":"accept","input":"WMO-No. 1364:ed2025","expect":{}},{"entry":"identifier","kind":"accept","input":"S-411","expect":{}},{"entry":"identifier","kind":"accept","input":"S-411 1.2.1","expect":{}},{"entry":"identifier","kind":"accept","input":"S-411:ed1.2.1","expect":{}},{"entry":"identifier","kind":"accept","input":"S-411 Annex A","expect":{}},{"entry":"identifier","kind":"accept","input":"S-411 ANNEX A","expect":{}},{"entry":"identifier","kind":"accept","input":"S-411 Annex A 1.2.0","expect":{}},{"entry":"identifier","kind":"reject","input":"nonsense","expect":{}},{"entry":"identifier","kind":"reject","input":"WMO-No. edition","expect":{}},{"entry":"identifier","kind":"reject","input":"S-411 1234","expect":{}},{"entry":"identifier","kind":"example","input":"WMO-No. 1364","expect":{"wmomarker":"WMO-No.","doc_number":"1364"}},{"entry":"identifier","kind":"example","input":"WMO-No. 1364, 2025 edition","expect":{"wmomarker":"WMO-No.","doc_number":"1364","edition_value":"2025"}},{"entry":"identifier","kind":"example","input":"S-411 1.2.1","expect":{"doc_number":"411","edition_value":"1.2.1"}},{"entry":"identifier","kind":"example","input":"S-411 Annex A 1.2.0","expect":{"doc_number":"411","annex_marker":"Annex","annex_letter":"A","edition_value":"1.2.0"}},{"entry":"identifier","kind":"example","input":"WMO-No. 1364:ed2025","expect":{"wmomarker":"WMO-No.","doc_number":"1364","edition_value":"2025"}}],"docs":{},"source":"# WMO document identifiers (pubid#763): the WMO-No. publication series\n# and the WMO-published S-100 product specifications.\n#\n# WMO-No. 1364 publication, bare\n# WMO-No. 1364, 2025 edition publication, year edition (citation comma)\n# WMO-No. 1364 2025 edition publication, year edition (cover stack)\n# WMO-No. 1364:ed2025 publication, compact year edition (alias)\n# S-411 S-100 product specification, bare\n# S-411 1.2.1 dotted edition (the S-411 repo form)\n# S-411:ed1.2.1 compact dotted edition (alias)\n# S-411 Annex A annex wrapper (the DCEG docidentifier)\n# S-411 Annex A 1.2.0 annex wrapper carrying its edition\n#\n# Editions are a type-driven face: the WMO-No. series carries calendar-year\n# editions (\"2025 edition\", MRN `ed2025`); the S-100 shapes carry the IHO\n# dotted x.y.z (MRN `ed1.2.1`). Both bind the one `edition_value` capture;\n# the builder keys the face off the resolved type.\n#\n# Type assignment (the #763 ruling): the S-lexical form is a WMO type,\n# publisher-parameterised per IALA's S-201 — the lexical shape is the IHO\n# S-100 form, but the flavor owns the WMO-published documents\n# (metanorma/S-411-Product-Specification, mn-document-class wmo).\n#\n# Edition-2 conversion with typed model bindings, mirroring the iala\n# grammar: each alternative path carries exactly one occurrence of every\n# capture name, so the harvest delivers one flat bound map; the annex base\n# composite stays unbound (its `doc_number` hoists to the top level) and\n# the builder dispatches on `wmomarker` / `annex_marker`. The annex letter\n# guard (!lower) keeps a following edition segment from mis-capturing.\n\ngrammar PubidWmo version \"0.1.0\" edition 2 {\n wmomarker = \"WMO-No.\" as wmomarker\n doc_number = (1*digit) as doc_number\n s_code = \"S-\" (1*digit) as doc_number\n year_value = (4digit) as edition_value\n dotted_value = (1*digit 1*(dot 1*digit)) as edition_value\n edition_year_human = ([comma] space year_value \" edition\") as edition\n edition_year_compact = (colon \"ed\" year_value) as edition\n edition_dotted_human = (space dotted_value) as edition\n edition_dotted_compact = (colon \"ed\" dotted_value) as edition\n annex_identifier = {\n s_code\n space\n (\"Annex\" / \"ANNEX\") as annex_marker\n [ (space upper as annex_letter !lower) ]\n [edition_dotted_human / edition_dotted_compact]\n }\n publication_identifier = {\n wmomarker space doc_number\n [edition_year_human / edition_year_compact]\n }\n standard_identifier = {\n s_code\n [edition_dotted_human / edition_dotted_compact]\n }\n identifier = annex_identifier / publication_identifier / standard_identifier\n entry identifier: identifier\n\n upper = %x41-5A\n lower = %x61-7A\n digit = %x30-39\n comma = \",\"\n colon = \":\"\n dot = \".\"\n space = \" \"\n\n bindings identifier {\n wmomarker -> wmomarker (string)\n doc_number -> doc_number (string)\n edition_value -> edition_value (string)\n annex_marker -> annex_marker (string)\n annex_letter -> annex_letter (string)\n }\n\n test {\n accept \"WMO-No. 1364\"\n accept \"WMO-No. 1364, 2025 edition\"\n accept \"WMO-No. 1364 2025 edition\"\n accept \"WMO-No. 1364:ed2025\"\n accept \"S-411\"\n accept \"S-411 1.2.1\"\n accept \"S-411:ed1.2.1\"\n accept \"S-411 Annex A\"\n accept \"S-411 ANNEX A\"\n accept \"S-411 Annex A 1.2.0\"\n reject \"nonsense\"\n reject \"WMO-No. edition\"\n reject \"S-411 1234\"\n example \"WMO-No. 1364\" { wmomarker: \"WMO-No.\", doc_number: \"1364\" }\n example \"WMO-No. 1364, 2025 edition\" {\n wmomarker: \"WMO-No.\",\n doc_number: \"1364\",\n edition_value: \"2025\",\n }\n example \"S-411 1.2.1\" { doc_number: \"411\", edition_value: \"1.2.1\" }\n example \"S-411 Annex A 1.2.0\" {\n doc_number: \"411\",\n annex_marker: \"Annex\",\n annex_letter: \"A\",\n edition_value: \"1.2.0\",\n }\n example \"WMO-No. 1364:ed2025\" {\n wmomarker: \"WMO-No.\",\n doc_number: \"1364\",\n edition_value: \"2025\",\n }\n }\n}\n","source_hash":"c1154f8f4d15e8e1bb6cf9e72f81ff364f38a4fcdb6a51306ad9168b309e593f","unicode_tables":"onigmo (Ruby 3.4.8)","compiler_version":"1.5.1.0","edition":2,"semantics_hash":"sha256:b48a1a5ec6cdc049a19e4a5c0384c10c9bf00160cc30924a21606ac45f558819","checksum":"sha256:671bca49cef897f9c5554c6073cf7b9a2319240ecc2a82a36d559af0d44e5d09","validated":{"lint_errors":0,"lint_warnings":1,"tests_total":18,"tests_failures":0,"self_test":true}}
@@ -0,0 +1,108 @@
1
+ # WMO document identifiers (pubid#763): the WMO-No. publication series
2
+ # and the WMO-published S-100 product specifications.
3
+ #
4
+ # WMO-No. 1364 publication, bare
5
+ # WMO-No. 1364, 2025 edition publication, year edition (citation comma)
6
+ # WMO-No. 1364 2025 edition publication, year edition (cover stack)
7
+ # WMO-No. 1364:ed2025 publication, compact year edition (alias)
8
+ # S-411 S-100 product specification, bare
9
+ # S-411 1.2.1 dotted edition (the S-411 repo form)
10
+ # S-411:ed1.2.1 compact dotted edition (alias)
11
+ # S-411 Annex A annex wrapper (the DCEG docidentifier)
12
+ # S-411 Annex A 1.2.0 annex wrapper carrying its edition
13
+ #
14
+ # Editions are a type-driven face: the WMO-No. series carries calendar-year
15
+ # editions ("2025 edition", MRN `ed2025`); the S-100 shapes carry the IHO
16
+ # dotted x.y.z (MRN `ed1.2.1`). Both bind the one `edition_value` capture;
17
+ # the builder keys the face off the resolved type.
18
+ #
19
+ # Type assignment (the #763 ruling): the S-lexical form is a WMO type,
20
+ # publisher-parameterised per IALA's S-201 — the lexical shape is the IHO
21
+ # S-100 form, but the flavor owns the WMO-published documents
22
+ # (metanorma/S-411-Product-Specification, mn-document-class wmo).
23
+ #
24
+ # Edition-2 conversion with typed model bindings, mirroring the iala
25
+ # grammar: each alternative path carries exactly one occurrence of every
26
+ # capture name, so the harvest delivers one flat bound map; the annex base
27
+ # composite stays unbound (its `doc_number` hoists to the top level) and
28
+ # the builder dispatches on `wmomarker` / `annex_marker`. The annex letter
29
+ # guard (!lower) keeps a following edition segment from mis-capturing.
30
+
31
+ grammar PubidWmo version "0.1.0" edition 2 {
32
+ wmomarker = "WMO-No." as wmomarker
33
+ doc_number = (1*digit) as doc_number
34
+ s_code = "S-" (1*digit) as doc_number
35
+ year_value = (4digit) as edition_value
36
+ dotted_value = (1*digit 1*(dot 1*digit)) as edition_value
37
+ edition_year_human = ([comma] space year_value " edition") as edition
38
+ edition_year_compact = (colon "ed" year_value) as edition
39
+ edition_dotted_human = (space dotted_value) as edition
40
+ edition_dotted_compact = (colon "ed" dotted_value) as edition
41
+ annex_identifier = {
42
+ s_code
43
+ space
44
+ ("Annex" / "ANNEX") as annex_marker
45
+ [ (space upper as annex_letter !lower) ]
46
+ [edition_dotted_human / edition_dotted_compact]
47
+ }
48
+ publication_identifier = {
49
+ wmomarker space doc_number
50
+ [edition_year_human / edition_year_compact]
51
+ }
52
+ standard_identifier = {
53
+ s_code
54
+ [edition_dotted_human / edition_dotted_compact]
55
+ }
56
+ identifier = annex_identifier / publication_identifier / standard_identifier
57
+ entry identifier: identifier
58
+
59
+ upper = %x41-5A
60
+ lower = %x61-7A
61
+ digit = %x30-39
62
+ comma = ","
63
+ colon = ":"
64
+ dot = "."
65
+ space = " "
66
+
67
+ bindings identifier {
68
+ wmomarker -> wmomarker (string)
69
+ doc_number -> doc_number (string)
70
+ edition_value -> edition_value (string)
71
+ annex_marker -> annex_marker (string)
72
+ annex_letter -> annex_letter (string)
73
+ }
74
+
75
+ test {
76
+ accept "WMO-No. 1364"
77
+ accept "WMO-No. 1364, 2025 edition"
78
+ accept "WMO-No. 1364 2025 edition"
79
+ accept "WMO-No. 1364:ed2025"
80
+ accept "S-411"
81
+ accept "S-411 1.2.1"
82
+ accept "S-411:ed1.2.1"
83
+ accept "S-411 Annex A"
84
+ accept "S-411 ANNEX A"
85
+ accept "S-411 Annex A 1.2.0"
86
+ reject "nonsense"
87
+ reject "WMO-No. edition"
88
+ reject "S-411 1234"
89
+ example "WMO-No. 1364" { wmomarker: "WMO-No.", doc_number: "1364" }
90
+ example "WMO-No. 1364, 2025 edition" {
91
+ wmomarker: "WMO-No.",
92
+ doc_number: "1364",
93
+ edition_value: "2025",
94
+ }
95
+ example "S-411 1.2.1" { doc_number: "411", edition_value: "1.2.1" }
96
+ example "S-411 Annex A 1.2.0" {
97
+ doc_number: "411",
98
+ annex_marker: "Annex",
99
+ annex_letter: "A",
100
+ edition_value: "1.2.0",
101
+ }
102
+ example "WMO-No. 1364:ed2025" {
103
+ wmomarker: "WMO-No.",
104
+ doc_number: "1364",
105
+ edition_value: "2025",
106
+ }
107
+ }
108
+ }
@@ -0,0 +1,81 @@
1
+ # ANSI flavor notes
2
+
3
+ ## The trailing year and the open co-publisher list (relaton#45)
4
+
5
+ relaton routes `ANSI …` through `Pubid::Ansi`: it takes the year for the cache
6
+ key and sends `ANSI/<co-publisher> …` to that co-publisher's flavor
7
+ (hand-off `pubid__pubid__ansi-year-and-copublishers`).
8
+
9
+ - **A trailing `-YYYY` (19xx/20xx) is the year, not a part.** The grammar's
10
+ `number_with_part` still captures `X9.62-2005` whole; `Builder#read_dash_year`
11
+ moves a 4-digit 19xx/20xx dash group into `date` and sets
12
+ `date_separator: "-"`, but only when no `:YYYY` follows, so the part of
13
+ `ANSI X9.8-1:2007` stays a part. Before this, all 175 corpus ids stored the
14
+ year in `part` and had no `year`. A real 4-digit part in 19xx/20xx is now
15
+ read as a year; no corpus id has one.
16
+ - **`date_separator` is spelling, not identity.** It is `equality_ignored`, so
17
+ `ANSI X9.62-2005 == ANSI X9.62:2005`. nil means the colon, which keeps the
18
+ hash of `ANSI/ISO 9899:1990` unchanged. It is the pubid-URN facet `datesep`.
19
+ `#exclude(:year)` / `#exclude(:date)` also nils it (the sibling-cluster rule
20
+ in the root `CLAUDE.md`), so a year-less copy carries no orphan flag.
21
+ - **Any uppercase acronym co-publishes**: `copublisher_item` is
22
+ `"/" [" "] %x41-5A 1*(%x41-5A / %x30-39)` (UL, NISO, INCITS, ASHRAE, HL7,
23
+ ASC, …), in `data/parg/ansi.json`. **The grammar was baked here ahead of
24
+ pubid-grammar** (hand-off `pubid__pubid-grammar__ansi-open-copublishers`):
25
+ the `source` of `data/parg/ansi.json` is the only copy until pubid-grammar
26
+ adopts it. To rebake: `jq -j .source data/parg/ansi.json > ansi.parg`, edit,
27
+ `parsanol _1.5.1.0_ parg compile ansi.parg -o data/parg/ansi.json`,
28
+ `parsanol _1.5.1.0_ parg test data/parg/ansi.json`.
29
+ - **The dash after the acronym** (`ANSI/ISA-5.1-2009`, `ANSI/ANS-8.1-2014`,
30
+ `ANSI/ISA-61511-1-2018`, `ANSI/TIA-568.2-D`). Three grammar pieces:
31
+ (1) only `identifier_with_copublishers` takes `"-" as number_separator`
32
+ in place of the space; `number_separator` is `equality_ignored` (nil = the
33
+ space) and the pubid-URN facet `numsep`, so `ANSI/ISA-5.1 == ANSI/ISA 5.1`.
34
+ `#exclude(:year)` keeps it — it belongs to the publisher group, not the year.
35
+ (2) `number_with_part` takes a second dash group, but only a 19xx/20xx year
36
+ not followed by a digit or a colon, so the builder reads a third split group
37
+ as the year with no test, and `X9.8-1-2007:2009` fails instead of silently
38
+ dropping `2007`. The two-group case still goes through `read_dash_year`,
39
+ which skips an id with a revision: in `568-2009-D` the `2009` is a part,
40
+ because the renderer prints the revision before the date. The space form
41
+ gets the second group too (`ANSI X9.8-1-2007`). (3) `revision` is one
42
+ uppercase letter after a dash, not followed by a letter or digit (`-DE`
43
+ fails). It is identity (`revision_of?` reads it), the pubid-URN atom `rev`,
44
+ an official URN segment `rev-D` and an MR-slug suffix
45
+ (`#mr_number_with_part`), so `568.2-C` and `568.2-D` do not collide. Not
46
+ supported: a year after the revision (`568.2-D-2016`) and TIA addenda
47
+ (`568-C.2`). The official `UrnParser` refuses every co-published URN
48
+ (`urn:ansi-isa:…`), as it did before. **Measured** against a `main`
49
+ replay of every ansi/ieee/amca/ashrae fixture id: no `to_s`, `to_hash`,
50
+ `to_urn` or pubid URN moved, and one route is new: `ANSI/IEEE Std
51
+ 260-4-1996` failed in every flavor and now routes to ANSI as
52
+ `ANSI/IEEE 260-4-1996`. It loses `Std`, because the ANSI grammar never
53
+ captures `["Std "]` (`ANSI Std A119.1` renders `ANSI A119.1` on `main`
54
+ too).
55
+ - **Routing umbrella.** With the open list, ANSI parses `ANSI/AMCA 210-16`
56
+ exactly while AMCA normalizes it (`ANSI/AMCA Standard 210-16`), so plain
57
+ routing would have handed it to ANSI. `Pubid::Ansi.routing_umbrella?` is
58
+ true: `Pubid.parse` tries ANSI last among the prefix owners and returns an
59
+ earlier owner's parse. **The short-cut fires only when ANSI is a prefix
60
+ owner of the string.** A first version fired in the exhaustive pass too,
61
+ where ANSI is 4th in registry order, and it moved 24 unrelated routes
62
+ (`EP 207` went from GB to BSI `BS 207`); `spec/pubid/ansi/
63
+ year_and_copublishers_spec.rb` pins two of them. Measured over every
64
+ ansi/amca/ashrae/ieee fixture id and over a 8,428-id sample of every
65
+ flavor's pass fixtures: no route moved except new parses and
66
+ `ANSI/ASHRAE 90.1-2019`, which went to IEEE before (a non-owner's exact
67
+ parse) and now goes to ASHRAE (rendered `ASHRAE Standard 90.1-2019`).
68
+ `Pubid::Ansi.parse` itself still reads it as ANSI with co-publisher ASHRAE.
69
+ - **Type keys are unique**: `AmericanNationalStandard` (never built by the
70
+ builder) has key `:american_national_standard`; `Standard` keeps `:ans`.
71
+
72
+ **What moved** (replay of all 11,656 ansi/ieee/amca/ashrae fixture ids against
73
+ `main`): `to_s` byte-identical for every id that parsed before. `to_hash` and
74
+ the pubid URN moved for 174 earlier ANSI ids and 33 IEEE adoptions that nest an ANSI
75
+ id (`IEEE 167-1966 (ANSI C16.37-1971)`): `part` became `year` +
76
+ `date_separator`. `to_urn` moved for the same 174 ANSI ids (`urn:ansi:802.3:-2012` →
77
+ `urn:ansi:802.3:2012`, which `UrnParser` now reads back). An old hash still
78
+ deserializes, but it does not `==` a fresh parse, so the relaton-data-ieee rows
79
+ that nest an ANSI id need a re-crawl. The 170 moved `tests/ansi/` cases are in
80
+ `conformance/pending.yaml` until the pubid-testsuite round (hand-off
81
+ `pubid__pubid-testsuite__ansi-year-and-corpus`).
@@ -7,11 +7,40 @@ module Pubid
7
7
  data = flatten_array(data) if data.is_a?(Array)
8
8
  identifier = default_identifier_class.new
9
9
  assign_attributes(identifier, data)
10
+ read_dash_year(identifier)
10
11
  identifier
11
12
  end
12
13
 
14
+ # A trailing "-" + 4 digits (19xx/20xx) is the publication year, not a
15
+ # part: "ANSI X9.62-2005" (relaton#45). Only when no ":YYYY" follows,
16
+ # so the part of "ANSI X9.8-1:2007" stays a part.
17
+ DASH_YEAR = /\A(?:19|20)\d{2}\z/
18
+
13
19
  private
14
20
 
21
+ def read_dash_year(identifier)
22
+ # A revision follows the part, so "568-2009-D" keeps 2009 as a part:
23
+ # read as a year, it would render after the revision.
24
+ return if identifier.date || identifier.revision
25
+ return unless DASH_YEAR.match?(identifier.part.to_s)
26
+
27
+ identifier.date = Components::Date.new(year: identifier.part)
28
+ identifier.date_separator = "-"
29
+ identifier.part = nil
30
+ end
31
+
32
+ # A third dash group is always the year: the grammar admits only a
33
+ # 19xx/20xx group there ("ANSI/ISA-61511-1-2018").
34
+ def split_number_with_part(value)
35
+ number, part, dash_year = value.split("-")
36
+ {
37
+ number: number,
38
+ part: part,
39
+ date: dash_year && Components::Date.new(year: dash_year),
40
+ date_separator: dash_year && "-",
41
+ }.compact
42
+ end
43
+
15
44
  def default_identifier_class
16
45
  Identifiers::Standard
17
46
  end
@@ -31,14 +60,9 @@ module Pubid
31
60
  end
32
61
  end
33
62
  when :number_with_part
34
- original_value = value.to_s
35
- main_and_parts = original_value.split("-")
36
- main_number = main_and_parts[0]
37
- part_number = main_and_parts[1]
38
- {
39
- number: main_number,
40
- part: part_number,
41
- }.compact
63
+ split_number_with_part(value.to_s)
64
+ when :number_separator, :revision
65
+ value.to_s
42
66
  when :date
43
67
  Components::Date.new(year: value.to_s)
44
68
  when :languages