Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create DSL framework for content rule checks #116

Open
ronaldtse opened this issue Jul 15, 2024 · 0 comments
Open

Create DSL framework for content rule checks #116

ronaldtse opened this issue Jul 15, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ronaldtse
Copy link
Contributor

Metanorma implements content rule checks. We need to create a framework to allow content rules to be defined by a third-party that validates on given content.

In Metanorma, they are defined by the rules/guidelines of the publisher of content.

These rule checks can be included/inherited.

Maybe develop a DSL for this to operate on the Coradoc content tree.

Some of these rules are generic validation rules.

Crossreferences: (ID _44fa3797-4acb-42cb-9a74-55b07fe9344c): 橋梁施設台帳 does not have a corresponding anchor ID in the bibliography!
Crossreferences: (ID _44d0f6a2-f856-479e-bb4f-235155806838): トンネル施設台帳 does not have a corresponding anchor ID in the bibliography!
Style: (ID toc6_03_01): More than 1 ordered list in a numbered clause
Style: (ID _240ecb51-bf05-f64e-3851-96dc0924b801): no space between number and SI unit: 95m
Style: (ID _2fbca6e8-7156-b0ec-f5fe-f27569876c35): no space before percent sign: 1%
Style: (ID _33792607-c3c0-69ab-80b5-a1978626e6fd): Figure should have title
Style: (ID _081b53fe-4188-7918-27d4-0ab3e33bae61): Table should have title
Style: toc0_02:改定の概要: subclause is only child

Rules like these are organizational-specific:

Style: (ID _333091cd-362c-40a0-4eac-c8319bd7e757): image name images/003.svg does not match DRG requirements: expect 1_ed4fig
Style: (ID _81bca218-92a1-5e06-e860-84f29809c4bd): There is an instance of figure nested within table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant