Repository navigation
ieee: the preprint draft-stage mirror + post-#515 pins - #83
Merged
Merged
Conversation
Preprint is a draft stage of the C2 code (ruled), not a variant — the ts mirror of gem#515 with testsuite#41/#42 and grammar#31/#32 merged. - model: NescPreprintClass (nesc-preprint, codeColumns, renders 'IEEE Std C2.YYYY.Preprint'); the URN generator gains a trailing 'preprint' component so a preprint cannot share the edition's URN - grammar: nesc_c2_preprint (dotted / dash / catalogue slash-tail) + nesc_preprint_proposal (verbose, longest-literal-first) slot into nesc_identifier before the C2-standard forms; nesc_delegation consumes the optional 'IEEE Std ' prefix BEFORE its lookahead guard (present() on the whole chain is zero-width and would not consume) - builder: buildNesc routes on the preprint capture before draft/variant/code (the C2-led tree carries code too) - preprocessor: the /Preprint strip removed (data loss, as in the gem) - pins: TESTSUITE_REF -> 7373940 (#42), PARG_GRAMMAR_REF -> d182eb9e (#31) - urn-parity fixture regenerated against post-#515 main: the corpus grew by the #215-era adoption rows the stale fixture never covered, exposing 26 pre-existing ieee parseUrn divergences (adoption IEEE faces, the reference's own draft.D= garbage renders, separator variants, zero involving preprint) — ieee joins nist in the counted KNOWN-DIVERGENT set (9,476/9,502 clean) until the parseUrn port
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The pubid-ts mirror of the preprint draft-stage wave (pubid#515, testsuite#41, grammar#31/#32 — all merged).
Ruling: Preprint is a draft stage of the C2 code (the NESC's own term for its pre-edition drafts), not a variant marker.
src/flavors/ieee/model.ts):NescPreprintClass(kind: "nesc-preprint",codeColumns, rendersIEEE Std C2.YYYY.Preprint); the URN generator gains a trailingpreprintcomponent (urn:ieee:ieee:C2:2012:preprint) so a preprint cannot share the published edition's URN.src/flavors/ieee/grammar.ts):nesc_c2_preprint(dotted / dash / catalogue slash-tail spellings) andnesc_preprint_proposal(verbosePreprint Proposal(s) for the YYYY Edition of …, longest-literal-first) slot intonesc_identifierbefore the C2-standard forms;nesc_delegationnow consumes the optionalIEEE Stdprefix BEFORE its lookahead guard (a guard anchored at position 0 rejected every prefixed catalogue spelling) — the same fix the PARG grammar took.src/flavors/ieee/index.ts):buildNescroutes on thepreprintcapture before the draft/variant/code checks (the C2-led preprint tree also carriescode).src/flavors/ieee/preprocessor.ts): the/Preprintstrip is removed — it was data loss, collapsing distinct documents onto their published editions (the same line the Ruby parser dropped in #515).TESTSUITE_REF→ testsuite#41 (358665808c4249cf0d22fec57dedb54f8f6b6c84, the preprint corpus round);PARG_GRAMMAR_REF→ grammar#31 (d182eb9eaa2199663bfaec8b889cbf6339bdc2a0).All 5 new
nesc_preprintcorpus cases pass through the hand grammar (parse, render, URN, aliases); the pend ledger is unchanged at 477 with 0 satisfied.URN-parity fixture (
test/fixtures/urn-parity.json.gz): regenerated against pubid#515 — the corpus grew by the #215-era adoption rows the stale fixture never covered. That exposed 26 pre-existing ieeeparseUrndivergences (ISO/IEC/IEEE adoption faces the ts grammar rejects in the IEEE-face reconstruction, the reference's own garbagedraft.D=renders, separator variants like1076.CONCvs1076-CONC);ieeejoinsnistin the counted KNOWN-DIVERGENT set (9,476/9,502 clean) until the parseUrn parity port lands. None of the 26 involve preprint.