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

Docx (ISO Simple template) to adoc conversion gap: bibliography references text #156

Open
Intelligent2013 opened this issue Jul 13, 2022 · 2 comments
Labels
question Further information is requested

Comments

@Intelligent2013
Copy link
Contributor

Intelligent2013 commented Jul 13, 2022

Source: #144, #149

Source document: https://github.com/metanorma/mn-samples-iso/tree/main/sources/international-standard

Current docx->adoc conversion result:

* [[[ISO712]]], ISO 712, _Cereals and cereal products — Determination of moisture content — Reference method_

Expected adoc:

* [[[ISO712,ISO 712]]], _Cereals and cereal products — Determination of moisture content — Reference method_

The reason: ISO 712 doesn't have assigned style (like 'stddocNumber' in the DIS template), and xslt can't determine it as reference's text:

<w:p ...>
	<w:pPr>
		<w:pStyle w:val="normref"/>
		...
	</w:pPr>
	<w:bookmarkStart w:id="30" w:name="ISO712"/>
	...
	<w:r>
		...
		<w:t xml:space="preserve">ISO 712, </w:t>
	</w:r>
	<w:r>
		...
		<w:t>Cereals and cereal products — Determination of moisture content — Reference method</w:t>
	</w:r>
</w:p>

It relates to both sections - 'Normative references' and 'Bibliography'.

@Intelligent2013 Intelligent2013 added the question Further information is requested label Jul 13, 2022
@Intelligent2013 Intelligent2013 moved this to Triage in Metanorma Jul 13, 2022
@Intelligent2013 Intelligent2013 changed the title Docx (ISO Simple template) to adoc conversion gap: normative references text Docx (ISO Simple template) to adoc conversion gap: bibliography references text Jul 14, 2022
@Intelligent2013
Copy link
Contributor Author

Intelligent2013 commented Jul 15, 2022

The same issue relates to the custom text for the cross-reference.

Docx (ISO 712 doesn't have assigned style (like 'stddocNumber' in the DIS template), and xslt can't determine it as reference's text that should be omitted):

<w:hyperlink w:anchor="ISO712" w:history="1">
	<w:r>
		<w:rPr>
			<w:rStyle w:val="Hyperlink"/>
			...
		</w:rPr>
		<w:t>ISO 712</w:t>
	</w:r>
</w:hyperlink>

Current docx->adoc conversion result:
... determined in accordance with <<ISO712,ISO 712>>, ...

Expected result:
... determined in accordance with <<ISO712>>, ...

@Intelligent2013
Copy link
Contributor Author

Another instance:

<w:hyperlink w:anchor="AnnexB" w:history="1">
	<w:r>
		<w:rPr>
			<w:rStyle w:val="Hyperlink"/>
			...
		</w:rPr>
		<w:t>Annex B</w:t>
	</w:r>
</w:hyperlink>

Current adoc:
<<AnnexB,Annex B>>

Expected adoc:
<<AnnexB>>

In ISO DIS template, Annex B has style citeapp:

<w:hyperlink w:anchor="AnnexB" w:history="1">
	<w:r>
		<w:rPr>
			<w:rStyle w:val="citeapp"/>
			...
		</w:rPr>
		<w:t>Annex B</w:t>
	</w:r>
</w:hyperlink>

and xslt can determine it as reference to the Annex and the text 'Annex B' should be omitted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant