metanorma-itu 0.2.9 → 0.2.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 39299e29cd911ccc2c3ee6da83a7eb7bc2c82fae171e59f01ffc079a757d941e
4
- data.tar.gz: b7dbd2216cdf8afb36d5104bff9353450e3da6617cc75c67f448c06ea94eab4d
3
+ metadata.gz: 3c31742aa742d0cf1ad895c411316b002203f419739c93536c296b65b175d123
4
+ data.tar.gz: c9c6a15fa22045c804e5ffe46809a9fa7514b30e97eb7d1dfb0e57e01eb74c3a
5
5
  SHA512:
6
- metadata.gz: f5bb0e107c92028f5c34a11b8a0331a34a2e5adc15892703deffbe4391e4cc5d7582c95589819f917eeae1362de8adbd683fb546d193b3d8e7ae230df7e3c7fa
7
- data.tar.gz: 3330e9cfb48867c2031b89eec8ac9402a01423b288d3f14e5395dba16b6f24d681d3024bf150c6cf676a6a116e5310eed03999c47b012689908f2671efceb760
6
+ metadata.gz: 13e236e23bd23daf650570c78c3dd3e34205e6b42b12b0c3ddaa86d44cc0bcac8a76391e6d0a6076efca9ea3bc0ea80c0bbb1d368d44f5956975ba55026b896f
7
+ data.tar.gz: e78bdabded1d26a880f10c211205215bd27a5e97aa967074e1d992bb4c97905eef59766948afecdab038f10f5d2f7737177ff2f9dc2c08db12648010587f0512
@@ -1,9 +1,10 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
3
- <include href="biblio.rng"/>
4
- <start>
5
- <ref name="document"/>
6
- </start>
3
+ <include href="biblio.rng">
4
+ <start>
5
+ <ref name="document"/>
6
+ </start>
7
+ </include>
7
8
  <define name="document">
8
9
  <element name="document">
9
10
  <optional>
@@ -33,6 +33,9 @@
33
33
  <param name="pattern">([\+\-]?\d{4})((-?)((0[1-9]|1[0-2])((-?)([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6]))))?</param>
34
34
  </data>
35
35
  </define>
36
+ <start>
37
+ <ref name="relaton_collection"/>
38
+ </start>
36
39
  <define name="status">
37
40
  <element name="status">
38
41
  <ref name="stage"/>
@@ -822,10 +822,6 @@ div.WordSection2
822
822
  mso-paper-source:0;}
823
823
  div.WordSection3
824
824
  {page:WordSection3;}
825
- ol
826
- {margin-bottom:0cm;}
827
- ul
828
- {margin-bottom:0cm;}
829
825
  table.MsoISOTable
830
826
  {mso-style-name:"Table ISO";
831
827
  mso-tstyle-rowband-size:0;
@@ -846,8 +842,6 @@ table.MsoISOTable
846
842
  mso-border-insidev:.75pt solid windowtext;
847
843
  font-size:11.0pt;
848
844
  font-family:$bodyfont;}
849
- table.MsoISOTable tr
850
- {page-break-inside:avoid;}
851
845
  table.MsoISOTable th
852
846
  {border:solid windowtext 1pt;
853
847
  mso-border-alt:solid windowtext 1pt;
@@ -874,20 +868,10 @@ table.MsoTableGrid
874
868
  mso-pagination:widow-orphan;
875
869
  font-size:10.0pt;
876
870
  font-family:$bodyfont;}
877
- td { page-break-inside:avoid; }
878
- tr { page-break-after:avoid; }
879
- span.stem
880
- {font-family:"Cambria Math",serif;
881
- mso-ascii-font-family:"Cambria Math";
882
- font-style:
883
- italic;}
884
- div.Zormula, div.formula p
871
+ div.formula, div.formula p
885
872
  {tab-stops:39.7pt center 241.0pt right 17.0cm;}
886
873
  body
887
874
  {tab-interval:36.0pt;}
888
- dt
889
- {page-break-inside:avoid;
890
- page-break-after:avoid}
891
875
  .coverpage_docnumber
