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

Refactor Presentation XML for terms, PDF #632

Closed
opoudjis opened this issue Dec 29, 2024 · 44 comments
Closed

Refactor Presentation XML for terms, PDF #632

opoudjis opened this issue Dec 29, 2024 · 44 comments
Assignees
Labels
enhancement New feature or request

Comments

@opoudjis
Copy link
Contributor

Follow-on from #630

I am incrementally doing the refactoring of terms in Presentation XML. As with the other refactoring, this is going to be one flavour at a time, and I've just done the base flavour implementation. You can see it in #631

The basic point of this is that

  • semx is used to link Presentation XML back to the Semantic XML originals
  • Ignore all of preferred alternative deprecated related definition termsource in favour of fmt-preferred fmt-alternative fmt-deprecated fmt-related fmt-definition fmt-termsource
  • Unlike before, when we had multiple instances of preferred alternative deprecated related, there is only a single instance of fmt-preferred fmt-alternative fmt-deprecated fmt-related. The latter now contain paragraphs, and multiple paragraphs within fmt-preferred are used instead of multiple preferred terms for the purposes of rendering.

Downstream flavours are going to arrange these terms quite differently, e.g. inserting the preferred terms inside of the definition at the start of the paragraph for ITU.

You can see samples of what the new Presentation XML looks like in /~https://github.com/metanorma/isodoc/pull/631/files#diff-a8f22a60cfd3fb8aedb49cf416629cbee802bbf4cd0225b7a221419a3ac68b88 , in spec/isodoc/terms_spec.rb

@opoudjis opoudjis added the enhancement New feature or request label Dec 29, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in Metanorma Dec 29, 2024
@opoudjis
Copy link
Contributor Author

metanorma-iso done

Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Jan 1, 2025
@Intelligent2013
Copy link
Contributor

@opoudjis 1. to be on the same page,

alternative

do you mean the element admitted?

deprecated

do you mean the element deprecates?

  1. related

I didn't find the processing for this element in the XSLTs. Could you provide how to encode the 'related' term and the rendering rules?

  1. missing data in the element fmt-definition.
<definition id="_d0912479-1b3d-40d7-99b7-d8f7af6994dd">
	<verbal-definition>
		<p original-id="_22b2b44a-2066-78d3-9916-b66401fc9014">
			<em>paddy</em> (<xref target="term-paddy">
				<span class="citesec">
					<semx element="autonum" source="_terms_and_definitions">3</semx>
					<span class="fmt-autonum-delim">.</span>
					<semx element="autonum" source="term-paddy">1</semx>
				</span>
			</xref>) from which the husk only has been removed</p>
	</verbal-definition>
</definition>
<fmt-definition>
	<semx element="definition" source="_d0912479-1b3d-40d7-99b7-d8f7af6994dd">
		<p id="_22b2b44a-2066-78d3-9916-b66401fc9014">paddy from which the husk only has been removed</p>
	</semx>
</fmt-definition>

The fmt-definition//p is paddy from which the husk only has been removed only. The missing data:

  • em around paddy
  • no reference to 3.1
  1. the element domain doesn't contain the attribute hidden="true":
<domain id="_8817ef17-ec60-4d1a-b288-8ab03f7efb2d">rice</domain>

The previous generated Presentation XML:

<domain hidden="true">rice</domain>

@opoudjis
Copy link
Contributor Author

opoudjis commented Jan 1, 2025

@opoudjis 1. to be on the same page,

alternative

do you mean the element admitted?

deprecated

do you mean the element deprecates?

Yes, and yes.

  1. related

I didn't find the processing for this element in the XSLTs. Could you provide how to encode the 'related' term and the rendering rules?

Huh, so I had resolved it before to just paragraphs I guess.

Treat "related" by default like "admitted". It is cross-references to other terms, and I was resolving it as just a paragraph:

Semantic XML:

      <term id="C">
      <preferred language='fr' script='Latn' type='prefix'>
                <expression>
                  <name>First Designation</name>
                  </expression></preferred>
        <related type='contrast'>
          <preferred>
            <expression>
              <name>Fifth Designation</name>
              <grammar>
                <gender>neuter</gender>
              </grammar>
            </expression>
          </preferred>
          <xref target='second'/>
        </related>
        <related type='see'>
          <preferred>
            <expression>
              <name>Fifth Designation</name>
              <grammar>
                <gender>neuter</gender>
              </grammar>
            </expression>
          </preferred>
        </related>
        <related type='seealso'>
          <xref target='second'/>
        </related>
        <definition><verbal-definition>Definition 2</verbal-definition></definition>
      </term>

