isodoc 1.8.1 → 1.8.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -397,70 +397,70 @@ RSpec.describe IsoDoc do
397
397
  </iso-standard>
398
398
  INPUT
399
399
  output = <<~OUTPUT
400
- <html xmlns:epub='http://www.idpf.org/2007/ops' lang='en'>
401
- <head>
402
- <style>
403
- </style>
404
- </head>
405
- <body lang='EN-US' link='blue' vlink='#954F72'>
406
- <div class='WordSection1'>
407
- <p>&#160;</p>
408
- </div>
409
- <p>
410
- <br clear='all' class='section'/>
411
- </p>
412
- <div class='WordSection2'>
413
- <p>
414
- <br clear='all' style='mso-special-character:line-break;page-break-before:always'/>
415
- </p>
416
- <div>
417
- <h1 class='ForewordTitle'>Foreword</h1>
418
- <table class='dl'>
419
- <tr>
420
- <td valign='top' align='left'>
421
- <p align='left' style='margin-left:0pt;text-align:left;'>A Deflist</p>
422
- </td>
423
- <td valign='top'>
424
- <dl id='_732d3f57-4f88-40bf-9ae9-633891edc395'>
425
- <dt>
426
- <p align='left' style='margin-left:0pt;text-align:left;'>W</p>
427
- </dt>
428
- <dd>
429
- <p id='_05d81174-3a41-44af-94d8-c78b8d2e175d'>mass fraction of gelatinized kernels</p>
430
- </dd>
431
- </dl>
432
- </td>
433
- </tr>
434
- </table>
435
- <div align='center' class='table_container'>
436
- <table id='_732d3f57-4f88-40bf-9ae9-633891edc396' class='MsoISOTable' style='mso-table-anchor-horizontal:column;mso-table-overlap:never;border-spacing:0;border-width:1px;'>
437
- <tbody>
438
- <tr>
439
- <td style='border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>
440
- <dl id='_732d3f57-4f88-40bf-9ae9-633891edc397'>
441
- <dt>
442
- <p align='left' style='margin-left:0pt;text-align:left;'>X</p>
443
- </dt>
444
- <dd>
445
- <p id='_05d81174-3a41-44af-94d8-c78b8d2e175e'>expressed in per cent</p>
446
- </dd>
447
- </dl>
448
- </td>
449
- </tr>
450
- </tbody>
451
- </table>
452
- </div>
453
- </div>
454
- <p>&#160;</p>
455
- </div>
456
- <p>
457
- <br clear='all' class='section'/>
458
- </p>
459
- <div class='WordSection3'>
460
- <p class='zzSTDTitle1'/>
461
- </div>
462
- </body>
463
- </html>
400
+ <html xmlns:epub='http://www.idpf.org/2007/ops' lang='en'>
401
+ <head>
402
+ <style>
403
+ </style>
404
+ </head>
405
+ <body lang='EN-US' link='blue' vlink='#954F72'>
406
+ <div class='WordSection1'>
407
+ <p>&#160;</p>
408
+ </div>
409
+ <p>
410
+ <br clear='all' class='section'/>
411
+ </p>
412
+ <div class='WordSection2'>
413
+ <p>
414
+ <br clear='all' style='mso-special-character:line-break;page-break-before:always'/>
415
+ </p>
416
+ <div>
417
+ <h1 class='ForewordTitle'>Foreword</h1>
418
+ <table class='dl'>
419
+ <tr>
420
+ <td valign='top' align='left'>
421
+ <p align='left' style='margin-left:0pt;text-align:left;'>A Deflist</p>
422
+ </td>
423
+ <td valign='top'>
424
+ <dl id='_732d3f57-4f88-40bf-9ae9-633891edc395'>
425
+ <dt>
426
+ <p align='left' style='margin-left:0pt;text-align:left;'>W</p>
427
+ </dt>
428
+ <dd>
429
+ <p id='_05d81174-3a41-44af-94d8-c78b8d2e175d'>mass fraction of gelatinized kernels</p>
430
+ </dd>
431
+ </dl>
432
+ </td>
433
+ </tr>
434
+ </table>
435
+ <div align='center' class='table_container'>
436
+ <table id='_732d3f57-4f88-40bf-9ae9-633891edc396' class='MsoISOTable' style='mso-table-anchor-horizontal:column;mso-table-overlap:never;border-spacing:0;border-width:1px;'>
437
+ <tbody>
438
+ <tr>
439
+ <td style='border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;'>
440
+ <dl id='_732d3f57-4f88-40bf-9ae9-633891edc397'>
441
+ <dt>
442
+ <p align='left' style='margin-left:0pt;text-align:left;'>X</p>
443
+ </dt>
444
+ <dd>
445
+ <p id='_05d81174-3a41-44af-94d8-c78b8d2e175e'>expressed in per cent</p>
446
+ </dd>
447
+ </dl>
448
+ </td>
449
+ </tr>
450
+ </tbody>
451
+ </table>
452
+ </div>
453
+ </div>
454
+ <p>&#160;</p>
455
+ </div>
456
+ <p>
457
+ <br clear='all' class='section'/>
458
+ </p>
459
+ <div class='WordSection3'>
460
+ <p class='zzSTDTitle1'/>
461
+ </div>
462
+ </body>
463
+ </html>
464
464
  OUTPUT
465
465
  expect(xmlpp(IsoDoc::WordConvert.new({})
466
466
  .convert("test", input, true)))
@@ -328,7 +328,7 @@ RSpec.describe IsoDoc do
328
328
  <title depth='2'>3.1.<tab/>Normal Terms</title>