892
876
  {text-align:center;
893
877
  font-size:14.0pt;
@@ -36,7 +36,7 @@
36
36
  mso-position-vertical-relative:text;mso-width-percent:0;
37
37
  mso-height-percent:0;mso-width-relative:margin;mso-height-relative:margin'
38
38
  o:allowincell="f">
39
- <v:imagedata src="itu-document-comb.png" o:title="Fond-Rec_e"/>
39
+ <v:imagedata src="{{ logo_comb }}" o:title="Fond-Rec_e"/>
40
40
  </v:shape><a name="_Hlk526346232"><span lang="EN-GB"><o:p>&#xA0;</o:p></span></a></p>
41
41
  <span style='mso-bookmark:_Hlk526346232'></span>
42
42
  <p class="MsoNormal" style='margin-top:0cm'><span style='mso-bookmark:_Hlk526346232'><b
@@ -282,7 +282,7 @@ font-family:"Arial",sans-serif;mso-bidi-font-family:"Times New Roman";
282
282
  mso-ansi-language:EN-US;mso-fareast-language:ZH-CN;mso-no-proof:yes'><v:shape
283
283
  id="Picture_x0020_1" o:spid="_x0000_i1033" type="#_x0000_t75" alt="logo_E"
284
284
  style='width:121pt;height:50pt;visibility:visible;mso-wrap-style:square'>
285
- <v:imagedata src="logo.png" o:title="logo_E"/>
285
+ <v:imagedata src="{{ logo_word }}" o:title="logo_E"/>
286
286
  </v:shape></span></span><span style='mso-bookmark:_Hlk526346232'><span
287
287
  lang="EN-US" style='font-size:9.0pt;mso-bidi-font-size:10.0pt;font-family:"Arial",sans-serif;
288
288
  mso-bidi-font-family:"Times New Roman";mso-ansi-language:EN-US'><o:p></o:p></span></span></p>
@@ -1396,62 +1396,62 @@ p.Tablebody, li.Tablebody, div.Tablebody
1396
1396
  mso-level-text:"%1\)";
1397
1397
  mso-level-tab-stop:none;
1398
1398
  mso-level-number-position:left;
1399
- margin-left:18.0pt;
1400
- text-indent:-18.0pt;}
1399
+ margin-left:1.4cm;
1400
+ text-indent:-1.4cm;}
1401
1401
  @list l2:level2
1402
- {mso-level-text:"%2\)";
1402
+ {mso-level-number-format:roman-lower;
1403
+ mso-level-text:"%2\)";
1403
1404
  mso-level-tab-stop:none;
1404
1405
  mso-level-number-position:left;
1405
- margin-left:36.0pt;
1406
- text-indent:-18.0pt;}
1406
+ margin-left:2.1cm;
1407
+ text-indent:-0.7cm;}
1407
1408
  @list l2:level3
1408
- {mso-level-number-format:roman-lower;
1409
- mso-level-text:"%3\)";
1409
+ {mso-level-text:"%3\)";
1410
1410
  mso-level-tab-stop:none;
1411
1411
  mso-level-number-position:left;
1412
- margin-left:54.0pt;
1413
- text-indent:-18.0pt;}
1412
+ margin-left:2.8cm;
1413
+ text-indent:-0.7cm;}
1414
1414
  @list l2:level4
1415
1415
  {mso-level-number-format:alpha-upper;
1416
1416
  mso-level-text:"%4\)";
1417
1417
  mso-level-tab-stop:none;
1418
1418
  mso-level-number-position:left;
1419
- margin-left:72.0pt;
1420
- text-indent:-18.0pt;}
1419
+ margin-left:3.5cm;
1420
+ text-indent:-0.7cm;}
1421
1421
  @list l2:level5
1422
1422
  {mso-level-number-format:roman-upper;
1423
1423
  mso-level-text:"%5\)";
1424
1424
  mso-level-tab-stop:none;
1425
1425
  mso-level-number-position:left;
1426
- margin-left:90.0pt;
1427
- text-indent:-18.0pt;}
1426
+ margin-left:4.2cm;
1427
+ text-indent:-0.7cm;}
1428
1428
  @list l2:level6
1429
1429
  {mso-level-number-format:alpha-lower;
1430
1430
  mso-level-text:"%6\)";
1431
1431
  mso-level-tab-stop:none;
1432
1432
  mso-level-number-position:left;
1433
- margin-left:108.0pt;
1434
- text-indent:-18.0pt;}
1433
+ margin-left:4.9cm;
1434
+ text-indent:-0.7cm;}
1435
1435
  @list l2:level7