Previous Presentation XML:

          <term id="C">
             <fmt-name>
                <span class="fmt-caption-label">
                   <semx element="autonum" source="A">1</semx>
                   <span class="fmt-autonum-delim">.</span>
                   <semx element="autonum" source="C">2</semx>
                   <span class="fmt-autonum-delim">.</span>
                </span>
             </fmt-name>
             <fmt-xref-label>
                <span class="fmt-element-name">Clause</span>
                <semx element="autonum" source="A">1</semx>
                <span class="fmt-autonum-delim">.</span>
                <semx element="autonum" source="C">2</semx>
             </fmt-xref-label>
             <preferred language="fr" script="Latn" type="prefix">
                <strong>First Designation</strong>
             </preferred>
             <p>
                <strong>CONTRAST:</strong>
                <em>
                   <preferred>
                      <strong>Fifth Designation</strong>
                      , n
                   </preferred>
                </em>
                (
                <xref target="second">
                   <span class="fmt-element-name">Clause</span>
                   <semx element="autonum" source="A">1</semx>
                   <span class="fmt-autonum-delim">.</span>
                   <semx element="autonum" source="second">1</semx>
                </xref>
                )
             </p>
             <p>
                <strong>SEE:</strong>
                <strong>**RELATED TERM NOT FOUND**</strong>
             </p>
             <p>
                <strong>SEE ALSO:</strong>
                <strong>**RELATED TERM NOT FOUND**</strong>
             </p>
             <definition>Definition 2</definition>
          </term>

As you can see, the Related content was rendered as just paragraphs. Now those paragraphs are going to be contained inside a single fmt-related element:

             <fmt-related>
                <semx element="related" source="_">
                   <p>
                      <strong>CONTRAST:</strong>
                      <em>
                         <fmt-preferred>
                            <semx element="preferred" source="_">
                               <strong>Fifth Designation</strong>
                               , n
                            </semx>
                         </fmt-preferred>
                      </em>
                      (
                      <xref target="second">
                         <span class="fmt-element-name">Clause</span>
                         <semx element="autonum" source="A">1</semx>
                         <span class="fmt-autonum-delim">.</span>
                         <semx element="autonum" source="second">1</semx>
                      </xref>
                      )
                   </p>
                </semx>
                <semx element="related" source="_">
                   <p>
                      <strong>SEE:</strong>
                      <strong>**RELATED TERM NOT FOUND**</strong>
                   </p>
                </semx>
                <semx element="related" source="_">
                   <p>
                      <strong>SEE ALSO:</strong>
                      <strong>**RELATED TERM NOT FOUND**</strong>
                   </p>
                </semx>
             </fmt-related>
  1. the element domain doesn't contain the attribute hidden="true":
<domain id="_8817ef17-ec60-4d1a-b288-8ab03f7efb2d">rice</domain>

The previous generated Presentation XML:

<domain hidden="true">rice</domain>

Deliberate. The "hidden" attribute is not to be used, because the domain element is not to be rendered ever, just like definition and preferred. Its contents will turn up as <semx element="domain"> inside fmt-preferred or fmt-definition

@opoudjis
Copy link
Contributor Author

opoudjis commented Jan 1, 2025

  1. missing data in the element fmt-definition.
<definition id="_d0912479-1b3d-40d7-99b7-d8f7af6994dd">
	<verbal-definition>
		<p original-id="_22b2b44a-2066-78d3-9916-b66401fc9014">
			<em>paddy</em> (<xref target="term-paddy">
				<span class="citesec">
					<semx element="autonum" source="_terms_and_definitions">3</semx>
					<span class="fmt-autonum-delim">.</span>
					<semx element="autonum" source="term-paddy">1</semx>
				</span>
			</xref>) from which the husk only has been removed</p>
	</verbal-definition>
</definition>
<fmt-definition>
	<semx element="definition" source="_d0912479-1b3d-40d7-99b7-d8f7af6994dd">
		<p id="_22b2b44a-2066-78d3-9916-b66401fc9014">paddy from which the husk only has been removed</p>
	</semx>
</fmt-definition>

The fmt-definition//p is paddy from which the husk only has been removed only. The missing data:

  • em around paddy
  • no reference to 3.1

Thank you for catching that. That is indeed an omission. Will try to resolve now.

@opoudjis
Copy link
Contributor Author

opoudjis commented Jan 1, 2025

Change coming up, I will be leaving fmt-termsource inside of fmt-preferred where the choice of term designation is attributed to a source. Before, I was moving termsource after preferred. So you will find fmt-termsource inside of any of preferred admitted deprecates definition as well as term itself—although I don't think that's going to have much of an impact on you, you just output its contents where you find them, and there will be no implicit paragraphs anywhere for you to insert, I am taking care of those.

@opoudjis
Copy link
Contributor Author

opoudjis commented Jan 1, 2025

Yup, I realise what happened: concepts in terms are a special case in ISO: only the first instance is hyperlinked, but that's the first rendered instance. Which means I need to leave concept in definition alone, and only process concept under fmt-definition. So there is an ISO-specific change after all.

@opoudjis
Copy link
Contributor Author

opoudjis commented Jan 1, 2025

Fixed:

