pubid 2.0.47 → 2.0.49

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: 38deff0638245cbb818efee3e1c84d2609c2345f723481911b97f41f38ff75b7
4
- data.tar.gz: '00387514abeb057d531de9ca92e0bfa33f56ea012178ece3681292dc50d7eeec'
3
+ metadata.gz: 42fbb6b3f8ca5fb3840ded3e83f28ff5d4c9b9120ab3f3f904de59cbc95deb79
4
+ data.tar.gz: a18dfffb5aa61f9d5884b6e227488b36570c07629d1b32bc5c0c494643ce7279
5
5
  SHA512:
6
- metadata.gz: af5fa6dbdde25dc2e8a4abcccaa6f55cb6c0385c63847b3feb0b6abc294c9a1a2db3c02f10685e7253f3c0b2877458e9fba9af2dd7508684ab40655e649f3357
7
- data.tar.gz: c62f2206a43eb445f543e4528695a27fdd2639362eff38576691ff94698ac66064288f324aa110ae9d14fff22151c16afe5515ed46a7e69bd5a7a29af7815667
6
+ metadata.gz: d3bd5d576722dcf75c5cacb79d915b032b19a3521c71149ef471ff5c469fe93430ad185d78878f4cdc9752288d36aa5984fdc3eb4b42e6f200162530e2de380d
7
+ data.tar.gz: e1691661c2b2d9c60c7bb1c2712ab5b1f0e4bcfe3d521c1dd9da7d23c4cd31c0b6750b3fd6e4557b3a16435237d07e9289011a306f9b367e908ba4110655a926
data/README.adoc CHANGED
@@ -166,12 +166,12 @@ publisher page on https://pubid.github.io/publishers[pubid.github.io].
166
166
  |link:https://pubid.github.io/publishers/un[UN]
167
167
 
168
168
  |link:https://pubid.github.io/publishers/w3c[W3C]
169
+ |link:https://pubid.github.io/publishers/wmo[WMO]
169
170
  |link:https://pubid.github.io/publishers/xsf[XSF]
170
- |link:https://pubid.github.io/publishers/adobe[Adobe]
171
171
 
172
+ |link:https://pubid.github.io/publishers/adobe[Adobe]
172
173
  |link:https://pubid.github.io/publishers/amca[AMCA]
173
174
  |link:https://pubid.github.io/publishers/calconnect[CalConnect]
174
- |
175
175
  |===
176
176
 