1436
- {mso-level-tab-stop:none;
1436
+ {mso-level-number-format:roman-lower;
1437
+ mso-level-tab-stop:none;
1437
1438
  mso-level-text:"%7\)";
1438
1439
  mso-level-number-position:left;
1439
- margin-left:126.0pt;
1440
- text-indent:-18.0pt;}
1440
+ margin-left:5.6cm;
1441
+ text-indent:-0.7cm;}
1441
1442
  @list l2:level8
1442
- {mso-level-number-format:roman-lower;
1443
- mso-level-text:"%8\)";
1443
+ {mso-level-text:"%8\)";
1444
1444
  mso-level-tab-stop:none;
1445
1445
  mso-level-number-position:left;
1446
- margin-left:144.0pt;
1447
- text-indent:-18.0pt;}
1446
+ margin-left:6.3cm;
1447
+ text-indent:-0.7cm;}
1448
1448
  @list l2:level9
1449
1449
  {mso-level-number-format:alpha-upper;
1450
1450
  mso-level-text:"%9\)";
1451
1451
  mso-level-tab-stop:none;
1452
1452
  mso-level-number-position:left;
1453
- margin-left:162.0pt;
1454
- text-indent:-18.0pt;}
1453
+ margin-left:7.0cm;
1454
+ text-indent:-0.7cm;}
1455
1455
  /* Unordered list */
1456
1456
  @list l3
1457
1457
  {mso-list-id:1308196397;
@@ -1462,64 +1462,64 @@ p.Tablebody, li.Tablebody, div.Tablebody
1462
1462
  mso-level-text:–;
1463
1463
  mso-level-tab-stop:none;
1464
1464
  mso-level-number-position:left;
1465
- margin-left:39.7pt;
1466
- text-indent:-39.7pt;}
1465
+ margin-left:1.4cm;
1466
+ text-indent:-1.4cm;}
1467
1467
  @list l3:level2
1468
1468
  {mso-level-number-format:bullet;
1469
1469
  mso-level-text:–;
1470
1470
  mso-level-tab-stop:none;
1471
1471
  mso-level-number-position:left;
1472
- margin-left:59.55pt;
1473
- text-indent:-19.85pt;}
1472
+ margin-left:2.1cm;
1473
+ text-indent:-0.7cm;}
1474
1474
  @list l3:level3
1475
1475
  {mso-level-number-format:bullet;
1476
1476
  mso-level-text:–;
1477
1477
  mso-level-tab-stop:none;
1478
1478
  mso-level-number-position:left;
1479
- margin-left:54.0pt;
1480
- text-indent:-19.85pt;}
1479
+ margin-left:2.8cm;
1480
+ text-indent:-0.7cm;}
1481
1481
  @list l3:level4
1482
1482
  {mso-level-number-format:bullet;
1483
1483
  mso-level-text:–;
1484
1484
  mso-level-tab-stop:none;
1485
1485
  mso-level-number-position:left;
1486
- margin-left:79.4pt;
1487
- text-indent:-19.85pt;}
1486
+ margin-left:3.5cm;
1487
+ text-indent:-0.7cm;}
1488
1488
  @list l3:level5
1489
1489
  {mso-level-number-format:bullet;
1490
1490
  mso-level-text:–;
1491
1491
  mso-level-tab-stop:none;
1492
1492
  mso-level-number-position:left;
1493
- margin-left:99.25pt;
1494
- text-indent:-19.85pt;}
1493
+ margin-left:4.2cm;
1494
+ text-indent:-0.7cm;}
1495
1495
  @list l3:level6
1496
1496
  {mso-level-number-format:bullet;
1497
1497
  mso-level-text:–;
1498
1498
  mso-level-tab-stop:none;
1499
1499
  mso-level-number-position:left;
1500
- margin-left:119.1pt;
1501
- text-indent:-19.85pt;}
1500
+ margin-left:4.9cm;
1501
+ text-indent:-0.7cm;}
1502
1502
  @list l3:level7
1503
1503
  {mso-level-number-format:bullet;
1504
1504
  mso-level-text:–;
1505
1505
  mso-level-tab-stop:none;
1506
1506
  mso-level-number-position:left;
1507
- margin-left:138.95pt;
1508
- text-indent:-19.85pt;}
1507
+ margin-left:5.6cm;
1508
+ text-indent:-0.7cm;}
1509
1509
  @list l3:level8
1510
1510
  {mso-level-number-format:bullet;
1511
1511
  mso-level-text:–;
1512
1512
  mso-level-tab-stop:none;
1513
1513
  mso-level-number-position:left;
1514
- margin-left:158.8pt;
1515
- text-indent:-19.85pt;}
1514
+ margin-left:6.3cm;
1515
+ text-indent:-0.7cm;}
1516
1516
  @list l3:level9
1517
1517
  {mso-level-number-format:bullet;
1518
1518
  mso-level-text:–;
1519
1519
  mso-level-tab-stop:none;
1520
1520
  mso-level-number-position:left;
1521
- margin-left:178.65pt;
1522
- text-indent:-19.85pt;}
1521
+ margin-left:7.0cm;
1522
+ text-indent:-0.7cm;}
1523
1523
  /* steps ordered list */
1524
1524
  @list l4
1525
1525
  {mso-list-id:525294608;
@@ -1528,164 +1528,101 @@ p.Tablebody, li.Tablebody, div.Tablebody
1528
1528
  {mso-level-text:"%1\)";
1529
1529
  mso-level-tab-stop:none;
1530
1530
  mso-level-number-position:left;
1531
- margin-left:18.0pt;
1532
- text-indent:-18.0pt;}
1531
+ margin-left:1.4cm;
1532
+ text-indent:-0.7cm;}
1533
1533
  @list l4:level2
1534
1534
  {mso-level-text:"%2\)";
1535
1535
  mso-level-number-format:alpha-lower;
1536
1536
  mso-level-tab-stop:none;
1537
1537
  mso-level-number-position:left;
1538
- margin-left:36.0pt;
1539
- text-indent:-18.0pt;}
1538
+ margin-left:2.1cm;
1539
+ text-indent:-0.7cm;}
1540
1540
  @list l4:level3
1541
1541
  {mso-level-number-format:roman-lower;
1542
1542
  mso-level-text:"%3\)";
1543
1543
  mso-level-tab-stop:none;
1544
1544
  mso-level-number-position:left;
1545
- margin-left:54.0pt;
1546
- text-indent:-18.0pt;}
1545
+ margin-left:2.8cm;
1546
+ text-indent:-0.7cm;}
1547
1547
  @list l4:level4
1548
1548
  {mso-level-number-format:alpha-upper;
1549
1549
  mso-level-text:"%4\)";
1550
1550
  mso-level-tab-stop:none;
1551
1551
  mso-level-number-position:left;
1552
- margin-left:72.0pt;
1553
- text-indent:-18.0pt;}
1552
+ margin-left:3.5cm;
1553
+ text-indent:-0.7cm;}
1554
1554
  @list l4:level5
1555
1555
  {mso-level-number-format:roman-upper;
1556
1556
  mso-level-text:"%5\)";
1557
1557
  mso-level-tab-stop:none;
1558
1558
  mso-level-number-position:left;
1559
- margin-left:90.0pt;
1560
- text-indent:-18.0pt;}
1559
+ margin-left:4.2cm;
1560
+ text-indent:-0.7cm;}
1561
1561
  @list l4:level6
1562
1562
  {mso-level-text:"%6\)";
1563
1563
  mso-level-tab-stop:none;
1564
1564
  mso-level-number-position:left;
1565
- margin-left:108.0pt;
1566
- text-indent:-18.0pt;}
1565
+ margin-left:4.9cm;
1566
+ text-indent:-0.7cm;}
1567
1567
  @list l4:level7
1568
1568
  {mso-level-tab-stop:none;
1569
1569
  mso-level-number-format:alpha-lower;
1570
1570
  mso-level-text:"%7\)";
1571
1571
  mso-level-number-position:left;
1572
- margin-left:126.0pt;
1573
- text-indent:-18.0pt;}
1572
+ margin-left:5.6cm;
1573
+ text-indent:-0.7cm;}
1574
1574
  @list l4:level8
1575
1575
  {mso-level-number-format:roman-lower;
1576
1576
  mso-level-text:"%8\)";
1577
1577
  mso-level-tab-stop:none;
1578
1578
  mso-level-number-position:left;
1579
- margin-left:144.0pt;
1580
- text-indent:-18.0pt;}
1579
+ margin-left:6.3cm;
1580
+ text-indent:-0.7cm;}
1581
1581
  @list l4:level9