<definition id="_294f62b0-41df-4328-a2d6-90d6ac7badc4"><verbal-definition><p original-id="_22b2b44a-2066-78d3-9916-b66401fc9014"><concept><refterm>paddy</refterm><renderterm>paddy</renderterm><xref target="term-paddy"/></concept> from which the husk only has been removed</p></verbal-definition></definition><fmt-definition><semx element="definition" source="_294f62b0-41df-4328-a2d6-90d6ac7badc4"><p id="_22b2b44a-2066-78d3-9916-b66401fc9014"><em>paddy</em> (<xref target="term-paddy"><span class="citesec"><semx element="autonum" source="terms">1</semx><span class="fmt-autonum-delim">.</span><semx element="autonum" source="term-paddy">1</semx></span></xref>) from which the husk only has been removed</p></semx></fmt-definition>

@opoudjis
Copy link
Contributor Author

opoudjis commented Jan 3, 2025

Metanorma-IEEE ready

Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Jan 4, 2025
Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Jan 4, 2025
@Intelligent2013
Copy link
Contributor

Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Jan 4, 2025
@Intelligent2013
Copy link
Contributor

Metanorma-IEEE ready

@opoudjis in the fmt-definition there are xref immediately after fmt-preferred. How should I process them - ignore xref or ignore the preceding fmt-preferred? Or it's a bug in the Presentation XML?

<term id="term-acceleration-insensitive-drift-rate">
	...
	<fmt-definition>
		<p>
			<semx element="preferred" source="_7180a9d8-eabd-46e6-ae62-b7e2c411effa">
				<strong>acceleration-insensitive drift rate</strong>
			</semx>: <semx element="definition" source="_87074daf-1bfa-424b-b784-cd68750c8733">The component of…​</semx>
			<em>See also:</em>
			<semx element="related" source="_59f0e153-1ee6-4828-aa43-dee2d69610f7">
				...
				<fmt-preferred>
					<semx element="preferred" source="_f9d4baba-d4ac-4a49-8239-689258d11efc">
						<strong>drift rate</strong>
					</semx>
				</fmt-preferred>
				<xref target="term-drift-rate">drift rate</xref>
			</semx>; <semx element="related" source="_f4b74950-583e-4578-a973-222b15cd39fb">
				...
				<fmt-preferred>
					<semx element="preferred" source="_66c162c9-7c10-4c59-83ad-97b906ce9627">
						<strong>systematic drift rate</strong>
					</semx>
				</fmt-preferred>
				<xref target="term-systematic-drift-rate">systematic drift rate</xref>
			</semx>. </p>
	</fmt-definition>

PDF rendering with double drift ratedrift rate:
image

@Intelligent2013
Copy link
Contributor

  1. missing data in the element fmt-definition.
    Fixed:
<definition id="_294f62b0-41df-4328-a2d6-90d6ac7badc4"><verbal-definition><p original-id="_22b2b44a-2066-78d3-9916-....</fmt-definition>

@opoudjis confirmed, thank you.

@opoudjis
Copy link
Contributor Author

opoudjis commented Jan 5, 2025

metanorma-itu ready.

Will come back to xref issue, I'm out the door...

Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Jan 7, 2025
@Intelligent2013
Copy link
Contributor

common.xsl updated for ITU.

@opoudjis
Copy link
Contributor Author

opoudjis commented Jan 7, 2025

metanorma-nist ready

@opoudjis
Copy link
Contributor Author

opoudjis commented Jan 7, 2025

<fmt-preferred>
					<semx element="preferred" source="_f9d4baba-d4ac-4a49-8239-689258d11efc">
						<strong>drift rate</strong>
					</semx>
				</fmt-preferred>
				<xref target="term-drift-rate">drift rate</xref>
			</semx>

Those appear to be specific to related. They are redundant, and I'll get rid of them.

@opoudjis
Copy link
Contributor Author

opoudjis commented Jan 7, 2025

Yes, in IEEE, the xref of where the related term is is ignored.

opoudjis added a commit to metanorma/metanorma-ieee that referenced this issue Jan 7, 2025
@opoudjis
Copy link
Contributor Author

opoudjis commented Jan 7, 2025

metanorma-ogc ready

@opoudjis
Copy link
Contributor Author

opoudjis commented Jan 8, 2025

metanorma-csa, metanorma-cc, metanorma-iho ready

@Intelligent2013
Copy link
Contributor

The same issue with OGC documents.

@Intelligent2013
Copy link
Contributor

I'll continue after the missing strong tag issue clarification.

@opoudjis
Copy link
Contributor Author

opoudjis commented Jan 9, 2025

metanorma-bsi ready

@opoudjis
Copy link
Contributor Author

opoudjis commented Jan 9, 2025

NIST, and OGC: I disabled bolding, but that makes no sense, I was misled by bad test cases. Restored.

opoudjis added a commit to metanorma/metanorma-ogc that referenced this issue Jan 9, 2025
@opoudjis
Copy link
Contributor Author

opoudjis commented Jan 9, 2025

