pubid 2.0.0.pre.alpha.28 → 2.0.0.pre.alpha.30

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.
data/data/parg/nesc.parg CHANGED
@@ -9,6 +9,8 @@ grammar PubidNesc version "0.1.0" {
9
9
  space = " "
10
10
  comma = ","
11
11
  dash = "-"
12
+ dot = "."
13
+ slash = "/"
12
14
 
13
15
  year = 4digit
14
16
  c2_code = "C2" as code
@@ -24,7 +26,15 @@ grammar PubidNesc version "0.1.0" {
24
26
  year_first = ((year) as year) space (((nesc_full_name) as full_name [(registered) as name_registered] [(space "(" (nesc_abbr) as paren_abbr [(registered) as paren_registered] ")")]) / (((nesc_abbr) as abbr [(registered) as abbr_registered]))) [(space variant)] [(comma space edition)]
25
27
  name_first = ((nesc_full_name [registered]) comma space c2_code dash (year) as year [(space "-" space variant)])
26
28
  draft_nesc = (("Draft") as draft space nesc_name [registered] comma space (month) space (year) as year)
27
- nesc_identifier = draft_nesc / name_first / c2_standard / year_first
29
+ # Preprint is a draft STAGE of the C2 code (NESC terminology for its
30
+ # pre-edition drafts), not a variant: dotted is the canonical spelling
31
+ # (C2.2012.Preprint); dash (C2-2012-Preprint) and the catalogue's
32
+ # slash tail (C2-2002/Preprint) are aliases. The verbose
33
+ # "Preprint Proposal(s) for the YYYY Edition of ..." forms cite the same
34
+ # draft by its target edition year.
35
+ c2_preprint = (c2_code ((dot (year) as year dot) / (dash (year) as year dash) / (dash (year) as year slash)) ("Preprint") as preprint)
36
+ preprint_proposal = (("Preprint") as preprint space ("Proposals" / "Proposal") space "for" space "the" space (year) as year space "Edition" space "of" space "the" space nesc_full_name [(space "(" nesc_abbr [registered] ")")])
37
+ nesc_identifier = draft_nesc / preprint_proposal / name_first / c2_preprint / c2_standard / year_first
28
38
 
29
39
  entry nesc_identifier: nesc_identifier
30
40
 
@@ -33,6 +43,11 @@ grammar PubidNesc version "0.1.0" {
33
43
  accept "2023 NESC"
34
44
  accept "National Electrical Safety Code, C2-2017"
35
45
  accept "Draft NESC, January 2016"
46
+ accept "C2.2012.Preprint"
47
+ accept "C2-2012-Preprint"
48
+ accept "C2-2002/Preprint"
49
+ accept "Preprint Proposal for the 2017 Edition of the National Electrical Safety Code"
50
+ accept "Preprint Proposals for the 2022 Edition of the National Electrical Safety Code (NESC(R))"
36
51
  reject "nonsense"
37
52
  }
38
53
  }