1582
1582
  {mso-level-number-format:alpha-upper;
1583
1583
  mso-level-text:"%9\)";
1584
1584
  mso-level-tab-stop:none;
1585
1585
  mso-level-number-position:left;
1586
- margin-left:162.0pt;
1587
- text-indent:-18.0pt;}
1588
-
1586
+ margin-left:7.0cm;
1587
+ text-indent:-0.7cm;}
1589
1588
 
1590
- p.ListContLevel1, li.ListContLevel1, div.ListContLevel1
1591
- {mso-style-priority:34;
1592
- margin-top:0cm;
1593
- margin-left:18.0pt;
1594
- margin-right:0cm;
1595
- margin-bottom:6.0pt;
1596
- mso-pagination:widow-orphan;
1597
- font-size:12.0pt;
1598
- font-family:$bodyfont;
1599
- mso-ansi-language:EN-AU;
1600
- mso-fareast-language:EN-US;}
1601
- p.ListContLevel2, li.ListContLevel2, div.ListContLevel2
1602
- {mso-style-priority:34;
1603
- margin-top:0cm;
1604
- margin-left:36.0pt;
1605
- margin-right:0cm;
1606
- margin-bottom:6.0pt;
1607
- mso-pagination:widow-orphan;
1608
- font-size:12.0pt;
1609
- font-family:$bodyfont;
1610
- mso-ansi-language:EN-AU;
1611
- mso-fareast-language:EN-US;}
1612
- p.ListContLevel3, li.ListContLevel3, div.ListContLevel3
1613
- {mso-style-priority:34;
1614
- margin-top:0cm;
1615
- margin-left:54.0pt;
1616
- margin-right:0cm;
1617
- margin-bottom:6.0pt;
1618
- mso-pagination:widow-orphan;
1619
- font-size:12.0pt;
1620
- font-family:$bodyfont;
1621
- mso-ansi-language:EN-AU;
1622
- mso-fareast-language:EN-US;}
1623
- p.ListContLevel4, li.ListContLevel4, div.ListContLevel4
1624
- {mso-style-priority:34;
1625
- margin-top:0cm;
1626
- margin-left:72.0pt;
1627
- margin-right:0cm;
1628
- margin-bottom:6.0pt;
1629
- mso-pagination:widow-orphan;
1630
- font-size:12.0pt;
1631
- font-family:$bodyfont;
1632
- mso-ansi-language:EN-AU;
1633
- mso-fareast-language:EN-US;}
1634
- p.ListContLevel5, li.ListContLevel5, div.ListContLevel5
1635
- {mso-style-priority:34;
1636
- margin-top:0cm;
1637
- margin-left:90.0pt;
1638
- margin-right:0cm;
1639
- margin-bottom:6.0pt;
1640
- mso-pagination:widow-orphan;
1641
- font-size:12.0pt;
1642
- font-family:$bodyfont;
1643
- mso-ansi-language:EN-AU;
1644
- mso-fareast-language:EN-US;}
1645
- p.ListContLevel6, li.ListContLevel6, div.ListContLevel6
1646
- {mso-style-priority:34;
1647
- margin-top:0cm;
1648
- margin-left:108.0pt;
1649
- margin-right:0cm;
1650
- margin-bottom:6.0pt;
1651
- mso-pagination:widow-orphan;
1652
- font-size:12.0pt;
1653
- font-family:$bodyfont;
1654
- mso-ansi-language:EN-AU;
1655
- mso-fareast-language:EN-US;}
1656
- p.ListContLevel7, li.ListContLevel7, div.ListContLevel7
1657
- {mso-style-priority:34;
1658
- margin-top:0cm;
1659
- margin-left:126.0pt;
1660
- margin-right:0cm;
1661
- margin-bottom:6.0pt;
1662
- mso-pagination:widow-orphan;
1663
- font-size:12.0pt;
1664
- font-family:$bodyfont;
1665
- mso-ansi-language:EN-AU;
1666
- mso-fareast-language:EN-US;}
1667
- p.ListContLevel8, li.ListContLevel8, div.ListContLevel8
1668
- {mso-style-priority:34;
1669
- margin-top:0cm;
1670
- margin-left:144.0pt;
1671
- margin-right:0cm;
1672
- margin-bottom:6.0pt;
1673
- mso-pagination:widow-orphan;
1674
- font-size:12.0pt;
1675
- font-family:$bodyfont;
1676
- mso-ansi-language:EN-AU;
1677
- mso-fareast-language:EN-US;}
1678
- p.ListContLevel9, li.ListContLevel9, div.ListContLevel9
1679
- {mso-style-priority:34;
1680
- margin-top:0cm;
1681
- margin-left:162.0pt;
1682
- margin-right:0cm;
1683
- margin-bottom:6.0pt;
1684
- mso-pagination:widow-orphan;
1685
- font-size:12.0pt;
1686
- font-family:$bodyfont;
1687
- mso-ansi-language:EN-AU;
1688
- mso-fareast-language:EN-US;}
1589
+ div.ListContLevel1
1590
+ {mso-style-priority:34;
1591
+ margin-left:1.4cm;
1592
+ margin-right:0cm;}
1593
+ div.ListContLevel2
1594
+ {mso-style-priority:34;
1595
+ margin-top:0cm;
1596
+ margin-left:2.1cm;
1597
+ margin-right:0cm;}
1598
+ div.ListContLevel3
1599
+ {mso-style-priority:34;
1600
+ margin-left:2.8cm;
1601
+ margin-right:0cm;}
1602
+ div.ListContLevel4
1603
+ {mso-style-priority:34;
1604
+ margin-left:3.5cm;
1605
+ margin-right:0cm;}
1606
+ div.ListContLevel5
1607
+ {mso-style-priority:34;
1608
+ margin-left:4.2cm;
1609
+ margin-right:0cm;}
1610
+ div.ListContLevel6
1611
+ {mso-style-priority:34;
1612
+ margin-left:4.9cm;
1613
+ margin-right:0cm;}
1614
+ div.ListContLevel7
1615
+ {mso-style-priority:34;
1616
+ margin-left:5.6cm;
1617
+ margin-right:0cm;}
1618
+ div.ListContLevel8
1619
+ {mso-style-priority:34;
1620
+ margin-left:6.3cm;
1621
+ margin-right:0cm;}
1622
+ div.ListContLevel9
1623
+ {mso-style-priority:34;
1624
+ margin-left:7.0cm;
1625
+ margin-right:0cm;}
1689
1626
 