329
329
  <term id='J'>
330
330
  <name>3.1.1.</name>
331
- <preferred>Term2</preferred>
331
+ <preferred><strong>Term2</strong></preferred>
332
332
  </term>
333
333
  </terms>
334
334
  <definitions id='K'>
@@ -473,7 +473,7 @@ RSpec.describe IsoDoc do
473
473
  <div id="I">
474
474
  <h2>3.1.&#160; Normal Terms</h2>
475
475
  <p class="TermNum" id="J">3.1.1.</p>
476
- <p class="Terms" style="text-align:left;">Term2</p>
476
+ <p class="Terms" style="text-align:left;"><b>Term2</b></p>
477
477
  </div><div id="K"><h2>3.2.&#160; Definitions</h2>
478
478
  <dl><dt><p>Symbol</p></dt><dd>Definition</dd></dl>
479
479
  </div></div>
@@ -628,7 +628,7 @@ RSpec.describe IsoDoc do
628
628
 
629
629
  <p class="TermNum" id="J">3.1.1.</p>
630
630
 
631
- <p class="Terms" style="text-align:left;">Term2</p>
631
+ <p class="Terms" style="text-align:left;"><b>Term2</b></p>
632
632
 
633
633
  </div>
634
634
  <div id="K"><h2>3.2.<span style="mso-tab-count:1">&#160; </span>Definitions</h2>
@@ -925,7 +925,7 @@ RSpec.describe IsoDoc do
925
925
  Variant 1
926
926
  </h2>
927
927
  <p class='TermNum' id='J'>3.1.1.</p>
928
- <p class='Terms' style='text-align:left;'>Term2</p>
928
+ <p class='Terms' style='text-align:left;'><b>Term2</b></p>
929
929
  </div>
930
930
  <div id='K'>
931
931
  <h2>
@@ -1187,7 +1187,7 @@ RSpec.describe IsoDoc do
1187
1187
  Variant 1
1188
1188
  </h2>
1189
1189
  <p class='TermNum' id='J'>3.1.1.</p>
1190
- <p class='Terms' style='text-align:left;'>Term2</p>
1190
+ <p class='Terms' style='text-align:left;'><b>Term2</b></p>
1191
1191
  </div>
1192
1192
  <div id='K'>
1193
1193
  <h2>
@@ -1431,7 +1431,7 @@ RSpec.describe IsoDoc do
1431
1431
  <title depth='2'>Normal Terms</title>
1432
1432
  <term id='J'>
1433
1433
  <name>3.1.1.</name>
1434
- <preferred>Term2</preferred>
1434
+ <preferred><strong>Term2</strong></preferred>
1435
1435
  </term>
1436
1436
  </terms>
1437
1437
  <definitions id='K'>
@@ -1540,7 +1540,7 @@ RSpec.describe IsoDoc do
1540
1540
  <title depth='1'>1.<tab/>Terms, Definitions, Symbols and Abbreviated Terms</title>
1541
1541
  <term id='J'>
1542
1542
  <name>1.1.</name>
1543
- <preferred>Term2</preferred>
1543
+ <preferred><strong>Term2</strong></preferred>
1544
1544
  </term>
1545
1545
  </terms>
1546
1546
  </sections>
@@ -1552,7 +1552,7 @@ RSpec.describe IsoDoc do
1552
1552
  <p class="zzSTDTitle1"/>
1553
1553
  <div id="H"><h1>1.&#160; Terms, Definitions, Symbols and Abbreviated Terms</h1>
1554
1554
  <p class="TermNum" id="J">1.1.</p>
1555
- <p class="Terms" style="text-align:left;">Term2</p>
1555
+ <p class="Terms" style="text-align:left;"><b>Term2</b></p>
1556
1556
  </div>
1557
1557
  </div>
1558
1558
  </body>
@@ -1835,7 +1835,7 @@ RSpec.describe IsoDoc do
1835
1835
  <title>A.</title>
1836
1836
  <term id='term-glossary'>
1837
1837
  <name>A.1.</name>
1838
- <preferred>Glossary</preferred>
1838
+ <preferred><strong>Glossary</strong></preferred>
1839
1839
  </term>
1840
1840
  </terms>
1841
1841
  </annex>
@@ -1856,7 +1856,7 @@ RSpec.describe IsoDoc do
1856
1856
  </title>
1857
1857
  <term id='term-term-1'>
1858
1858
  <name>B.1.1.</name>
1859
- <preferred>Term</preferred>
1859
+ <preferred><strong>Term</strong></preferred>
1860
1860
  </term>
1861
1861
  </terms>
1862
1862
  <terms id='QQ2' obligation='normative'>
@@ -1867,7 +1867,7 @@ RSpec.describe IsoDoc do
1867
1867
  </title>
1868
1868
  <term id='term-term-2'>
1869
1869
  <name>B.2.1.</name>
1870
- <preferred>Term</preferred>
1870
+ <preferred><strong>Term</strong></preferred>
1871
1871
  </term>
1872
1872
  </terms>
1873
1873
  </annex>
@@ -1888,7 +1888,7 @@ RSpec.describe IsoDoc do
1888
1888
  </title>
1889
1889
  <term id='term-term-3'>
1890
1890
  <name>C.1.1.</name>
1891
- <preferred>Term</preferred>
1891
+ <preferred><strong>Term</strong></preferred>
1892
1892
  </term>
1893
1893
  </terms>
1894
1894
  <references id='RR2' obligation='normative'>