metanorma-plateau, metanorma-bipm ready

@Intelligent2013
Copy link
Contributor

NIST, and OGC: I disabled bolding, but that makes no sense, I was misled by bad test cases. Restored.

Confirmed. @opoudjis thanks!

@Intelligent2013
Copy link
Contributor

metanorma-nist ready
metanorma-ogc ready

No need NIST and OGC XSLT update. common.xsl was updated earlier.

@Intelligent2013
Copy link
Contributor

metanorma-csa, metanorma-cc, metanorma-iho ready

No need CSA. CSD and IHO XSLT update.

@Intelligent2013
Copy link
Contributor

metanorma-ribose ready

Ribose XSLT updated.

@Intelligent2013
Copy link
Contributor

metanorma-jis ready

No need update the JIS XSLT.

@Intelligent2013
Copy link
Contributor

IEV merging of multilingual terms has proven tricky. When merging English and French into one term for rendering, we are keeping the Semantic XML of the French term, we just will have no formatting elements for it. So if you find in IEC a term that is unnumbered, and which has no fmt-* elements, simply do not render it.

@opoudjis do you have the adoc document sample for this case?

@Intelligent2013
Copy link
Contributor

metanorma-bsi ready

No need update for the BSI XSLT.

@Intelligent2013
Copy link
Contributor

IEV merging of multilingual terms has proven tricky. When merging English and French into one term for rendering, we are keeping the Semantic XML of the French term, we just will have no formatting elements for it. So if you find in IEC a term that is unnumbered, and which has no fmt-* elements, simply do not render it.

@opoudjis do you have the adoc document sample for this case?

@opoudjis I've found it: /~https://github.com/glossarist/iev-document/

@Intelligent2013
Copy link
Contributor

IEV merging of multilingual terms has proven tricky. When merging English and French into one term for rendering, we are keeping the Semantic XML of the French term, we just will have no formatting elements for it. So if you find in IEC a term that is unnumbered, and which has no fmt-* elements, simply do not render it.

@opoudjis do you have the adoc document sample for this case?

@opoudjis I've found it: /~https://github.com/glossarist/iev-document/

Only English terms present in the adoc unfortunately. @opoudjis Nevertheless, I need the working adoc example for IEV multilingual terms.

Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Jan 11, 2025
@Intelligent2013
Copy link
Contributor

metanorma-plateau, metanorma-bipm ready

No need to update Plateau XSLT.
JCGM XSLT updated.

@opoudjis
Copy link
Contributor Author

IEV merging of multilingual terms has proven tricky. When merging English and French into one term for rendering, we are keeping the Semantic XML of the French term, we just will have no formatting elements for it. So if you find in IEC a term that is unnumbered, and which has no fmt-* elements, simply do not render it.

@opoudjis do you have the adoc document sample for this case?

@opoudjis I've found it: /~https://github.com/glossarist/iev-document/

Only English terms present in the adoc unfortunately. @opoudjis Nevertheless, I need the working adoc example for IEV multilingual terms.

At the risk of being glib, if we didn't have a multilingual IEV sample document before, then we may not have had anything to test again before this refactor, so we don't know that it wasn't buggy before anyway. I am not aware of any IEV multilingual test documents: the ticket request to implement this was glossarist/iev-document#18 , but all I got from @ronaldtse for that was a screenshot, not a document.

In my opinion this feature should not hold up the Presentation XML terms refactor for release next week (which appears otherwise to have gone smoothly); if there are issues, we will find them if we ever have an IEV multilingual document to deal with. (Big if.) If @ronaldtse thinks differently, he will need to source a multilingual IEV document.

There is of course XML in the metanorma-iec test files:

/~https://github.com/metanorma/metanorma-iec/blob/feature/presentation-terms/spec/isodoc/iev_spec.rb

It's the last test case:

          <iso-standard xmlns='http://riboseinc.com/isoxml' type='presentation'>
        <bibdata type='standard'>
          <docidentifier type='ISO'>IEC 60050-192 ED 1</docidentifier>
          <docnumber>60050</docnumber>
        </bibdata>
        #{PREFACE}</preface>
          <sections>
             <clause id="_" obligation="normative" displayorder="8">
                <title id="_">Terms and definitions</title>
                <fmt-title depth="1">
                   <span class="fmt-caption-label">
                      <semx element="autonum" source="_">1</semx>
                   </span>
                   <span class="fmt-caption-delim">
                      <tab/>
                   </span>
                   <semx element="title" source="_">Terms and definitions</semx>
                </fmt-title>
                <fmt-xref-label>
                   <span class="fmt-element-name">Clause</span>
                   <semx element="autonum" source="_">1</semx>
                </fmt-xref-label>
                <terms id="_" obligation="normative">
                   <title id="_">General</title>
                   <fmt-title>
                      <span class="fmt-caption-label">
                         <semx element="autonum" source="_">192-01</semx>
                      </span>
                      <span class="fmt-caption-delim"> </span>
                      <semx element="title" source="_">General</semx>
                   </fmt-title>
                   <fmt-xref-label>
                      <span class="fmt-element-name">Section</span>
                      <semx element="autonum" source="_">192-01</semx>
                   </fmt-xref-label>
                   <term id="item" language="en,fr">
                      <fmt-name>
                         <span class="fmt-caption-label">
                            <semx element="autonum" source="_">192-01</semx>
                            <span class="fmt-autonum-delim">-</span>
                            <semx element="autonum" source="item">01</semx>
                         </span>
                      </fmt-name>
                      <fmt-xref-label>
                         <semx element="autonum" source="_">192-01</semx>
                         <span class="fmt-autonum-delim">-</span>
                         <semx element="autonum" source="item">01</semx>
                      </fmt-xref-label>
                      <preferred id="_">
                         <expression language="en">
                            <name>system</name>
                         </expression>
                         <field-of-application id="_">in dependability</field-of-application>
                      </preferred>
                      <preferred id="_">
                         <expression language="de">
                            <name>Betrachtungseinheit</name>
                            <grammar>
                               <gender>feminine</gender>
                            </grammar>
                         </expression>
                      </preferred>
                      <preferred id="_">
                         <expression language="ja">
                            <name>アイテム</name>
                         </expression>
                      </preferred>
                      <preferred id="_">
                         <expression language="de">
                            <name>Einheit</name>
                            <grammar>
                               <gender>feminine</gender>
                            </grammar>
                         </expression>
                      </preferred>
                      <preferred id="_">
                         <expression language="zh">
                            <name>产品</name>
                         </expression>
                         <field-of-application original-id="_" id="_">在可靠性方面</field-of-application>
                      </preferred>
                      <preferred id="_">
                         <expression language="ar">
                            <name>نظام،</name>
                         </expression>
                         <field-of-application original-id="_" id="_">في الاعتمادیة</field-of-application>
                      </preferred>
                      <fmt-preferred>
                         <p>
                            <semx element="preferred" source="_">
                               <strong>system</strong>
                               <span class="fmt-designation-field">
                                  , &lt;
                                  <semx element="field-of-application" source="_">in dependability</semx>
                                  &gt;
                               </span>
                               , en
                            </semx>
                         </p>
                      </fmt-preferred>
                      <admitted id="_">
                         <expression>
                            <name>paddy rice</name>
                         </expression>
                      </admitted>
                      <admitted id="_">
                         <expression>
                            <name>rough rice</name>
                         </expression>
                      </admitted>
                      <fmt-admitted>
                         <p>
                            <semx element="admitted" source="_">paddy rice</semx>
                         </p>
                         <p>
                            <semx element="admitted" source="_">rough rice</semx>
                         </p>
                      </fmt-admitted>
                      <deprecates id="_">
                         <expression>
                            <name>cargo rice</name>
                         </expression>
                      </deprecates>
                      <fmt-deprecates>
                         <p>
                            DEPRECATED:
                            <semx element="deprecates" source="_">cargo rice</semx>
                         </p>
                      </fmt-deprecates>
                      <related type="contrast" id="_">
                         <preferred>
                            <expression>
                               <name>Fifth Designation</name>
                            </expression>
                         </preferred>
                         <xref target="paddy1"/>
                      </related>
                      <definition id="_">
                         <verbal-definition>
                            <p original-id="_">set of interrelated items that collectively fulfil a requirement</p>
                         </verbal-definition>
                      </definition>
                      <fmt-definition>
                         <semx element="definition" source="_">
                            <p id="_">set of interrelated items that collectively fulfil a requirement</p>
                         </semx>
                         <semx element="related" source="_">
                            <p>
                               CONTRAST:
                               <fmt-preferred>
                                  <semx element="preferred" source="_">
                                     <strong>Fifth Designation</strong>
                                  </semx>
                               </fmt-preferred>
                               (
                               <xref target="paddy1">
                                  <span class="citesec">
                                     <semx element="autonum" source="_">192-01</semx>
                                     <span class="fmt-autonum-delim">-</span>
                                     <semx element="autonum" source="paddy1">02</semx>
                                  </span>
                               </xref>
                               )
                            </p>
                         </semx>
                      </fmt-definition>
                      <termexample id="_" autonum="">
                         <fmt-name>
                            <span class="fmt-caption-label">
                               <span class="fmt-element-name">EXAMPLE</span>
                            </span>
                         </fmt-name>
                         <fmt-xref-label>
                            <span class="fmt-element-name">Example</span>
                         </fmt-xref-label>
                         <fmt-xref-label container="item">
                            <span class="fmt-xref-container">
                               <semx element="autonum" source="_">192-01</semx>
                               <span class="fmt-autonum-delim">-</span>
                               <semx element="autonum" source="item">01</semx>
                            </span>
                            <span class="fmt-comma">,</span>
                            <span class="fmt-element-name">Example</span>
                         </fmt-xref-label>
                         <p id="_">External resources (from outside the system boundary) may be required for the system to operate.</p>
                      </termexample>
                      <termnote id="_" autonum="1">
                         <fmt-name>
                            <span class="fmt-caption-label">Note 1 to entry</span>
                            <span class="fmt-label-delim">: </span>
                         </fmt-name>
                         <fmt-xref-label>
                            <span class="fmt-element-name">Note</span>
                            <semx element="autonum" source="_">1</semx>
                         </fmt-xref-label>
                         <fmt-xref-label container="item">
                            <span class="fmt-xref-container">
                               <semx element="autonum" source="_">192-01</semx>
                               <span class="fmt-autonum-delim">-</span>
                               <semx element="autonum" source="item">01</semx>
                            </span>
                            <span class="fmt-comma">,</span>
                            <span class="fmt-element-name">Note</span>
                            <semx element="autonum" source="_">1</semx>
                         </fmt-xref-label>
                         <p id="_">A system is considered to have a defined real or abstract boundary.</p>
                      </termnote>
                      <termnote id="_" autonum="2">
                         <fmt-name>
                            <span class="fmt-caption-label">Note 2 to entry</span>
                            <span class="fmt-label-delim">: </span>
                         </fmt-name>
                         <fmt-xref-label>
                            <span class="fmt-element-name">Note</span>
                            <semx element="autonum" source="_">2</semx>
                         </fmt-xref-label>
                         <fmt-xref-label container="item">
                            <span class="fmt-xref-container">
                               <semx element="autonum" source="_">192-01</semx>
                               <span class="fmt-autonum-delim">-</span>
                               <semx element="autonum" source="item">01</semx>
                            </span>
                            <span class="fmt-comma">,</span>
                            <span class="fmt-element-name">Note</span>
                            <semx element="autonum" source="_">2</semx>
                         </fmt-xref-label>
                         <p id="_">External resources (from outside the system boundary) may be required for the system to operate.</p>
                      </termnote>
                      <termsource status="modified" id="_">
                         <origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011">
                            <locality type="clause">
                               <referenceFrom>3.1</referenceFrom>
                            </locality>
                            ISO 7301:2011, 3.1
                         </origin>
                         <modification>modified by extension to suit the dependability context</modification>
                      </termsource>
                      <fmt-termsource status="modified">
                         SOURCE:
                         <semx element="termsource" source="_">
                            <origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011">
                               <locality type="clause">
                                  <referenceFrom>3.1</referenceFrom>
                               </locality>
                               ISO 7301:2011, 3.1
                            </origin>
                            , modified —
                            <semx element="modification" source="_">modified by extension to suit the dependability context</semx>
                         </semx>
                      </fmt-termsource>
                      <semx element="term" source="item-fr">
                         <preferred id="_">
                            <expression language="fr">
                               <name>entité</name>
                               <grammar>
                                  <gender>masculine</gender>
                               </grammar>
                            </expression>
                            <field-of-application id="_">en sûreté de fonctionnement</field-of-application>
                         </preferred>
                         <fmt-preferred>
                            <p>
                               <semx element="preferred" source="_">
                                  <strong>entité</strong>
                                  <span class="fmt-designation-field">
                                     , &lt;
                                     <semx element="field-of-application" source="_">en sûreté de fonctionnement</semx>
                                     &gt;
                                  </span>
                                  , m, fr
                               </semx>
                            </p>
                         </fmt-preferred>
                         <related type="contrast" id="_">
                            <preferred>
                               <expression>
                                  <name>Designation cinquième</name>
                               </expression>
                            </preferred>
                            <xref target="paddy1"/>
                         </related>
                         <related type="see" id="_">
                            <preferred>
                               <expression>
                                  <name>Designation sixième</name>
                               </expression>
                            </preferred>
                            <xref target="paddy1"/>
                         </related>
                         <definition id="_">
                            <verbal-definition>
                               <p original-id="_">ensemble d’entités reliées entre elles qui satisfont collectivement à une exigence</p>
                            </verbal-definition>
                         </definition>
                         <fmt-definition>
                            <semx element="definition" source="_">
                               <p id="_">ensemble d’entités reliées entre elles qui satisfont collectivement à une exigence</p>
                            </semx>
                            <semx element="related" source="_">
                               <p>
                                  CONTRASTEZ:
                                  <fmt-preferred>
                                     <semx element="preferred" source="_">
                                        <strong>Designation cinquième</strong>
                                     </semx>
                                  </fmt-preferred>
                                  (
                                  <xref target="paddy1">
                                     <span class="citesec">
                                        <semx element="autonum" source="_">192-01</semx>
                                        <span class="fmt-autonum-delim">-</span>
                                        <semx element="autonum" source="paddy1">02</semx>
                                     </span>
                                  </xref>
                                  )
                               </p>
                            </semx>
                            <semx element="related" source="_">
                               <p>
                                  VOIR:
                                  <fmt-preferred>
                                     <semx element="preferred" source="_">
                                        <strong>Designation sixième</strong>
                                     </semx>
                                  </fmt-preferred>
                                  (
                                  <xref target="paddy1">
                                     <span class="citesec">
                                        <semx element="autonum" source="_">192-01</semx>
                                        <span class="fmt-autonum-delim">-</span>
                                        <semx element="autonum" source="paddy1">02</semx>
                                     </span>
                                  </xref>
                                  )
                               </p>
                            </semx>
                         </fmt-definition>
                         <termexample id="_" autonum="">
                            <fmt-name>
                               <span class="fmt-caption-label">
                                  <span class="fmt-element-name">EXEMPLE</span>
                               </span>
                            </fmt-name>
                            <fmt-xref-label>
                               <span class="fmt-element-name">Example</span>
                            </fmt-xref-label>
                            <fmt-xref-label container="item-fr">
                               <span class="fmt-xref-container">
                                  <semx element="autonum" source="_">192-01</semx>
                                  <span class="fmt-autonum-delim">-</span>
                                  <semx element="autonum" source="item-fr">02</semx>
                               </span>
                               <span class="fmt-comma">,</span>
                               <span class="fmt-element-name">Example</span>
                            </fmt-xref-label>
                            <p id="_">External resources (from outside the system boundary) may be required for the system to operate.</p>
                         </termexample>
                         <termnote id="_" autonum="1">
                            <fmt-name>
                               <span class="fmt-caption-label">Note 1 à l’article</span>
                               <span class="fmt-label-delim">: </span>
                            </fmt-name>
                            <fmt-xref-label>
                               <span class="fmt-element-name">Note</span>
                               <semx element="autonum" source="_">1</semx>
                            </fmt-xref-label>
                            <fmt-xref-label container="item-fr">
                               <span class="fmt-xref-container">
                                  <semx element="autonum" source="_">192-01</semx>
                                  <span class="fmt-autonum-delim">-</span>
                                  <semx element="autonum" source="item-fr">02</semx>
                               </span>
                               <span class="fmt-comma">,</span>
                               <span class="fmt-element-name">Note</span>
                               <semx element="autonum" source="_">1</semx>
                            </fmt-xref-label>
                            <p id="_">Un système est considéré comme ayant une frontière définie, réelle ou abstraite.</p>
                         </termnote>
                         <termnote id="_" autonum="2">
                            <fmt-name>
                               <span class="fmt-caption-label">Note 2 à l’article</span>
                               <span class="fmt-label-delim">: </span>
                            </fmt-name>
                            <fmt-xref-label>
                               <span class="fmt-element-name">Note</span>
                               <semx element="autonum" source="_">2</semx>
                            </fmt-xref-label>
                            <fmt-xref-label container="item-fr">
                               <span class="fmt-xref-container">
                                  <semx element="autonum" source="_">192-01</semx>
                                  <span class="fmt-autonum-delim">-</span>
                                  <semx element="autonum" source="item-fr">02</semx>
                               </span>
                               <span class="fmt-comma">,</span>
                               <span class="fmt-element-name">Note</span>
                               <semx element="autonum" source="_">2</semx>
                            </fmt-xref-label>
                            <p id="_">Des ressources externes (provenant d’au-delà de la frontière) peuvent être nécessaires au fonctionnement du système.</p>
                         </termnote>
                         <termsource status="modified" id="_">
                            <origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011">
                               <locality type="clause">
                                  <referenceFrom>3.1</referenceFrom>
                               </locality>
                               ISO 7301:2011, 3.1
                            </origin>
                            <modification>modifié pour adapter au contexte de la sûreté de fonctionnement</modification>
                         </termsource>
                         <fmt-termsource status="modified">
                            SOURCE:
                            <semx element="termsource" source="_">
                               <origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011">
                                  <locality type="clause">
                                     <referenceFrom>3.1</referenceFrom>
                                  </locality>
                                  ISO 7301:2011, 3.1
                               </origin>
                               , modifié —
                               <semx element="modification" source="_">modifié pour adapter au contexte de la sûreté de fonctionnement</semx>
                            </semx>
                         </fmt-termsource>
                      </semx>
                      <dl type="other-lang">
                         <dt>ar</dt>
                         <dd language="ar" script="Arab">
                            <semx element="preferred" source="_">
                               <strong>؜نظام،؜</strong>
                               <span class="fmt-designation-field">
                                  ؜, &lt;؜
                                  <semx element="field-of-application" source="_">؜في الاعتمادیة؜</semx>
                                  ؜&gt;؜
                               </span>
                            </semx>
                         </dd>
                         <dt>de</dt>
                         <dd language="de" script="Latn">
                            <semx element="preferred" source="_">
                               <strong>Betrachtungseinheit</strong>
                               , f
                            </semx>
                            <semx element="preferred" source="_">
                               <strong>Einheit</strong>
                               , f
                            </semx>
                         </dd>
                         <dt>ja</dt>
                         <dd language="ja" script="Jpan">
                            <semx element="preferred" source="_">
                               <strong>アイテム</strong>
                            </semx>
                         </dd>
                         <dt>zh</dt>
                         <dd language="zh" script="Hans">
                            <semx element="preferred" source="_">
                               <strong>产品</strong>
                               <span class="fmt-designation-field">
                                  ,
                                  <semx element="field-of-application" source="_">在可靠性方面</semx>
                                  &gt;
                               </span>
                            </semx>
                         </dd>
                      </dl>
                   </term>
                   <term id="item-fr" language="fr" tag="item" unnumbered="true">
                      <preferred original-id="_">
                         <expression language="fr">
                            <name>entité</name>
                            <grammar>
                               <gender>masculine</gender>
                            </grammar>
                         </expression>
                         <field-of-application original-id="_">en sûreté de fonctionnement</field-of-application>
                      </preferred>
                      <related type="contrast" original-id="_">
                         <preferred>
                            <expression>
                               <name>Designation cinquième</name>
                            </expression>
                         </preferred>
                         <xref target="paddy1"/>
                      </related>
                      <related type="see" original-id="_">
                         <preferred>
                            <expression>
                               <name>Designation sixième</name>
                            </expression>
                         </preferred>
                         <xref target="paddy1"/>
                      </related>
                      <definition original-id="_">
                         <verbal-definition>
                            <p original-id="_">ensemble d’entités reliées entre elles qui satisfont collectivement à une exigence</p>
                         </verbal-definition>
                      </definition>
                      <termexample autonum="" original-id="_">
                         <p original-id="_">External resources (from outside the system boundary) may be required for the system to operate.</p>
                      </termexample>
                      <termnote autonum="1" original-id="_">
                         <p original-id="_">Un système est considéré comme ayant une frontière définie, réelle ou abstraite.</p>
                      </termnote>
                      <termnote autonum="2" original-id="_">
                         <p original-id="_">Des ressources externes (provenant d’au-delà de la frontière) peuvent être nécessaires au fonctionnement du système.</p>
                      </termnote>
                      <termsource status="modified" original-id="_">
                         <origin bibitemid="ISO7301" type="inline" citeas="ISO 7301:2011">
                            <locality type="clause">
                               <referenceFrom>3.1</referenceFrom>
                            </locality>
                            ISO 7301:2011, 3.1
                         </origin>
                         <modification>modifié pour adapter au contexte de la sûreté de fonctionnement</modification>
                      </termsource>
                   </term>
                   <term id="paddy1">
                      <fmt-name>
                         <span class="fmt-caption-label">
                            <semx element="autonum" source="_">192-01</semx>
                            <span class="fmt-autonum-delim">-</span>
                            <semx element="autonum" source="paddy1">02</semx>
                         </span>
                      </fmt-name>
                      <fmt-xref-label>
                         <semx element="autonum" source="_">192-01</semx>
                         <span class="fmt-autonum-delim">-</span>
                         <semx element="autonum" source="paddy1">02</semx>
                      </fmt-xref-label>
                      <preferred id="_">
                         <expression>
                            <name>paddy</name>
                         </expression>
                      </preferred>
                      <fmt-preferred>
                         <p>
                            <semx element="preferred" source="_">
                               <strong>paddy</strong>
                            </semx>
                         </p>
                      </fmt-preferred>
                      <definition id="_">
                         <verbal-definition>
                            <p original-id="_">rice retaining its husk after threshing</p>
                         </verbal-definition>
                      </definition>
                      <fmt-definition>
                         <semx element="definition" source="_">
                            <p id="_">rice retaining its husk after threshing</p>
                         </semx>
                      </fmt-definition>
                   </term>
                </terms>
             </clause>
          </sections>
       </iso-standard>

@Intelligent2013
Copy link
Contributor

@opoudjis thank you!

ITU XSLT updated.

All XSLT updated in metanorma/mn-native-pdf#797.
If check will successful, then PR can be merged.

@ronaldtse
Copy link
Contributor

the ticket request to implement this was glossarist/iev-document#18 , but all I got from @ronaldtse for that was a screenshot, not a document.

That exactly is an IEV multilingual document. Is the complaint that the screenshotted document is not properly encoded?

@Intelligent2013 Intelligent2013 moved this from 🆕 New to ✅ Done in Metanorma Jan 15, 2025
@Intelligent2013
Copy link
Contributor

Done. metanorma/mn-native-pdf#797 is ready to merge.

@opoudjis
Copy link
Contributor Author

the ticket request to implement this was glossarist/iev-document#18 , but all I got from @ronaldtse for that was a screenshot, not a document.

That exactly is an IEV multilingual document. Is the complaint that the screenshotted document is not properly encoded?

No, it's that we don't have softcopy for @Intelligent2013 to test against.

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

3 participants