metanorma-jis 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/html2doc/lists.rb +41 -6
- data/lib/isodoc/jis/base_convert.rb +38 -0
- data/lib/isodoc/jis/html/isodoc.css +19 -33
- data/lib/isodoc/jis/html/isodoc.scss +16 -32
- data/lib/isodoc/jis/html/word_jis_intro.html +4 -3
- data/lib/isodoc/jis/html/word_jis_titlepage.html +6 -0
- data/lib/isodoc/jis/html/wordstyle.css +37 -109
- data/lib/isodoc/jis/html/wordstyle.scss +48 -132
- data/lib/isodoc/jis/html_convert.rb +11 -0
- data/lib/isodoc/jis/i18n-ja.yaml +5 -0
- data/lib/isodoc/jis/jis.international-standard.xsl +11095 -0
- data/lib/isodoc/jis/presentation_xml_convert.rb +88 -0
- data/lib/isodoc/jis/word_cleanup.rb +143 -0
- data/lib/isodoc/jis/word_convert.rb +222 -90
- data/lib/isodoc/jis/xref.rb +7 -0
- data/lib/metanorma/jis/cleanup.rb +42 -0
- data/lib/metanorma/jis/converter.rb +9 -15
- data/lib/metanorma/jis/front.rb +25 -0
- data/lib/metanorma/jis/processor.rb +1 -1
- data/lib/metanorma/jis/relaton-jis.rng +3 -109
- data/lib/metanorma/jis/validate.rb +26 -0
- data/lib/metanorma/jis/version.rb +1 -1
- metadata +6 -2
@@ -101,21 +101,28 @@
|
|
101
101
|
mso-font-signature:-536870145 1791491579 134217746 0 131231 0;}
|
102
102
|
/* Style Definitions */
|
103
103
|
p.MsoNormal, li.MsoNormal, div.MsoNormal
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
104
|
+
{mso-style-name:段落;
|
105
|
+
/* paragraph */
|
106
|
+
mso-style-unhide:no;
|
107
|
+
mso-style-parent:"";
|
108
|
+
margin-top:10.0pt;
|
109
|
+
margin-right:0cm;
|
110
|
+
margin-bottom:0cm;
|
111
|
+
margin-left:0cm;
|
112
|
+
text-align:justify;
|
113
|
+
text-justify:inter-ideograph;
|
114
|
+
text-indent:9.95pt;
|
115
|
+
line-height:15.0pt;
|
116
|
+
mso-line-height-rule:exactly;
|
117
|
+
mso-pagination:none;
|
118
|
+
font-size:$normalfontsize;
|
119
|
+
font-family:"Times New Roman",serif;
|
120
|
+
mso-fareast-font-family:$bodyfont;
|
121
|
+
mso-font-kerning:1.0pt;
|
122
|
+
mso-ansi-language:EN-US;
|
123
|
+
mso-fareast-language:JA;
|
124
|
+
mso-no-proof:yes;}
|
125
|
+
p.afffffff2, li.afffffff2, div.afffffff2
|
119
126
|
{mso-style-name:字下げなし段落;
|
120
127
|
/* unindented paragraph */
|
121
128
|
mso-style-unhide:no;
|
@@ -180,8 +187,7 @@ p.MsoList, li.MsoList, div.MsoList
|
|
180
187
|
margin-right:0cm;
|
181
188
|
margin-bottom:0cm;
|
182
189
|
/* do not put in margin-left, it is specific to list level */
|
183
|
-
|
184
|
-
margin-left:36.0pt;
|
190
|
+
margin-left:19.85pt;
|
185
191
|
text-align:justify;
|
186
192
|
text-justify:inter-ideograph;
|
187
193
|
text-indent:-19.85pt;
|
@@ -377,7 +383,7 @@ h1 {
|
|
377
383
|
h1.ForewordTitle {
|
378
384
|
}
|
379
385
|
*/
|
380
|
-
h1, .h1
|
386
|
+
h1, .h1, .h2Annex
|
381
387
|
{mso-style-name:箇条1;
|
382
388
|
/* Clause 1 */
|
383
389
|
mso-style-unhide:no;
|
@@ -405,7 +411,7 @@ h1, .h1
|
|
405
411
|
h1 {
|
406
412
|
mso-outline-level:1;
|
407
413
|
}
|
408
|
-
|
414
|
+
.h1Annex, .Annex
|
409
415
|
{mso-style-name:附属書見出し;
|
410
416
|
/* Annex Heading */
|
411
417
|
mso-style-unhide:no;
|
@@ -426,7 +432,7 @@ h1.Annex
|
|
426
432
|
mso-ansi-language:EN-US;
|
427
433
|
mso-fareast-language:JA;
|
428
434
|
mso-no-proof:yes;}
|
429
|
-
|
435
|
+
h2, .h2, .h3Annex
|
430
436
|
/*
|
431
437
|
{mso-style-unhide:no;
|
432
438
|
mso-style-qformat:yes;
|
@@ -476,7 +482,7 @@ h2
|
|
476
482
|
{ /*mso-list:l10 level2 lfo13;*/
|
477
483
|
mso-outline-level:2;
|
478
484
|
}
|
479
|
-
.
|
485
|
+
.h4Annex, h3, .h3
|
480
486
|
/*
|
481
487
|
{mso-style-unhide:no;
|
482
488
|
mso-style-qformat:yes;
|
@@ -525,7 +531,7 @@ h2
|
|
525
531
|
h3 {/*mso-list:l10 level3 lfo13;*/
|
526
532
|
mso-outline-level:3;
|
527
533
|
}
|
528
|
-
.
|
534
|
+
.h5Annex, h4, .h4
|
529
535
|
/*
|
530
536
|
{mso-style-unhide:no;
|
531
537
|
mso-style-qformat:yes;
|
@@ -573,7 +579,7 @@ h3 {/*mso-list:l10 level3 lfo13;*/
|
|
573
579
|
h4 {/*mso-list:l10 level4 lfo13;*/
|
574
580
|
mso-outline-level:4;
|
575
581
|
}
|
576
|
-
.
|
582
|
+
.h6Annex, h5, .h5
|
577
583
|
/*
|
578
584
|
{mso-style-unhide:no;
|
579
585
|
mso-style-qformat:yes;
|
@@ -1604,26 +1610,6 @@ p.MsoToaHeading, li.MsoToaHeading, div.MsoToaHeading
|
|
1604
1610
|
mso-font-kerning:1.0pt;
|
1605
1611
|
mso-ansi-language:EN-US;
|
1606
1612
|
mso-fareast-language:JA;}
|
1607
|
-
p.MsoListBullet, li.MsoListBullet, div.MsoListBullet
|
1608
|
-
{mso-style-update:auto;
|
1609
|
-
mso-style-unhide:no;
|
1610
|
-
mso-style-next:箇条7;
|
1611
|
-
margin-top:0cm;
|
1612
|
-
margin-right:0cm;
|
1613
|
-
margin-bottom:0cm;
|
1614
|
-
margin-left:18.0pt;
|
1615
|
-
text-align:justify;
|
1616
|
-
text-justify:inter-ideograph;
|
1617
|
-
text-indent:0cm;
|
1618
|
-
mso-pagination:none;
|
1619
|
-
mso-list:l9 level1 lfo8;
|
1620
|
-
tab-stops:list 18.0pt;
|
1621
|
-
font-size:$normalfontsize;
|
1622
|
-
font-family:"Times New Roman",serif;
|
1623
|
-
mso-fareast-font-family:$bodyfont;
|
1624
|
-
mso-font-kerning:1.0pt;
|
1625
|
-
mso-ansi-language:EN-US;
|
1626
|
-
mso-fareast-language:JA;}
|
1627
1613
|
p.MsoListNumber, li.MsoListNumber, div.MsoListNumber
|
1628
1614
|
{mso-style-unhide:no;
|
1629
1615
|
mso-style-next:箇条5;
|
@@ -1768,74 +1754,6 @@ p.MsoList6, li.MsoList6, div.MsoList6
|
|
1768
1754
|
mso-ansi-language:EN-US;
|
1769
1755
|
mso-fareast-language:JA;
|
1770
1756
|
mso-no-proof:yes;}
|
1771
|
-
p.MsoListBullet2, li.MsoListBullet2, div.MsoListBullet2
|
1772
|
-
{mso-style-update:auto;
|
1773
|
-
mso-style-unhide:no;
|
1774
|
-
mso-style-next:規格名称;
|
1775
|
-
margin:0cm;
|
1776
|
-
text-align:justify;
|
1777
|
-
text-justify:inter-ideograph;
|
1778
|
-
text-indent:0cm;
|
1779
|
-
mso-pagination:none;
|
1780
|
-
mso-list:l7 level1 lfo9;
|
1781
|
-
tab-stops:list 39.25pt;
|
1782
|
-
font-size:$normalfontsize;
|
1783
|
-
font-family:"Times New Roman",serif;
|
1784
|
-
mso-fareast-font-family:$bodyfont;
|
1785
|
-
mso-font-kerning:1.0pt;
|
1786
|
-
mso-ansi-language:EN-US;
|
1787
|
-
mso-fareast-language:JA;}
|
1788
|
-
p.MsoListBullet3, li.MsoListBullet3, div.MsoListBullet3
|
1789
|
-
{mso-style-update:auto;
|
1790
|
-
mso-style-unhide:no;
|
1791
|
-
mso-style-next:規格名称(英語);
|
1792
|
-
margin:0cm;
|
1793
|
-
text-align:justify;
|
1794
|
-
text-justify:inter-ideograph;
|
1795
|
-
text-indent:0cm;
|
1796
|
-
mso-pagination:none;
|
1797
|
-
mso-list:l6 level1 lfo10;
|
1798
|
-
tab-stops:list 60.55pt;
|
1799
|
-
font-size:$normalfontsize;
|
1800
|
-
font-family:"Times New Roman",serif;
|
1801
|
-
mso-fareast-font-family:$bodyfont;
|
1802
|
-
mso-font-kerning:1.0pt;
|
1803
|
-
mso-ansi-language:EN-US;
|
1804
|
-
mso-fareast-language:JA;}
|
1805
|
-
p.MsoListBullet4, li.MsoListBullet4, div.MsoListBullet4
|
1806
|
-
{mso-style-update:auto;
|
1807
|
-
mso-style-unhide:no;
|
1808
|
-
mso-style-next:段落;
|
1809
|
-
margin:0cm;
|
1810
|
-
text-align:justify;
|
1811
|
-
text-justify:inter-ideograph;
|
1812
|
-
text-indent:0cm;
|
1813
|
-
mso-pagination:none;
|
1814
|
-
mso-list:l5 level1 lfo11;
|
1815
|
-
tab-stops:list 81.8pt;
|
1816
|
-
font-size:$normalfontsize;
|
1817
|
-
font-family:"Times New Roman",serif;
|
1818
|
-
mso-fareast-font-family:$bodyfont;
|
1819
|
-
mso-font-kerning:1.0pt;
|
1820
|
-
mso-ansi-language:EN-US;
|
1821
|
-
mso-fareast-language:JA;}
|
1822
|
-
p.MsoListBullet5, li.MsoListBullet5, div.MsoListBullet5
|
1823
|
-
{mso-style-update:auto;
|
1824
|
-
mso-style-unhide:no;
|
1825
|
-
mso-style-next:罫線段落;
|
1826
|
-
margin:0cm;
|
1827
|
-
text-align:justify;
|
1828
|
-
text-justify:inter-ideograph;
|
1829
|
-
text-indent:0cm;
|
1830
|
-
mso-pagination:none;
|
1831
|
-
mso-list:l4 level1 lfo12;
|
1832
|
-
tab-stops:list 103.05pt;
|
1833
|
-
font-size:$normalfontsize;
|
1834
|
-
font-family:"Times New Roman",serif;
|
1835
|
-
mso-fareast-font-family:$bodyfont;
|
1836
|
-
mso-font-kerning:1.0pt;
|
1837
|
-
mso-ansi-language:EN-US;
|
1838
|
-
mso-fareast-language:JA;}
|
1839
1757
|
p.MsoListNumber2, li.MsoListNumber2, div.MsoListNumber2
|
1840
1758
|
{mso-style-unhide:no;
|
1841
1759
|
mso-style-next:規格名称(英語);
|
@@ -2491,7 +2409,7 @@ div.WordSection3
|
|
2491
2409
|
{page:WordSection3;}
|
2492
2410
|
|
2493
2411
|
/* List Definitions */
|
2494
|
-
|
2412
|
+
@list l0
|
2495
2413
|
{mso-list-id:-132;
|
2496
2414
|
mso-list-type:simple;
|
2497
2415
|
mso-list-template-ids:1757713456;}
|
@@ -2607,70 +2525,68 @@ div.WordSection3
|
|
2607
2525
|
mso-level-text:"%1\)";
|
2608
2526
|
mso-level-tab-stop:none;
|
2609
2527
|
mso-level-number-position:left;
|
2610
|
-
|
2528
|
+
margin-left:18.0pt;
|
2611
2529
|
text-indent:-18.0pt;}
|
2612
2530
|
@list l8:level2
|
2613
2531
|
{mso-level-text:"%2\)";
|
2614
2532
|
mso-level-tab-stop:none;
|
2615
2533
|
mso-level-number-position:left;
|
2616
|
-
|
2534
|
+
margin-left:54.0pt;
|
2617
2535
|
text-indent:-18.0pt;}
|
2618
2536
|
@list l8:level3
|
2619
|
-
{
|
2620
|
-
mso-level-text:"%2.%3\)";
|
2537
|
+
{mso-level-text:"%2\.%3\)";
|
2621
2538
|
mso-level-tab-stop:none;
|
2622
2539
|
mso-level-number-position:right;
|
2623
|
-
|
2540
|
+
margin-left:72.0pt;
|
2624
2541
|
text-indent:-18.0pt;}
|
2625
2542
|
@list l8:level4
|
2626
|
-
{mso-level-
|
2627
|
-
mso-level-
|
2543
|
+
{mso-level-text:"%4\)";
|
2544
|
+
mso-level-tab-stop:none;
|
2628
2545
|
mso-level-number-position:left;
|
2629
|
-
|
2546
|
+
margin-left:90.0pt;
|
2630
2547
|
text-indent:-18.0pt;}
|
2631
2548
|
@list l8:level5
|
2632
2549
|
{mso-level-number-format:alpha-lower;
|
2633
2550
|
mso-level-text:"%5\)";
|
2634
2551
|
mso-level-tab-stop:none;
|
2635
2552
|
mso-level-number-position:left;
|
2636
|
-
|
2553
|
+
margin-left:108.0pt;
|
2637
2554
|
text-indent:-18.0pt;}
|
2638
2555
|
@list l8:level6
|
2639
2556
|
{mso-level-number-format:roman-lower;
|
2640
|
-
|
2557
|
+
mso-level-text:"%6\)";
|
2641
2558
|
mso-level-tab-stop:none;
|
2642
2559
|
mso-level-number-position:right;
|
2643
|
-
|
2560
|
+
margin-left:126.0pt;
|
2644
2561
|
text-indent:-18.0pt;}
|
2645
2562
|
@list l8:level7
|
2646
|
-
{mso-level-
|
2647
|
-
mso-level-
|
2563
|
+
{mso-level-text:"%7\)";
|
2564
|
+
mso-level-tab-stop:none;
|
2648
2565
|
mso-level-number-position:left;
|
2649
|
-
|
2566
|
+
margin-left:144.0pt;
|
2650
2567
|
text-indent:-18.0pt;}
|
2651
2568
|
@list l8:level8
|
2652
2569
|
{mso-level-number-format:alpha-lower;
|
2653
2570
|
mso-level-text:"%8\)";
|
2654
2571
|
mso-level-tab-stop:none;
|
2655
2572
|
mso-level-number-position:left;
|
2656
|
-
|
2573
|
+
margin-left:162.0pt;
|
2657
2574
|
text-indent:-18.0pt;}
|
2658
2575
|
@list l8:level9
|
2659
2576
|
{mso-level-number-format:roman-lower;
|
2660
2577
|
mso-level-text:"%9\)";
|
2661
2578
|
mso-level-tab-stop:none;
|
2662
2579
|
mso-level-number-position:right;
|
2663
|
-
|
2580
|
+
margin-left:180.0pt;
|
2664
2581
|
text-indent:-18.0pt;}
|
2665
2582
|
|
2666
2583
|
@list l9
|
2667
2584
|
{mso-list-id:-119;
|
2668
|
-
mso-list-type:simple;
|
2669
2585
|
mso-list-template-ids:-859032142;}
|
2670
2586
|
@list l9:level1
|
2671
2587
|
{mso-level-start-at:0;
|
2672
2588
|
mso-level-number-format:bullet;
|
2673
|
-
mso-level-text
|
2589
|
+
mso-level-text:;
|
2674
2590
|
mso-level-tab-stop:none;
|
2675
2591
|
mso-level-number-position:left;
|
2676
2592
|
margin-left:36.0pt;
|
@@ -2680,12 +2596,12 @@ div.WordSection3
|
|
2680
2596
|
mso-bidi-font-family:"Times New Roman";}
|
2681
2597
|
@list l9:level2
|
2682
2598
|
{mso-level-number-format:bullet;
|
2683
|
-
mso-level-text
|
2599
|
+
mso-level-text:;
|
2684
2600
|
mso-level-tab-stop:none;
|
2685
2601
|
mso-level-number-position:left;
|
2686
2602
|
margin-left:54.0pt;
|
2687
2603
|
text-indent:-18.0pt;
|
2688
|
-
font-family:
|
2604
|
+
font-family:Symbol;}
|
2689
2605
|
@list l9:level3
|
2690
2606
|
{mso-level-number-format:bullet;
|
2691
2607
|
mso-level-text:;
|
@@ -35,6 +35,17 @@ module IsoDoc
|
|
35
35
|
}
|
36
36
|
end
|
37
37
|
|
38
|
+
def make_table_footnote_target(out, fnid, fnref)
|
39
|
+
attrs = { id: fnid, class: "TableFootnoteRef" }
|
40
|
+
out.span do |s|
|
41
|
+
s << @i18n.table_footnote
|
42
|
+
out.span **attrs do |a|
|
43
|
+
a << "#{fnref})"
|
44
|
+
end
|
45
|
+
insert_tab(s, 1)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
38
49
|
include BaseConvert
|
39
50
|
include Init
|
40
51
|
end
|
data/lib/isodoc/jis/i18n-ja.yaml
CHANGED
@@ -1,4 +1,9 @@
|
|
1
1
|
under_preparation: 準備中。(掲載時のステージ%)。
|
2
|
+
cancelled_and_replaced: キャンセルされ、%に置き換えられました。
|
3
|
+
norm_with_refs_pref_all_dated: 次に掲げる引用規格は,この規格に引用されることによって,その一部又は全部がこの規格の要 求事項を構成している。これらの引用規格は,記載の年の版を適用し,その後の改正版(追補を含む。) は適用しない。
|
4
|
+
norm_with_refs_pref_none_dated: 次に掲げる引用規格は,この規格に引用されることによって,その一部又は全部がこの規格の要求事項 を構成している。これらの引用規格は,その最新版(追補を含む。)を適用する。
|
5
|
+
alternative: "代替用語"
|
6
|
+
table_footnote: 注
|
2
7
|
doctype_dict:
|
3
8
|
international-standard: 日本産業規格
|
4
9
|
technical-specification: 標準仕様書
|