1690
1627
 
1691
1628
  table.MsoNormalTable
@@ -1701,12 +1638,6 @@ table.MsoNormalTable
1701
1638
  mso-pagination:widow-orphan;
1702
1639
  font-size:10.0pt;
1703
1640
  font-family:$bodyfont;}
1704
- br.section
1705
- {page-break-before:always;
1706
- mso-break-type:section-break;}
1707
- br.pagebreak
1708
- {page-break-before:always;
1709
- mso-special-character:line-break;}
1710
1641
  ol
1711
1642
  {margin-bottom:0cm;
1712
1643
  margin-left:18pt;}
@@ -15,11 +15,11 @@ module IsoDoc
15
15
  super
16
16
  end
17
17
 
18
- def convert1(docxml, filename, dir)
19
- FileUtils.cp html_doc_path('Logo_ITU.jpg'), "#{@localdir}/Logo_ITU.jpg"
20
- @files_to_delete << "#{@localdir}/Logo_ITU.jpg"
21
- super
22
- end
18
+ #def convert1(docxml, filename, dir)
19
+ # FileUtils.cp html_doc_path('Logo_ITU.jpg'), "#{@localdir}/Logo_ITU.jpg"
20
+ # @files_to_delete << "#{@localdir}/Logo_ITU.jpg"
21
+ # super
22
+ #end
23
23
 
24
24
  def default_fonts(options)
