metanorma-jis 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/html2doc/lists.rb +22 -66
- data/lib/isodoc/jis/base_convert.rb +78 -11
- data/lib/isodoc/jis/figure.rb +99 -0
- data/lib/isodoc/jis/html/header.html +210 -818
- data/lib/isodoc/jis/html/isodoc.css +8 -37
- data/lib/isodoc/jis/html/isodoc.scss +8 -36
- data/lib/isodoc/jis/html/wordstyle.css +54 -0
- data/lib/isodoc/jis/html/wordstyle.scss +51 -0
- data/lib/isodoc/jis/i18n-en.yaml +6 -0
- data/lib/isodoc/jis/i18n-ja.yaml +8 -1
- data/lib/isodoc/jis/jis.international-standard.xsl +230 -35
- data/lib/isodoc/jis/metadata.rb +7 -0
- data/lib/isodoc/jis/presentation_xml_convert.rb +105 -24
- data/lib/isodoc/jis/table.rb +58 -0
- data/lib/isodoc/jis/word_cleanup.rb +6 -6
- data/lib/isodoc/jis/word_convert.rb +27 -147
- data/lib/isodoc/jis/xref.rb +45 -0
- data/lib/metanorma/jis/cleanup.rb +2 -1
- data/lib/metanorma/jis/converter.rb +10 -0
- data/lib/metanorma/jis/front.rb +57 -15
- data/lib/metanorma/jis/isodoc.rng +29 -7
- data/lib/metanorma/jis/jis.rng +10 -0
- data/lib/metanorma/jis/processor.rb +2 -2
- data/lib/metanorma/jis/version.rb +1 -1
- data/metanorma-jis.gemspec +2 -2
- metadata +7 -5
@@ -585,35 +585,6 @@ p.NoteCont, li.NoteCont, div.NoteCont {
|
|
585
585
|
mso-ansi-language: EN-US;
|
586
586
|
mso-fareast-language: JA; }
|
587
587
|
|
588
|
-
p.ANNEX, li.ANNEX, div.ANNEX {
|
589
|
-
mso-style-name: ANNEX;
|
590
|
-
mso-style-priority: 10;
|
591
|
-
mso-style-unhide: no;
|
592
|
-
mso-style-next: Normal;
|
593
|
-
margin-top: 0cm;
|
594
|
-
margin-right: 0cm;
|
595
|
-
margin-bottom: 24.0pt;
|
596
|
-
margin-left: 0cm;
|
597
|
-
text-align: center;
|
598
|
-
text-indent: 0cm;
|
599
|
-
line-height: 15.5pt;
|
600
|
-
mso-line-height-rule: exactly;
|
601
|
-
page-break-before: always;
|
602
|
-
mso-pagination: widow-orphan;
|
603
|
-
page-break-after: avoid;
|
604
|
-
mso-outline-level: 1;
|
605
|
-
mso-list: l0 level1 lfo12;
|
606
|
-
tab-stops: 20.15pt;
|
607
|
-
font-size: 14.0pt;
|
608
|
-
mso-bidi-font-size: {{normalfontsize}};
|
609
|
-
font-family: {{headerfont}};
|
610
|
-
mso-fareast-font-family: "SimHei",serif;
|
611
|
-
mso-bidi-font-family: {{headerfont}};
|
612
|
-
mso-ansi-language: EN-GB;
|
613
|
-
mso-fareast-language: JA;
|
614
|
-
font-weight: bold;
|
615
|
-
mso-bidi-font-weight: normal; }
|
616
|
-
|
617
588
|
p.BiblioTitle, li.BiblioTitle, div.BiblioTitle {
|
618
589
|
mso-style-name: "Biblio Title";
|
619
590
|
mso-style-priority: 5;
|
@@ -942,7 +913,7 @@ p.zzSTDTitle, li.zzSTDTitle, div.zzSTDTitle {
|
|
942
913
|
font-weight: bold;
|
943
914
|
mso-bidi-font-weight: normal; }
|
944
915
|
|
945
|
-
p.
|
916
|
+
p.Chapter, li.Chapter, div.Chapter {
|
946
917
|
mso-style-name: 章;
|
947
918
|
/* chapter */
|
948
919
|
mso-style-unhide: no;
|
@@ -2627,7 +2598,7 @@ p.IDT0, li.IDT0, div.IDT0 {
|
|
2627
2598
|
mso-fareast-language: JA;
|
2628
2599
|
mso-no-proof: yes; }
|
2629
2600
|
|
2630
|
-
p.
|
2601
|
+
p.CommentaryStandardNumber, li.CommentaryStandardNumber, div.CommentaryStandardNumber {
|
2631
2602
|
mso-style-name: 解説_規格番号;
|
2632
2603
|
/* description_standard number */
|
2633
2604
|
mso-style-unhide: no;
|
@@ -2648,7 +2619,7 @@ p.affa, li.affa, div.affa {
|
|
2648
2619
|
mso-fareast-language: JA;
|
2649
2620
|
mso-no-proof: yes; }
|
2650
2621
|
|
2651
|
-
p.
|
2622
|
+
p.CommentaryStandardName, li.CommentaryStandardName, div.CommentaryStandardName {
|
2652
2623
|
mso-style-name: 解説_規格名称;
|
2653
2624
|
/* comment_standard name */
|
2654
2625
|
mso-style-unhide: no;
|
@@ -2671,7 +2642,7 @@ p.affb, li.affb, div.affb {
|
|
2671
2642
|
mso-fareast-language: JA;
|
2672
2643
|
mso-no-proof: yes; }
|
2673
2644
|
|
2674
|
-
span.
|
2645
|
+
span.CommentaryEffectiveYear {
|
2675
2646
|
mso-style-name: 解説_発効年;
|
2676
2647
|
/* description_effective year */
|
2677
2648
|
mso-style-unhide: no;
|
@@ -2761,7 +2732,7 @@ span.afff1 {
|
|
2761
2732
|
font-weight: bold;
|
2762
2733
|
mso-bidi-font-weight: normal; }
|
2763
2734
|
|
2764
|
-
p.
|
2735
|
+
p.StandardNumber, li.StandardNumber, div.StandardNumber {
|
2765
2736
|
mso-style-name: 規格番号;
|
2766
2737
|
/* standard number */
|
2767
2738
|
mso-style-unhide: no;
|
@@ -2785,7 +2756,7 @@ p.afff2, li.afff2, div.afff2 {
|
|
2785
2756
|
mso-fareast-language: JA;
|
2786
2757
|
mso-no-proof: yes; }
|
2787
2758
|
|
2788
|
-
p.
|
2759
|
+
p.zzSTDTitle1, li.zzSTDTitle1, div.zzSTDTitle1 {
|
2789
2760
|
mso-style-name: 規格名称;
|
2790
2761
|
/* standard name */
|
2791
2762
|
mso-style-unhide: no;
|
@@ -6062,7 +6033,7 @@ span.TR2 {
|
|
6062
6033
|
mso-style-unhide: no;
|
6063
6034
|
mso-style-parent: ""; }
|
6064
6035
|
|
6065
|
-
p.
|
6036
|
+
p.JapaneseIndustrialStandard, li.JapaneseIndustrialStandard, div.JapaneseIndustrialStandard {
|
6066
6037
|
mso-style-name: 日本工業規格;
|
6067
6038
|
/* Japanese Industrial Standard */
|
6068
6039
|
mso-style-unhide: no;
|
@@ -6092,7 +6063,7 @@ span.affffffffffffff2 {
|
|
6092
6063
|
mso-style-unhide: no;
|
6093
6064
|
mso-style-parent: ""; }
|
6094
6065
|
|
6095
|
-
span.
|
6066
|
+
span.EffectiveYear {
|
6096
6067
|
mso-style-name: 発効年;
|
6097
6068
|
/* effective-year */
|
6098
6069
|
mso-style-unhide: no;
|
@@ -556,34 +556,6 @@ p.NoteCont, li.NoteCont, div.NoteCont
|
|
556
556
|
mso-font-kerning:1.0pt;
|
557
557
|
mso-ansi-language:EN-US;
|
558
558
|
mso-fareast-language:JA;}
|
559
|
-
p.ANNEX, li.ANNEX, div.ANNEX
|
560
|
-
{mso-style-name:ANNEX;
|
561
|
-
mso-style-priority:10;
|
562
|
-
mso-style-unhide:no;
|
563
|
-
mso-style-next:Normal;
|
564
|
-
margin-top:0cm;
|
565
|
-
margin-right:0cm;
|
566
|
-
margin-bottom:24.0pt;
|
567
|
-
margin-left:0cm;
|
568
|
-
text-align:center;
|
569
|
-
text-indent:0cm;
|
570
|
-
line-height:15.5pt;
|
571
|
-
mso-line-height-rule:exactly;
|
572
|
-
page-break-before:always;
|
573
|
-
mso-pagination:widow-orphan;
|
574
|
-
page-break-after:avoid;
|
575
|
-
mso-outline-level:1;
|
576
|
-
mso-list:l0 level1 lfo12;
|
577
|
-
tab-stops:20.15pt;
|
578
|
-
font-size:14.0pt;
|
579
|
-
mso-bidi-font-size:$normalfontsize;
|
580
|
-
font-family:$headerfont;
|
581
|
-
mso-fareast-font-family:"SimHei",serif;
|
582
|
-
mso-bidi-font-family:$headerfont;
|
583
|
-
mso-ansi-language:EN-GB;
|
584
|
-
mso-fareast-language:JA;
|
585
|
-
font-weight:bold;
|
586
|
-
mso-bidi-font-weight:normal;}
|
587
559
|
p.BiblioTitle, li.BiblioTitle, div.BiblioTitle
|
588
560
|
{mso-style-name:"Biblio Title";
|
589
561
|
mso-style-priority:5;
|
@@ -899,7 +871,7 @@ p.zzSTDTitle, li.zzSTDTitle, div.zzSTDTitle
|
|
899
871
|
mso-ansi-language:EN-GB;
|
900
872
|
font-weight:bold;
|
901
873
|
mso-bidi-font-weight:normal;}
|
902
|
-
p.
|
874
|
+
p.Chapter, li.Chapter, div.Chapter
|
903
875
|
{mso-style-name:章;
|
904
876
|
/* chapter */
|
905
877
|
mso-style-unhide:no;
|
@@ -2533,7 +2505,7 @@ p.IDT0, li.IDT0, div.IDT0
|
|
2533
2505
|
mso-ansi-language:EN-US;
|
2534
2506
|
mso-fareast-language:JA;
|
2535
2507
|
mso-no-proof:yes;}
|
2536
|
-
p.
|
2508
|
+
p.CommentaryStandardNumber, li.CommentaryStandardNumber, div.CommentaryStandardNumber
|
2537
2509
|
{mso-style-name:解説_規格番号;
|
2538
2510
|
/* description_standard number */
|
2539
2511
|
mso-style-unhide:no;
|
@@ -2553,7 +2525,7 @@ p.affa, li.affa, div.affa
|
|
2553
2525
|
mso-ansi-language:EN-US;
|
2554
2526
|
mso-fareast-language:JA;
|
2555
2527
|
mso-no-proof:yes;}
|
2556
|
-
p.
|
2528
|
+
p.CommentaryStandardName, li.CommentaryStandardName, div.CommentaryStandardName
|
2557
2529
|
{mso-style-name:解説_規格名称;
|
2558
2530
|
/* comment_standard name */
|
2559
2531
|
mso-style-unhide:no;
|
@@ -2575,7 +2547,7 @@ p.affb, li.affb, div.affb
|
|
2575
2547
|
mso-ansi-language:EN-US;
|
2576
2548
|
mso-fareast-language:JA;
|
2577
2549
|
mso-no-proof:yes;}
|
2578
|
-
span.
|
2550
|
+
span.CommentaryEffectiveYear
|
2579
2551
|
{mso-style-name:解説_発効年;
|
2580
2552
|
/* description_effective year */
|
2581
2553
|
mso-style-unhide:no;
|
@@ -2659,7 +2631,7 @@ span.afff1
|
|
2659
2631
|
mso-hansi-font-family:"Times New Roman";
|
2660
2632
|
font-weight:bold;
|
2661
2633
|
mso-bidi-font-weight:normal;}
|
2662
|
-
p.
|
2634
|
+
p.StandardNumber, li.StandardNumber, div.StandardNumber
|
2663
2635
|
{mso-style-name:規格番号;
|
2664
2636
|
/* standard number */
|
2665
2637
|
mso-style-unhide:no;
|
@@ -2682,7 +2654,7 @@ p.afff2, li.afff2, div.afff2
|
|
2682
2654
|
mso-ansi-language:EN-US;
|
2683
2655
|
mso-fareast-language:JA;
|
2684
2656
|
mso-no-proof:yes;}
|
2685
|
-
p.
|
2657
|
+
p.zzSTDTitle1, li.zzSTDTitle1, div.zzSTDTitle1
|
2686
2658
|
{mso-style-name:規格名称;
|
2687
2659
|
/* standard name */
|
2688
2660
|
mso-style-unhide:no;
|
@@ -5798,7 +5770,7 @@ span.TR2
|
|
5798
5770
|
/* Proposer TR */
|
5799
5771
|
mso-style-unhide:no;
|
5800
5772
|
mso-style-parent:"";}
|
5801
|
-
p.
|
5773
|
+
p.JapaneseIndustrialStandard, li.JapaneseIndustrialStandard, div.JapaneseIndustrialStandard
|
5802
5774
|
{mso-style-name:日本工業規格;
|
5803
5775
|
/* Japanese Industrial Standard */
|
5804
5776
|
mso-style-unhide:no;
|
@@ -5826,7 +5798,7 @@ span.affffffffffffff2
|
|
5826
5798
|
/* Deprecation date */
|
5827
5799
|
mso-style-unhide:no;
|
5828
5800
|
mso-style-parent:"";}
|
5829
|
-
span.
|
5801
|
+
span.EffectiveYear
|
5830
5802
|
{mso-style-name:発効年;
|
5831
5803
|
/* effective-year */
|
5832
5804
|
mso-style-unhide:no;
|
@@ -2396,6 +2396,60 @@ div.WordSection2 {
|
|
2396
2396
|
div.WordSection3 {
|
2397
2397
|
page: WordSection3; }
|
2398
2398
|
|
2399
|
+
@page WordSection4 {
|
2400
|
+
size: 21.0cm 842.0pt;
|
2401
|
+
margin: 82.2pt 62.35pt 79.4pt 62.35pt;
|
2402
|
+
mso-header-margin: 45.35pt;
|
2403
|
+
mso-footer-margin: 2.0cm;
|
2404
|
+
mso-page-numbers: 1;
|
2405
|
+
mso-title-page: yes;
|
2406
|
+
mso-even-header: url("file:///C:/Doc/FILENAME_files/header.html") eh3;
|
2407
|
+
mso-header: url("file:///C:/Doc/FILENAME_files/header.html") h2;
|
2408
|
+
mso-even-footer: url("file:///C:/Doc/FILENAME_files/header.html") ef2;
|
2409
|
+
mso-footer: url("file:///C:/Doc/FILENAME_files/header.html") f3;
|
2410
|
+
mso-first-header: url("file:///C:/Doc/FILENAME_files/header.html") fh2;
|
2411
|
+
mso-first-footer: url("file:///C:/Doc/FILENAME_files/header.html") ff3;
|
2412
|
+
mso-paper-source: 0;
|
2413
|
+
layout-grid: 17.0pt 0pt;
|
2414
|
+
mso-layout-grid-char-alt: 56; }
|
2415
|
+
|
2416
|
+
@page WordSection4L {
|
2417
|
+
size: 842.0pt 21.0cm;
|
2418
|
+
margin: 82.2pt 62.35pt 79.4pt 62.35pt;
|
2419
|
+
mso-header-margin: 45.35pt;
|
2420
|
+
mso-footer-margin: 2.0cm;
|
2421
|
+
mso-page-numbers: 1;
|
2422
|
+
mso-title-page: yes;
|
2423
|
+
mso-even-header: url("file:///C:/Doc/FILENAME_files/header.html") eh4;
|
2424
|
+
mso-header: url("file:///C:/Doc/FILENAME_files/header.html") h4;
|
2425
|
+
mso-even-footer: url("file:///C:/Doc/FILENAME_files/header.html") ef4;
|
2426
|
+
mso-footer: url("file:///C:/Doc/FILENAME_files/header.html") f4;
|
2427
|
+
mso-first-header: url("file:///C:/Doc/FILENAME_files/header.html") fh2;
|
2428
|
+
mso-first-footer: url("file:///C:/Doc/FILENAME_files/header.html") ff3;
|
2429
|
+
mso-paper-source: 0;
|
2430
|
+
layout-grid: 17.0pt 0pt;
|
2431
|
+
mso-layout-grid-char-alt: 56; }
|
2432
|
+
|
2433
|
+
@page WordSection4P {
|
2434
|
+
size: 21.0cm 842.0pt;
|
2435
|
+
margin: 82.2pt 62.35pt 79.4pt 62.35pt;
|
2436
|
+
mso-header-margin: 45.35pt;
|
2437
|
+
mso-footer-margin: 2.0cm;
|
2438
|
+
mso-page-numbers: 1;
|
2439
|
+
mso-title-page: yes;
|
2440
|
+
mso-even-header: url("file:///C:/Doc/FILENAME_files/header.html") eh4;
|
2441
|
+
mso-header: url("file:///C:/Doc/FILENAME_files/header.html") h4;
|
2442
|
+
mso-even-footer: url("file:///C:/Doc/FILENAME_files/header.html") ef4;
|
2443
|
+
mso-footer: url("file:///C:/Doc/FILENAME_files/header.html") f4;
|
2444
|
+
mso-first-header: url("file:///C:/Doc/FILENAME_files/header.html") fh2;
|
2445
|
+
mso-first-footer: url("file:///C:/Doc/FILENAME_files/header.html") ff3;
|
2446
|
+
mso-paper-source: 0;
|
2447
|
+
layout-grid: 17.0pt 0pt;
|
2448
|
+
mso-layout-grid-char-alt: 56; }
|
2449
|
+
|
2450
|
+
div.WordSectionCommentary {
|
2451
|
+
page: WordSection4; }
|
2452
|
+
|
2399
2453
|
/* List Definitions */
|
2400
2454
|
@list l0 {
|
2401
2455
|
mso-list-id: -132;
|
@@ -2407,6 +2407,57 @@ div.WordSection2
|
|
2407
2407
|
mso-layout-grid-char-alt:56;}
|
2408
2408
|
div.WordSection3
|
2409
2409
|
{page:WordSection3;}
|
2410
|
+
@page WordSection4
|
2411
|
+
{size:21.0cm 842.0pt;
|
2412
|
+
margin:82.2pt 62.35pt 79.4pt 62.35pt;
|
2413
|
+
mso-header-margin:45.35pt;
|
2414
|
+
mso-footer-margin:2.0cm;
|
2415
|
+
mso-page-numbers:1;
|
2416
|
+
mso-title-page:yes;
|
2417
|
+
mso-even-header:url("file:///C:/Doc/FILENAME_files/header.html") eh3;
|
2418
|
+
mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h2;
|
2419
|
+
mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef2;
|
2420
|
+
mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f3;
|
2421
|
+
mso-first-header:url("file:///C:/Doc/FILENAME_files/header.html") fh2;
|
2422
|
+
mso-first-footer:url("file:///C:/Doc/FILENAME_files/header.html") ff3;
|
2423
|
+
mso-paper-source:0;
|
2424
|
+
layout-grid:17.0pt 0pt;
|
2425
|
+
mso-layout-grid-char-alt:56;}
|
2426
|
+
@page WordSection4L
|
2427
|
+
{size:842.0pt 21.0cm;
|
2428
|
+
margin:82.2pt 62.35pt 79.4pt 62.35pt;
|
2429
|
+
mso-header-margin:45.35pt;
|
2430
|
+
mso-footer-margin:2.0cm;
|
2431
|
+
mso-page-numbers:1;
|
2432
|
+
mso-title-page:yes;
|
2433
|
+
mso-even-header:url("file:///C:/Doc/FILENAME_files/header.html") eh4;
|
2434
|
+
mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h4;
|
2435
|
+
mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef4;
|
2436
|
+
mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f4;
|
2437
|
+
mso-first-header:url("file:///C:/Doc/FILENAME_files/header.html") fh2;
|
2438
|
+
mso-first-footer:url("file:///C:/Doc/FILENAME_files/header.html") ff3;
|
2439
|
+
mso-paper-source:0;
|
2440
|
+
layout-grid:17.0pt 0pt;
|
2441
|
+
mso-layout-grid-char-alt:56;}
|
2442
|
+
@page WordSection4P
|
2443
|
+
{size:21.0cm 842.0pt;
|
2444
|
+
margin:82.2pt 62.35pt 79.4pt 62.35pt;
|
2445
|
+
mso-header-margin:45.35pt;
|
2446
|
+
mso-footer-margin:2.0cm;
|
2447
|
+
mso-page-numbers:1;
|
2448
|
+
mso-title-page:yes;
|
2449
|
+
mso-even-header:url("file:///C:/Doc/FILENAME_files/header.html") eh4;
|
2450
|
+
mso-header:url("file:///C:/Doc/FILENAME_files/header.html") h4;
|
2451
|
+
mso-even-footer:url("file:///C:/Doc/FILENAME_files/header.html") ef4;
|
2452
|
+
mso-footer:url("file:///C:/Doc/FILENAME_files/header.html") f4;
|
2453
|
+
mso-first-header:url("file:///C:/Doc/FILENAME_files/header.html") fh2;
|
2454
|
+
mso-first-footer:url("file:///C:/Doc/FILENAME_files/header.html") ff3;
|
2455
|
+
mso-paper-source:0;
|
2456
|
+
layout-grid:17.0pt 0pt;
|
2457
|
+
mso-layout-grid-char-alt:56;}
|
2458
|
+
div.WordSectionCommentary
|
2459
|
+
{page:WordSection4;}
|
2460
|
+
|
2410
2461
|
|
2411
2462
|
/* List Definitions */
|
2412
2463
|
@list l0
|
data/lib/isodoc/jis/i18n-en.yaml
CHANGED
@@ -1,4 +1,10 @@
|
|
1
1
|
under_preparation: Under preparation.
|
2
|
+
table_footnote: Footnote
|
3
|
+
admitted: ADMITTED
|
4
|
+
commentary: Commentary
|
5
|
+
commentary_page: Comm.
|
6
|
+
JIS: 日本工業規格
|
7
|
+
permission_footer: Duplication, reprinting, etc. without permission is prohibited by copyright law.
|
2
8
|
doctype_dict:
|
3
9
|
international-standard: International standard
|
4
10
|
technical-specification: Technical specification
|
data/lib/isodoc/jis/i18n-ja.yaml
CHANGED
@@ -2,10 +2,17 @@ under_preparation: 準備中。(掲載時のステージ%)。
|
|
2
2
|
cancelled_and_replaced: キャンセルされ、%に置き換えられました。
|
3
3
|
norm_with_refs_pref_all_dated: 次に掲げる引用規格は,この規格に引用されることによって,その一部又は全部がこの規格の要 求事項を構成している。これらの引用規格は,記載の年の版を適用し,その後の改正版(追補を含む。) は適用しない。
|
4
4
|
norm_with_refs_pref_none_dated: 次に掲げる引用規格は,この規格に引用されることによって,その一部又は全部がこの規格の要求事項 を構成している。これらの引用規格は,その最新版(追補を含む。)を適用する。
|
5
|
-
|
5
|
+
permission_footer: 著作権法により無断での複製,転載等は禁止されております。
|
6
|
+
admitted: "代替用語"
|
6
7
|
table_footnote: 注
|
8
|
+
commentary: 解説
|
9
|
+
commentary_page: 解
|
10
|
+
JIS: 日本工業規格
|
11
|
+
draft_label: 案
|
12
|
+
white-paper: 白紙
|
7
13
|
doctype_dict:
|
8
14
|
international-standard: 日本産業規格
|
15
|
+
japaanese-industrial-standard: 日本産業規格
|
9
16
|
technical-specification: 標準仕様書
|
10
17
|
technical-report: 標準報告書
|
11
18
|
publicly-available-specification: Publicly Available Specification
|