pubid 2.0.44 → 2.0.46

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: 6d99cf14909f9fd7fb38dbb49af29ba7af4cc8709185b37d7ce6d93d6c7d5489
4
- data.tar.gz: a07eb61ebe481ddabc1a757db4959f1e681c76ed8c58a41a2267f90b61cae11d
3
+ metadata.gz: c1923b6653772f65938f75205038aa3df3e1b4eb51222654f53f2799361d14b4
4
+ data.tar.gz: 53cc9a5459c690d57d920fec14e5ca7c6cc7e396e07ae0dd5261f1a7461ec7f3
5
5
  SHA512:
6
- metadata.gz: 47f10de035fea281a9afc3644bc4163ddc28bf7b1bf1a1b5aed2d46e97bc544ad2ab0a560d513609b5228376b684517692e74f8257b24b0e581d0a520b8ad74f
7
- data.tar.gz: 7615b627d44622f5e5bd247dac8fa7d46741ee537a7f5128c70bd4bbeb0bab7bf9a2954cb8abec971094e1386c1eb09f9fc768036676ed63c69a63d7b4be3b3d
6
+ metadata.gz: d6c9266103290134f70796057cd084467f64a83b570ef4eab00629cac69ceb9d21a67489032909224e542ceb048c83942c5cfb6e7e140b29d7fb5629906488a5
7
+ data.tar.gz: 342eba260901def2fe694b9405f36a92820c8f83e8ffbec9d26a5f904b40eb82b0c3e3ed188651c6e7b484b6e4b8086306d82c46701a1f1c5977073617471f0f
data/data/parg/itu.json CHANGED
@@ -1 +1 @@
1
- {"bindings":null,"version":"0.1.0","grammar":"PubidItu","shape":"parsanol-tree/v2","binding_version":1,"entries":{"identifier":{"root":"identifier","grammar":{"atoms":[{"Entity":{"atom":800}},{"Entity":{"atom":788}},{"Entity":{"atom":163}},{"Str":{"pattern":"Annex to"}},{"Entity":{"atom":5}},{"Str":{"pattern":" "}},{"Entity":{"atom":161}},{"Entity":{"atom":108}},{"Entity":{"atom":21}},{"Str":{"pattern":"Recommendation "}},{"Str":{"pattern":"ITU"}},{"Entity":{"atom":12}},{"Str":{"pattern":"-"}},{"Entity":{"atom":5}},{"Alternative":{"atoms":[11,13]}},{"Sequence":{"atoms":[9,10,14]}},{"Str":{"pattern":"ITU"}},{"Entity":{"atom":12}},{"Entity":{"atom":5}},{"Alternative":{"atoms":[17,18]}},{"Sequence":{"atoms":[16,19]}},{"Alternative":{"atoms":[15,20]}},{"Entity":{"atom":27}},{"Str":{"pattern":"R"}},{"Str":{"pattern":"T"}},{"Str":{"pattern":"D"}},{"Alternative":{"atoms":[23,24,25]}},{"Named":{"name":"sector","atom":26}},{"Entity":{"atom":5}},{"Sequence":{"atoms":[22,28]}},{"Repetition":{"atom":29,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":33}},{"Str":{"pattern":"OB"}},{"Named":{"name":"series","atom":32}},{"Entity":{"atom":42}},{"Entity":{"atom":36}},{"Str":{"pattern":"."}},{"Entity":{"atom":41}},{"Entity":{"atom":39}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":38,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":40}},{"Sequence":{"atoms":[35,37]}},{"Entity":{"atom":48}},{"Entity":{"atom":5}},{"Str":{"pattern":"No."}},{"Entity":{"atom":5}},{"Entity":{"atom":41}},{"Sequence":{"atoms":[44,45,46,47]}},{"Entity":{"atom":52}},{"Entity":{"atom":5}},{"Entity":{"atom":41}},{"Sequence":{"atoms":[50,51]}},{"Alternative":{"atoms":[34,43,49]}},{"Entity":{"atom":94}},{"Entity":{"atom":68}},{"Entity":{"atom":5}},{"Str":{"pattern":"("}},{"Entity":{"atom":39}},{"Repetition":{"atom":58,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"month","atom":59}},{"Str":{"pattern":"/"}},{"Sequence":{"atoms":[60,61]}},{"Repetition":{"atom":62,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":39}},{"Repetition":{"atom":64,"min":4,"max":4,"tag":"Repetition"}},{"Named":{"name":"year","atom":65}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[56,57,63,66,67]}},{"Entity":{"atom":93}},{"Str":{"pattern":" - "}},{"Entity":{"atom":39}},{"Repetition":{"atom":71,"min":2,"max":2,"tag":"Repetition"}},{"Named":{"name":"day","atom":72}},{"Entity":{"atom":36}},{"Entity":{"atom":87}},{"Str":{"pattern":"XII"}},{"Str":{"pattern":"XI"}},{"Str":{"pattern":"IX"}},{"Str":{"pattern":"VIII"}},{"Str":{"pattern":"VII"}},{"Str":{"pattern":"VI"}},{"Str":{"pattern":"V"}},{"Str":{"pattern":"IV"}},{"Str":{"pattern":"III"}},{"Str":{"pattern":"II"}},{"Str":{"pattern":"I"}},{"Alternative":{"atoms":[76,77,78,79,80,81,82,83,84,85,86]}},{"Named":{"name":"roman_month","atom":75}},{"Entity":{"atom":36}},{"Entity":{"atom":39}},{"Repetition":{"atom":90,"min":4,"max":4,"tag":"Repetition"}},{"Named":{"name":"year","atom":91}},{"Sequence":{"atoms":[70,73,74,88,89,92]}},{"Alternative":{"atoms":[55,69]}},{"Repetition":{"atom":54,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Entity":{"atom":12}},{"Str":{"pattern":"E"}},{"Str":{"pattern":"F"}},{"Str":{"pattern":"A"}},{"Str":{"pattern":"S"}},{"Str":{"pattern":"C"}},{"Str":{"pattern":"R"}},{"Alternative":{"atoms":[98,99,100,101,102,103]}},{"Named":{"name":"language","atom":104}},{"Sequence":{"atoms":[97,105]}},{"Repetition":{"atom":96,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[8,30,31,53,95,107]}},{"Entity":{"atom":160}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Sequence":{"atoms":[111,112]}},{"Repetition":{"atom":113,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"Operational Bulletin"}},{"Named":{"name":"_op_bull","atom":115}},{"Entity":{"atom":5}},{"Str":{"pattern":"No."}},{"Entity":{"atom":5}},{"Entity":{"atom":41}},{"Entity":{"atom":156}},{"Entity":{"atom":68}},{"Entity":{"atom":155}},{"Entity":{"atom":143}},{"Entity":{"atom":12}},{"Str":{"pattern":"19"}},{"Str":{"pattern":"20"}},{"Alternative":{"atoms":[126,127]}},{"Entity":{"atom":39}},{"Entity":{"atom":39}},{"Sequence":{"atoms":[128,129,130]}},{"Named":{"name":"year","atom":131}},{"Str":{"pattern":"0"}},{"Re":{"pattern":"[\\x31-\\x39]"}},{"Sequence":{"atoms":[133,134]}},{"Str":{"pattern":"1"}},{"Re":{"pattern":"[\\x30-\\x32]"}},{"Sequence":{"atoms":[136,137]}},{"Alternative":{"atoms":[135,138]}},{"Named":{"name":"month","atom":139}},{"Entity":{"atom":39}},{"Lookahead":{"atom":141,"positive":false}},{"Sequence":{"atoms":[125,132,140,142]}},{"Entity":{"atom":153}},{"Entity":{"atom":12}},{"Str":{"pattern":"I"}},{"Entity":{"atom":39}},{"Entity":{"atom":149}},{"Entity":{"atom":150}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Alternative":{"atoms":[147,148]}},{"Lookahead":{"atom":151,"positive":false}},{"Sequence":{"atoms":[145,146,152]}},{"Repetition":{"atom":144,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[124,154]}},{"Alternative":{"atoms":[122,123]}},{"Repetition":{"atom":121,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":158,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[110,114,116,117,118,119,120,157,159]}},{"Alternative":{"atoms":[7,109]}},{"Named":{"name":"annex_to","atom":6}},{"Sequence":{"atoms":[3,4,162]}},{"Entity":{"atom":161}},{"Entity":{"atom":618}},{"Entity":{"atom":603}},{"Entity":{"atom":567}},{"Entity":{"atom":482}},{"Entity":{"atom":467}},{"Entity":{"atom":341}},{"Entity":{"atom":173}},{"Str":{"pattern":"Report"}},{"Named":{"name":"report_marker","atom":172}},{"Entity":{"atom":5}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":332}},{"Str":{"pattern":"OB"}},{"Entity":{"atom":36}},{"Sequence":{"atoms":[179,180]}},{"Lookahead":{"atom":181,"positive":false}},{"Entity":{"atom":191}},{"Str":{"pattern":"SG"}},{"Entity":{"atom":39}},{"Repetition":{"atom":185,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[184,186]}},{"Entity":{"atom":150}},{"Repetition":{"atom":188,"min":1,"max":3,"tag":"Repetition"}},{"Alternative":{"atoms":[187,189]}},{"Named":{"name":"series","atom":190}},{"Entity":{"atom":36}},{"Sequence":{"atoms":[183,192]}},{"Repetition":{"atom":193,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":271}},{"Entity":{"atom":241}},{"Str":{"pattern":"Imp"}},{"Named":{"name":"imp_marker","atom":197}},{"Entity":{"atom":39}},{"Repetition":{"atom":199,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":150}},{"Repetition":{"atom":201,"min":1,"max":3,"tag":"Repetition"}},{"Alternative":{"atoms":[200,202]}},{"Named":{"name":"number","atom":203}},{"Entity":{"atom":210}},{"Entity":{"atom":36}},{"Entity":{"atom":39}},{"Repetition":{"atom":207,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"subseries","atom":208}},{"Sequence":{"atoms":[206,209]}},{"Repetition":{"atom":205,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":240}},{"Entity":{"atom":238}},{"Entity":{"atom":12}},{"Entity":{"atom":233}},{"Entity":{"atom":222}},{"Str":{"pattern":"19"}},{"Str":{"pattern":"20"}},{"Alternative":{"atoms":[217,218]}},{"Entity":{"atom":39}},{"Entity":{"atom":39}},{"Sequence":{"atoms":[219,220,221]}},{"Entity":{"atom":230}},{"Str":{"pattern":"0"}},{"Re":{"pattern":"[\\x31-\\x39]"}},{"Sequence":{"atoms":[224,225]}},{"Str":{"pattern":"1"}},{"Re":{"pattern":"[\\x30-\\x32]"}},{"Sequence":{"atoms":[227,228]}},{"Alternative":{"atoms":[226,229]}},{"Entity":{"atom":39}},{"Lookahead":{"atom":231,"positive":false}},{"Sequence":{"atoms":[216,223,232]}},{"Lookahead":{"atom":215,"positive":false}},{"Entity":{"atom":39}},{"Repetition":{"atom":235,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"part","atom":236}},{"Sequence":{"atoms":[214,234,237]}},{"Repetition":{"atom":213,"min":0,"max":null,"tag":"Repetition"}},{"Named":{"name":"parts","atom":239}},{"Sequence":{"atoms":[198,204,211,212]}},{"Entity":{"atom":270}},{"Entity":{"atom":41}},{"Entity":{"atom":251}},{"Entity":{"atom":250}},{"Str":{"pattern":"bis"}},{"Str":{"pattern":"ter"}},{"Str":{"pattern":"quater"}},{"Str":{"pattern":"quarter"}},{"Alternative":{"atoms":[246,247,248,249]}},{"Named":{"name":"series_suffix","atom":245}},{"Repetition":{"atom":244,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":210}},{"Repetition":{"atom":253,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":240}},{"Entity":{"atom":257}},{"Entity":{"atom":268}},{"Re":{"pattern":"[\\x41-\\x52]"}},{"Re":{"pattern":"[\\x61-\\x72]"}},{"Alternative":{"atoms":[258,259]}},{"Named":{"name":"qualifier","atom":260}},{"Entity":{"atom":150}},{"Entity":{"atom":264}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Entity":{"atom":39}},{"Alternative":{"atoms":[262,263,265]}},{"Lookahead":{"atom":266,"positive":false}},{"Sequence":{"atoms":[261,267]}},{"Repetition":{"atom":256,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[243,252,254,255,269]}},{"Alternative":{"atoms":[196,242]}},{"Entity":{"atom":281}},{"Entity":{"atom":12}},{"Entity":{"atom":150}},{"Repetition":{"atom":274,"min":1,"max":3,"tag":"Repetition"}},{"Entity":{"atom":36}},{"Entity":{"atom":39}},{"Repetition":{"atom":277,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[275,276,278]}},{"Named":{"name":"range_end","atom":279}},{"Sequence":{"atoms":[273,280]}},{"Repetition":{"atom":272,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":297}},{"Entity":{"atom":289}},{"Entity":{"atom":5}},{"Named":{"name":"series_suffix_spaced","atom":285}},{"Entity":{"atom":250}},{"Named":{"name":"series_suffix","atom":287}},{"Sequence":{"atoms":[286,288]}},{"Repetition":{"atom":284,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":295}},{"Entity":{"atom":5}},{"Named":{"name":"qualifier_spaced","atom":292}},{"Entity":{"atom":268}},{"Sequence":{"atoms":[293,294]}},{"Repetition":{"atom":291,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[290,296]}},{"Entity":{"atom":302}},{"Entity":{"atom":5}},{"Str":{"pattern":"series"}},{"Named":{"name":"series_word","atom":300}},{"Sequence":{"atoms":[299,301]}},{"Repetition":{"atom":298,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":308}},{"Entity":{"atom":5}},{"Str":{"pattern":"attachment"}},{"Named":{"name":"attachment","atom":306}},{"Sequence":{"atoms":[305,307]}},{"Repetition":{"atom":304,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":328}},{"Entity":{"atom":5}},{"Str":{"pattern":"(V"}},{"Entity":{"atom":39}},{"Repetition":{"atom":313,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"version","atom":314}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[312,315,316]}},{"Str":{"pattern":"V"}},{"Str":{"pattern":"v"}},{"Alternative":{"atoms":[318,319]}},{"Entity":{"atom":36}},{"Repetition":{"atom":321,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":39}},{"Repetition":{"atom":323,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"version","atom":324}},{"Sequence":{"atoms":[320,322,325]}},{"Alternative":{"atoms":[317,326]}},{"Sequence":{"atoms":[311,327]}},{"Repetition":{"atom":310,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":156}},{"Repetition":{"atom":330,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[182,194,195,282,283,303,309,329,331]}},{"Sequence":{"atoms":[171,174,175,176,177,178]}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":173}},{"Entity":{"atom":5}},{"Entity":{"atom":332}},{"Sequence":{"atoms":[334,335,336,337,338,339]}},{"Alternative":{"atoms":[333,340]}},{"Entity":{"atom":426}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":351}},{"Str":{"pattern":"REC"}},{"Entity":{"atom":5}},{"Entity":{"atom":12}},{"Alternative":{"atoms":[348,349]}},{"Sequence":{"atoms":[347,350]}},{"Repetition":{"atom":346,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":191}},{"Entity":{"atom":36}},{"Entity":{"atom":271}},{"Entity":{"atom":281}},{"Repetition":{"atom":356,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":297}},{"Entity":{"atom":416}},{"Entity":{"atom":414}},{"Str":{"pattern":"/"}},{"Entity":{"atom":191}},{"Entity":{"atom":36}},{"Entity":{"atom":367}},{"Entity":{"atom":39}},{"Repetition":{"atom":365,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"d_number","atom":366}},{"Entity":{"atom":373}},{"Entity":{"atom":36}},{"Entity":{"atom":39}},{"Repetition":{"atom":370,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"d_subseries","atom":371}},{"Sequence":{"atoms":[369,372]}},{"Repetition":{"atom":368,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":385}},{"Entity":{"atom":383}},{"Entity":{"atom":12}},{"Entity":{"atom":233}},{"Lookahead":{"atom":378,"positive":false}},{"Entity":{"atom":39}},{"Repetition":{"atom":380,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"d_part","atom":381}},{"Sequence":{"atoms":[377,379,382]}},{"Repetition":{"atom":376,"min":0,"max":null,"tag":"Repetition"}},{"Named":{"name":"d_parts","atom":384}},{"Entity":{"atom":387}},{"Entity":{"atom":397}},{"Re":{"pattern":"[\\x41-\\x52]"}},{"Re":{"pattern":"[\\x61-\\x72]"}},{"Alternative":{"atoms":[388,389]}},{"Named":{"name":"d_qualifier","atom":390}},{"Entity":{"atom":150}},{"Entity":{"atom":264}},{"Entity":{"atom":39}},{"Alternative":{"atoms":[392,393,394]}},{"Lookahead":{"atom":395,"positive":false}},{"Sequence":{"atoms":[391,396]}},{"Repetition":{"atom":386,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":404}},{"Entity":{"atom":5}},{"Named":{"name":"d_series_suffix_spaced","atom":400}},{"Entity":{"atom":250}},{"Named":{"name":"d_series_suffix","atom":402}},{"Sequence":{"atoms":[401,403]}},{"Repetition":{"atom":399,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":410}},{"Entity":{"atom":5}},{"Named":{"name":"d_qualifier_spaced","atom":407}},{"Entity":{"atom":397}},{"Sequence":{"atoms":[408,409]}},{"Repetition":{"atom":406,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[362,363,364,374,375,398,405,411]}},{"Named":{"name":"designation","atom":412}},{"Sequence":{"atoms":[361,413]}},{"Repetition":{"atom":360,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"combined","atom":415}},{"Repetition":{"atom":359,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":302}},{"Repetition":{"atom":418,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":308}},{"Repetition":{"atom":420,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":328}},{"Repetition":{"atom":422,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":156}},{"Repetition":{"atom":424,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[343,344,345,352,353,354,355,357,358,417,419,421,423,425]}},{"Entity":{"atom":439}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":271}},{"Entity":{"atom":297}},{"Entity":{"atom":308}},{"Repetition":{"atom":433,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":328}},{"Repetition":{"atom":435,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":156}},{"Repetition":{"atom":437,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[428,429,430,431,432,434,436,438]}},{"Entity":{"atom":466}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":461}},{"Str":{"pattern":"OB"}},{"Entity":{"atom":12}},{"Sequence":{"atoms":[445,446]}},{"Lookahead":{"atom":447,"positive":false}},{"Entity":{"atom":150}},{"Repetition":{"atom":449,"min":2,"max":null,"tag":"Repetition"}},{"Named":{"name":"series","atom":450}},{"Entity":{"atom":12}},{"Named":{"name":"series_dash","atom":452}},{"Entity":{"atom":39}},{"Repetition":{"atom":454,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":150}},{"Repetition":{"atom":456,"min":1,"max":null,"tag":"Repetition"}},{"Alternative":{"atoms":[455,457]}},{"Named":{"name":"number","atom":458}},{"Entity":{"atom":240}},{"Sequence":{"atoms":[448,451,453,459,460]}},{"Entity":{"atom":328}},{"Repetition":{"atom":462,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":156}},{"Repetition":{"atom":464,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[441,442,443,444,463,465]}},{"Alternative":{"atoms":[170,342,427,440]}},{"Named":{"name":"base","atom":169}},{"Entity":{"atom":5}},{"Str":{"pattern":"Annex"}},{"Entity":{"atom":5}},{"Entity":{"atom":150}},{"Entity":{"atom":39}},{"Repetition":{"atom":473,"min":1,"max":null,"tag":"Repetition"}},{"Repetition":{"atom":474,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"+"}},{"Repetition":{"atom":476,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[472,475,477]}},{"Named":{"name":"annex_number","atom":478}},{"Entity":{"atom":156}},{"Repetition":{"atom":480,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[468,469,470,471,479,481]}},{"Named":{"name":"base","atom":168}},{"Entity":{"atom":507}},{"Entity":{"atom":467}},{"Named":{"name":"base","atom":485}},{"Entity":{"atom":5}},{"Str":{"pattern":"App."}},{"Entity":{"atom":5}},{"Repetition":{"atom":489,"min":0,"max":1,"tag":"Maybe"}},{"Re":{"pattern":"[I]"}},{"Re":{"pattern":"[V]"}},{"Re":{"pattern":"[X]"}},{"Alternative":{"atoms":[491,492,493]}},{"Repetition":{"atom":494,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"appendix_number","atom":495}},{"Entity":{"atom":503}},{"Entity":{"atom":5}},{"Str":{"pattern":"test vectors"}},{"Str":{"pattern":"Software"}},{"Alternative":{"atoms":[499,500]}},{"Named":{"name":"appendix_material","atom":501}},{"Sequence":{"atoms":[498,502]}},{"Repetition":{"atom":497,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":156}},{"Repetition":{"atom":505,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[486,487,488,490,496,504,506]}},{"Named":{"name":"base","atom":484}},{"Entity":{"atom":467}},{"Named":{"name":"base","atom":509}},{"Alternative":{"atoms":[483,508,510]}},{"Entity":{"atom":5}},{"Entity":{"atom":535}},{"Str":{"pattern":"Suppl."}},{"Str":{"pattern":"Suppl"}},{"Str":{"pattern":"Amd."}},{"Str":{"pattern":"Amd"}},{"Str":{"pattern":"Add."}},{"Str":{"pattern":"Add"}},{"Str":{"pattern":"Err."}},{"Str":{"pattern":"Err"}},{"Alternative":{"atoms":[514,515,516,517,518,519,520,521]}},{"Named":{"name":"supplement_type","atom":522}},{"Entity":{"atom":528}},{"Str":{"pattern":"Technical"}},{"Named":{"name":"technical","atom":525}},{"Entity":{"atom":5}},{"Sequence":{"atoms":[526,527]}},{"Repetition":{"atom":524,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"Cor."}},{"Str":{"pattern":"Cor"}},{"Alternative":{"atoms":[530,531]}},{"Named":{"name":"supplement_type","atom":532}},{"Sequence":{"atoms":[529,533]}},{"Alternative":{"atoms":[523,534]}},{"Entity":{"atom":549}},{"Entity":{"atom":5}},{"Named":{"name":"supplement_space","atom":537}},{"Repetition":{"atom":538,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":39}},{"Repetition":{"atom":540,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":36}},{"Entity":{"atom":39}},{"Repetition":{"atom":543,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[542,544]}},{"Repetition":{"atom":545,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[541,546]}},{"Named":{"name":"supplement_number","atom":547}},{"Sequence":{"atoms":[539,548]}},{"Entity":{"atom":563}},{"Entity":{"atom":5}},{"Str":{"pattern":"("}},{"Entity":{"atom":39}},{"Repetition":{"atom":553,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"supplement_month","atom":554}},{"Str":{"pattern":"/"}},{"Sequence":{"atoms":[555,556]}},{"Repetition":{"atom":557,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":39}},{"Repetition":{"atom":559,"min":4,"max":4,"tag":"Repetition"}},{"Named":{"name":"supplement_year","atom":560}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[551,552,558,561,562]}},{"Repetition":{"atom":550,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":565,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[511,512,513,536,564,566]}},{"Entity":{"atom":593}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":581}},{"Entity":{"atom":150}},{"Entity":{"atom":39}},{"Repetition":{"atom":574,"min":1,"max":null,"tag":"Repetition"}},{"Repetition":{"atom":575,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":12}},{"Entity":{"atom":39}},{"Repetition":{"atom":578,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[573,576,577,579]}},{"Named":{"name":"series","atom":580}},{"Entity":{"atom":191}},{"Alternative":{"atoms":[572,582]}},{"Entity":{"atom":302}},{"Repetition":{"atom":584,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":5}},{"Entity":{"atom":535}},{"Entity":{"atom":549}},{"Entity":{"atom":563}},{"Repetition":{"atom":589,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":591,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[569,570,571,583,585,586,587,588,590,592]}},{"Alternative":{"atoms":[167,568]}},{"Named":{"name":"base","atom":594}},{"Entity":{"atom":5}},{"Entity":{"atom":535}},{"Entity":{"atom":549}},{"Entity":{"atom":563}},{"Repetition":{"atom":599,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":601,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[595,596,597,598,600,602]}},{"Entity":{"atom":615}},{"Entity":{"atom":567}},{"Named":{"name":"base","atom":605}},{"Str":{"pattern":"/"}},{"Named":{"name":"supplement_slash","atom":607}},{"Entity":{"atom":535}},{"Entity":{"atom":549}},{"Entity":{"atom":563}},{"Repetition":{"atom":611,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":613,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[606,608,609,610,612,614]}},{"Entity":{"atom":567}},{"Entity":{"atom":593}},{"Alternative":{"atoms":[166,604,616,617]}},{"Entity":{"atom":623}},{"Entity":{"atom":482}},{"Entity":{"atom":106}},{"Repetition":{"atom":621,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[620,622]}},{"Entity":{"atom":628}},{"Entity":{"atom":507}},{"Entity":{"atom":106}},{"Repetition":{"atom":626,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[625,627]}},{"Entity":{"atom":633}},{"Entity":{"atom":341}},{"Entity":{"atom":106}},{"Repetition":{"atom":631,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[630,632]}},{"Entity":{"atom":644}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":41}},{"Entity":{"atom":36}},{"Str":{"pattern":"HDB"}},{"Named":{"name":"handbook_marker","atom":640}},{"Entity":{"atom":156}},{"Repetition":{"atom":642,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[635,636,637,638,639,641,643]}},{"Entity":{"atom":659}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":41}},{"Entity":{"atom":240}},{"Str":{"pattern":"/"}},{"Entity":{"atom":39}},{"Repetition":{"atom":652,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"study_group","atom":653}},{"Sequence":{"atoms":[651,654]}},{"Str":{"pattern":":"}},{"Named":{"name":"question_colon","atom":656}},{"Repetition":{"atom":657,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[646,647,648,649,650,655,658]}},{"Entity":{"atom":685}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":191}},{"Entity":{"atom":36}},{"Str":{"pattern":"["}},{"Named":{"name":"bracketed","atom":666}},{"Entity":{"atom":677}},{"Entity":{"atom":41}},{"Str":{"pattern":"/BL"}},{"Named":{"name":"has_bl","atom":670}},{"Repetition":{"atom":671,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"/"}},{"Entity":{"atom":39}},{"Repetition":{"atom":674,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"study_group","atom":675}},{"Sequence":{"atoms":[669,672,673,676]}},{"Str":{"pattern":"]"}},{"Sequence":{"atoms":[667,668,678]}},{"Entity":{"atom":677}},{"Alternative":{"atoms":[679,680]}},{"Str":{"pattern":":"}},{"Named":{"name":"question_colon","atom":682}},{"Repetition":{"atom":683,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[661,662,663,664,665,681,684]}},{"Entity":{"atom":706}},{"Entity":{"atom":21}},{"Str":{"pattern":"R"}},{"Named":{"name":"sector","atom":688}},{"Entity":{"atom":5}},{"Str":{"pattern":"RR"}},{"Named":{"name":"radio_regulations","atom":691}},{"Entity":{"atom":68}},{"Entity":{"atom":12}},{"Entity":{"atom":39}},{"Repetition":{"atom":695,"min":4,"max":4,"tag":"Repetition"}},{"Named":{"name":"year","atom":696}},{"Sequence":{"atoms":[694,697]}},{"Alternative":{"atoms":[693,698]}},{"Repetition":{"atom":699,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":701,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":704}},{"Re":{"pattern":"[\\x00-\\u{10ffff}]"}},{"Lookahead":{"atom":703,"positive":false}},{"Sequence":{"atoms":[687,689,690,692,700,702,705]}},{"Entity":{"atom":731}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":351}},{"Repetition":{"atom":711,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":191}},{"Entity":{"atom":36}},{"Entity":{"atom":271}},{"Entity":{"atom":281}},{"Repetition":{"atom":716,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":297}},{"Entity":{"atom":416}},{"Repetition":{"atom":719,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":302}},{"Repetition":{"atom":721,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":308}},{"Repetition":{"atom":723,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":328}},{"Repetition":{"atom":725,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":156}},{"Repetition":{"atom":727,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":729,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[708,709,710,712,713,714,715,717,718,720,722,724,726,728,730]}},{"Entity":{"atom":743}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":191}},{"Str":{"pattern":"-C"}},{"Named":{"name":"contribution_marker","atom":737}},{"Entity":{"atom":41}},{"Entity":{"atom":240}},{"Entity":{"atom":106}},{"Repetition":{"atom":741,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[733,734,735,736,738,739,740,742]}},{"Entity":{"atom":748}},{"Entity":{"atom":466}},{"Entity":{"atom":106}},{"Repetition":{"atom":746,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[745,747]}},{"Entity":{"atom":763}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":271}},{"Entity":{"atom":297}},{"Entity":{"atom":308}},{"Repetition":{"atom":755,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":328}},{"Repetition":{"atom":757,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":156}},{"Repetition":{"atom":759,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":761,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[750,751,752,753,754,756,758,760,762]}},{"Entity":{"atom":787}},{"Entity":{"atom":27}},{"Entity":{"atom":12}},{"Str":{"pattern":"REC"}},{"Entity":{"atom":12}},{"Entity":{"atom":191}},{"Entity":{"atom":36}},{"Entity":{"atom":271}},{"Entity":{"atom":143}},{"Entity":{"atom":782}},{"Entity":{"atom":12}},{"Str":{"pattern":"I"}},{"Str":{"pattern":"S"}},{"Alternative":{"atoms":[775,776]}},{"Entity":{"atom":39}},{"Entity":{"atom":149}},{"Alternative":{"atoms":[778,779]}},{"Lookahead":{"atom":780,"positive":false}},{"Sequence":{"atoms":[774,777,781]}},{"Named":{"name":"id_status","atom":773}},{"Repetition":{"atom":783,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":785,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[765,766,767,768,769,770,771,772,784,786]}},{"Alternative":{"atoms":[2,164,165,619,624,629,634,645,660,686,707,732,744,749,764]}},{"Entity":{"atom":799}},{"Entity":{"atom":5}},{"Str":{"pattern":"|"}},{"Entity":{"atom":5}},{"Entity":{"atom":796}},{"Re":{"pattern":"[\\x01-\\x7b]"}},{"Re":{"pattern":"[\\x7d-\\u{10ffff}]"}},{"Alternative":{"atoms":[794,795]}},{"Repetition":{"atom":793,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[790,791,792,797]}},{"Named":{"name":"common_text_twin","atom":798}},{"Sequence":{"atoms":[1,789]}},{"Entity":{"atom":788}},{"Alternative":{"atoms":[0,801]}}],"root":802},"bindings":[{"capture":"sector","path":"sector","type":"string","card":null,"preprocess":null},{"capture":"series","path":"series","type":"string","card":null,"preprocess":null},{"capture":"series_word","path":"series_word","type":"string","card":null,"preprocess":null},{"capture":"number","path":"number","type":"string","card":null,"preprocess":null},{"capture":"subseries","path":"subseries","type":"string","card":null,"preprocess":null},{"capture":"series_suffix","path":"series_suffix","type":"string","card":null,"preprocess":null},{"capture":"series_suffix_spaced","path":"series_suffix_spaced","type":"string","card":null,"preprocess":null},{"capture":"qualifier","path":"qualifier","type":"string","card":null,"preprocess":null},{"capture":"qualifier_spaced","path":"qualifier_spaced","type":"string","card":null,"preprocess":null},{"capture":"year","path":"year","type":"string","card":null,"preprocess":null},{"capture":"month","path":"month","type":"string","card":null,"preprocess":null},{"capture":"day","path":"day","type":"string","card":null,"preprocess":null},{"capture":"roman_month","path":"roman_month","type":"string","card":null,"preprocess":null},{"capture":"language","path":"language","type":"string","card":null,"preprocess":null},{"capture":"attachment","path":"attachment","type":"string","card":null,"preprocess":null},{"capture":"range_end","path":"range_end","type":"string","card":null,"preprocess":null},{"capture":"part","path":"parts[].part","type":"string","card":null,"preprocess":null},{"capture":"imp_marker","path":"imp_marker","type":"string","card":null,"preprocess":null},{"capture":"version","path":"version","type":"string","card":null,"preprocess":null},{"capture":"series_dash","path":"series_dash","type":"string","card":null,"preprocess":null},{"capture":"combined","path":"combined","type":"raw","card":null,"preprocess":null},{"capture":"technical","path":"technical","type":"string","card":null,"preprocess":null},{"capture":"supplement_type","path":"supplement_type","type":"string","card":null,"preprocess":null},{"capture":"supplement_space","path":"supplement_space","type":"string","card":null,"preprocess":null},{"capture":"supplement_number","path":"supplement_number","type":"string","card":null,"preprocess":null},{"capture":"supplement_month","path":"supplement_month","type":"string","card":null,"preprocess":null},{"capture":"supplement_year","path":"supplement_year","type":"string","card":null,"preprocess":null},{"capture":"base","path":"base","type":"raw","card":null,"preprocess":null},{"capture":"annex_number","path":"annex_number","type":"string","card":null,"preprocess":null},{"capture":"appendix_number","path":"appendix_number","type":"string","card":null,"preprocess":null},{"capture":"appendix_material","path":"appendix_material","type":"string","card":null,"preprocess":null},{"capture":"supplement_slash","path":"supplement_slash","type":"string","card":null,"preprocess":null},{"capture":"report_marker","path":"report_marker","type":"string","card":null,"preprocess":null},{"capture":"_op_bull","path":"_op_bull","type":"string","card":null,"preprocess":null},{"capture":"contribution_marker","path":"contribution_marker","type":"string","card":null,"preprocess":null},{"capture":"handbook_marker","path":"handbook_marker","type":"string","card":null,"preprocess":null},{"capture":"study_group","path":"study_group","type":"string","card":null,"preprocess":null},{"capture":"has_bl","path":"has_bl","type":"string","card":null,"preprocess":null},{"capture":"bracketed","path":"bracketed","type":"string","card":null,"preprocess":null},{"capture":"question_colon","path":"question_colon","type":"string","card":null,"preprocess":null},{"capture":"common_text_twin","path":"common_text_twin","type":"string","card":null,"preprocess":null},{"capture":"annex_to","path":"annex_to","type":"raw","card":null,"preprocess":null},{"capture":"radio_regulations","path":"radio_regulations","type":"string","card":null,"preprocess":null}]}},"preprocess":{},"tables":{},"lint":{"order_warnings":["rule non_pipe: branches 1 and 2 are order-dependent (first set not statically known)","rule series_suffix_word: branches 3 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule base_report: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule base: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule base: branches 1 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule base: branches 1 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule base: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule base: branches 2 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule base: branches 3 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule supplement_identifier: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule supplement_identifier: branches 1 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule supplement_identifier: branches 1 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule supplement_identifier: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule supplement_identifier: branches 2 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule supplement_identifier: branches 3 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 3 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 3 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 3 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 3 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 4 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 4 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 4 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 5 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 5 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 6 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 8 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 8 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 8 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 9 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 9 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 10 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule ob_date: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule special_publication: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 8 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 8 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 8 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 8 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 8 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 8 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 8 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 9 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 9 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 9 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 9 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 9 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 9 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 10 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 10 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 10 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 10 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 10 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 11 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 11 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 11 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 11 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 12 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 12 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 12 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 13 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 13 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 14 and 15 are order-dependent (shared first bytes; ordered choice is decisive)"]},"default_entry":"identifier","render":{},"derive":{},"tests":[{"entry":"identifier","kind":"accept","input":"ITU-R BT.500","expect":{}},{"entry":"identifier","kind":"accept","input":"Recommendation ITU-T G.650.1 (09/2020)","expect":{}},{"entry":"identifier","kind":"accept","input":"ITU-R SA.3631 Annex A","expect":{}},{"entry":"identifier","kind":"accept","input":"ITU-T OB.101 (2016)","expect":{}},{"entry":"identifier","kind":"accept","input":"Annex to ITU-T OB.101","expect":{}},{"entry":"identifier","kind":"accept","input":"ITU-T E.164/2","expect":{}},{"entry":"identifier","kind":"accept","input":"ITU-T 55/13:","expect":{}},{"entry":"identifier","kind":"accept","input":"ITU-T G.984.2 Amd. 1 (2010)","expect":{}},{"entry":"identifier","kind":"accept","input":"ITU-T G.650.1B","expect":{}},{"entry":"identifier","kind":"reject","input":"nonsense","expect":{}}],"docs":{},"source":"# Port of lib/pubid/itu/parser.rb — ITU-T/R/D designations: series codes\n# (BT/G/V, SGnn), Imp implementation codes, OB Operational Bulletins,\n# Reports, Study Group questions (numeric and bracketed series form),\n# supplements (Suppl./Amd./Add./Err./Cor. with Technical marker), Annex\n# and App. wraps, combined \"/XX.N\" designations, and the \"| twin\"\n# common-text form. Internal rule `itu_identifier` corresponds to the\n# source's `identifier` (renamed: PG forbids self-reference from the\n# common-text wrapper).\n#\n# Edition-2 conversion. Deviations from the v1 tree:\n# - every leaf capture body is written out at its site so it lowers to\n# one scalar span: edition 2 materializes bare refs to capture-less\n# composite rules as named nodes (the asme/cie/bsi inlining rule), so\n# `digits`, `yyyymm_year`, `yyyymm_month`, `roman`, `annex_label` and\n# `non_pipe` are spelled out at every capture site, and `letter` (a\n# ref to `upper`) is spelled as its class — a ref chain inside a\n# capture breaks the span lowering. Literal alternations\n# (series_suffix_word, the sector/language/roman_month words) and\n# refs to capture-bearing rules (`number`, `series`, `question_tail`)\n# stay refs and bind as spans.\n# - the builder keeps its v1 wrapper walks (`base` recursion for\n# annex/appendix/supplement chains, `combined` ->\n# `designation` elements, `parts` -> `part` hashes), so `base`,\n# `annex_to` and `combined` bind uncast with (raw) and `part` binds\n# through the array (`part -> parts[].part (string)`). The inner\n# `designation` capture is deliberately unbound: it rides inside the\n# raw `combined` array exactly as the v1 tree delivered it.\n# - presence markers keep their captured-token shape (the captured\n# space of `supplement_space`/`qualifier_spaced`, the \"/BL\" of\n# `has_bl`, the \"[\" of `bracketed`), so the builder's nil? checks\n# keep their meaning; every optional capture is spelled\n# `[ (group) as x ]` so non-participation omits the key on every\n# engine.\n\ngrammar PubidItu version \"0.1.0\" edition 2 {\n digit = %x30-39\n upper = %x41-5A\n lower = %x61-7A\n letter = upper\n digits = 1*digit\n space = \" \"\n dash = \"-\"\n dot = \".\"\n non_pipe = %x01-7B / %x7D-10FFFF\n\n itu_prefix = (\"Recommendation \" \"ITU\" (dash / space)) / (\"ITU\" (dash / space))\n sector = (\"R\" / \"T\" / \"D\") as sector\n series = ((\"SG\" 1*digit) / (1*3upper)) as series\n series_group = (upper [1*digit] dash 1*digit) as series\n series_word = space \"series\" as series_word\n number = (1*digit) as number\n subseries = dot (1*digit) as subseries\n series_suffix_word = \"bis\" / \"ter\" / \"quater\" / \"quarter\"\n series_suffix = (series_suffix_word) as series_suffix\n series_suffix_spaced = (space as series_suffix_spaced) ((series_suffix_word) as series_suffix)\n qualifier_letter = ((%x41-52 / %x61-72) as qualifier !(upper / lower / digit))\n qualifier_glued = qualifier_letter\n qualifier_spaced = (space as qualifier_spaced) qualifier_letter\n yyyymm_year = (\"19\" / \"20\") digit digit\n yyyymm_month = (\"0\" %x31-39) / (\"1\" %x30-32)\n yyyymm_shape = yyyymm_year yyyymm_month !digit\n yyyymm_date = dash ((\"19\" / \"20\") digit digit) as year ((\"0\" %x31-39) / (\"1\" %x30-32)) as month !digit\n id_status = dash (\"I\" / \"S\") !(digit / letter)\n print_id_status = dash \"I\" !(digit / letter)\n id_date = yyyymm_date [print_id_status]\n document_date = (date_part / id_date)\n rec_word = (\"REC\" (space / dash))\n publication_id = sector dash \"REC\" dash series dot code yyyymm_date [id_status] [language]\n code_suffixes = [series_suffix_spaced] [qualifier_spaced]\n attachment = space \"attachment\" as attachment\n range_end = dash ((1*3upper dot 1*digit) as range_end)\n part = dash !yyyymm_shape (1*digit) as part\n parts = (*part) as parts\n code = imp_code / standard_code\n standard_code = number [series_suffix] [subseries] parts [qualifier_glued]\n imp_code = \"Imp\" as imp_marker (((1*digit) / (1*3upper)) as number) [subseries] parts\n date_part = space \"(\" [((1*digit) as month \"/\")] ((4digit) as year) \")\"\n version_part = space (((\"(V\" 1*digit as version \")\") / ((\"V\" / \"v\") [dot] 1*digit as version)))\n language = dash ((\"E\" / \"F\" / \"A\" / \"S\" / \"C\" / \"R\") as language)\n\n # The combined-designation tail repeats the code-suffix shapes under\n # d_* capture names: a capture name occurring at two structural depths\n # pairs into ONE top-level bound key (last occurrence wins; array\n # bindings concatenate), so the shared number/subseries/parts/suffix/\n # qualifier names would corrupt the primary's Code with the\n # designation's tail. series and number stay shared — the primary\n # always carries them first.\n d_number = (1*digit) as d_number\n d_subseries = dot (1*digit) as d_subseries\n d_part = dash !yyyymm_shape (1*digit) as d_part\n d_parts = (*d_part) as d_parts\n d_series_suffix = (series_suffix_word) as d_series_suffix\n d_series_suffix_spaced = (space as d_series_suffix_spaced) ((series_suffix_word) as d_series_suffix)\n d_qualifier_letter = ((%x41-52 / %x61-72) as d_qualifier !(upper / lower / digit))\n d_qualifier_glued = d_qualifier_letter\n d_qualifier_spaced = (space as d_qualifier_spaced) d_qualifier_letter\n\n combined_designation = \"/\" ((series dot d_number [d_subseries] d_parts [d_qualifier_glued] [d_series_suffix_spaced] [d_qualifier_spaced]) as designation)\n combined_suffixes = (1*combined_designation) as combined\n\n technical_marker = \"Technical\" as technical space\n supplement_type = ((\"Suppl.\" / \"Suppl\" / \"Amd.\" / \"Amd\" / \"Add.\" / \"Add\" / \"Err.\" / \"Err\") as supplement_type) / (([technical_marker] (\"Cor.\" / \"Cor\") as supplement_type))\n supplement_number = ([space as supplement_space]) ((1*digit *(dot 1*digit)) as supplement_number)\n supplement_date = space \"(\" [((1*digit) as supplement_month \"/\")] ((4digit) as supplement_year) \")\"\n\n base_with_series = {\n itu_prefix sector space\n [rec_word]\n series dot code\n [range_end]\n code_suffixes\n [combined_suffixes]\n [series_word]\n [attachment]\n [version_part]\n [document_date]\n }\n base_without_series = {\n itu_prefix sector space\n code\n code_suffixes\n [attachment]\n [version_part]\n [document_date]\n }\n series_code_body = {\n !(\"OB\" dash)\n ((2*upper) as series)\n (dash as series_dash)\n (((1*digit) / (1*upper)) as number)\n parts\n }\n contribution = {\n itu_prefix sector space\n series\n (\"-C\" as contribution_marker)\n number\n parts\n [language]\n }\n base_series_code = {\n itu_prefix sector space\n series_code_body\n [version_part]\n [document_date]\n }\n series_code_identifier = base_series_code [language]\n report_word = \"Report\" as report_marker\n report_body = {\n !(\"OB\" dot)\n [(series dot)]\n code\n [range_end]\n code_suffixes\n [series_word]\n [attachment]\n [version_part]\n [document_date]\n }\n base_report = {\n (report_word space itu_prefix sector space report_body)\n / (itu_prefix sector space report_word space report_body)\n }\n report_identifier = base_report [language]\n base = base_report / base_with_series / base_without_series / base_series_code\n\n annex_label = upper [1*digit] [\"+\"]\n annex_body = {\n (base as base)\n space \"Annex\" space\n ((upper [1*digit] [\"+\"])) as annex_number\n [document_date]\n }\n annex_identifier = annex_body [language]\n roman = 1*(%x49 / %x56 / %x58)\n appendix_material = space ((\"test vectors\" / \"Software\") as appendix_material)\n appendix_body = {\n (base as base)\n space \"App.\" [space]\n (1*(%x49 / %x56 / %x58)) as appendix_number\n [appendix_material]\n [document_date]\n }\n appendix_identifier = appendix_body [language]\n\n supplement_with_base = {\n ((annex_body as base) / (appendix_body as base) / (base as base))\n space supplement_type\n supplement_number\n [supplement_date]\n [language]\n }\n chained_supplement = {\n ((supplement_with_base / supplement_series_only) as base)\n space supplement_type\n supplement_number\n [supplement_date]\n [language]\n }\n supplement_series_only = {\n itu_prefix sector space\n (series_group / series)\n [series_word]\n space supplement_type\n supplement_number\n [supplement_date]\n [language]\n }\n slash_chained_supplement = {\n ((supplement_with_base) as base)\n (\"/\" as supplement_slash)\n supplement_type\n supplement_number\n [supplement_date]\n [language]\n }\n supplement_identifier = chained_supplement / slash_chained_supplement / supplement_with_base / supplement_series_only\n\n with_series = {\n itu_prefix sector space\n [rec_word]\n series dot code\n [range_end]\n code_suffixes\n [combined_suffixes]\n [series_word]\n [attachment]\n [version_part]\n [document_date]\n [language]\n }\n without_series = {\n itu_prefix sector space\n code\n code_suffixes\n [attachment]\n [version_part]\n [document_date]\n [language]\n }\n\n roman_month = \"XII\" / \"XI\" / \"IX\" / \"VIII\" / \"VII\" / \"VI\" / \"V\" / \"IV\" / \"III\" / \"II\" / \"I\"\n ob_roman_date = \" - \" (2digit) as day dot (roman_month as roman_month) dot (4digit) as year\n ob_date = (date_part / ob_roman_date)\n ob_series = \"OB\" as series\n ob_dot_body = dot number\n ob_no_body = space \"No.\" space number\n ob_bare_body = space number\n ob_with_sector = {\n itu_prefix\n [(sector space)]\n ob_series\n (ob_dot_body / ob_no_body / ob_bare_body)\n [ob_date]\n [language]\n }\n ob_long_form = {\n itu_prefix\n [(sector space)]\n \"Operational Bulletin\" as _op_bull\n space \"No.\" space number\n [document_date]\n [language]\n }\n special_publication = ob_with_sector / ob_long_form\n annex_to_identifier = \"Annex to\" space (special_publication as annex_to)\n handbook = {\n itu_prefix sector space\n number dot \"HDB\" as handbook_marker\n [document_date]\n }\n numeric_question = {\n itu_prefix sector space\n number parts\n ((\"/\" (1*digit) as study_group))\n [(\":\" as question_colon)]\n }\n question_tail = number [(\"/BL\" as has_bl)] \"/\" (1*digit) as study_group\n letter_question = {\n itu_prefix sector space\n series dot\n (((\"[\" as bracketed) question_tail \"]\") / question_tail)\n [(\":\" as question_colon)]\n }\n common_text_twin = (space \"|\" space (1*non_pipe)) as common_text_twin\n\n identifier = common_text_identifier / itu_identifier\n any_char = %x00-10FFFF\n radio_regulations = {\n itu_prefix\n (\"R\") as sector\n space \"RR\" as radio_regulations\n [(date_part / (dash (4digit) as year))]\n [language]\n !any_char\n }\n itu_identifier = {\n annex_to_identifier\n / special_publication\n / supplement_identifier\n / annex_identifier\n / appendix_identifier\n / report_identifier\n / handbook\n / numeric_question\n / letter_question\n / radio_regulations\n / with_series\n / contribution\n / series_code_identifier\n / without_series\n / publication_id\n }\n common_text_identifier = itu_identifier common_text_twin\n\n entry identifier: identifier\n\n bindings identifier {\n sector -> sector (string)\n series -> series (string)\n series_word -> series_word (string)\n number -> number (string)\n subseries -> subseries (string)\n series_suffix -> series_suffix (string)\n series_suffix_spaced -> series_suffix_spaced (string)\n qualifier -> qualifier (string)\n qualifier_spaced -> qualifier_spaced (string)\n year -> year (string)\n month -> month (string)\n day -> day (string)\n roman_month -> roman_month (string)\n language -> language (string)\n attachment -> attachment (string)\n range_end -> range_end (string)\n part -> parts[].part (string)\n imp_marker -> imp_marker (string)\n version -> version (string)\n series_dash -> series_dash (string)\n combined -> combined (raw)\n technical -> technical (string)\n supplement_type -> supplement_type (string)\n supplement_space -> supplement_space (string)\n supplement_number -> supplement_number (string)\n supplement_month -> supplement_month (string)\n supplement_year -> supplement_year (string)\n base -> base (raw)\n annex_number -> annex_number (string)\n appendix_number -> appendix_number (string)\n appendix_material -> appendix_material (string)\n supplement_slash -> supplement_slash (string)\n report_marker -> report_marker (string)\n _op_bull -> _op_bull (string)\n contribution_marker -> contribution_marker (string)\n handbook_marker -> handbook_marker (string)\n study_group -> study_group (string)\n has_bl -> has_bl (string)\n bracketed -> bracketed (string)\n question_colon -> question_colon (string)\n common_text_twin -> common_text_twin (string)\n annex_to -> annex_to (raw)\n radio_regulations -> radio_regulations (string)\n }\n\n test {\n accept \"ITU-R BT.500\"\n accept \"Recommendation ITU-T G.650.1 (09/2020)\"\n accept \"ITU-R SA.3631 Annex A\"\n accept \"ITU-T OB.101 (2016)\"\n accept \"Annex to ITU-T OB.101\"\n accept \"ITU-T E.164/2\"\n accept \"ITU-T 55/13:\"\n accept \"ITU-T G.984.2 Amd. 1 (2010)\"\n accept \"ITU-T G.650.1B\"\n reject \"nonsense\"\n }\n}\n","source_hash":"7535fa1ad43143e2af1aafb0fb65d6a63f48210eb9b7c29c78ff7edec00062ef","unicode_tables":"onigmo (Ruby 3.4.8)","compiler_version":"1.5.1.0","edition":2,"semantics_hash":"sha256:8bdbd26e76317bdb16eb2652eeb008aa773a2b487aae0b3d2306430bb4fcd314","checksum":"sha256:acd2f27a6bb295d8a236af816fa88647d317844bbf4c38f72c562ef7273cc33d","validated":{"lint_errors":0,"lint_warnings":126,"tests_total":10,"tests_failures":0,"self_test":true}}
1
+ {"bindings":null,"version":"0.1.0","grammar":"PubidItu","shape":"parsanol-tree/v2","binding_version":1,"entries":{"identifier":{"root":"identifier","grammar":{"atoms":[{"Entity":{"atom":828}},{"Entity":{"atom":816}},{"Entity":{"atom":163}},{"Str":{"pattern":"Annex to"}},{"Entity":{"atom":5}},{"Str":{"pattern":" "}},{"Entity":{"atom":161}},{"Entity":{"atom":108}},{"Entity":{"atom":21}},{"Str":{"pattern":"Recommendation "}},{"Str":{"pattern":"ITU"}},{"Entity":{"atom":12}},{"Str":{"pattern":"-"}},{"Entity":{"atom":5}},{"Alternative":{"atoms":[11,13]}},{"Sequence":{"atoms":[9,10,14]}},{"Str":{"pattern":"ITU"}},{"Entity":{"atom":12}},{"Entity":{"atom":5}},{"Alternative":{"atoms":[17,18]}},{"Sequence":{"atoms":[16,19]}},{"Alternative":{"atoms":[15,20]}},{"Entity":{"atom":27}},{"Str":{"pattern":"R"}},{"Str":{"pattern":"T"}},{"Str":{"pattern":"D"}},{"Alternative":{"atoms":[23,24,25]}},{"Named":{"name":"sector","atom":26}},{"Entity":{"atom":5}},{"Sequence":{"atoms":[22,28]}},{"Repetition":{"atom":29,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":33}},{"Str":{"pattern":"OB"}},{"Named":{"name":"series","atom":32}},{"Entity":{"atom":42}},{"Entity":{"atom":36}},{"Str":{"pattern":"."}},{"Entity":{"atom":41}},{"Entity":{"atom":39}},{"Re":{"pattern":"[\\x30-\\x39]"}},{"Repetition":{"atom":38,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"number","atom":40}},{"Sequence":{"atoms":[35,37]}},{"Entity":{"atom":48}},{"Entity":{"atom":5}},{"Str":{"pattern":"No."}},{"Entity":{"atom":5}},{"Entity":{"atom":41}},{"Sequence":{"atoms":[44,45,46,47]}},{"Entity":{"atom":52}},{"Entity":{"atom":5}},{"Entity":{"atom":41}},{"Sequence":{"atoms":[50,51]}},{"Alternative":{"atoms":[34,43,49]}},{"Entity":{"atom":94}},{"Entity":{"atom":68}},{"Entity":{"atom":5}},{"Str":{"pattern":"("}},{"Entity":{"atom":39}},{"Repetition":{"atom":58,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"month","atom":59}},{"Str":{"pattern":"/"}},{"Sequence":{"atoms":[60,61]}},{"Repetition":{"atom":62,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":39}},{"Repetition":{"atom":64,"min":4,"max":4,"tag":"Repetition"}},{"Named":{"name":"year","atom":65}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[56,57,63,66,67]}},{"Entity":{"atom":93}},{"Str":{"pattern":" - "}},{"Entity":{"atom":39}},{"Repetition":{"atom":71,"min":2,"max":2,"tag":"Repetition"}},{"Named":{"name":"day","atom":72}},{"Entity":{"atom":36}},{"Entity":{"atom":87}},{"Str":{"pattern":"XII"}},{"Str":{"pattern":"XI"}},{"Str":{"pattern":"IX"}},{"Str":{"pattern":"VIII"}},{"Str":{"pattern":"VII"}},{"Str":{"pattern":"VI"}},{"Str":{"pattern":"V"}},{"Str":{"pattern":"IV"}},{"Str":{"pattern":"III"}},{"Str":{"pattern":"II"}},{"Str":{"pattern":"I"}},{"Alternative":{"atoms":[76,77,78,79,80,81,82,83,84,85,86]}},{"Named":{"name":"roman_month","atom":75}},{"Entity":{"atom":36}},{"Entity":{"atom":39}},{"Repetition":{"atom":90,"min":4,"max":4,"tag":"Repetition"}},{"Named":{"name":"year","atom":91}},{"Sequence":{"atoms":[70,73,74,88,89,92]}},{"Alternative":{"atoms":[55,69]}},{"Repetition":{"atom":54,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Entity":{"atom":12}},{"Str":{"pattern":"E"}},{"Str":{"pattern":"F"}},{"Str":{"pattern":"A"}},{"Str":{"pattern":"S"}},{"Str":{"pattern":"C"}},{"Str":{"pattern":"R"}},{"Alternative":{"atoms":[98,99,100,101,102,103]}},{"Named":{"name":"language","atom":104}},{"Sequence":{"atoms":[97,105]}},{"Repetition":{"atom":96,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[8,30,31,53,95,107]}},{"Entity":{"atom":160}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Sequence":{"atoms":[111,112]}},{"Repetition":{"atom":113,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"Operational Bulletin"}},{"Named":{"name":"_op_bull","atom":115}},{"Entity":{"atom":5}},{"Str":{"pattern":"No."}},{"Entity":{"atom":5}},{"Entity":{"atom":41}},{"Entity":{"atom":156}},{"Entity":{"atom":68}},{"Entity":{"atom":155}},{"Entity":{"atom":143}},{"Entity":{"atom":12}},{"Str":{"pattern":"19"}},{"Str":{"pattern":"20"}},{"Alternative":{"atoms":[126,127]}},{"Entity":{"atom":39}},{"Entity":{"atom":39}},{"Sequence":{"atoms":[128,129,130]}},{"Named":{"name":"year","atom":131}},{"Str":{"pattern":"0"}},{"Re":{"pattern":"[\\x31-\\x39]"}},{"Sequence":{"atoms":[133,134]}},{"Str":{"pattern":"1"}},{"Re":{"pattern":"[\\x30-\\x32]"}},{"Sequence":{"atoms":[136,137]}},{"Alternative":{"atoms":[135,138]}},{"Named":{"name":"month","atom":139}},{"Entity":{"atom":39}},{"Lookahead":{"atom":141,"positive":false}},{"Sequence":{"atoms":[125,132,140,142]}},{"Entity":{"atom":153}},{"Entity":{"atom":12}},{"Str":{"pattern":"I"}},{"Entity":{"atom":39}},{"Entity":{"atom":149}},{"Entity":{"atom":150}},{"Re":{"pattern":"[\\x41-\\x5a]"}},{"Alternative":{"atoms":[147,148]}},{"Lookahead":{"atom":151,"positive":false}},{"Sequence":{"atoms":[145,146,152]}},{"Repetition":{"atom":144,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[124,154]}},{"Alternative":{"atoms":[122,123]}},{"Repetition":{"atom":121,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":158,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[110,114,116,117,118,119,120,157,159]}},{"Alternative":{"atoms":[7,109]}},{"Named":{"name":"annex_to","atom":6}},{"Sequence":{"atoms":[3,4,162]}},{"Entity":{"atom":161}},{"Entity":{"atom":618}},{"Entity":{"atom":603}},{"Entity":{"atom":567}},{"Entity":{"atom":482}},{"Entity":{"atom":467}},{"Entity":{"atom":341}},{"Entity":{"atom":173}},{"Str":{"pattern":"Report"}},{"Named":{"name":"report_marker","atom":172}},{"Entity":{"atom":5}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":332}},{"Str":{"pattern":"OB"}},{"Entity":{"atom":36}},{"Sequence":{"atoms":[179,180]}},{"Lookahead":{"atom":181,"positive":false}},{"Entity":{"atom":191}},{"Str":{"pattern":"SG"}},{"Entity":{"atom":39}},{"Repetition":{"atom":185,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[184,186]}},{"Entity":{"atom":150}},{"Repetition":{"atom":188,"min":1,"max":3,"tag":"Repetition"}},{"Alternative":{"atoms":[187,189]}},{"Named":{"name":"series","atom":190}},{"Entity":{"atom":36}},{"Sequence":{"atoms":[183,192]}},{"Repetition":{"atom":193,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":271}},{"Entity":{"atom":241}},{"Str":{"pattern":"Imp"}},{"Named":{"name":"imp_marker","atom":197}},{"Entity":{"atom":39}},{"Repetition":{"atom":199,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":150}},{"Repetition":{"atom":201,"min":1,"max":3,"tag":"Repetition"}},{"Alternative":{"atoms":[200,202]}},{"Named":{"name":"number","atom":203}},{"Entity":{"atom":210}},{"Entity":{"atom":36}},{"Entity":{"atom":39}},{"Repetition":{"atom":207,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"subseries","atom":208}},{"Sequence":{"atoms":[206,209]}},{"Repetition":{"atom":205,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":240}},{"Entity":{"atom":238}},{"Entity":{"atom":12}},{"Entity":{"atom":233}},{"Entity":{"atom":222}},{"Str":{"pattern":"19"}},{"Str":{"pattern":"20"}},{"Alternative":{"atoms":[217,218]}},{"Entity":{"atom":39}},{"Entity":{"atom":39}},{"Sequence":{"atoms":[219,220,221]}},{"Entity":{"atom":230}},{"Str":{"pattern":"0"}},{"Re":{"pattern":"[\\x31-\\x39]"}},{"Sequence":{"atoms":[224,225]}},{"Str":{"pattern":"1"}},{"Re":{"pattern":"[\\x30-\\x32]"}},{"Sequence":{"atoms":[227,228]}},{"Alternative":{"atoms":[226,229]}},{"Entity":{"atom":39}},{"Lookahead":{"atom":231,"positive":false}},{"Sequence":{"atoms":[216,223,232]}},{"Lookahead":{"atom":215,"positive":false}},{"Entity":{"atom":39}},{"Repetition":{"atom":235,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"part","atom":236}},{"Sequence":{"atoms":[214,234,237]}},{"Repetition":{"atom":213,"min":0,"max":null,"tag":"Repetition"}},{"Named":{"name":"parts","atom":239}},{"Sequence":{"atoms":[198,204,211,212]}},{"Entity":{"atom":270}},{"Entity":{"atom":41}},{"Entity":{"atom":251}},{"Entity":{"atom":250}},{"Str":{"pattern":"bis"}},{"Str":{"pattern":"ter"}},{"Str":{"pattern":"quater"}},{"Str":{"pattern":"quarter"}},{"Alternative":{"atoms":[246,247,248,249]}},{"Named":{"name":"series_suffix","atom":245}},{"Repetition":{"atom":244,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":210}},{"Repetition":{"atom":253,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":240}},{"Entity":{"atom":257}},{"Entity":{"atom":268}},{"Re":{"pattern":"[\\x41-\\x52]"}},{"Re":{"pattern":"[\\x61-\\x72]"}},{"Alternative":{"atoms":[258,259]}},{"Named":{"name":"qualifier","atom":260}},{"Entity":{"atom":150}},{"Entity":{"atom":264}},{"Re":{"pattern":"[\\x61-\\x7a]"}},{"Entity":{"atom":39}},{"Alternative":{"atoms":[262,263,265]}},{"Lookahead":{"atom":266,"positive":false}},{"Sequence":{"atoms":[261,267]}},{"Repetition":{"atom":256,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[243,252,254,255,269]}},{"Alternative":{"atoms":[196,242]}},{"Entity":{"atom":281}},{"Entity":{"atom":12}},{"Entity":{"atom":150}},{"Repetition":{"atom":274,"min":1,"max":3,"tag":"Repetition"}},{"Entity":{"atom":36}},{"Entity":{"atom":39}},{"Repetition":{"atom":277,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[275,276,278]}},{"Named":{"name":"range_end","atom":279}},{"Sequence":{"atoms":[273,280]}},{"Repetition":{"atom":272,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":297}},{"Entity":{"atom":289}},{"Entity":{"atom":5}},{"Named":{"name":"series_suffix_spaced","atom":285}},{"Entity":{"atom":250}},{"Named":{"name":"series_suffix","atom":287}},{"Sequence":{"atoms":[286,288]}},{"Repetition":{"atom":284,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":295}},{"Entity":{"atom":5}},{"Named":{"name":"qualifier_spaced","atom":292}},{"Entity":{"atom":268}},{"Sequence":{"atoms":[293,294]}},{"Repetition":{"atom":291,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[290,296]}},{"Entity":{"atom":302}},{"Entity":{"atom":5}},{"Str":{"pattern":"series"}},{"Named":{"name":"series_word","atom":300}},{"Sequence":{"atoms":[299,301]}},{"Repetition":{"atom":298,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":308}},{"Entity":{"atom":5}},{"Str":{"pattern":"attachment"}},{"Named":{"name":"attachment","atom":306}},{"Sequence":{"atoms":[305,307]}},{"Repetition":{"atom":304,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":328}},{"Entity":{"atom":5}},{"Str":{"pattern":"(V"}},{"Entity":{"atom":39}},{"Repetition":{"atom":313,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"version","atom":314}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[312,315,316]}},{"Str":{"pattern":"V"}},{"Str":{"pattern":"v"}},{"Alternative":{"atoms":[318,319]}},{"Entity":{"atom":36}},{"Repetition":{"atom":321,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":39}},{"Repetition":{"atom":323,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"version","atom":324}},{"Sequence":{"atoms":[320,322,325]}},{"Alternative":{"atoms":[317,326]}},{"Sequence":{"atoms":[311,327]}},{"Repetition":{"atom":310,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":156}},{"Repetition":{"atom":330,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[182,194,195,282,283,303,309,329,331]}},{"Sequence":{"atoms":[171,174,175,176,177,178]}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":173}},{"Entity":{"atom":5}},{"Entity":{"atom":332}},{"Sequence":{"atoms":[334,335,336,337,338,339]}},{"Alternative":{"atoms":[333,340]}},{"Entity":{"atom":426}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":351}},{"Str":{"pattern":"REC"}},{"Entity":{"atom":5}},{"Entity":{"atom":12}},{"Alternative":{"atoms":[348,349]}},{"Sequence":{"atoms":[347,350]}},{"Repetition":{"atom":346,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":191}},{"Entity":{"atom":36}},{"Entity":{"atom":271}},{"Entity":{"atom":281}},{"Repetition":{"atom":356,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":297}},{"Entity":{"atom":416}},{"Entity":{"atom":414}},{"Str":{"pattern":"/"}},{"Entity":{"atom":191}},{"Entity":{"atom":36}},{"Entity":{"atom":367}},{"Entity":{"atom":39}},{"Repetition":{"atom":365,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"d_number","atom":366}},{"Entity":{"atom":373}},{"Entity":{"atom":36}},{"Entity":{"atom":39}},{"Repetition":{"atom":370,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"d_subseries","atom":371}},{"Sequence":{"atoms":[369,372]}},{"Repetition":{"atom":368,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":385}},{"Entity":{"atom":383}},{"Entity":{"atom":12}},{"Entity":{"atom":233}},{"Lookahead":{"atom":378,"positive":false}},{"Entity":{"atom":39}},{"Repetition":{"atom":380,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"d_part","atom":381}},{"Sequence":{"atoms":[377,379,382]}},{"Repetition":{"atom":376,"min":0,"max":null,"tag":"Repetition"}},{"Named":{"name":"d_parts","atom":384}},{"Entity":{"atom":387}},{"Entity":{"atom":397}},{"Re":{"pattern":"[\\x41-\\x52]"}},{"Re":{"pattern":"[\\x61-\\x72]"}},{"Alternative":{"atoms":[388,389]}},{"Named":{"name":"d_qualifier","atom":390}},{"Entity":{"atom":150}},{"Entity":{"atom":264}},{"Entity":{"atom":39}},{"Alternative":{"atoms":[392,393,394]}},{"Lookahead":{"atom":395,"positive":false}},{"Sequence":{"atoms":[391,396]}},{"Repetition":{"atom":386,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":404}},{"Entity":{"atom":5}},{"Named":{"name":"d_series_suffix_spaced","atom":400}},{"Entity":{"atom":250}},{"Named":{"name":"d_series_suffix","atom":402}},{"Sequence":{"atoms":[401,403]}},{"Repetition":{"atom":399,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":410}},{"Entity":{"atom":5}},{"Named":{"name":"d_qualifier_spaced","atom":407}},{"Entity":{"atom":397}},{"Sequence":{"atoms":[408,409]}},{"Repetition":{"atom":406,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[362,363,364,374,375,398,405,411]}},{"Named":{"name":"designation","atom":412}},{"Sequence":{"atoms":[361,413]}},{"Repetition":{"atom":360,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"combined","atom":415}},{"Repetition":{"atom":359,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":302}},{"Repetition":{"atom":418,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":308}},{"Repetition":{"atom":420,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":328}},{"Repetition":{"atom":422,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":156}},{"Repetition":{"atom":424,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[343,344,345,352,353,354,355,357,358,417,419,421,423,425]}},{"Entity":{"atom":439}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":271}},{"Entity":{"atom":297}},{"Entity":{"atom":308}},{"Repetition":{"atom":433,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":328}},{"Repetition":{"atom":435,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":156}},{"Repetition":{"atom":437,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[428,429,430,431,432,434,436,438]}},{"Entity":{"atom":466}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":461}},{"Str":{"pattern":"OB"}},{"Entity":{"atom":12}},{"Sequence":{"atoms":[445,446]}},{"Lookahead":{"atom":447,"positive":false}},{"Entity":{"atom":150}},{"Repetition":{"atom":449,"min":2,"max":null,"tag":"Repetition"}},{"Named":{"name":"series","atom":450}},{"Entity":{"atom":12}},{"Named":{"name":"series_dash","atom":452}},{"Entity":{"atom":39}},{"Repetition":{"atom":454,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":150}},{"Repetition":{"atom":456,"min":1,"max":null,"tag":"Repetition"}},{"Alternative":{"atoms":[455,457]}},{"Named":{"name":"number","atom":458}},{"Entity":{"atom":240}},{"Sequence":{"atoms":[448,451,453,459,460]}},{"Entity":{"atom":328}},{"Repetition":{"atom":462,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":156}},{"Repetition":{"atom":464,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[441,442,443,444,463,465]}},{"Alternative":{"atoms":[170,342,427,440]}},{"Named":{"name":"base","atom":169}},{"Entity":{"atom":5}},{"Str":{"pattern":"Annex"}},{"Entity":{"atom":5}},{"Entity":{"atom":150}},{"Entity":{"atom":39}},{"Repetition":{"atom":473,"min":1,"max":null,"tag":"Repetition"}},{"Repetition":{"atom":474,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"+"}},{"Repetition":{"atom":476,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[472,475,477]}},{"Named":{"name":"annex_number","atom":478}},{"Entity":{"atom":156}},{"Repetition":{"atom":480,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[468,469,470,471,479,481]}},{"Named":{"name":"base","atom":168}},{"Entity":{"atom":507}},{"Entity":{"atom":467}},{"Named":{"name":"base","atom":485}},{"Entity":{"atom":5}},{"Str":{"pattern":"App."}},{"Entity":{"atom":5}},{"Repetition":{"atom":489,"min":0,"max":1,"tag":"Maybe"}},{"Re":{"pattern":"[I]"}},{"Re":{"pattern":"[V]"}},{"Re":{"pattern":"[X]"}},{"Alternative":{"atoms":[491,492,493]}},{"Repetition":{"atom":494,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"appendix_number","atom":495}},{"Entity":{"atom":503}},{"Entity":{"atom":5}},{"Str":{"pattern":"test vectors"}},{"Str":{"pattern":"Software"}},{"Alternative":{"atoms":[499,500]}},{"Named":{"name":"appendix_material","atom":501}},{"Sequence":{"atoms":[498,502]}},{"Repetition":{"atom":497,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":156}},{"Repetition":{"atom":505,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[486,487,488,490,496,504,506]}},{"Named":{"name":"base","atom":484}},{"Entity":{"atom":467}},{"Named":{"name":"base","atom":509}},{"Alternative":{"atoms":[483,508,510]}},{"Entity":{"atom":5}},{"Entity":{"atom":535}},{"Str":{"pattern":"Suppl."}},{"Str":{"pattern":"Suppl"}},{"Str":{"pattern":"Amd."}},{"Str":{"pattern":"Amd"}},{"Str":{"pattern":"Add."}},{"Str":{"pattern":"Add"}},{"Str":{"pattern":"Err."}},{"Str":{"pattern":"Err"}},{"Alternative":{"atoms":[514,515,516,517,518,519,520,521]}},{"Named":{"name":"supplement_type","atom":522}},{"Entity":{"atom":528}},{"Str":{"pattern":"Technical"}},{"Named":{"name":"technical","atom":525}},{"Entity":{"atom":5}},{"Sequence":{"atoms":[526,527]}},{"Repetition":{"atom":524,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"Cor."}},{"Str":{"pattern":"Cor"}},{"Alternative":{"atoms":[530,531]}},{"Named":{"name":"supplement_type","atom":532}},{"Sequence":{"atoms":[529,533]}},{"Alternative":{"atoms":[523,534]}},{"Entity":{"atom":549}},{"Entity":{"atom":5}},{"Named":{"name":"supplement_space","atom":537}},{"Repetition":{"atom":538,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":39}},{"Repetition":{"atom":540,"min":1,"max":null,"tag":"Repetition"}},{"Entity":{"atom":36}},{"Entity":{"atom":39}},{"Repetition":{"atom":543,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[542,544]}},{"Repetition":{"atom":545,"min":0,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[541,546]}},{"Named":{"name":"supplement_number","atom":547}},{"Sequence":{"atoms":[539,548]}},{"Entity":{"atom":563}},{"Entity":{"atom":5}},{"Str":{"pattern":"("}},{"Entity":{"atom":39}},{"Repetition":{"atom":553,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"supplement_month","atom":554}},{"Str":{"pattern":"/"}},{"Sequence":{"atoms":[555,556]}},{"Repetition":{"atom":557,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":39}},{"Repetition":{"atom":559,"min":4,"max":4,"tag":"Repetition"}},{"Named":{"name":"supplement_year","atom":560}},{"Str":{"pattern":")"}},{"Sequence":{"atoms":[551,552,558,561,562]}},{"Repetition":{"atom":550,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":565,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[511,512,513,536,564,566]}},{"Entity":{"atom":593}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":581}},{"Entity":{"atom":150}},{"Entity":{"atom":39}},{"Repetition":{"atom":574,"min":1,"max":null,"tag":"Repetition"}},{"Repetition":{"atom":575,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":12}},{"Entity":{"atom":39}},{"Repetition":{"atom":578,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[573,576,577,579]}},{"Named":{"name":"series","atom":580}},{"Entity":{"atom":191}},{"Alternative":{"atoms":[572,582]}},{"Entity":{"atom":302}},{"Repetition":{"atom":584,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":5}},{"Entity":{"atom":535}},{"Entity":{"atom":549}},{"Entity":{"atom":563}},{"Repetition":{"atom":589,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":591,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[569,570,571,583,585,586,587,588,590,592]}},{"Alternative":{"atoms":[167,568]}},{"Named":{"name":"base","atom":594}},{"Entity":{"atom":5}},{"Entity":{"atom":535}},{"Entity":{"atom":549}},{"Entity":{"atom":563}},{"Repetition":{"atom":599,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":601,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[595,596,597,598,600,602]}},{"Entity":{"atom":615}},{"Entity":{"atom":567}},{"Named":{"name":"base","atom":605}},{"Str":{"pattern":"/"}},{"Named":{"name":"supplement_slash","atom":607}},{"Entity":{"atom":535}},{"Entity":{"atom":549}},{"Entity":{"atom":563}},{"Repetition":{"atom":611,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":613,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[606,608,609,610,612,614]}},{"Entity":{"atom":567}},{"Entity":{"atom":593}},{"Alternative":{"atoms":[166,604,616,617]}},{"Entity":{"atom":623}},{"Entity":{"atom":482}},{"Entity":{"atom":106}},{"Repetition":{"atom":621,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[620,622]}},{"Entity":{"atom":628}},{"Entity":{"atom":507}},{"Entity":{"atom":106}},{"Repetition":{"atom":626,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[625,627]}},{"Entity":{"atom":633}},{"Entity":{"atom":341}},{"Entity":{"atom":106}},{"Repetition":{"atom":631,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[630,632]}},{"Entity":{"atom":661}},{"Entity":{"atom":658}},{"Entity":{"atom":640}},{"Str":{"pattern":"Resolution"}},{"Str":{"pattern":"Res."}},{"Alternative":{"atoms":[637,638]}},{"Named":{"name":"resolution_marker","atom":639}},{"Entity":{"atom":5}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":649}},{"Entity":{"atom":271}},{"Entity":{"atom":156}},{"Repetition":{"atom":647,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[646,648]}},{"Sequence":{"atoms":[636,641,642,643,644,645]}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":640}},{"Entity":{"atom":5}},{"Entity":{"atom":649}},{"Sequence":{"atoms":[651,652,653,654,655,656]}},{"Alternative":{"atoms":[650,657]}},{"Entity":{"atom":106}},{"Repetition":{"atom":659,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[635,660]}},{"Entity":{"atom":672}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":41}},{"Entity":{"atom":36}},{"Str":{"pattern":"HDB"}},{"Named":{"name":"handbook_marker","atom":668}},{"Entity":{"atom":156}},{"Repetition":{"atom":670,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[663,664,665,666,667,669,671]}},{"Entity":{"atom":687}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":41}},{"Entity":{"atom":240}},{"Str":{"pattern":"/"}},{"Entity":{"atom":39}},{"Repetition":{"atom":680,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"study_group","atom":681}},{"Sequence":{"atoms":[679,682]}},{"Str":{"pattern":":"}},{"Named":{"name":"question_colon","atom":684}},{"Repetition":{"atom":685,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[674,675,676,677,678,683,686]}},{"Entity":{"atom":713}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":191}},{"Entity":{"atom":36}},{"Str":{"pattern":"["}},{"Named":{"name":"bracketed","atom":694}},{"Entity":{"atom":705}},{"Entity":{"atom":41}},{"Str":{"pattern":"/BL"}},{"Named":{"name":"has_bl","atom":698}},{"Repetition":{"atom":699,"min":0,"max":1,"tag":"Maybe"}},{"Str":{"pattern":"/"}},{"Entity":{"atom":39}},{"Repetition":{"atom":702,"min":1,"max":null,"tag":"Repetition"}},{"Named":{"name":"study_group","atom":703}},{"Sequence":{"atoms":[697,700,701,704]}},{"Str":{"pattern":"]"}},{"Sequence":{"atoms":[695,696,706]}},{"Entity":{"atom":705}},{"Alternative":{"atoms":[707,708]}},{"Str":{"pattern":":"}},{"Named":{"name":"question_colon","atom":710}},{"Repetition":{"atom":711,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[689,690,691,692,693,709,712]}},{"Entity":{"atom":734}},{"Entity":{"atom":21}},{"Str":{"pattern":"R"}},{"Named":{"name":"sector","atom":716}},{"Entity":{"atom":5}},{"Str":{"pattern":"RR"}},{"Named":{"name":"radio_regulations","atom":719}},{"Entity":{"atom":68}},{"Entity":{"atom":12}},{"Entity":{"atom":39}},{"Repetition":{"atom":723,"min":4,"max":4,"tag":"Repetition"}},{"Named":{"name":"year","atom":724}},{"Sequence":{"atoms":[722,725]}},{"Alternative":{"atoms":[721,726]}},{"Repetition":{"atom":727,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":729,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":732}},{"Re":{"pattern":"[\\x00-\\u{10ffff}]"}},{"Lookahead":{"atom":731,"positive":false}},{"Sequence":{"atoms":[715,717,718,720,728,730,733]}},{"Entity":{"atom":759}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":351}},{"Repetition":{"atom":739,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":191}},{"Entity":{"atom":36}},{"Entity":{"atom":271}},{"Entity":{"atom":281}},{"Repetition":{"atom":744,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":297}},{"Entity":{"atom":416}},{"Repetition":{"atom":747,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":302}},{"Repetition":{"atom":749,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":308}},{"Repetition":{"atom":751,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":328}},{"Repetition":{"atom":753,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":156}},{"Repetition":{"atom":755,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":757,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[736,737,738,740,741,742,743,745,746,748,750,752,754,756,758]}},{"Entity":{"atom":771}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":191}},{"Str":{"pattern":"-C"}},{"Named":{"name":"contribution_marker","atom":765}},{"Entity":{"atom":41}},{"Entity":{"atom":240}},{"Entity":{"atom":106}},{"Repetition":{"atom":769,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[761,762,763,764,766,767,768,770]}},{"Entity":{"atom":776}},{"Entity":{"atom":466}},{"Entity":{"atom":106}},{"Repetition":{"atom":774,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[773,775]}},{"Entity":{"atom":791}},{"Entity":{"atom":21}},{"Entity":{"atom":27}},{"Entity":{"atom":5}},{"Entity":{"atom":271}},{"Entity":{"atom":297}},{"Entity":{"atom":308}},{"Repetition":{"atom":783,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":328}},{"Repetition":{"atom":785,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":156}},{"Repetition":{"atom":787,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":789,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[778,779,780,781,782,784,786,788,790]}},{"Entity":{"atom":815}},{"Entity":{"atom":27}},{"Entity":{"atom":12}},{"Str":{"pattern":"REC"}},{"Entity":{"atom":12}},{"Entity":{"atom":191}},{"Entity":{"atom":36}},{"Entity":{"atom":271}},{"Entity":{"atom":143}},{"Entity":{"atom":810}},{"Entity":{"atom":12}},{"Str":{"pattern":"I"}},{"Str":{"pattern":"S"}},{"Alternative":{"atoms":[803,804]}},{"Entity":{"atom":39}},{"Entity":{"atom":149}},{"Alternative":{"atoms":[806,807]}},{"Lookahead":{"atom":808,"positive":false}},{"Sequence":{"atoms":[802,805,809]}},{"Named":{"name":"id_status","atom":801}},{"Repetition":{"atom":811,"min":0,"max":1,"tag":"Maybe"}},{"Entity":{"atom":106}},{"Repetition":{"atom":813,"min":0,"max":1,"tag":"Maybe"}},{"Sequence":{"atoms":[793,794,795,796,797,798,799,800,812,814]}},{"Alternative":{"atoms":[2,164,165,619,624,629,634,662,673,688,714,735,760,772,777,792]}},{"Entity":{"atom":827}},{"Entity":{"atom":5}},{"Str":{"pattern":"|"}},{"Entity":{"atom":5}},{"Entity":{"atom":824}},{"Re":{"pattern":"[\\x01-\\x7b]"}},{"Re":{"pattern":"[\\x7d-\\u{10ffff}]"}},{"Alternative":{"atoms":[822,823]}},{"Repetition":{"atom":821,"min":1,"max":null,"tag":"Repetition"}},{"Sequence":{"atoms":[818,819,820,825]}},{"Named":{"name":"common_text_twin","atom":826}},{"Sequence":{"atoms":[1,817]}},{"Entity":{"atom":816}},{"Alternative":{"atoms":[0,829]}}],"root":830},"bindings":[{"capture":"sector","path":"sector","type":"string","card":null,"preprocess":null},{"capture":"series","path":"series","type":"string","card":null,"preprocess":null},{"capture":"series_word","path":"series_word","type":"string","card":null,"preprocess":null},{"capture":"number","path":"number","type":"string","card":null,"preprocess":null},{"capture":"subseries","path":"subseries","type":"string","card":null,"preprocess":null},{"capture":"series_suffix","path":"series_suffix","type":"string","card":null,"preprocess":null},{"capture":"series_suffix_spaced","path":"series_suffix_spaced","type":"string","card":null,"preprocess":null},{"capture":"qualifier","path":"qualifier","type":"string","card":null,"preprocess":null},{"capture":"qualifier_spaced","path":"qualifier_spaced","type":"string","card":null,"preprocess":null},{"capture":"year","path":"year","type":"string","card":null,"preprocess":null},{"capture":"month","path":"month","type":"string","card":null,"preprocess":null},{"capture":"day","path":"day","type":"string","card":null,"preprocess":null},{"capture":"roman_month","path":"roman_month","type":"string","card":null,"preprocess":null},{"capture":"language","path":"language","type":"string","card":null,"preprocess":null},{"capture":"attachment","path":"attachment","type":"string","card":null,"preprocess":null},{"capture":"range_end","path":"range_end","type":"string","card":null,"preprocess":null},{"capture":"part","path":"parts[].part","type":"string","card":null,"preprocess":null},{"capture":"imp_marker","path":"imp_marker","type":"string","card":null,"preprocess":null},{"capture":"version","path":"version","type":"string","card":null,"preprocess":null},{"capture":"series_dash","path":"series_dash","type":"string","card":null,"preprocess":null},{"capture":"combined","path":"combined","type":"raw","card":null,"preprocess":null},{"capture":"technical","path":"technical","type":"string","card":null,"preprocess":null},{"capture":"supplement_type","path":"supplement_type","type":"string","card":null,"preprocess":null},{"capture":"supplement_space","path":"supplement_space","type":"string","card":null,"preprocess":null},{"capture":"supplement_number","path":"supplement_number","type":"string","card":null,"preprocess":null},{"capture":"supplement_month","path":"supplement_month","type":"string","card":null,"preprocess":null},{"capture":"supplement_year","path":"supplement_year","type":"string","card":null,"preprocess":null},{"capture":"base","path":"base","type":"raw","card":null,"preprocess":null},{"capture":"annex_number","path":"annex_number","type":"string","card":null,"preprocess":null},{"capture":"appendix_number","path":"appendix_number","type":"string","card":null,"preprocess":null},{"capture":"appendix_material","path":"appendix_material","type":"string","card":null,"preprocess":null},{"capture":"supplement_slash","path":"supplement_slash","type":"string","card":null,"preprocess":null},{"capture":"report_marker","path":"report_marker","type":"string","card":null,"preprocess":null},{"capture":"resolution_marker","path":"resolution_marker","type":"string","card":null,"preprocess":null},{"capture":"_op_bull","path":"_op_bull","type":"string","card":null,"preprocess":null},{"capture":"contribution_marker","path":"contribution_marker","type":"string","card":null,"preprocess":null},{"capture":"handbook_marker","path":"handbook_marker","type":"string","card":null,"preprocess":null},{"capture":"study_group","path":"study_group","type":"string","card":null,"preprocess":null},{"capture":"has_bl","path":"has_bl","type":"string","card":null,"preprocess":null},{"capture":"bracketed","path":"bracketed","type":"string","card":null,"preprocess":null},{"capture":"question_colon","path":"question_colon","type":"string","card":null,"preprocess":null},{"capture":"common_text_twin","path":"common_text_twin","type":"string","card":null,"preprocess":null},{"capture":"annex_to","path":"annex_to","type":"raw","card":null,"preprocess":null},{"capture":"radio_regulations","path":"radio_regulations","type":"string","card":null,"preprocess":null}]}},"preprocess":{},"tables":{},"lint":{"order_warnings":["rule non_pipe: branches 1 and 2 are order-dependent (first set not statically known)","rule series_suffix_word: branches 3 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule base_report: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule base_resolution: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule base: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule base: branches 1 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule base: branches 1 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule base: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule base: branches 2 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule base: branches 3 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule supplement_identifier: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule supplement_identifier: branches 1 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule supplement_identifier: branches 1 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule supplement_identifier: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule supplement_identifier: branches 2 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule supplement_identifier: branches 3 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 3 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 3 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 3 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 3 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 4 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 4 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 4 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 5 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 5 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 6 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 8 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 8 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 8 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 9 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 9 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule roman_month: branches 10 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule ob_date: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule special_publication: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule identifier: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 2 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 4 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 3 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 5 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 4 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 6 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 5 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 7 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 6 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 8 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 7 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 8 and 9 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 8 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 8 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 8 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 8 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 8 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 8 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 8 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 9 and 10 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 9 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 9 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 9 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 9 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 9 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 9 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 10 and 11 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 10 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 10 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 10 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 10 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 10 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 11 and 12 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 11 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 11 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 11 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 11 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 12 and 13 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 12 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 12 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 12 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 13 and 14 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 13 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 13 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 14 and 15 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 14 and 16 are order-dependent (shared first bytes; ordered choice is decisive)","rule itu_identifier: branches 15 and 16 are order-dependent (shared first bytes; ordered choice is decisive)"]},"default_entry":"identifier","render":{},"derive":{},"tests":[{"entry":"identifier","kind":"accept","input":"ITU-R BT.500","expect":{}},{"entry":"identifier","kind":"accept","input":"Recommendation ITU-T G.650.1 (09/2020)","expect":{}},{"entry":"identifier","kind":"accept","input":"ITU-R SA.3631 Annex A","expect":{}},{"entry":"identifier","kind":"accept","input":"ITU-T OB.101 (2016)","expect":{}},{"entry":"identifier","kind":"accept","input":"Annex to ITU-T OB.101","expect":{}},{"entry":"identifier","kind":"accept","input":"ITU-T E.164/2","expect":{}},{"entry":"identifier","kind":"accept","input":"ITU-T 55/13:","expect":{}},{"entry":"identifier","kind":"accept","input":"ITU-T G.984.2 Amd. 1 (2010)","expect":{}},{"entry":"identifier","kind":"accept","input":"ITU-T G.650.1B","expect":{}},{"entry":"identifier","kind":"reject","input":"nonsense","expect":{}}],"docs":{},"source":"# Port of lib/pubid/itu/parser.rb — ITU-T/R/D designations: series codes\n# (BT/G/V, SGnn), Imp implementation codes, OB Operational Bulletins,\n# Reports, Study Group questions (numeric and bracketed series form),\n# supplements (Suppl./Amd./Add./Err./Cor. with Technical marker), Annex\n# and App. wraps, combined \"/XX.N\" designations, and the \"| twin\"\n# common-text form. Internal rule `itu_identifier` corresponds to the\n# source's `identifier` (renamed: PG forbids self-reference from the\n# common-text wrapper).\n#\n# Edition-2 conversion. Deviations from the v1 tree:\n# - every leaf capture body is written out at its site so it lowers to\n# one scalar span: edition 2 materializes bare refs to capture-less\n# composite rules as named nodes (the asme/cie/bsi inlining rule), so\n# `digits`, `yyyymm_year`, `yyyymm_month`, `roman`, `annex_label` and\n# `non_pipe` are spelled out at every capture site, and `letter` (a\n# ref to `upper`) is spelled as its class — a ref chain inside a\n# capture breaks the span lowering. Literal alternations\n# (series_suffix_word, the sector/language/roman_month words) and\n# refs to capture-bearing rules (`number`, `series`, `question_tail`)\n# stay refs and bind as spans.\n# - the builder keeps its v1 wrapper walks (`base` recursion for\n# annex/appendix/supplement chains, `combined` ->\n# `designation` elements, `parts` -> `part` hashes), so `base`,\n# `annex_to` and `combined` bind uncast with (raw) and `part` binds\n# through the array (`part -> parts[].part (string)`). The inner\n# `designation` capture is deliberately unbound: it rides inside the\n# raw `combined` array exactly as the v1 tree delivered it.\n# - presence markers keep their captured-token shape (the captured\n# space of `supplement_space`/`qualifier_spaced`, the \"/BL\" of\n# `has_bl`, the \"[\" of `bracketed`), so the builder's nil? checks\n# keep their meaning; every optional capture is spelled\n# `[ (group) as x ]` so non-participation omits the key on every\n# engine.\n\ngrammar PubidItu version \"0.1.0\" edition 2 {\n digit = %x30-39\n upper = %x41-5A\n lower = %x61-7A\n letter = upper\n digits = 1*digit\n space = \" \"\n dash = \"-\"\n dot = \".\"\n non_pipe = %x01-7B / %x7D-10FFFF\n\n itu_prefix = (\"Recommendation \" \"ITU\" (dash / space)) / (\"ITU\" (dash / space))\n sector = (\"R\" / \"T\" / \"D\") as sector\n series = ((\"SG\" 1*digit) / (1*3upper)) as series\n series_group = (upper [1*digit] dash 1*digit) as series\n series_word = space \"series\" as series_word\n number = (1*digit) as number\n subseries = dot (1*digit) as subseries\n series_suffix_word = \"bis\" / \"ter\" / \"quater\" / \"quarter\"\n series_suffix = (series_suffix_word) as series_suffix\n series_suffix_spaced = (space as series_suffix_spaced) ((series_suffix_word) as series_suffix)\n qualifier_letter = ((%x41-52 / %x61-72) as qualifier !(upper / lower / digit))\n qualifier_glued = qualifier_letter\n qualifier_spaced = (space as qualifier_spaced) qualifier_letter\n yyyymm_year = (\"19\" / \"20\") digit digit\n yyyymm_month = (\"0\" %x31-39) / (\"1\" %x30-32)\n yyyymm_shape = yyyymm_year yyyymm_month !digit\n yyyymm_date = dash ((\"19\" / \"20\") digit digit) as year ((\"0\" %x31-39) / (\"1\" %x30-32)) as month !digit\n id_status = dash (\"I\" / \"S\") !(digit / letter)\n print_id_status = dash \"I\" !(digit / letter)\n id_date = yyyymm_date [print_id_status]\n document_date = (date_part / id_date)\n rec_word = (\"REC\" (space / dash))\n publication_id = sector dash \"REC\" dash series dot code yyyymm_date [id_status] [language]\n code_suffixes = [series_suffix_spaced] [qualifier_spaced]\n attachment = space \"attachment\" as attachment\n range_end = dash ((1*3upper dot 1*digit) as range_end)\n part = dash !yyyymm_shape (1*digit) as part\n parts = (*part) as parts\n code = imp_code / standard_code\n standard_code = number [series_suffix] [subseries] parts [qualifier_glued]\n imp_code = \"Imp\" as imp_marker (((1*digit) / (1*3upper)) as number) [subseries] parts\n date_part = space \"(\" [((1*digit) as month \"/\")] ((4digit) as year) \")\"\n version_part = space (((\"(V\" 1*digit as version \")\") / ((\"V\" / \"v\") [dot] 1*digit as version)))\n language = dash ((\"E\" / \"F\" / \"A\" / \"S\" / \"C\" / \"R\") as language)\n\n # The combined-designation tail repeats the code-suffix shapes under\n # d_* capture names: a capture name occurring at two structural depths\n # pairs into ONE top-level bound key (last occurrence wins; array\n # bindings concatenate), so the shared number/subseries/parts/suffix/\n # qualifier names would corrupt the primary's Code with the\n # designation's tail. series and number stay shared — the primary\n # always carries them first.\n d_number = (1*digit) as d_number\n d_subseries = dot (1*digit) as d_subseries\n d_part = dash !yyyymm_shape (1*digit) as d_part\n d_parts = (*d_part) as d_parts\n d_series_suffix = (series_suffix_word) as d_series_suffix\n d_series_suffix_spaced = (space as d_series_suffix_spaced) ((series_suffix_word) as d_series_suffix)\n d_qualifier_letter = ((%x41-52 / %x61-72) as d_qualifier !(upper / lower / digit))\n d_qualifier_glued = d_qualifier_letter\n d_qualifier_spaced = (space as d_qualifier_spaced) d_qualifier_letter\n\n combined_designation = \"/\" ((series dot d_number [d_subseries] d_parts [d_qualifier_glued] [d_series_suffix_spaced] [d_qualifier_spaced]) as designation)\n combined_suffixes = (1*combined_designation) as combined\n\n technical_marker = \"Technical\" as technical space\n supplement_type = ((\"Suppl.\" / \"Suppl\" / \"Amd.\" / \"Amd\" / \"Add.\" / \"Add\" / \"Err.\" / \"Err\") as supplement_type) / (([technical_marker] (\"Cor.\" / \"Cor\") as supplement_type))\n supplement_number = ([space as supplement_space]) ((1*digit *(dot 1*digit)) as supplement_number)\n supplement_date = space \"(\" [((1*digit) as supplement_month \"/\")] ((4digit) as supplement_year) \")\"\n\n base_with_series = {\n itu_prefix sector space\n [rec_word]\n series dot code\n [range_end]\n code_suffixes\n [combined_suffixes]\n [series_word]\n [attachment]\n [version_part]\n [document_date]\n }\n base_without_series = {\n itu_prefix sector space\n code\n code_suffixes\n [attachment]\n [version_part]\n [document_date]\n }\n series_code_body = {\n !(\"OB\" dash)\n ((2*upper) as series)\n (dash as series_dash)\n (((1*digit) / (1*upper)) as number)\n parts\n }\n contribution = {\n itu_prefix sector space\n series\n (\"-C\" as contribution_marker)\n number\n parts\n [language]\n }\n base_series_code = {\n itu_prefix sector space\n series_code_body\n [version_part]\n [document_date]\n }\n series_code_identifier = base_series_code [language]\n report_word = \"Report\" as report_marker\n report_body = {\n !(\"OB\" dot)\n [(series dot)]\n code\n [range_end]\n code_suffixes\n [series_word]\n [attachment]\n [version_part]\n [document_date]\n }\n base_report = {\n (report_word space itu_prefix sector space report_body)\n / (itu_prefix sector space report_word space report_body)\n }\n report_identifier = base_report [language]\n # ITU-R Resolution (\"Resolution ITU-R 1-9 (2023)\"): a number and its\n # revision, never a series. Like the Report marker, the word is captured,\n # and both the leading and the infix spelling are accepted.\n resolution_word = (\"Resolution\" / \"Res.\") as resolution_marker\n resolution_body = {\n code\n [document_date]\n }\n base_resolution = {\n (resolution_word space itu_prefix sector space resolution_body)\n / (itu_prefix sector space resolution_word space resolution_body)\n }\n resolution_identifier = base_resolution [language]\n base = base_report / base_with_series / base_without_series / base_series_code\n\n annex_label = upper [1*digit] [\"+\"]\n annex_body = {\n (base as base)\n space \"Annex\" space\n ((upper [1*digit] [\"+\"])) as annex_number\n [document_date]\n }\n annex_identifier = annex_body [language]\n roman = 1*(%x49 / %x56 / %x58)\n appendix_material = space ((\"test vectors\" / \"Software\") as appendix_material)\n appendix_body = {\n (base as base)\n space \"App.\" [space]\n (1*(%x49 / %x56 / %x58)) as appendix_number\n [appendix_material]\n [document_date]\n }\n appendix_identifier = appendix_body [language]\n\n supplement_with_base = {\n ((annex_body as base) / (appendix_body as base) / (base as base))\n space supplement_type\n supplement_number\n [supplement_date]\n [language]\n }\n chained_supplement = {\n ((supplement_with_base / supplement_series_only) as base)\n space supplement_type\n supplement_number\n [supplement_date]\n [language]\n }\n supplement_series_only = {\n itu_prefix sector space\n (series_group / series)\n [series_word]\n space supplement_type\n supplement_number\n [supplement_date]\n [language]\n }\n slash_chained_supplement = {\n ((supplement_with_base) as base)\n (\"/\" as supplement_slash)\n supplement_type\n supplement_number\n [supplement_date]\n [language]\n }\n supplement_identifier = chained_supplement / slash_chained_supplement / supplement_with_base / supplement_series_only\n\n with_series = {\n itu_prefix sector space\n [rec_word]\n series dot code\n [range_end]\n code_suffixes\n [combined_suffixes]\n [series_word]\n [attachment]\n [version_part]\n [document_date]\n [language]\n }\n without_series = {\n itu_prefix sector space\n code\n code_suffixes\n [attachment]\n [version_part]\n [document_date]\n [language]\n }\n\n roman_month = \"XII\" / \"XI\" / \"IX\" / \"VIII\" / \"VII\" / \"VI\" / \"V\" / \"IV\" / \"III\" / \"II\" / \"I\"\n ob_roman_date = \" - \" (2digit) as day dot (roman_month as roman_month) dot (4digit) as year\n ob_date = (date_part / ob_roman_date)\n ob_series = \"OB\" as series\n ob_dot_body = dot number\n ob_no_body = space \"No.\" space number\n ob_bare_body = space number\n ob_with_sector = {\n itu_prefix\n [(sector space)]\n ob_series\n (ob_dot_body / ob_no_body / ob_bare_body)\n [ob_date]\n [language]\n }\n ob_long_form = {\n itu_prefix\n [(sector space)]\n \"Operational Bulletin\" as _op_bull\n space \"No.\" space number\n [document_date]\n [language]\n }\n special_publication = ob_with_sector / ob_long_form\n annex_to_identifier = \"Annex to\" space (special_publication as annex_to)\n handbook = {\n itu_prefix sector space\n number dot \"HDB\" as handbook_marker\n [document_date]\n }\n numeric_question = {\n itu_prefix sector space\n number parts\n ((\"/\" (1*digit) as study_group))\n [(\":\" as question_colon)]\n }\n question_tail = number [(\"/BL\" as has_bl)] \"/\" (1*digit) as study_group\n letter_question = {\n itu_prefix sector space\n series dot\n (((\"[\" as bracketed) question_tail \"]\") / question_tail)\n [(\":\" as question_colon)]\n }\n common_text_twin = (space \"|\" space (1*non_pipe)) as common_text_twin\n\n identifier = common_text_identifier / itu_identifier\n any_char = %x00-10FFFF\n radio_regulations = {\n itu_prefix\n (\"R\") as sector\n space \"RR\" as radio_regulations\n [(date_part / (dash (4digit) as year))]\n [language]\n !any_char\n }\n itu_identifier = {\n annex_to_identifier\n / special_publication\n / supplement_identifier\n / annex_identifier\n / appendix_identifier\n / report_identifier\n / resolution_identifier\n / handbook\n / numeric_question\n / letter_question\n / radio_regulations\n / with_series\n / contribution\n / series_code_identifier\n / without_series\n / publication_id\n }\n common_text_identifier = itu_identifier common_text_twin\n\n entry identifier: identifier\n\n bindings identifier {\n sector -> sector (string)\n series -> series (string)\n series_word -> series_word (string)\n number -> number (string)\n subseries -> subseries (string)\n series_suffix -> series_suffix (string)\n series_suffix_spaced -> series_suffix_spaced (string)\n qualifier -> qualifier (string)\n qualifier_spaced -> qualifier_spaced (string)\n year -> year (string)\n month -> month (string)\n day -> day (string)\n roman_month -> roman_month (string)\n language -> language (string)\n attachment -> attachment (string)\n range_end -> range_end (string)\n part -> parts[].part (string)\n imp_marker -> imp_marker (string)\n version -> version (string)\n series_dash -> series_dash (string)\n combined -> combined (raw)\n technical -> technical (string)\n supplement_type -> supplement_type (string)\n supplement_space -> supplement_space (string)\n supplement_number -> supplement_number (string)\n supplement_month -> supplement_month (string)\n supplement_year -> supplement_year (string)\n base -> base (raw)\n annex_number -> annex_number (string)\n appendix_number -> appendix_number (string)\n appendix_material -> appendix_material (string)\n supplement_slash -> supplement_slash (string)\n report_marker -> report_marker (string)\n resolution_marker -> resolution_marker (string)\n _op_bull -> _op_bull (string)\n contribution_marker -> contribution_marker (string)\n handbook_marker -> handbook_marker (string)\n study_group -> study_group (string)\n has_bl -> has_bl (string)\n bracketed -> bracketed (string)\n question_colon -> question_colon (string)\n common_text_twin -> common_text_twin (string)\n annex_to -> annex_to (raw)\n radio_regulations -> radio_regulations (string)\n }\n\n test {\n accept \"ITU-R BT.500\"\n accept \"Recommendation ITU-T G.650.1 (09/2020)\"\n accept \"ITU-R SA.3631 Annex A\"\n accept \"ITU-T OB.101 (2016)\"\n accept \"Annex to ITU-T OB.101\"\n accept \"ITU-T E.164/2\"\n accept \"ITU-T 55/13:\"\n accept \"ITU-T G.984.2 Amd. 1 (2010)\"\n accept \"ITU-T G.650.1B\"\n reject \"nonsense\"\n }\n}\n","source_hash":"cfea5bc964d9f577ca5904520085a0d4fabbe2ad571abf049c6848511a78e695","unicode_tables":"onigmo (Ruby 3.4.10)","compiler_version":"1.5.1.0","edition":2,"semantics_hash":"sha256:0bc8fc15fca0a1874b93cd0afbf9362563933f595bcd0e1bdc36d9d76eb0e126","checksum":"sha256:b5de8fc025d436ad66ec9e9424853648d1781abe8374f388b4edcd8e7a34483a","validated":{"lint_errors":0,"lint_warnings":141,"tests_total":10,"tests_failures":0,"self_test":true},"byte_checksum":"sha256:c012bfd9181c3599d60ac11d735f25accfb8fbc23eec2d83cc50526f56cba9d9"}
@@ -12,6 +12,7 @@ flavor, whose `Relaton::Db` cache keys on this pubid.
12
12
  | Official Journal long form | `Regulation (EU) No 1227/2011`, `Directive 2010/75/EU` | canonical; sets `family` |
13
13
  | CELEX | `32011R1227`, `CELEX 32011R1227`, `CELEX:32011R1227` | canonical |
14
14
  | ELI | `http(s)://data.europa.eu/eli/reg/2011/1227[/oj]` | canonical |
15
+ | ELI with a subtype | `http://data.europa.eu/eli/reg_impl/2016/1356/oj` | canonical; sets `subtype` |
15
16
 
16
17
  `#to_celex` and `#to_eli` give the two official identifiers back. `to_urn`
17
18
  (`urn:eu:reg:2011:1227`) is pubid-invented: the EU has no URN namespace.
@@ -55,6 +56,38 @@ Commission act). From 2015 every act prints `<year>/<number>`.
55
56
  0 is rejected. The bracketed family and the suffixed one are separate
56
57
  captures; two different ones (`Regulation (EU) No 1227/2011/EC`) raise.
57
58
 
59
+ ## ELI type subtypes are not identity
60
+
61
+ CELLAR gives sector-3 works the ELI segments `<type>_<subtype>` with the
62
+ subtypes `impl` (implementing), `del` (delegated) and `financ` (financial
63
+ regulation): `reg_impl` 14,782 works, `dec_impl` 5,358, `reg_del` 2,975
64
+ (counts 2026-11-18, relaton/relaton#44). Such an act shares the numbering of
65
+ its type — the Official Journal cites `Commission Implementing Regulation
66
+ (EU) 2016/1356` — so it parses as the base type and the subtype goes in the
67
+ `subtype` attribute. `subtype` is `equality_ignored` and a URN facet, so
68
+ `EU Regulation 2016/1356` equals the `reg_impl` ELI. `#to_eli` reads it and
69
+ gives the ELI back; `to_s`, `to_celex`, `to_urn` and the MR string do not.
70
+
71
+ `Identifier.parse` removes the `_<subtype>` with `ELI_SUBTYPE` before the
72
+ baked grammar, which knows only `reg`/`dir`/`dec` (the BSI/IETF Ruby-side
73
+ strip). So `data/parg/eu.json` did not change. Only a subtype listed for
74
+ its type in `ELI_SUBTYPES` is removed (`financ` only on `reg`, as CELLAR
75
+ gives it); `reg_foo` and `dir_financ` stay in the input and fail in the
76
+ grammar. When the grammar rejects a stripped input, the `ParseError` is
77
+ raised again with the caller's `input`; its message names the stripped text,
78
+ because the reported position is in that text. `subtype` is not validated on
79
+ `new`/`from_hash`, as `family` is not.
80
+
81
+ ## A CELEX number is read by convention
82
+
83
+ The CELEX sequence number is CELLAR's own, and it is not always the act
84
+ number: `32016D0002` is ECB `Decision (EU) 2016/245`. The CELEX parse takes
85
+ the sequence number as the act number, so it reads `32016D0002` as
86
+ `EU Decision 2016/2`, and `#to_celex` gives `32016D0245` for Decision
87
+ 2016/245. Both are the *conventional* CELEX, right only when CELLAR numbered
88
+ the work with the act number. Key an act by its ELI, not by `#to_celex`
89
+ (relaton does so). CELEX parsing stays, because callers use it.
90
+
58
91
  ## Identity and matching
59
92
 
60
93
  Identity is the leaf class, `date` (year) and `number` (leading CELEX zeros
@@ -27,12 +27,15 @@ module Pubid
27
27
  # One parsed act before it becomes an identifier.
28
28
  Act = Struct.new(:klass, :year, :number, :number_first)
29
29
 
30
- def self.build(data, input = nil)
31
- new(input).build(data)
30
+ # @param subtype [String, nil] the ELI type subtype that
31
+ # Identifier.parse removed before the grammar ("impl", "del" …)
32
+ def self.build(data, input = nil, subtype: nil)
33
+ new(input, subtype).build(data)
32
34
  end
33
35
 
34
- def initialize(input)
36
+ def initialize(input, subtype = nil)
35
37
  @input = input
38
+ @subtype = subtype
36
39
  end
37
40
 
38
41
  # Which of two printed numbers is the year, when the input has no
@@ -61,17 +64,28 @@ module Pubid
61
64
  number = strip_zeros(act.number)
62
65
  fail!("number 0") if number == "0"
63
66
 
64
- id = Identifiers.const_get(act.klass).new(
65
- number: number,
66
- date: ::Pubid::Components::Date.new(year: act.year),
67
- family: family(data),
68
- )
67
+ id = Identifiers.const_get(act.klass)
68
+ .new(**attributes(act, number, data))
69
69
  keep_order(id, act.number_first)
70
70
  end
71
71
 
72
72
  private
73
73
 
74
+ def attributes(act, number, data)
75
+ {
76
+ number: number,
77
+ date: ::Pubid::Components::Date.new(year: act.year),
78
+ family: family(data),
79
+ subtype: @subtype,
80
+ }
81
+ end
82
+
74
83
  # CELEX and ELI: the year and the number have fixed places.
84
+ #
85
+ # A CELEX number is read by convention: its sequence number is taken
86
+ # as the act number. CELLAR numbers most works so, but not all of them
87
+ # (32016D0002 is ECB Decision 2016/245, and this reads it as Decision
88
+ # 2016/2). See Identifier#to_celex.
75
89
  def positional(data)
76
90
  klass = if data[:celex_letter]
77
91
  TYPES_BY_CELEX.fetch(data[:celex_letter])
@@ -22,6 +22,29 @@ module Pubid
22
22
  # CELEX number 32013D1082 name one act.
23
23
  equality_ignored :number_first
24
24
 
25
+ # The ELI type subtype: "impl" (implementing act), "del" (delegated
26
+ # act) or "financ" (financial regulation), from an ELI such as
27
+ # http://data.europa.eu/eli/reg_impl/2016/1356/oj. Such an act shares
28
+ # the numbering of its type (the Official Journal cites it as
29
+ # "Commission Implementing Regulation (EU) 2016/1356"), so the subtype
30
+ # is not identity: "EU Regulation 2016/1356" is the same act. #to_eli
31
+ # reads it to give the ELI back.
32
+ attribute :subtype, :string
33
+ equality_ignored :subtype
34
+
35
+ # The subtypes CELLAR gives each ELI type: implementing and delegated
36
+ # acts of every type, and the financial regulation.
37
+ ELI_SUBTYPES = {
38
+ "reg" => %w[impl del financ],
39
+ "dir" => %w[impl del],
40
+ "dec" => %w[impl del],
41
+ }.freeze
42
+
43
+ # The subtype of an ELI input, removed before the baked grammar (which
44
+ # knows only reg/dir/dec), as BSI and IETF strip their prefixes.
45
+ ELI_SUBTYPE =
46
+ %r{\A(https?://data\.europa\.eu/eli/(reg|dir|dec))_([a-z]+)/}
47
+
25
48
  EU_TYPE_MAP = {
26
49
  "pubid:eu:regulation" => "Pubid::Eu::Identifiers::Regulation",
27
50
  "pubid:eu:directive" => "Pubid::Eu::Identifiers::Directive",
@@ -34,6 +57,7 @@ module Pubid
34
57
  map "date", to: :date
35
58
  map "family", to: :family
36
59
  map "number_first", to: :number_first
60
+ map "subtype", to: :subtype
37
61
  end
38
62
 
39
63
  PUBLISHER = "EU"
@@ -71,14 +95,25 @@ module Pubid
71
95
  [PUBLISHER]
72
96
  end
73
97
 
74
- # The CELEX number: sector 3, year, type letter, number padded to 4.
98
+ # The conventional CELEX number: sector 3, year, type letter, number
99
+ # padded to 4 (EU Regulation 1227/2011 -> 32011R1227).
100
+ #
101
+ # This is the CELEX of the act only when CELLAR numbered the work with
102
+ # the act number, which is the usual case but not a rule: the CELEX
103
+ # sequence number is CELLAR's own. ECB Decision (EU) 2016/245 is
104
+ # 32016D0002, and this method gives 32016D0245 for it. Do not use the
105
+ # result as a CELLAR key; key an act by its ELI (#to_eli).
106
+ #
107
+ # @return [String]
75
108
  def to_celex
76
109
  "3#{year}#{self.class.type[:celex]}#{number.rjust(4, '0')}"
77
110
  end
78
111
 
79
112
  # The ELI of the act as published in the Official Journal.
80
113
  def to_eli
81
- "http://data.europa.eu/eli/#{self.class.type[:eli]}/#{year}/#{number}/oj"
114
+ eli = self.class.type[:eli]
115
+ eli = "#{eli}_#{subtype}" if subtype
116
+ "http://data.europa.eu/eli/#{eli}/#{year}/#{number}/oj"
82
117
  end
83
118
 
84
119
  # The EU has no registered URN namespace (the ELI is its official
@@ -109,9 +144,45 @@ module Pubid
109
144
 
110
145
  identifier = ::Pubid.utf8_input(identifier)
111
146
 
112
- parsed = Pubid::Parg::Model.bound(:eu, identifier)
113
- Builder.build(parsed, identifier)
147
+ parsed, subtype = bound_without_subtype(identifier)
148
+ Builder.build(parsed, identifier, subtype: subtype)
149
+ end
150
+
151
+ # Runs the grammar on the input without its ELI subtype.
152
+ #
153
+ # @return [Array(Hash, String|nil)] the bound captures, and the
154
+ # subtype ("impl" …) or nil
155
+ def self.bound_without_subtype(identifier)
156
+ subtype = eli_subtype(identifier)
157
+ input = subtype ? identifier.sub(ELI_SUBTYPE, '\\1/') : identifier
158
+ [Pubid::Parg::Model.bound(:eu, input), subtype]
159
+ rescue Pubid::Errors::ParseError => e
160
+ raise unless subtype
161
+
162
+ raise subtype_parse_error(e, identifier, input, subtype)
163
+ end
164
+
165
+ # A known subtype of a known ELI type, or nil. An unknown one stays in
166
+ # the input, so the grammar rejects it.
167
+ def self.eli_subtype(identifier)
168
+ match = ELI_SUBTYPE.match(identifier)
169
+ return nil unless match
170
+
171
+ subtype = match[3]
172
+ subtype if ELI_SUBTYPES.fetch(match[2]).include?(subtype)
173
+ end
174
+
175
+ # The grammar saw the input without "_<subtype>"; report what the
176
+ # caller passed (the position in the message is in the shorter text).
177
+ def self.subtype_parse_error(error, identifier, input, subtype)
178
+ Pubid::Errors::ParseError.new(
179
+ "#{error.message} (in #{input.inspect}, the input without " \
180
+ "\"_#{subtype}\")", error.parse_failure_cause,
181
+ input: identifier, flavor: error.flavor
182
+ )
114
183
  end
184
+ private_class_method :eli_subtype, :subtype_parse_error
185
+ private_class_method :bound_without_subtype
115
186
  end
116
187
  end
117
188
  end
@@ -10,10 +10,12 @@ module Pubid
10
10
  #
11
11
  # Every act has a year and a number, so both are the positional core,
12
12
  # year first (the CELEX and ELI order). The legal family is an atom; the
13
- # number-order flag records only the spelling, so it is a facet.
13
+ # number-order flag records only the spelling, and the ELI subtype
14
+ # (reg_impl …) names no other act, so both are facets.
14
15
  PubidUrnSchema = Pubid::PubidUrn.define("eu") do
15
16
  atom "family", "family"
16
17
  facet "number_first", "numberfirst", kind: :bool
18
+ facet "subtype", "subtype"
17
19
 
18
20
  type "pubid:eu:regulation", "reg", core: %w[year number]
19
21
  type "pubid:eu:directive", "dir", core: %w[year number]
@@ -20,6 +20,34 @@ These notes were part of the root `CLAUDE.md`. Read them before you change `lib/
20
20
 
21
21
  - **ITU-R Reports (`Identifiers::Report`) and the class-strict `Identifier#==`**: ITU-R **Reports** are a publication series that numbers **independently** of Recommendations, so `ITU-R BT.2020-1` names *two* real, both-current documents (Report BT.2020-1, objective quality assessment, 2000; Recommendation BT.2020-1, UHDTV parameter values, 06/2014). 984 of 1,001 report records in `relaton-data-itu` were indexed as `pubid:itu:recommendation`, and 52 editions across 30 numbers (BT.2020, M.2083, M.2134 …) collided outright — the dataset keys files by identifier, so whichever was crawled last silently overwrote the other. ITU disambiguates with the leading word, so the identifier must too. **The leaf** `Identifiers::Report` (`_type: pubid:itu:report`) is shaped exactly like `Recommendation` — same attributes, same `StandardSerialization` flat block, so only `_type` distinguishes the two hashes — and adds just `render_base` (`"Report #{super}"`) and `mr_type` (`[super, "report"].join(".")` → `itu.r.report.bt-2020-1`). **Grammar**: a captured `report_word` marker (unlike `itu_prefix`'s decorative, *uncaptured* `"Recommendation "` literal, which stays as it is) plus a single `report_body` whose `(series >> dot).maybe` covers the with- and without-series shapes at once; `base_report` accepts **both** spellings (`Report ITU-R BT.2020-1` and the downstream `ITU-R Report BT.2020-1`), and `to_s` renders ITU's own leading form for either — so the infix spelling lives in `report_spec.rb` with an explicit expectation, **not** in the byte-exact pass fixtures. Two deliberate exclusions from `report_body`: **no `combined_suffixes`** (a joint `Report X/Y` would reach `Builder#build`'s `combined` branch, build a `CombinedIdentifier` and *silently drop the marker* — a clean parse failure is better), and a **`(str("OB") >> dot).absent?` guard** (an Operational Bulletin is cross-bureau; without it `Report ITU-T OB.1` routes to `SpecialPublication`, marker dropped, or trips `validate_ob_no_sector!`, whose `ArgumentError` escapes `Identifier.parse`'s `Parslet::ParseFailed` rescue). `base_report` is **first** in `rule(:base)` — which is what lets a supplement/annex/appendix *wrap* a Report — and order-free there because `itu_prefix` admits only `Recommendation `/`ITU` and `letter` is `[A-Z]`, so neither `series` nor `series_code_body` can consume `Report`; `report_identifier` sits in `rule(:identifier)` **after** supplement/annex/appendix (which match the longer wrapped form) and **before** `with_series`/`without_series` (which would match the infix spelling's `ITU-R` prefix and then fail on the unconsumed tail). The builder picks the class from `data[:report_marker]` in the existing Recommendation fallthrough; `build_supplement`/`build_annex_of_recommendation` need **no** change, since they recurse via `build(data[:base])`. **`Pubid::Itu::Identifier#==` is now class-strict** (`other.instance_of?(self.class)`, the rule `Supplement#==` already used) — the ITU *type* is part of the identity, not just sector/series/number. `self.class` rather than a hard-coded class keeps it **symmetric in both directions** (an `is_a?` guard would have made a Recommendation equal a Report one-way, and `#matches?` — which is `exclude(*ignore) == other.exclude(*ignore)` — resolve one to the other). Strictly stricter, so it can only turn `true` into `false`; it also closes the pre-existing one-way holes against `CombinedIdentifier` and `SpecialPublication`. **Consequences of the shared guard, both pinned by `spec/pubid/itu/type_strict_equality_spec.rb`:** comparisons that used to be *asymmetric* are now consistently false — most notably a bare primary designation vs its joint recommendation (`ITU-T G.780` vs `ITU-T G.780/Y.1351`, which was `true` one way and `false` the other on `main`, so no caller could rely on it either way). A caller matching a bare primary against a joint document must narrow on `root.number` (which still agrees) rather than on `==`. Per the cross-cutting ITU lesson, the marker reaches **all** identity surfaces: `to_s`, `generate_base_urn` (a `report` segment right after the sector — `urn:itu:r:report:BT.2020-1:2000`, which `UrnParser` also reads back), and the MR slug — including **`Supplement#mr_type`**, which is load-bearing and easy to miss: a supplement has no `mr_supplement_suffix`, so the shared MR renderer slugs it **flat** from the sector/series/code `build_supplement` copied up from its base and *never consults the base's class*, which made `Report ITU-R BT.2020-1 Suppl. 1` and `ITU-R BT.2020-1 Suppl. 1` share one slug (i.e. one output filename — the very overwrite this type prevents). It appends `report` when **`root`** is a Report, so a supplement of an *annex* of a Report is covered too. **`PREFIXES` stays `["ITU"]`** — the leading `Report` token is deliberately not registered for prefix routing (a generic English word; the mixin's ambiguous-token exclusion), and the infix spelling routes on `ITU` as before. **Backwards compatibility is exact**: a bare `ITU-R BT.2020-1` still builds a `Recommendation` with an unchanged hash/`to_s`/URN — nothing in the grammar or the builder fires without the marker, so none of the 20,728 published index rows move. Locked by `spec/pubid/itu/identifiers/report_spec.rb`, a `distinctness_spec.rb` pair, rows in `root_number_spec.rb`/`serialization_spec.rb`/`urn_parser_spec.rb`, and `spec/fixtures/itu/identifiers/pass/report.txt`. **Out of scope (relaton's side, sequenced after this):** `DataParserR`/`DataCrawlerR` emitting the new docid form, `Relaton::Itu::Pubid`'s reference parser learning a `report` rule, and the `relaton-data-itu` filename-namespace migration + re-crawl that actually recovers the 34 missing Recommendations and 18 missing Reports. (hand-off: itu-r-report-identifier-type.)
22
22
 
23
+ - **ITU-R Resolutions (`Identifiers::Resolution`, `_type: pubid:itu:resolution`)**:
24
+ `Resolution ITU-R 1-9 (2023)` (ITU page id `R-RES-R.1-9-2023`). Built like
25
+ `Report`: the same flat `StandardSerialization` block, `render_base` adds
26
+ the leading word, `mr_type` adds `resolution` (`itu.r.resolution.1-9`), and
27
+ the URN gets a `resolution` segment (`urn:itu:r:resolution:1-9:2023`),
28
+ which `UrnParser::TYPE_SEGMENTS` reads back. The revision is `code.parts`,
29
+ so `matches?(…, ignore: %i[parts year])` finds every revision and
30
+ `root.number` is the bare number (`1` does not bucket with `10`). Grammar:
31
+ a captured `resolution_word` (`Resolution` or `Res.`), a `resolution_body`
32
+ of `code [document_date]` only — **no series**, so `Resolution ITU-R BT.1`
33
+ fails — and both the leading and the infix spelling (`ITU-R Res. 1-9`),
34
+ which render the leading form (`Pubid.parse` does not route
35
+ `Res. ITU-R 1-9`: no registered prefix and no exact round trip; a spec
36
+ locks this). `resolution_identifier` sits after
37
+ `report_identifier`, before `with_series`. It is **not** in `rule(:base)`:
38
+ no corpus has a wrapped Resolution, so a supplement of one fails to parse
39
+ rather than drop the marker. **The legacy `ITU-R R.1-9`** (the
40
+ relaton-data-itu spelling until the re-crawl, 245 rows) carries no marker
41
+ and stays a Recommendation of series `R`, unchanged. Verified: all 2,752
42
+ earlier ITU fixture ids byte-identical on `to_s`/`to_hash`/`to_urn`/MR/
43
+ pubid URN, and all 245 dataset numbers pass the relaton gate as
44
+ `Resolution ITU-R <n>`. **The grammar was baked here ahead of
45
+ pubid-grammar** (hand-off `pubid__pubid-grammar__itu-resolution-grammar`):
46
+ the `source` of `data/parg/itu.json` is the only copy of the change until
47
+ pubid-grammar adopts it. To rebake: `jq -j .source data/parg/itu.json >
48
+ itu.parg`, edit, `parsanol _1.5.1.0_ parg compile itu.parg -o
49
+ data/parg/itu.json`, `parsanol _1.5.1.0_ parg test data/parg/itu.json`.
50
+
23
51
  ## From the root note "Parse-failure error contract — uniform across every flavor"
24
52
 
25
53
  **ITU's length guard was an early `return`, not a raise, and its comment blamed the wrong caller.** `Identifier.normalize_whitespace` (`lib/pubid/itu/identifiers/base.rb`) carried
@@ -127,7 +155,7 @@ a replay of all 24,382 rows and every ITU pass fixture showed 0 changes.
127
155
 
128
156
  ## pubid-scheme URN (issue #656)
129
157
 
130
- `lib/pubid/itu/pubid_urn_schema.rb` covers all 17 types; design and rulings
158
+ `lib/pubid/itu/pubid_urn_schema.rb` covers all 18 types; design and rulings
131
159
  in `docs/URN-SCHEMES.adoc` (`[[urn-itu]]`). **A new rendering flag needs a
132
160
  place in that schema, or `#to_pubid_urn` raises for every id that sets it.**
133
161
  Declare it as a `:bool` *facet* when it is spelling only (the
@@ -129,7 +129,12 @@ module Pubid
129
129
  # Recommendation — only the leading word, captured as :report_marker,
130
130
  # tells the two apart, and it has to, because the two series number
131
131
  # independently and the same series/number is two real documents.
132
- klass = data[:report_marker] ? Identifiers::Report : Identifiers::Recommendation
132
+ # A Resolution ("Resolution ITU-R 1-9") is told apart the same way,
133
+ # by its captured :resolution_marker.
134
+ klass = if data[:report_marker] then Identifiers::Report
135
+ elsif data[:resolution_marker] then Identifiers::Resolution
136
+ else Identifiers::Recommendation
137
+ end
133
138
 
134
139
  klass.new(
135
140
  sector: sector,
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Pubid
4
+ module Itu
5
+ module Identifiers
6
+ # ITU-R Resolution, adopted by the Radiocommunication Assembly.
7
+ # Format: Resolution ITU-{SECTOR} {NUMBER}[-REVISION] [(YEAR)]
8
+ # Example: Resolution ITU-R 1-9 (2023)
9
+ #
10
+ # A Resolution has a number and a revision (`code.parts`, as for a
11
+ # Recommendation edition), never a series. Resolutions number
12
+ # independently of Recommendations, so the leading word is part of the
13
+ # identity: it reaches `to_s`, `to_urn` and `to_mr_string`, and the
14
+ # class-strict `Identifier#==` keeps "Resolution ITU-R 1-9" unequal to
15
+ # "ITU-R 1-9" in both directions.
16
+ #
17
+ # The grammar also reads "ITU-R Res. 1-9", "ITU-R Resolution 1-9" and
18
+ # "Res. ITU-R 1-9"; all render ITU's leading form. (`Pubid.parse` does
19
+ # not route "Res. ITU-R …": no registered prefix, no exact round trip.
20
+ # `Pubid::Itu.parse` reads it.) The legacy
21
+ # relaton-data-itu spelling "ITU-R R.1-9" carries no marker and stays a
22
+ # Recommendation of series R.
23
+ class Resolution < Identifier
24
+ include StandardSerialization
25
+
26
+ def render_base(**_opts)
27
+ "Resolution #{super}"
28
+ end
29
+
30
+ # "itu.r.resolution.1-9": without the marker, the slug (an output
31
+ # filename) equals the one of Recommendation "ITU-R 1-9".
32
+ def mr_type
33
+ [super, "resolution"].compact.join(".")
34
+ end
35
+ end
36
+ end
37
+ end
38
+ end
@@ -19,6 +19,7 @@ module Pubid
19
19
  autoload :RadioRegulations, "#{__dir__}/identifiers/radio_regulations"
20
20
  autoload :Recommendation, "#{__dir__}/identifiers/recommendation"
21
21
  autoload :Report, "#{__dir__}/identifiers/report"
22
+ autoload :Resolution, "#{__dir__}/identifiers/resolution"
22
23
  autoload :SpecialPublication, "#{__dir__}/identifiers/special_publication"
23
24
  autoload :StandardSerialization, "#{__dir__}/identifiers/standard_serialization"
24
25
  autoload :Supplement, "#{__dir__}/identifiers/supplement"
@@ -61,6 +61,7 @@ module Pubid
61
61
 
62
62
  type "pubid:itu:recommendation", "rec"
63
63
  type "pubid:itu:report", "rpt"
64
+ type "pubid:itu:resolution", "res"
64
65
  type "pubid:itu:combined-identifier", "comb"
65
66
  type "pubid:itu:question", "q"
66
67
  type "pubid:itu:handbook", "hb"
@@ -30,6 +30,9 @@ module Pubid
30
30
  # well as `to_s` and the MR slug, or the two documents share an
31
31
  # identifier on that surface.
32
32
  parts << "report" if identifier.is_a?(Identifiers::Report)
33
+ # A Resolution numbers independently too ("1-9" is also a
34
+ # Recommendation number), so it gets its own segment.
35
+ parts << "resolution" if identifier.is_a?(Identifiers::Resolution)
33
36
 
34
37
  if identifier.series
35
38
  series = identifier.series.to_s
@@ -12,19 +12,18 @@ module Pubid
12
12
  # - urn:itu:t:BO.1073-1 → ITU-T BO.1073-1
13
13
  # - urn:itu:r:BO.500 → ITU-R BO.500
14
14
  class UrnParser < Pubid::UrnParser::Base
15
- def parse_urn(urn)
16
- body = strip_namespace(urn)
17
- parts = split_parts(body)
18
- sector, code = parts
15
+ # UrnGenerator emits a type segment between the sector and the code for
16
+ # the series that number independently of the Recommendation series:
17
+ # urn:itu:r:report:BT.2020-1, urn:itu:r:resolution:1-9.
18
+ TYPE_SEGMENTS = { "report" => "Report", "resolution" => "Resolution" }
19
+ .freeze
19
20
 
20
- # UrnGenerator emits a "report" segment between the sector and the code
21
- # for an ITU-R Report, which numbers independently of the
22
- # Recommendation series (urn:itu:r:report:BT.2020-1).
23
- if parts[1] == "report"
24
- return flavor_parse("Report ITU-#{sector.upcase} #{parts[2]}")
25
- end
21
+ def parse_urn(urn)
22
+ sector, *rest = split_parts(strip_namespace(urn))
23
+ word = TYPE_SEGMENTS[rest.first]
24
+ return flavor_parse("#{word} ITU-#{sector.upcase} #{rest[1]}") if word
26
25
 
27
- flavor_parse("ITU-#{sector.upcase} #{code}")
26
+ flavor_parse("ITU-#{sector.upcase} #{rest.first}")
28
27
  end
29
28
  end
30
29
  end
@@ -131,6 +131,19 @@ module Pubid
131
131
  symbol == other.symbol
132
132
  end
133
133
 
134
+ # The bare SYMBOL face and no symbol are distinct states of a
135
+ # two-valued attribute: unlike the strict attributes' nil≈empty rule
136
+ # (a from_hash-dropped empty), nil here means NO SYMBOL clause while
137
+ # "" renders the bare `SYMBOL` keyword (render_empty), so the match
138
+ # is exact ==. Without this, a symbol-less reference wildcard-matches
139
+ # the bare-SYMBOL row and the two render-distinct forms match
140
+ # mutually (the corpus Law 4 failure on JIS Z 8211-3:2025 SYMBOL).
141
+ def subset_attribute_match?(name, mine, theirs)
142
+ return symbol == theirs if name == :symbol
143
+
144
+ super
145
+ end
146
+
134
147
  # Basic string representation. Delegates to renderer.
135
148
  def to_s(**opts)
136
149
  render(format: :human, **opts)
data/lib/pubid/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pubid
4
- VERSION = "2.0.44"
4
+ VERSION = "2.0.46"
5
5
  end
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.44
4
+ version: 2.0.46
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
@@ -915,6 +915,7 @@ files:
915
915
  - lib/pubid/itu/identifiers/radio_regulations.rb
916
916
  - lib/pubid/itu/identifiers/recommendation.rb
917
917
  - lib/pubid/itu/identifiers/report.rb
918
+ - lib/pubid/itu/identifiers/resolution.rb
918
919
  - lib/pubid/itu/identifiers/special_publication.rb
919
920
  - lib/pubid/itu/identifiers/standard_serialization.rb
920
921
  - lib/pubid/itu/identifiers/supplement.rb