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

ISO/IEC Coding Guidelines: process editing-instruction in MN to STS XML #219

Closed
Intelligent2013 opened this issue Sep 7, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Intelligent2013
Copy link
Contributor

Source: #190

As titled. Currently, mnconvert doesn't generate editing-instruction from editor's notes.

@Intelligent2013
Copy link
Contributor Author

Intelligent2013 commented Oct 12, 2022

In Metanorma there are 3 types of annotations:

  • Editor’s notes
EDITOR: The contents of this clause will be changed in conjunction with the UML.
<admonition id="_" type="editorial">
   <p id="_">The contents of this clause will be changed in conjunction with the UML.</p>
</admonition>

NISO XML expected format:

<editing-instruction>
<p>The contents of this clause will be changed in conjunction with the UML.</p>
</editing-instruction>
  • To-dos
TODO: Revise introduction.
<review date="2022-10-12T00:00:00Z" id="_" reviewer="(Unknown)">
                <p id="_">Revise introduction.</p>
</review>

NISO XML expected format:

<editing-instruction specific-use="review">
<p>Revise introduction.</p>
</editing-instruction>
  • Reviewer notes
[reviewer=ISO,date=2017-01-01,from=foreword,to=foreword]
****
A Foreword shall appear in each document. The generic text is shown here. It does not contain requirements, recommendations or permissions.
****
<review date="2017-01-01T00:00:00Z" from="foreword" id="_" reviewer="ISO" to="foreword">
	<p id="_">A Foreword shall appear in each document. The generic text is shown here. It does not contain requirements, recommendations or permissions.</p>
</review>

NISO XML expected format:

<editing-instruction specific-use="review">
<p>A Foreword shall appear in each document. The generic text is shown here. It does not contain requirements, recommendations or permissions.</p>
</editing-instruction>

@Intelligent2013
Copy link
Contributor Author

mnconvert updated. Now it generates editing-instruction for Metanorma XML elements:

  • admonition[@type = 'editorial'], and
  • review

Intelligent2013 added a commit that referenced this issue Oct 12, 2022
mn2xml.xsl updated for editing-instruction processing, #219
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
Archived in project
Development

No branches or pull requests

1 participant