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

Move presentation functionality for HTML to Presentation XML, individual flavours #613

Closed
6 tasks done
opoudjis opened this issue Nov 5, 2024 · 3 comments
Closed
6 tasks done
Assignees
Labels
enhancement New feature or request

Comments

@opoudjis
Copy link
Contributor

opoudjis commented Nov 5, 2024

Continuation of #606

  • Admonition name:
    • ISO: Keep name in Presentation XML, and add em-dash to Presentation XML
    • JIS: Add em-dash to Presentation XML (why?)
    • BSI: Add "." to Presentation XML

Before:

<admonition id="_b1c10b4a-ec44-2044-443b-356095346b87" type="warning">
<name>admon</name>
<p id="_baae1513-5def-451a-727f-fc44ed9a724f">A</p>
</admonition>

After:

<admonition id="_b1c10b4a-ec44-2044-443b-356095346b87" type="warning">
<name>admon.</name>
<p id="_baae1513-5def-451a-727f-fc44ed9a724f">A</p>
</admonition>
  • Example names:
    • IEEE: Add ":" to Presentation XML, and italicise
    • IEEE: Do the same for term examples

Before:

<example id="_d9f3e188-b0d0-27dc-f00a-b0d9b159cb15"> 
<name>example name</name>
<p id="_9cefd064-b4b2-6658-5701-054bedcd09f6">A</p>
</example>

After:

<example id="_d9f3e188-b0d0-27dc-f00a-b0d9b159cb15"> 
<name>example name:</name>
<p id="_9cefd064-b4b2-6658-5701-054bedcd09f6">A</p>
</example>
  • Annex subtitles:
    • ITU: Move obligation subtitle for non-resolutions to Presentation XML

Before:

<annex id="_annextitle" inline-header="false" obligation="normative">
<title>Annextitle</title>

After:

<annex id="_annextitle" inline-header="false" obligation="normative">
<title>Annextitle</title>
<p>(This annex forms an integral part of this Contribution.)</p>
  • Term sources:
    • ITU: Wrap term sources with brackets in Presentation XML, unless already wrapped (and fix current assumption that termsource/origin is preserved in Presentation XML, which it is not)
  • Term designation:
    • ITU: Insert ":" after preferred

Before:

<term id="term-language"><preferred><expression>
<name>language</name>
</expression>
</preferred>
<definition><verbal-definition><p id="_11e12e77-315b-a5a4-d550-5c3758e6f3d2">a means of communication</p></verbal-definition></definition>
<termsource status="identical" type="authoritative">[SOURCE: <xref type="inline" target="a">[ISO 639-2]</xref>]</termsource>
</term>

After:

<term id="term-language"><preferred><expression>
<name>language</name>
</expression>:
</preferred>
<definition><verbal-definition><p id="_11e12e77-315b-a5a4-d550-5c3758e6f3d2">a means of communication</p></verbal-definition></definition>
<termsource status="identical" type="authoritative"><xref type="inline" target="a">[ISO 639-2]</xref></termsource>
</term>
  • Table & figure footnotes:
    • ITU: insert ")" after the footnote reference number in text and in the footnote reference number in the footnote

Before:

<table id="_25127a95-78ea-5048-8b95-a3448d203f0b"><name>Table A.1</name><tbody><tr><td valign="top" align="left">A</td>
<td valign="top" align="left">b.<fn reference="a"><p id="_5474b7ae-7f64-f546-7268-0e110005ff52">X</p>
</fn></td>
</tr></tbody>
</table>

After:

<table id="_25127a95-78ea-5048-8b95-a3448d203f0b"><name>Table A.1</name><tbody><tr><td valign="top" align="left">A</td>
<td valign="top" align="left">b.<fn reference="a)"><p id="_5474b7ae-7f64-f546-7268-0e110005ff52">X</p>
</fn></td>
</tr></tbody>
</table>
  • Table & figure footnotes:
    • JIS: insert Japanese "table footnote" and ")" around the footnote reference number in the footnote (fix: needs to be also be ")" in the text in HTML)

Same before and after for as with ITU

Note that there is a distinction in what actually gets rendered:

<table>
<tbody><tr>
<td>A</td>
 <td>b.<sup>a)</sup></td>
</tr></tbody>
<tfoot>
<tr><td>注<sup>a)</sup> X</td></tr>
</tfoot>
</table>

The footnote reference under tbody is "a)", the footnote itself under tfoot is "FOOTNOTE a) X". We do not have a mechanism for expanding that out in Presentation XML into a preformatted footnote, that is left to the renderer, and the assumption until now has been that the footnote itself starts with just the footnote reference.

We are in the future going to introduce preformatted versions of Semantic XML, and we would deal with this then as

<fn reference="a)" id="FN1">
<p id="_5474b7ae-7f64-f546-7268-0e110005ff52">X</p>
</fn>
<fmt-fn reference="a)" target="FN1">
<p id="_5474b7ae-7f64-f546-7268-0e110005ff52"><span class="autonum-delim">注</span><sup>a)</sup> X</p>
</fn>

—so that I will hand down from Presentation XML the preformatted footnote body. But not yet.

Leaving the Plateau ideographic text alone. Leaving BIPM and ISO indexes alone.

@opoudjis opoudjis added the enhancement New feature or request label Nov 5, 2024
@opoudjis opoudjis self-assigned this Nov 5, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in Metanorma Nov 5, 2024
opoudjis added a commit that referenced this issue Nov 6, 2024
opoudjis added a commit to metanorma/metanorma-iso that referenced this issue Nov 6, 2024
opoudjis added a commit to metanorma/metanorma-iso that referenced this issue Nov 6, 2024
opoudjis added a commit to metanorma/metanorma-jis that referenced this issue Nov 6, 2024
@opoudjis
Copy link
Contributor Author

opoudjis commented Nov 6, 2024

Have fixed i18n of obligation subtitle for non-resolutions in ITU.

opoudjis added a commit to metanorma/metanorma-itu that referenced this issue Nov 6, 2024
opoudjis added a commit to metanorma/metanorma-itu that referenced this issue Nov 6, 2024
opoudjis added a commit to metanorma/metanorma-itu that referenced this issue Nov 6, 2024
opoudjis added a commit to metanorma/metanorma-itu that referenced this issue Nov 6, 2024
@opoudjis opoudjis closed this as completed Nov 7, 2024
@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in Metanorma Nov 7, 2024
@Intelligent2013
Copy link
Contributor

@opoudjis just in case. if you'll merge this changes into the Monday's release, then don't forget to merge the XSLT updates in metanorma/mn-native-pdf#763.

@opoudjis
Copy link
Contributor Author

opoudjis commented Nov 10, 2024

@Intelligent2013 I will. Please release mn2pdf, I need to anchor tomorrow's release to it.

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
Status: Done
Development

No branches or pull requests

2 participants