177
177
  (The gem's 3GPP flavor key is `3gpp`; its publisher page is `tgpp`. CEN and
@@ -2,176 +2,3 @@
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":84}},{"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":"Std "}},{"Repetition":{"atom":19,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":57}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Repetition":{"atom":22,"min":1,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":24,"min":1,"max":null,"tag":"Repetition"}},{"Str":{"pattern":"."}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":27,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[26,28]}},{"Repetition":{"atom":29,"min":0,"max":3,"tag":"Repetition"}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Repetition":{"atom":31,"min":0,"max":1,"tag":"Repetition"}},{"Repetition":{"atom":32,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"-"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":35,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[34,36]}},{"Repetition":{"atom":37,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[23,25,30,33,38]}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":40,"min":1,"max":null,"tag":"Repetition"}},{"Str":{"pattern":"."}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":43,"min":1,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Repetition":{"atom":45,"min":0,"max":1,"tag":"Repetition"}},{"Repetition":{"atom":46,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[42,44,47]}},{"Repetition":{"atom":48,"min":0,"max":2,"tag":"Repetition"}},{"Str":{"pattern":"-"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":51,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[50,52]}},{"Repetition":{"atom":53,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[41,49,54]}},{"Alternative":{"atoms":[39,55]}},{"Named":{"name":"number_with_part","atom":56}},{"Entity":{"atom":69}},{"Str":{"pattern":":"}},{"Str":{"pattern":"19"}},{"Str":{"pattern":"20"}},{"Alternative":{"atoms":[60,61]}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":63,"min":2,"max":null,"tag":"Repetition"}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Lookahead":{"atom":65,"positive":false}},{"Sequence":{"atoms":[62,64,66]}},{"Named":{"name":"date","atom":67}},{"Sequence":{"atoms":[59,68]}},{"Repetition":{"atom":58,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":82}},{"Str":{"pattern":"("}},{"Entity":{"atom":80}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Repetition":{"atom":74,"min":2,"max":null,"tag":"Repetition"}},{"Str":{"pattern":","}},{"Repetition":{"atom":76,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[75,77]}},{"Repetition":{"atom":78,"min":0,"max":null,"tag":"Repetition"}},{"Named":{"name":"languages","atom":79}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[72,73,81]}},{"Repetition":{"atom":71,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[2,3,18,20,21,70,83]}},{"Entity":{"atom":96}},{"Str":{"pattern":"ANSI"}},{"Named":{"name":"publisher","atom":86}},{"Str":{"pattern":" "}},{"Str":{"pattern":"Std "}},{"Repetition":{"atom":89,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":57}},{"Entity":{"atom":69}},{"Repetition":{"atom":92,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":82}},{"Repetition":{"atom":94,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[87,88,90,91,93,95]}},{"Alternative":{"atoms":[0,85]}}],"root":97},"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 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":"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))] )\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 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 reject \"ANSI/ul 94-2023\"\n reject \"nonsense\"\n }\n}\n","source_hash":"9a6a813325d5e5898758f9038be5cc0d34b4e4078f55f96b8e63e2e53a6dfc11","unicode_tables":"onigmo (Ruby 3.4.10)","compiler_version":"1.5.1.0","edition":2,"semantics_hash":"sha256:a592ed0b5dda81c93fcf98c9c3e6520ce56dfb93983312ca02452850693d0cf4","checksum":"sha256:fa2c1388465ee69b9752907ba358a9f6c8f909e06f2415dca4c78133a44f508b","validated":{"lint_errors":0,"lint_warnings":1,"tests_total":10,"tests_failures":0,"self_test":true},"byte_checksum":"sha256:42f854707e693e3e0f880a35c070d16448e7ed1f51665c6dc552e79bd23a0e49"}
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.2.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":141}},{"Entity":{"atom":58}},{"Str":{"pattern":"WMO-No."}},{"Named":{"name":"series_head","atom":50}},{"Str":{"pattern":"WMO/TD-No."}},{"Named":{"name":"series_head","atom":52}},{"Str":{"pattern":"JCOMM Technical Report No."}},{"Named":{"name":"series_head","atom":54}},{"Str":{"pattern":"GAW Report No."}},{"Named":{"name":"series_head","atom":56}},{"Alternative":{"atoms":[51,53,55,57]}},{"Entity":{"atom":9}},{"Entity":{"atom":63}},{"Entity":{"atom":4}},{"Repetition":{"atom":61,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"doc_number","atom":62}},{"Entity":{"atom":92}},{"Str":{"pattern":","}},{"Repetition":{"atom":65,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":9}},{"Str":{"pattern":"Volume"}},{"Entity":{"atom":9}},{"Entity":{"atom":91}},{"Entity":{"atom":82}},{"Str":{"pattern":"VIII"}},{"Str":{"pattern":"VII"}},{"Str":{"pattern":"VI"}},{"Str":{"pattern":"III"}},{"Str":{"pattern":"II"}},{"Str":{"pattern":"IX"}},{"Str":{"pattern":"IV"}},{"Str":{"pattern":"X"}},{"Str":{"pattern":"V"}},{"Str":{"pattern":"I"}},{"Alternative":{"atoms":[72,73,74,75,76,77,78,79,80,81]}},{"Entity":{"atom":16}},{"Alternative":{"atoms":[71,83]}},{"Entity":{"atom":29}},{"Entity":{"atom":4}},{"Repetition":{"atom":86,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[85,87]}},{"Repetition":{"atom":88,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[84,89]}},{"Named":{"name":"volume","atom":90}},{"Sequence":{"atoms":[66,67,68,69,70]}},{"Repetition":{"atom":64,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":122}},{"Str":{"pattern":","}},{"Repetition":{"atom":95,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":9}},{"Entity":{"atom":108}},{"Entity":{"atom":4}},{"Repetition":{"atom":99,"min":4,"max":4,"tag":"Repetition"}},{"Entity":{"atom":102}},{"Str":{"pattern":"/"}},{"Entity":{"atom":4}},{"Repetition":{"atom":103,"min":4,"max":4,"tag":"Repetition"}},{"Sequence":{"atoms":[101,104]}},{"Repetition":{"atom":105,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[100,106]}},{"Named":{"name":"edition_value","atom":107}},{"Str":{"pattern":" edition"}},{"Entity":{"atom":120}},{"Str":{"pattern":","}},{"Entity":{"atom":9}},{"Str":{"pattern":"updated"}},{"Entity":{"atom":9}},{"Str":{"pattern":"in"}},{"Entity":{"atom":9}},{"Entity":{"atom":4}},{"Repetition":{"atom":117,"min":4,"max":4,"tag":"Repetition"}},{"Named":{"name":"updated_in","atom":118}},{"Sequence":{"atoms":[111,112,113,114,115,116,119]}},{"Repetition":{"atom":110,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[96,97,98,109,121]}},{"Entity":{"atom":132}},{"Str":{"pattern":","}},{"Repetition":{"atom":124,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":9}},{"Str":{"pattern":"Provisional"}},{"Named":{"name":"edition_status","atom":127}},{"Entity":{"atom":9}},{"Entity":{"atom":108}},{"Str":{"pattern":" edition"}},{"Sequence":{"atoms":[125,126,128,129,130,131]}},{"Entity":{"atom":138}},{"Entity":{"atom":40}},{"Str":{"pattern":"ed"}},{"Entity":{"atom":108}},{"Sequence":{"atoms":[134,135,136]}},{"Named":{"name":"edition","atom":137}},{"Alternative":{"atoms":[94,123,133]}},{"Repetition":{"atom":139,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[49,59,60,93,140]}},{"Entity":{"atom":148}},{"Entity":{"atom":7}},{"Entity":{"atom":37}},{"Entity":{"atom":44}},{"Alternative":{"atoms":[144,145]}},{"Repetition":{"atom":146,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[143,147]}},{"Alternative":{"atoms":[0,48,142]}}],"root":149},"bindings":[{"capture":"series_head","path":"series_head","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":"volume","path":"volume","type":"string","card":null,"preprocess":null},{"capture":"edition_status","path":"edition_status","type":"string","card":null,"preprocess":null},{"capture":"updated_in","path":"updated_in","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 series_head: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 1 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 1 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 2 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 3 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 4 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 4 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 4 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 4 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 5 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 5 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 5 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 6 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 6 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule volume_roman: branches 7 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","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":"accept","input":"WMO-No. 306","expect":{}},{"entry":"identifier","kind":"accept","input":"WMO-No. 8, Volume I","expect":{}},{"entry":"identifier","kind":"accept","input":"WMO-No. 8, Volume V","expect":{}},{"entry":"identifier","kind":"accept","input":"WMO-No. 306, Volume I.1","expect":{}},{"entry":"identifier","kind":"accept","input":"WMO-No. 9, Volume D","expect":{}},{"entry":"identifier","kind":"accept","input":"WMO-No. 306, Volume I.1, 2020 edition","expect":{}},{"entry":"identifier","kind":"accept","input":"WMO-No. 8, 2021/2018 edition","expect":{}},{"entry":"identifier","kind":"accept","input":"WMO-No. 1364, 2023 edition, updated in 2025","expect":{}},{"entry":"identifier","kind":"accept","input":"WMO-No. 8, Provisional 2026 edition","expect":{}},{"entry":"identifier","kind":"accept","input":"WMO/TD-No. 196","expect":{}},{"entry":"identifier","kind":"accept","input":"JCOMM Technical Report No. 14","expect":{}},{"entry":"identifier","kind":"accept","input":"GAW Report No. 312","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":"reject","input":"TD-No. 1265","expect":{}},{"entry":"identifier","kind":"reject","input":"TD No. 196","expect":{}},{"entry":"identifier","kind":"reject","input":"IMO/TD-No. 259","expect":{}},{"entry":"identifier","kind":"reject","input":"WMO/GAW Report No. 285","expect":{}},{"entry":"identifier","kind":"reject","input":"WMO/TD - No. 1469","expect":{}},{"entry":"identifier","kind":"example","input":"WMO-No. 1364","expect":{"series_head":"WMO-No.","doc_number":"1364"}},{"entry":"identifier","kind":"example","input":"WMO-No. 1364, 2025 edition","expect":{"series_head":"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":{"series_head":"WMO-No.","doc_number":"1364","edition_value":"2025"}},{"entry":"identifier","kind":"example","input":"WMO-No. 306, Volume I.1","expect":{"series_head":"WMO-No.","doc_number":"306","volume":"I.1"}},{"entry":"identifier","kind":"example","input":"WMO-No. 306, Volume I.1, 2020 edition","expect":{"series_head":"WMO-No.","doc_number":"306","volume":"I.1","edition_value":"2020"}},{"entry":"identifier","kind":"example","input":"WMO-No. 8, 2021/2018 edition","expect":{"series_head":"WMO-No.","doc_number":"8","edition_value":"2021/2018"}},{"entry":"identifier","kind":"example","input":"WMO-No. 1364, 2023 edition, updated in 2025","expect":{"series_head":"WMO-No.","doc_number":"1364","edition_value":"2023","updated_in":"2025"}},{"entry":"identifier","kind":"example","input":"WMO-No. 8, Provisional 2026 edition","expect":{"series_head":"WMO-No.","doc_number":"8","edition_status":"Provisional","edition_value":"2026"}},{"entry":"identifier","kind":"example","input":"WMO/TD-No. 196","expect":{"series_head":"WMO/TD-No.","doc_number":"196"}},{"entry":"identifier","kind":"example","input":"JCOMM Technical Report No. 14","expect":{"series_head":"JCOMM Technical Report No.","doc_number":"14"}},{"entry":"identifier","kind":"example","input":"GAW Report No. 312","expect":{"series_head":"GAW Report No.","doc_number":"312"}}],"docs":{},"source":"# WMO document identifiers (pubid#763, widened): the WMO-No. publication\n# series, the WMO-published S-100 product specifications, and the WMO\n# technical-document series (WMO/TD, JCOMM Technical Report, GAW Report).\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# WMO-No. 8, 2021/2018 edition publication, compound year-pair edition\n# (primary year first, the IMOP wording)\n# WMO-No. 1364, 2023 edition,\n# updated in 2025 publication, edition + updated-in year\n# (library record 69478)\n# WMO-No. 8, Provisional 2026\n# edition publication, status-qualified edition\n# (IMOP Knowledge-Hub)\n# WMO-No. 8, Volume I … V volume face, roman (IMOP Guide page)\n# WMO-No. 306, Volume I.1 dotted-roman sub-volume (record 35713)\n# WMO-No. 9, Volume D letter volume (Resolution 10 (SERCOM-1))\n# WMO/TD-No. 196 the Technical Document series (the\n# library serial \"WMO/TD-No.\"; the PREFIX\n# law of the widening ruling: the bare\n# \"TD-No.\" head names no publisher, so it\n# never parses)\n# JCOMM Technical Report No. 14 the joint WMO/IOC series (self-\n# identifying head)\n# GAW Report No. 312 the GAW series, bare head (WMO's own\n# library records; the prefixed\n# \"WMO/GAW Report No.\" spelling is\n# third-party citation only)\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 publication series carry calendar-\n# year editions (\"2025 edition\", MRN `ed2025`); the S-100 shapes carry the\n# IHO dotted x.y.z (MRN `ed1.2.1`). Both bind the one `edition_value`\n# capture; the builder keys the face off the resolved type. The compound\n# faces widen the same capture: the year pair (\"2021/2018\") is one\n# edition value — the pair IS the identity face, the dotted-x.y.z rule of\n# the S-100 side applied to years — and the status word (\"Provisional\")\n# and the updated-in year ride their own captures beside it.\n#\n# The volume face precedes the edition face when both appear (the face\n# order of the widening ruling; both faces individually attested on\n# WMO-No. 306 Volume I.1 and the 2020-edition rows).\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 at most 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 `series_head` / `annex_marker`. The annex\n# letter guard (!lower) keeps a following edition segment from\n# mis-capturing.\n\ngrammar PubidWmo version \"0.2.0\" edition 2 {\n series_head = {\n \"WMO-No.\" as series_head\n / \"WMO/TD-No.\" as series_head\n / \"JCOMM Technical Report No.\" as series_head\n / \"GAW Report No.\" as series_head\n }\n doc_number = (1*digit) as doc_number\n s_code = \"S-\" (1*digit) as doc_number\n year_value = ((4digit) [slash (4digit)]) as edition_value\n dotted_value = (1*digit 1*(dot 1*digit)) as edition_value\n updated_tail = {\n \",\" space \"updated\" space \"in\" space ((4digit) as updated_in)\n }\n edition_year_human = {\n [\",\"] space year_value \" edition\"\n [updated_tail]\n }\n edition_year_compact = (colon \"ed\" year_value) as edition\n edition_status_human = {\n [\",\"] space (\"Provisional\" as edition_status) space year_value \" edition\"\n }\n edition_dotted_human = (space dotted_value) as edition\n edition_dotted_compact = (colon \"ed\" dotted_value) as edition\n volume_roman = {\n \"VIII\" / \"VII\" / \"VI\" / \"III\" / \"II\"\n / \"IX\" / \"IV\" / \"X\" / \"V\" / \"I\"\n }\n volume_value = ((volume_roman / upper) *(dot 1*digit)) as volume\n volume_face = { [\",\"] space \"Volume\" space volume_value }\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 series_head space doc_number\n [volume_face]\n [edition_year_human / edition_status_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 colon = \":\"\n dot = \".\"\n slash = \"/\"\n space = \" \"\n\n bindings identifier {\n series_head -> series_head (string)\n doc_number -> doc_number (string)\n edition_value -> edition_value (string)\n volume -> volume (string)\n edition_status -> edition_status (string)\n updated_in -> updated_in (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 # the widened publication faces\n accept \"WMO-No. 306\"\n accept \"WMO-No. 8, Volume I\"\n accept \"WMO-No. 8, Volume V\"\n accept \"WMO-No. 306, Volume I.1\"\n accept \"WMO-No. 9, Volume D\"\n accept \"WMO-No. 306, Volume I.1, 2020 edition\"\n accept \"WMO-No. 8, 2021/2018 edition\"\n accept \"WMO-No. 1364, 2023 edition, updated in 2025\"\n accept \"WMO-No. 8, Provisional 2026 edition\"\n # the new series heads (the prefix law: every head names its publisher)\n accept \"WMO/TD-No. 196\"\n accept \"JCOMM Technical Report No. 14\"\n accept \"GAW Report No. 312\"\n reject \"nonsense\"\n reject \"WMO-No. edition\"\n reject \"S-411 1234\"\n # the prefix law rejects: a series head that names no publisher (the\n # bare TD-No. spellings), a misattributed publisher (no IMO TD series\n # exists — the wild string is an OCR misread), and the third-party\n # GAW citation form\n reject \"TD-No. 1265\"\n reject \"TD No. 196\"\n reject \"IMO/TD-No. 259\"\n reject \"WMO/GAW Report No. 285\"\n # the spaced cover variant of the TD head (\"WMO/TD - No. 1469\",\n # GAW-183 cover): deliberately outside the grammar — only the glued\n # library-serial head \"WMO/TD-No.\" is defined\n reject \"WMO/TD - No. 1469\"\n example \"WMO-No. 1364\" { series_head: \"WMO-No.\", doc_number: \"1364\" }\n example \"WMO-No. 1364, 2025 edition\" {\n series_head: \"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 series_head: \"WMO-No.\",\n doc_number: \"1364\",\n edition_value: \"2025\",\n }\n example \"WMO-No. 306, Volume I.1\" {\n series_head: \"WMO-No.\",\n doc_number: \"306\",\n volume: \"I.1\",\n }\n example \"WMO-No. 306, Volume I.1, 2020 edition\" {\n series_head: \"WMO-No.\",\n doc_number: \"306\",\n volume: \"I.1\",\n edition_value: \"2020\",\n }\n example \"WMO-No. 8, 2021/2018 edition\" {\n series_head: \"WMO-No.\",\n doc_number: \"8\",\n edition_value: \"2021/2018\",\n }\n example \"WMO-No. 1364, 2023 edition, updated in 2025\" {\n series_head: \"WMO-No.\",\n doc_number: \"1364\",\n edition_value: \"2023\",\n updated_in: \"2025\",\n }\n example \"WMO-No. 8, Provisional 2026 edition\" {\n series_head: \"WMO-No.\",\n doc_number: \"8\",\n edition_status: \"Provisional\",\n edition_value: \"2026\",\n }\n example \"WMO/TD-No. 196\" { series_head: \"WMO/TD-No.\", doc_number: \"196\" }\n example \"JCOMM Technical Report No. 14\" {\n series_head: \"JCOMM Technical Report No.\",\n doc_number: \"14\",\n }\n example \"GAW Report No. 312\" {\n series_head: \"GAW Report No.\",\n doc_number: \"312\",\n }\n }\n}\n","source_hash":"19e2416ed1c54b42eda1377b7624c1fe76f7d3093665060dec831c591b04c10d","unicode_tables":"onigmo (Ruby 3.4.8)","compiler_version":"1.5.1.0","edition":2,"semantics_hash":"sha256:797692d6e72bb5823c9c17c5de2d76b2082df2b241726cc82d73e5442df28972","checksum":"sha256:f45e21fd4eb6b2bed6d5752c1f1e1ebc5036e67d58d7f8fcf1b6b2171a266fef","validated":{"lint_errors":0,"lint_warnings":18,"tests_total":43,"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
+ }
@@ -26,10 +26,32 @@ key and sends `ANSI/<co-publisher> …` to that co-publisher's flavor
26
26
  adopts it. To rebake: `jq -j .source data/parg/ansi.json > ansi.parg`, edit,
27
27
  `parsanol _1.5.1.0_ parg compile ansi.parg -o data/parg/ansi.json`,
28
28
  `parsanol _1.5.1.0_ parg test data/parg/ansi.json`.
29
- - **Not supported yet: the dash after the acronym** — `ANSI/ISA-5.1-2009`,
30
- `ANSI/ANS-8.1-2014`, `ANSI/ISA-61511-1-2018`, `ANSI/TIA-568.2-D`. They need a
31
- `-` separator after the co-publisher (an equality-ignored spelling flag), a
32
- second dash group for part + year, and letter revisions for TIA.
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).
33
55
  - **Routing umbrella.** With the open list, ANSI parses `ANSI/AMCA 210-16`
