pubid 2.0.46 → 2.0.47
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 +4 -4
- data/conformance/pending.yaml +173 -0
- data/data/parg/ansi.json +1 -1
- data/lib/pubid/ansi/CLAUDE.md +59 -0
- data/lib/pubid/ansi/builder.rb +14 -0
- data/lib/pubid/ansi/identifier.rb +16 -0
- data/lib/pubid/ansi/identifiers/american_national_standard.rb +2 -1
- data/lib/pubid/ansi/pubid_urn_schema.rb +4 -3
- data/lib/pubid/ansi/renderer.rb +9 -1
- data/lib/pubid/ansi.rb +8 -2
- data/lib/pubid/prefixes_support.rb +11 -0
- data/lib/pubid/version.rb +1 -1
- data/lib/pubid.rb +18 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 38deff0638245cbb818efee3e1c84d2609c2345f723481911b97f41f38ff75b7
|
|
4
|
+
data.tar.gz: '00387514abeb057d531de9ca92e0bfa33f56ea012178ece3681292dc50d7eeec'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: af5fa6dbdde25dc2e8a4abcccaa6f55cb6c0385c63847b3feb0b6abc294c9a1a2db3c02f10685e7253f3c0b2877458e9fba9af2dd7508684ab40655e649f3357
|
|
7
|
+
data.tar.gz: c62f2206a43eb445f543e4528695a27fdd2639362eff38576691ff94698ac66064288f324aa110ae9d14fff22151c16afe5515ed46a7e69bd5a7a29af7815667
|
data/conformance/pending.yaml
CHANGED
|
@@ -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":
|
|
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"}
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
- **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.
|
|
33
|
+
- **Routing umbrella.** With the open list, ANSI parses `ANSI/AMCA 210-16`
|
|
34
|
+
exactly while AMCA normalizes it (`ANSI/AMCA Standard 210-16`), so plain
|
|
35
|
+
routing would have handed it to ANSI. `Pubid::Ansi.routing_umbrella?` is
|
|
36
|
+
true: `Pubid.parse` tries ANSI last among the prefix owners and returns an
|
|
37
|
+
earlier owner's parse. **The short-cut fires only when ANSI is a prefix
|
|
38
|
+
owner of the string.** A first version fired in the exhaustive pass too,
|
|
39
|
+
where ANSI is 4th in registry order, and it moved 24 unrelated routes
|
|
40
|
+
(`EP 207` went from GB to BSI `BS 207`); `spec/pubid/ansi/
|
|
41
|
+
year_and_copublishers_spec.rb` pins two of them. Measured over every
|
|
42
|
+
ansi/amca/ashrae/ieee fixture id and over a 8,428-id sample of every
|
|
43
|
+
flavor's pass fixtures: no route moved except new parses and
|
|
44
|
+
`ANSI/ASHRAE 90.1-2019`, which went to IEEE before (a non-owner's exact
|
|
45
|
+
parse) and now goes to ASHRAE (rendered `ASHRAE Standard 90.1-2019`).
|
|
46
|
+
`Pubid::Ansi.parse` itself still reads it as ANSI with co-publisher ASHRAE.
|
|
47
|
+
- **Type keys are unique**: `AmericanNationalStandard` (never built by the
|
|
48
|
+
builder) has key `:american_national_standard`; `Standard` keeps `:ans`.
|
|
49
|
+
|
|
50
|
+
**What moved** (replay of all 11,656 ansi/ieee/amca/ashrae fixture ids against
|
|
51
|
+
`main`): `to_s` byte-identical for every id that parsed before. `to_hash` and
|
|
52
|
+
the pubid URN moved for 174 earlier ANSI ids and 33 IEEE adoptions that nest an ANSI
|
|
53
|
+
id (`IEEE 167-1966 (ANSI C16.37-1971)`): `part` became `year` +
|
|
54
|
+
`date_separator`. `to_urn` moved for the same 174 ANSI ids (`urn:ansi:802.3:-2012` →
|
|
55
|
+
`urn:ansi:802.3:2012`, which `UrnParser` now reads back). An old hash still
|
|
56
|
+
deserializes, but it does not `==` a fresh parse, so the relaton-data-ieee rows
|
|
57
|
+
that nest an ANSI id need a re-crawl. The 170 moved `tests/ansi/` cases are in
|
|
58
|
+
`conformance/pending.yaml` until the pubid-testsuite round (hand-off
|
|
59
|
+
`pubid__pubid-testsuite__ansi-year-and-corpus`).
|
data/lib/pubid/ansi/builder.rb
CHANGED
|
@@ -7,11 +7,25 @@ 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
|
+
return if identifier.date || !DASH_YEAR.match?(identifier.part.to_s)
|
|
23
|
+
|
|
24
|
+
identifier.date = Components::Date.new(year: identifier.part)
|
|
25
|
+
identifier.date_separator = "-"
|
|
26
|
+
identifier.part = nil
|
|
27
|
+
end
|
|
28
|
+
|
|
15
29
|
def default_identifier_class
|
|
16
30
|
Identifiers::Standard
|
|
17
31
|
end
|
|
@@ -13,6 +13,12 @@ module Pubid
|
|
|
13
13
|
attribute :part, :string
|
|
14
14
|
attribute :subpart, :string
|
|
15
15
|
|
|
16
|
+
# How the input joined the year to the number: "-" for the
|
|
17
|
+
# "ANSI X9.62-2005" spelling, nil for the colon of "ANSI/ISO 9899:1990".
|
|
18
|
+
# Spelling only, so `==`, `hash` and `===` skip it (relaton#45).
|
|
19
|
+
attribute :date_separator, :string
|
|
20
|
+
equality_ignored :date_separator
|
|
21
|
+
|
|
16
22
|
def self.parse(string)
|
|
17
23
|
unless string.is_a?(String)
|
|
18
24
|
raise Pubid::Errors::InvalidInputError,
|
|
@@ -28,6 +34,16 @@ module Pubid
|
|
|
28
34
|
parsed = Pubid::Parg::Model.bound(:ansi, string)
|
|
29
35
|
Pubid::Ansi::Builder.new.build(parsed)
|
|
30
36
|
end
|
|
37
|
+
|
|
38
|
+
# The separator belongs to the year: drop it with the year, so a
|
|
39
|
+
# year-less copy carries no orphan spelling flag in its hash.
|
|
40
|
+
def exclude(*args)
|
|
41
|
+
result = super
|
|
42
|
+
if args.include?(:year) || args.include?(:date)
|
|
43
|
+
result.date_separator = nil
|
|
44
|
+
end
|
|
45
|
+
result
|
|
46
|
+
end
|
|
31
47
|
end
|
|
32
48
|
end
|
|
33
49
|
end
|
|
@@ -4,7 +4,8 @@ module Pubid
|
|
|
4
4
|
# American National Standard identifier
|
|
5
5
|
class AmericanNationalStandard < SingleIdentifier
|
|
6
6
|
def self.type
|
|
7
|
-
{ key: :
|
|
7
|
+
{ key: :american_national_standard,
|
|
8
|
+
web: :american_national_standard,
|
|
8
9
|
title: "American National Standard", short: "ANS" }
|
|
9
10
|
end
|
|
10
11
|
end
|
|
@@ -5,11 +5,11 @@ module Pubid
|
|
|
5
5
|
# The pubid-scheme URN of ANSI (issue #656; docs/URN-SCHEMES.adoc).
|
|
6
6
|
#
|
|
7
7
|
# ANSI 802.3-2012
|
|
8
|
-
# urn:pubid:ansi:std:802.3:pub-ANSI:
|
|
8
|
+
# urn:pubid:ansi:std:802.3:pub-ANSI:year-2012:f:0.datesep--
|
|
9
9
|
#
|
|
10
10
|
# Landed with the IEEE wave, which nests ANSI ids ("IEEE Std 144-1971
|
|
11
|
-
# (ANSI C37.24-1971)").
|
|
12
|
-
#
|
|
11
|
+
# (ANSI C37.24-1971)"). The trailing "-2012" is the year (relaton#45);
|
|
12
|
+
# its dash is the spelling facet +datesep+.
|
|
13
13
|
#
|
|
14
14
|
# A component attribute maps through its identifying field only
|
|
15
15
|
# (+type.abbr+, +stage.abbr+, +edition.number+ …). The registry fields of
|
|
@@ -35,6 +35,7 @@ module Pubid
|
|
|
35
35
|
|
|
36
36
|
facet "languages.*.original_code", "langsrc"
|
|
37
37
|
facet "edition.original_text", "edsrc"
|
|
38
|
+
facet "date_separator", "datesep"
|
|
38
39
|
|
|
39
40
|
type "pubid:ansi:standard", "std"
|
|
40
41
|
type "pubid:ansi:american-national-standard", "ans"
|
data/lib/pubid/ansi/renderer.rb
CHANGED
|
@@ -8,6 +8,7 @@ module Pubid
|
|
|
8
8
|
# "ANSI X3.4"
|
|
9
9
|
# "ANSI/ISO 9899"
|
|
10
10
|
# "ANSI X9.8-1:2007"
|
|
11
|
+
# "ANSI X9.62-2005" (date_separator "-")
|
|
11
12
|
#
|
|
12
13
|
# The renderer is registered as the `:human` format in the ANSI format
|
|
13
14
|
# registry and invoked via `render(format: :human)`.
|
|
@@ -39,10 +40,17 @@ module Pubid
|
|
|
39
40
|
[
|
|
40
41
|
id.number,
|
|
41
42
|
(id.part ? "-#{id.part}" : ""),
|
|
42
|
-
(id
|
|
43
|
+
date_portion(id, context),
|
|
43
44
|
].join
|
|
44
45
|
end
|
|
45
46
|
|
|
47
|
+
# "ANSI X9.62-2005" keeps its dash; the colon is the default.
|
|
48
|
+
def date_portion(id, context)
|
|
49
|
+
return "" unless id.date
|
|
50
|
+
|
|
51
|
+
"#{id.date_separator || ':'}#{id.date.render(context:)}"
|
|
52
|
+
end
|
|
53
|
+
|
|
46
54
|
def language_portion(id)
|
|
47
55
|
return "" unless id.languages&.any?
|
|
48
56
|
|
data/lib/pubid/ansi.rb
CHANGED
|
@@ -6,10 +6,16 @@ module Pubid
|
|
|
6
6
|
extend Pubid::PrefixesSupport
|
|
7
7
|
|
|
8
8
|
# ANSI publisher token; ANSI/ASHRAE and ANSI/AMCA joint forms come from
|
|
9
|
-
# Pubid::JOINT_PREFIXES.
|
|
10
|
-
#
|
|
9
|
+
# Pubid::JOINT_PREFIXES. Co-publisher acronyms are not leading ANSI
|
|
10
|
+
# tokens, so they are excluded.
|
|
11
11
|
PREFIXES = ["ANSI"].freeze
|
|
12
12
|
|
|
13
|
+
# ANSI parses any "ANSI/<ACRONYM> ..." (relaton#45), so a co-publisher
|
|
14
|
+
# with a flavor of its own (AMCA, ASHRAE) keeps the route.
|
|
15
|
+
def self.routing_umbrella?
|
|
16
|
+
true
|
|
17
|
+
end
|
|
18
|
+
|
|
13
19
|
autoload :Builder, "#{__dir__}/ansi/builder"
|
|
14
20
|
autoload :Identifier, "#{__dir__}/ansi/identifier"
|
|
15
21
|
autoload :Identifiers, "#{__dir__}/ansi/identifiers"
|
|
@@ -48,5 +48,16 @@ module Pubid
|
|
|
48
48
|
name.split("::").last
|
|
49
49
|
.gsub(/([a-z\d])([A-Z])/, '\1_\2').downcase.to_sym
|
|
50
50
|
end
|
|
51
|
+
|
|
52
|
+
# True for a flavor that accredits other publishers' documents and so
|
|
53
|
+
# parses their joint prefix too (ANSI reads +ANSI/AMCA 210-16+). When
|
|
54
|
+
# it shares a prefix with a co-publisher's own flavor, {Pubid.parse}
|
|
55
|
+
# tries it last and prefers the co-publisher's parse, even a
|
|
56
|
+
# normalizing one. Default false.
|
|
57
|
+
#
|
|
58
|
+
# @return [Boolean]
|
|
59
|
+
def routing_umbrella?
|
|
60
|
+
false
|
|
61
|
+
end
|
|
51
62
|
end
|
|
52
63
|
end
|
data/lib/pubid/version.rb
CHANGED
data/lib/pubid.rb
CHANGED
|
@@ -502,6 +502,14 @@ module Pubid
|
|
|
502
502
|
|
|
503
503
|
prefix_owners = candidates_by_prefix(string)
|
|
504
504
|
(prefix_owners + other_candidates(prefix_owners)).each do |mod|
|
|
505
|
+
# An umbrella flavor (ANSI) also parses the joint prefix of a
|
|
506
|
+
# co-publisher that has its own flavor; that flavor's parse wins.
|
|
507
|
+
# Only as a prefix owner: in the exhaustive pass the umbrella is one
|
|
508
|
+
# flavor among the others, and stopping there would skip the rest.
|
|
509
|
+
if fallback && routing_umbrella?(mod) && prefix_owners.include?(mod)
|
|
510
|
+
return fallback
|
|
511
|
+
end
|
|
512
|
+
|
|
505
513
|
begin
|
|
506
514
|
parsed = mod.parse(string)
|
|
507
515
|
rescue Pubid::Errors::ParseError => e
|
|
@@ -565,10 +573,19 @@ module Pubid
|
|
|
565
573
|
routing_table.each do |prefix, modules|
|
|
566
574
|
ordered.concat(modules) if prefix_match?(string, prefix)
|
|
567
575
|
end
|
|
568
|
-
|
|
576
|
+
# An umbrella flavor goes after the other owners (stable partition).
|
|
577
|
+
ordered.compact.uniq.partition { |mod| !routing_umbrella?(mod) }.flatten
|
|
569
578
|
end
|
|
570
579
|
private_class_method :candidates_by_prefix
|
|
571
580
|
|
|
581
|
+
# @param mod [Module] a flavor module
|
|
582
|
+
# @return [Boolean] see {PrefixesSupport#routing_umbrella?}
|
|
583
|
+
# @api private
|
|
584
|
+
def self.routing_umbrella?(mod)
|
|
585
|
+
mod.respond_to?(:routing_umbrella?) && mod.routing_umbrella?
|
|
586
|
+
end
|
|
587
|
+
private_class_method :routing_umbrella?
|
|
588
|
+
|
|
572
589
|
# Every other registered flavor, for the exhaustive second pass.
|
|
573
590
|
#
|
|
574
591
|
# @param exclude [Array<Module>] modules already tried
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pubid
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.47
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
@@ -188,6 +188,7 @@ files:
|
|
|
188
188
|
- lib/pubid/amca/urn_generator.rb
|
|
189
189
|
- lib/pubid/amca/urn_parser.rb
|
|
190
190
|
- lib/pubid/ansi.rb
|
|
191
|
+
- lib/pubid/ansi/CLAUDE.md
|
|
191
192
|
- lib/pubid/ansi/builder.rb
|
|
192
193
|
- lib/pubid/ansi/identifier.rb
|
|
193
194
|
- lib/pubid/ansi/identifiers.rb
|