Skip to content

Commit

Permalink
restore boldface to designations: metanorma/isodoc#632
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Jan 9, 2025
1 parent eb29fda commit f6634c2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
2 changes: 1 addition & 1 deletion lib/isodoc/ogc/presentation_xml_convert.rb
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def admits(elem)
end
end

def designation_boldface(desgn); end
#def designation_boldface(desgn); end

def source_label(elem)
labelled_ancestor(elem) and return
Expand Down
36 changes: 19 additions & 17 deletions spec/isodoc/section_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@
</preferred>
<fmt-preferred>
<p>
<semx element="preferred" source="_">Term2</semx>
<semx element="preferred" source="_"><strong>Term2</strong></semx>
</p>
</fmt-preferred>
<admitted id="_">
Expand Down Expand Up @@ -350,7 +350,7 @@
<div id="J">
<h2 class="TermNum" style="text-align:left;" id="_">
<a class="anchor" href="#J"/>
<a class="header" href="#J">1.1. Term2</a>
<a class="header" href="#J">1.1. <b>Term2</b></a>
</h2>
</div>
<p class="AltTerms" style="text-align:left;">
Expand Down Expand Up @@ -388,7 +388,7 @@
</h1>
<p class="TermNum" style="text-align:left;">
<a name="J" id="J"/>
1.1. Term2
1.1. <b>Term2</b>
</p>
<p class="AltTerms" style="text-align:left;">
Term2A 
Expand Down Expand Up @@ -890,7 +890,9 @@
</preferred>
<fmt-preferred>
<p>
<semx element="preferred" source="_">Term2</semx>
<semx element="preferred" source="_">
<strong>Term2</strong>
</semx>
</p>
</fmt-preferred>
</term>
Expand Down Expand Up @@ -1140,7 +1142,7 @@
</preferred>
<fmt-preferred>
<p>
<semx element="preferred" source="_">Glossary</semx>
<semx element="preferred" source="_"><strong>Glossary</strong></semx>
</p>
</fmt-preferred>
</term>
Expand Down Expand Up @@ -1216,7 +1218,7 @@
</preferred>
<fmt-preferred>
<p>
<semx element="preferred" source="_">Term</semx>
<semx element="preferred" source="_"><strong>Term</strong></semx>
</p>
</fmt-preferred>
</term>
Expand Down Expand Up @@ -1267,7 +1269,7 @@
</preferred>
<fmt-preferred>
<p>
<semx element="preferred" source="_">Term</semx>
<semx element="preferred" source="_"><strong>Term</strong></semx>
</p>
</fmt-preferred>
</term>
Expand Down Expand Up @@ -1361,7 +1363,7 @@
<div id="I">
<h2>4.1.  Normal Terms</h2>
<p class="TermNum" id="J">4.1.1.</p>
<p class="Terms" style="text-align:left;">Term2</p>
<p class="Terms" style="text-align:left;"><b>Term2</b></p>
</div>
<div id="K">
<h2>4.2.  Definitions</h2>
Expand Down Expand Up @@ -1425,7 +1427,7 @@
</h1>
<div id="PP1">
<p class="TermNum" id="term-glossary">B.1.</p>
<p class="Terms" style="text-align:left;">Glossary</p>
<p class="Terms" style="text-align:left;"><b>Glossary</b></p>
</div>
</div>
<br/>
Expand All @@ -1440,12 +1442,12 @@
<div id="QQ1">
<h2>C.1.  Term Collection</h2>
<p class="TermNum" id="term-term-1">C.1.1.</p>
<p class="Terms" style="text-align:left;">Term</p>
<p class="Terms" style="text-align:left;"><b>Term</b></p>
</div>
<div id="QQ2">
<h2>C.2.  Term Collection 2</h2>
<p class="TermNum" id="term-term-2">C.2.1.</p>
<p class="Terms" style="text-align:left;">Term</p>
<p class="Terms" style="text-align:left;"><b>Term</b></p>
</div>
</div>
<br/>
Expand Down Expand Up @@ -1591,7 +1593,7 @@
</preferred>
<fmt-preferred>
<p>
<semx element="preferred" source="_">Glossary</semx>
<semx element="preferred" source="_"><strong>Glossary</strong></semx>
</p>
</fmt-preferred>
</term>
Expand Down Expand Up @@ -1667,7 +1669,7 @@
</preferred>
<fmt-preferred>
<p>
<semx element="preferred" source="_">Term</semx>
<semx element="preferred" source="_"><strong>Term</strong></semx>
</p>
</fmt-preferred>
</term>
Expand Down Expand Up @@ -1718,7 +1720,7 @@
</preferred>
<fmt-preferred>
<p>
<semx element="preferred" source="_">Term</semx>
<semx element="preferred" source="_"><strong>Term</strong></semx>
</p>
</fmt-preferred>
</term>
Expand Down Expand Up @@ -1775,7 +1777,7 @@
</h1>
<div id="PP1">
<p class="TermNum" id="term-glossary">B.1.</p>
<p class="Terms" style="text-align:left;">Glossary</p>
<p class="Terms" style="text-align:left;"><b>Glossary</b></p>
</div>
</div>
<br/>
Expand All @@ -1790,12 +1792,12 @@
<div id="QQ1">
<h2>C.1.  Term Collection</h2>
<p class="TermNum" id="term-term-1">C.1.1.</p>
<p class="Terms" style="text-align:left;">Term</p>
<p class="Terms" style="text-align:left;"><b>Term</b></p>
</div>
<div id="QQ2">
<h2>C.2.  Term Collection 2</h2>
<p class="TermNum" id="term-term-2">C.2.1.</p>
<p class="Terms" style="text-align:left;">Term</p>
<p class="Terms" style="text-align:left;"><b>Term</b></p>
</div>
</div>
</div>
Expand Down

0 comments on commit f6634c2

Please sign in to comment.