34
56
  exactly while AMCA normalizes it (`ANSI/AMCA Standard 210-16`), so plain
35
57
  routing would have handed it to ANSI. `Pubid::Ansi.routing_umbrella?` is
@@ -19,13 +19,28 @@ module Pubid
19
19
  private
20
20
 
21
21
  def read_dash_year(identifier)
22
- return if identifier.date || !DASH_YEAR.match?(identifier.part.to_s)
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)
23
26
 
24
27
  identifier.date = Components::Date.new(year: identifier.part)
25
28
  identifier.date_separator = "-"
26
29
  identifier.part = nil
27
30
  end
28
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
+
29
44
  def default_identifier_class
30
45
  Identifiers::Standard
31
46
  end
@@ -45,14 +60,9 @@ module Pubid
45
60
  end
46
61
  end
47
62
  when :number_with_part
48
- original_value = value.to_s
49
- main_and_parts = original_value.split("-")
50
- main_number = main_and_parts[0]
51
- part_number = main_and_parts[1]
52
- {
53
- number: main_number,
54
- part: part_number,
55
- }.compact
63
+ split_number_with_part(value.to_s)
64
+ when :number_separator, :revision
65
+ value.to_s
56
66
  when :date
57
67
  Components::Date.new(year: value.to_s)
58
68
  when :languages