25
25
  {
@@ -6,6 +6,12 @@ module IsoDoc
6
6
  class Metadata < IsoDoc::Metadata
7
7
  def initialize(lang, script, labels)
8
8
  super
9
+ here = File.dirname(__FILE__)
10
+ set(:logo_html,
11
+ File.expand_path(File.join(here, "html", "Logo_ITU.jpg")))
12
+ set(:logo_comb,
13
+ File.expand_path(File.join(here, "html", "itu-document-comb.png")))
14
+ set(:logo_word, File.expand_path(File.join(here, "html", "logo.png")))
9
15
  end
10
16
 
11
17
  def title(isoxml, _out)
@@ -13,9 +19,11 @@ module IsoDoc
13
19
  set(:doctitle, main)
14
20
  series = isoxml&.at(ns("//bibdata/series[@type='main']/title"))&.text
15
21
  set(:series, series)
16
- series1 = isoxml&.at(ns("//bibdata/series[@type='secondary']/title"))&.text
22
+ series1 =
23
+ isoxml&.at(ns("//bibdata/series[@type='secondary']/title"))&.text
17
24
  set(:series1, series1)
18
- series2 = isoxml&.at(ns("//bibdata/series[@type='tertiary']/title"))&.text
25
+ series2 =
26
+ isoxml&.at(ns("//bibdata/series[@type='tertiary']/title"))&.text
19
27
  set(:series2, series2)
20
28
  annext = isoxml&.at(ns("//bibdata/title[@type='annex']"))&.text
21
29
  set(:annextitle, annext)
@@ -88,7 +96,8 @@ module IsoDoc
88
96
  end
89
97
 
90
98
  def ip_notice_received(isoxml, _out)
91
- received = isoxml.at(ns("//bibdata/ext/ip-notice-received"))&.text || "false"
99
+ received = isoxml.at(ns("//bibdata/ext/ip-notice-received"))&.text ||
100
+ "false"
92
101
  set(:ip_notice_received, received)
93
102
  end
94
103
  end
@@ -13,11 +13,11 @@ module IsoDoc
13
13
  super
14
14
  end
15
15
 
16
- def convert1(docxml, filename, dir)
17
- FileUtils.cp html_doc_path('Logo_ITU.jpg'), File.join(@localdir, "Logo_ITU.jpg")
18
- @files_to_delete << File.join(@localdir, "Logo_ITU.jpg")
19
- super
20
- end
16
+ #def convert1(docxml, filename, dir)
17
+ # FileUtils.cp html_doc_path('Logo_ITU.jpg'), File.join(@localdir, "Logo_ITU.jpg")
18
+ # @files_to_delete << File.join(@localdir, "Logo_ITU.jpg")
19
+ # super
20
+ #end
21
21
 
22
22
  def html_toc(docxml)
23
23
  docxml
@@ -124,14 +124,14 @@ module IsoDoc
124
124
  end
125
125
  end
126
126
 
127
- def convert1(docxml, filename, dir)
128
- FileUtils.cp html_doc_path('itu-document-comb.png'),
129
- File.join(@localdir, "itu-document-comb.png")
130
- FileUtils.cp html_doc_path('logo.png'), File.join(@localdir, "logo.png")
131
- @files_to_delete << File.join(@localdir, "itu-document-comb.png")
132
- @files_to_delete << File.join(@localdir, "logo.png")
133
- super
134
- end
127
+ #def convert1(docxml, filename, dir)
128
+ #FileUtils.cp html_doc_path('itu-document-comb.png'),
129
+ #File.join(@localdir, "itu-document-comb.png")
130
+ #FileUtils.cp html_doc_path('logo.png'), File.join(@localdir, "logo.png")
131
+ #@files_to_delete << File.join(@localdir, "itu-document-comb.png")
132
+ #@files_to_delete << File.join(@localdir, "logo.png")
133
+ #super
134
+ #end
135
135
 
136
136
  def default_fonts(options)
137
137
  { bodyfont: (options[:script] == "Hans" ? '"SimSun",serif' :
@@ -161,14 +161,16 @@ module IsoDoc
161
161
  end
162
162
  end
163
163
 
164
- def toWord(result, filename, dir, header)
165
- result = populate_template(result, :word)
166
- result = from_xhtml(word_cleanup(to_xhtml(result)))
167
- Html2Doc.process(result, filename: filename, stylesheet: @wordstylesheet,
168
- header_file: header, dir: dir,
169
- asciimathdelims: [@openmathdelim, @closemathdelim],
170
- liststyles: { ul: @ulstyle, ol: @olstyle, steps: "l4" })
171
- end
164
+ def toWord(result, filename, dir, header)
165
+ result = populate_template(result, :word)
166
+ result = from_xhtml(word_cleanup(to_xhtml(result)))
167
+ Html2Doc.process(result, filename: filename, stylesheet: @wordstylesheet&.path,
168
+ header_file: header&.path, dir: dir,
169
+ asciimathdelims: [@openmathdelim, @closemathdelim],
170
+ liststyles: { ul: @ulstyle, ol: @olstyle, steps: "l4" })
171
+ header&.unlink
172
+ @wordstylesheet&.unlink
173
+ end
172
174
 
173
175
  =begin
174
176
  def eref_parse(node, out)
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ITU
3
- VERSION = "0.2.9"
3
+ VERSION = "0.2.10"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-itu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-08 00:00:00.000000000 Z
11
+ date: 2019-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlentities