spec/isodoc/i18n_spec.rb in metanorma-iec-0.0.3 vs spec/isodoc/i18n_spec.rb in metanorma-iec-0.0.4

- old
+ new

@@ -91,23 +91,12 @@ <h1>1&#160; Scope</h1> <p id="E">Text</p> </div> <div> <h1>2&#160; Normative references</h1> - <p>There are no normative references in this document.</p> </div> - <div id="H"><h1>3&#160; Terms, definitions, symbols and abbreviated terms</h1><p>For the purposes of this document, - the following terms and definitions apply.</p> - <p>ISO and IEC maintain terminological databases for use in - standardization at the following addresses:</p> - - <ul> - <li> <p>ISO Online browsing platform: available at - <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li> - <li> <p>IEC Electropedia: available at - <a href="http://www.electropedia.org">http://www.electropedia.org</a> - </p> </li> </ul> + <div id="H"><h1>3&#160; Terms, definitions, symbols and abbreviated terms</h1> <div id="I"><h2>3.1 Normal Terms</h2> <p class="TermNum" id="J">3.1.1</p> <p class="Terms" style="text-align:left;">Term2</p> @@ -227,11 +216,11 @@ </references> </clause> </bibliography> </iso-standard> INPUT - #{HTML_HDR.sub(/"en"/, '"tlh"')} + #{HTML_HDR.gsub(/"en"/, '"tlh"')} <div> <h1 class="ForewordTitle">FOREWORD</h1> <div class="boilerplate_legal"/> <p id="A">This is a preamble</p> </div> @@ -248,23 +237,12 @@ <h1>1&#160; Scope</h1> <p id="E">Text</p> </div> <div> <h1>2&#160; Normative references</h1> - <p>There are no normative references in this document.</p> </div> - <div id="H"><h1>3&#160; Terms, definitions, symbols and abbreviated terms</h1><p>For the purposes of this document, - the following terms and definitions apply.</p> - <p>ISO and IEC maintain terminological databases for use in - standardization at the following addresses:</p> - - <ul> - <li> <p>ISO Online browsing platform: available at - <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li> - <li> <p>IEC Electropedia: available at - <a href="http://www.electropedia.org">http://www.electropedia.org</a> - </p> </li> </ul> + <div id="H"><h1>3&#160; Terms, definitions, symbols and abbreviated terms</h1> <div id="I"><h2>3.1 Normal Terms</h2> <p class="TermNum" id="J">3.1.1</p> <p class="Terms" style="text-align:left;">Term2</p> @@ -385,11 +363,11 @@ </clause> </bibliography> </iso-standard> INPUT #{HTML_HDR.sub(/INTERNATIONAL ELECTROTECHNICAL COMMISSION/, "COMMISSION ELECTROTECHNIQUE INTERNATIONALE"). - sub(/"en"/, '"fr"')} + gsub(/"en"/, '"fr"')} <div> <h1 class="ForewordTitle">AVANT-PROPOS</h1> <div class="boilerplate_legal"/> <p id="A">This is a preamble</p> </div> @@ -406,22 +384,12 @@ <h1>1&#160; Domaine d'application</h1> <p id="E">Text</p> </div> <div> <h1>2&#160; R&#233;f&#233;rences normatives</h1> - <p>Le pr&#233;sent document ne contient aucune r&#233;f&#233;rence normative.</p> </div> - <div id="H"><h1>3&#160; Terms, d&#233;finitions, symboles et termes abr&#233;g&#233;s</h1><p>Pour les besoins du pr&#233;sent document, les termes et d&#233;finitions suivants s'appliquent.</p> - <p>L'ISO et l'IEC tiennent &#224; jour des bases de donn&#233;es terminologiques - destin&#233;es &#224; &#234;tre utilis&#233;es en normalisation, consultables aux adresses - suivantes:</p> - <ul> - <li> <p>ISO Online browsing platform: disponible &#224; l'adresse - <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li> - <li> <p>IEC Electropedia: disponible &#224; l'adresse - <a href="http://www.electropedia.org">http://www.electropedia.org</a> - </p> </li> </ul> + <div id="H"><h1>3&#160; Terms, d&#233;finitions, symboles et termes abr&#233;g&#233;s</h1> <div id="I"><h2>3.1 Normal Terms</h2> <p class="TermNum" id="J">3.1.1</p> <p class="Terms" style="text-align:left;">Term2</p> @@ -552,11 +520,11 @@ </references> </clause> </bibliography> </iso-standard> INPUT - #{HTML_HDR.sub(/"en"/, '"zh"').sub(/INTERNATIONAL ELECTROTECHNICAL COMMISSION/, "国际电工委员会")} + #{HTML_HDR.gsub(/"en"/, '"zh"').sub(/INTERNATIONAL ELECTROTECHNICAL COMMISSION/, "国际电工委员会")} <div> <h1 class="ForewordTitle">&#21069;&#35328;</h1> <div class="boilerplate_legal"/> <p id="A">This is a preamble</p> </div> @@ -575,20 +543,12 @@ <a href="#ISO712">ISO 712&#12289;&#31532;1&#8211;<referenceto>1</referenceto>&#34920;</a> </p> </div> <div> <h1>2&#160; &#35268;&#33539;&#24615;&#24341;&#29992;&#25991;&#20214;</h1> - <p>&#19979;&#21015;&#25991;&#20214;&#23545;&#20110;&#26412;&#25991;&#20214;&#30340;&#24212;&#29992;&#26159;&#24517;&#19981;&#21487;&#23569;&#30340;&#12290; &#20961;&#26159;&#27880;&#26085;&#26399;&#30340;&#24341;&#29992;&#25991;&#20214;&#65292;&#20165;&#27880;&#26085;&#26399;&#30340;&#29256;&#26412;&#36866;&#29992;&#20110;&#26412;&#25991;&#20214;&#12290; &#20961;&#26159;&#19981;&#27880;&#26085;&#26399;&#30340;&#24341;&#29992;&#25991;&#20214;&#65292;&#20854;&#26368;&#26032;&#29256;&#26412;&#65288;&#21253;&#25324;&#25152;&#26377;&#30340;&#20462;&#25913;&#21333;&#65289;&#36866;&#29992;&#20110;&#26412;&#25991;&#20214;&#12290;</p> <p id="ISO712" class="NormRef">ISO 712, <i> Cereals and cereal products</i></p> </div> - <div id="H"><h1>3&#160; &#26415;&#35821;&#12289;&#23450;&#20041;&#12289;&#31526;&#21495;&#12289;&#20195;&#21495;&#21644;&#32553;&#30053;&#35821;</h1><p>&#19979;&#21015;&#26415;&#35821;&#21644;&#23450;&#20041;&#36866;&#29992;&#20110;&#26412;&#25991;&#20214;&#12290;</p> - <p>ISO&#21644;IEC&#29992;&#20110;&#26631;&#20934;&#21270;&#30340;&#26415;&#35821;&#25968;&#25454;&#24211;&#22320;&#22336;&#22914;&#19979;&#65306;</p> - <ul> - <li> <p>ISO&#22312;&#32447;&#27983;&#35272;&#24179;&#21488;: - &#20301;&#20110;<a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li> - <li> <p>IEC Electropedia: - &#20301;&#20110;<a href="http://www.electropedia.org">http://www.electropedia.org</a> - </p> </li> </ul> + <div id="H"><h1>3&#160; &#26415;&#35821;&#12289;&#23450;&#20041;&#12289;&#31526;&#21495;&#12289;&#20195;&#21495;&#21644;&#32553;&#30053;&#35821;</h1> <div id="I"><h2>3.1 Normal Terms</h2> <p class="TermNum" id="J">3.1.1</p> <p class="Terms" style="text-align:left;">Term2</p>