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  Scope</h1>
<p id="E">Text</p>
</div>
<div>
<h1>2  Normative references</h1>
- <p>There are no normative references in this document.</p>
</div>
- <div id="H"><h1>3  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  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  Scope</h1>
<p id="E">Text</p>
</div>
<div>
<h1>2  Normative references</h1>
- <p>There are no normative references in this document.</p>
</div>
- <div id="H"><h1>3  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  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  Domaine d'application</h1>
<p id="E">Text</p>
</div>
<div>
<h1>2  Références normatives</h1>
- <p>Le présent document ne contient aucune référence normative.</p>
</div>
- <div id="H"><h1>3  Terms, définitions, symboles et termes abrégés</h1><p>Pour les besoins du présent document, les termes et définitions suivants s'appliquent.</p>
- <p>L'ISO et l'IEC tiennent à jour des bases de données terminologiques
- destinées à être utilisées en normalisation, consultables aux adresses
- suivantes:</p>
- <ul>
- <li> <p>ISO Online browsing platform: disponible à l'adresse
- <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
- <li> <p>IEC Electropedia: disponible à l'adresse
- <a href="http://www.electropedia.org">http://www.electropedia.org</a>
- </p> </li> </ul>
+ <div id="H"><h1>3  Terms, définitions, symboles et termes abrégé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">前言</h1>
<div class="boilerplate_legal"/>
<p id="A">This is a preamble</p>
</div>
@@ -575,20 +543,12 @@
<a href="#ISO712">ISO 712、第1–<referenceto>1</referenceto>表</a>
</p>
</div>
<div>
<h1>2  规范性引用文件</h1>
- <p>下列文件对于本文件的应用是必不可少的。 凡是注日期的引用文件,仅注日期的版本适用于本文件。 凡是不注日期的引用文件,其最新版本(包括所有的修改单)适用于本文件。</p>
<p id="ISO712" class="NormRef">ISO 712, <i> Cereals and cereal products</i></p>
</div>
- <div id="H"><h1>3  术语、定义、符号、代号和缩略语</h1><p>下列术语和定义适用于本文件。</p>
- <p>ISO和IEC用于标准化的术语数据库地址如下:</p>
- <ul>
- <li> <p>ISO在线浏览平台:
- 位于<a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
- <li> <p>IEC Electropedia:
- 位于<a href="http://www.electropedia.org">http://www.electropedia.org</a>
- </p> </li> </ul>
+ <div id="H"><h1>3  术语、定义、符号、代号和缩略语</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>