metanorma-jis 0.0.1 → 0.0.3
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 +41 -6
- data/lib/isodoc/jis/base_convert.rb +39 -1
- data/lib/isodoc/jis/html/isodoc.css +72 -151
- data/lib/isodoc/jis/html/isodoc.scss +82 -161
- 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 +20 -4
- data/lib/isodoc/jis/i18n-en.yaml +13 -0
- data/lib/isodoc/jis/i18n-ja.yaml +8 -204
- data/lib/isodoc/jis/i18n.rb +2 -2
- data/lib/isodoc/jis/jis.international-standard.xsl +11095 -0
- data/lib/isodoc/jis/metadata.rb +2 -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 +255 -80
- data/lib/isodoc/jis/xref.rb +7 -0
- data/lib/metanorma/jis/cleanup.rb +42 -0
- data/lib/metanorma/jis/converter.rb +10 -14
- data/lib/metanorma/jis/front.rb +36 -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 +7 -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:;
|
@@ -11,10 +11,15 @@ module IsoDoc
|
|
11
11
|
@libdir = File.dirname(__FILE__)
|
12
12
|
end
|
13
13
|
|
14
|
-
def
|
14
|
+
def convert1(docxml, filename, dir)
|
15
|
+
@options.merge!(default_fonts({})) # updated @script
|
16
|
+
super
|
17
|
+
end
|
18
|
+
|
19
|
+
def default_fonts(_options)
|
15
20
|
{
|
16
|
-
bodyfont: (
|
17
|
-
headerfont: (
|
21
|
+
bodyfont: (@script == "Jpan" ? '"MS Mincho",serif' : '"Times New Roman",serif'),
|
22
|
+
headerfont: (@script == "Jpan" ? '"MS Gothic",sans-serif' : '"Arial",sans-serif'),
|
18
23
|
monospacefont: '"Courier New",monospace',
|
19
24
|
monospacefontsize: "1.0em",
|
20
25
|
footnotefontsize: "0.9em",
|
@@ -24,12 +29,23 @@ module IsoDoc
|
|
24
29
|
def default_file_locations(_options)
|
25
30
|
@libdir = File.dirname(__FILE__)
|
26
31
|
{
|
27
|
-
htmlstylesheet: html_doc_path("
|
32
|
+
htmlstylesheet: html_doc_path("style-iso.scss"),
|
28
33
|
htmlcoverpage: html_doc_path("html_jis_titlepage.html"),
|
29
34
|
htmlintropage: html_doc_path("html_jis_intro.html"),
|
30
35
|
}
|
31
36
|
end
|
32
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
|
+
|
33
49
|
include BaseConvert
|
34
50
|
include Init
|
35
51
|
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
under_preparation: Under preparation.
|
2
|
+
doctype_dict:
|
3
|
+
international-standard: International standard
|
4
|
+
technical-specification: Technical specification
|
5
|
+
technical-report: Technical report
|
6
|
+
publicly-available-specification: Publicly Available Specification
|
7
|
+
international-workshop-agreement: International Workshop Agreement
|
8
|
+
guide: Guide
|
9
|
+
amendment: Amendment
|
10
|
+
technical-corrigendum: Technical Corrigendum
|
11
|
+
directive: Directive
|
12
|
+
stage_dict:
|
13
|
+
international-standard: International standard
|
data/lib/isodoc/jis/i18n-ja.yaml
CHANGED
@@ -1,207 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
introduction: 序文
|
8
|
-
foreword: まえがき
|
9
|
-
abstract: Abstract
|
10
|
-
acknowledgements: Acknowledgements
|
11
|
-
termsdef: 用語及び定義
|
12
|
-
termsdefsymbolsabbrev: Terms, definitions, symbols and abbreviated terms
|
13
|
-
termsdefsymbols: Terms, definitions and symbols
|
14
|
-
termsdefabbrev: Terms, definitions and abbreviated terms
|
15
|
-
normref: 引用規格
|
16
|
-
bibliography: 参考文献
|
17
|
-
preface: Preface
|
18
|
-
clause: 箇条
|
19
|
-
annex: 附属書
|
20
|
-
appendix: Appendix
|
21
|
-
no_terms_boilerplate: |
|
22
|
-
<p>この規格には,定義する用語はない。</p>
|
23
|
-
internal_terms_boilerplate: |
|
24
|
-
<p>この規格で用いる主な用語及び定義は,次による。</p>
|
25
|
-
norm_with_refs_pref:
|
26
|
-
次に掲げる引用規格は,この規格に引用されることによって,その一部又は全部がこの規格の要 求事項を構成している。これらの引用規格のうち,西暦年を付記してあるものは,記載の年の版を適 用し,その後の改正版(追補を含む。)は適用しない。西暦年の付記がない引用規格は,その最新版(追 補を含む。)を適用する。
|
27
|
-
norm_empty_pref:
|
28
|
-
この規格には,引用規格はない。
|
29
|
-
external_terms_boilerplate: |
|
30
|
-
<p>この規格で用いる主な用語及び定義は,% による。</p>
|
31
|
-
internal_external_terms_boilerplate: |
|
32
|
-
<p>この規格で用いる主な用語及び定義は,次によるほか,% による。</p>
|
33
|
-
term_defined_in: "[term defined in %]"
|
34
|
-
binary_and: "%1 and %2"
|
35
|
-
multiple_and: "%1, and %2"
|
36
|
-
binary_or: "%1 or %2"
|
37
|
-
multiple_or: "%1, or %2"
|
38
|
-
chain_and: "%1 and %2"
|
39
|
-
chain_or: "%1 or %2"
|
40
|
-
chain_from: "%1 from %2"
|
41
|
-
chain_to: "%1 to %2"
|
42
|
-
ordinal_keys: []
|
43
|
-
SpelloutRules: spellout-ordinal
|
44
|
-
note: 注記
|
45
|
-
note_xref: 注記
|
46
|
-
termnote: 注釈%
|
47
|
-
list: List
|
48
|
-
deflist: Definition List
|
49
|
-
figure: 図
|
50
|
-
diagram: Diagram
|
51
|
-
formula: 式
|
52
|
-
inequality: Formula
|
53
|
-
table: 表
|
54
|
-
requirement: 要求事項
|
55
|
-
recommendation: 推奨事項
|
56
|
-
permission: 許容事項
|
57
|
-
box: Box
|
58
|
-
index: 索引
|
59
|
-
standard_no: 規格番号
|
60
|
-
number: 番号
|
61
|
-
# Modspec
|
62
|
-
recommendationtest: Recommendation test
|
63
|
-
requirementtest: Requirement test
|
64
|
-
permissiontest: Permission test
|
65
|
-
recommendationclass: Recommendations class
|
66
|
-
requirementclass: Requirements class
|
67
|
-
permissionclass: Permissions class
|
68
|
-
abstracttest: Abstract test
|
69
|
-
conformanceclass: Conformance class
|
70
|
-
key: 記号説明
|
71
|
-
example: 例
|
72
|
-
example_xref: 例
|
73
|
-
where: ここで,
|
74
|
-
where_one: ここで,
|
75
|
-
wholeoftext: Whole of text
|
76
|
-
draft_label: draft
|
77
|
-
inform_annex: 参考
|
78
|
-
norm_annex: 規定
|
79
|
-
modified: modified
|
80
|
-
deprecated: DEPRECATED
|
81
|
-
source: 出典
|
82
|
-
and: and
|
83
|
-
all_parts: 規格群
|
84
|
-
edition_ordinal: "%Spellout edition"
|
85
|
-
edition: edition
|
86
|
-
version: version
|
87
|
-
toc_figures: List of figures
|
88
|
-
toc_tables: List of tables
|
89
|
-
toc_recommendations: List of recommendations
|
90
|
-
month_january: January
|
91
|
-
month_february: February
|
92
|
-
month_march: March
|
93
|
-
month_april: April
|
94
|
-
month_may: May
|
95
|
-
month_june: June
|
96
|
-
month_july: July
|
97
|
-
month_august: August
|
98
|
-
month_september: September
|
99
|
-
month_october: October
|
100
|
-
month_november: November
|
101
|
-
month_december: December
|
102
|
-
obligation: Obligation
|
103
|
-
admonition: {
|
104
|
-
danger: Danger,
|
105
|
-
warning: Warning,
|
106
|
-
caution: Caution,
|
107
|
-
important: Important,
|
108
|
-
safety precautions: Safety Precautions,
|
109
|
-
editorial: Editorial Note
|
110
|
-
}
|
111
|
-
locality: {
|
112
|
-
section: Section,
|
113
|
-
clause: 箇条,
|
114
|
-
subclause: 細分箇条,
|
115
|
-
part: 部,
|
116
|
-
paragraph: 段落,
|
117
|
-
chapter: Chapter,
|
118
|
-
page: Page,
|
119
|
-
table: 表,
|
120
|
-
annex: 附属書,
|
121
|
-
figure: 図,
|
122
|
-
example: 例,
|
123
|
-
note: 注記,
|
124
|
-
formula: 式,
|
125
|
-
}
|
126
|
-
grammar_abbrevs:
|
127
|
-
masculine: m
|
128
|
-
feminine: f
|
129
|
-
neuter: n
|
130
|
-
common: common
|
131
|
-
singular: sg
|
132
|
-
dual: dual
|
133
|
-
pl: pl
|
134
|
-
isPreposition: prep
|
135
|
-
isParticiple: part
|
136
|
-
isAdjective: adj
|
137
|
-
isAdverb: adv
|
138
|
-
isNoun: noun
|
139
|
-
isVerb: verb
|
140
|
-
relatedterms:
|
141
|
-
deprecates: deprecates
|
142
|
-
supersedes: supersedes
|
143
|
-
narrower: narrower
|
144
|
-
broader: broader
|
145
|
-
equivalent: equivalent
|
146
|
-
compare: compare
|
147
|
-
contrast: contrast
|
148
|
-
see: see
|
149
|
-
seealso: see also
|
150
|
-
inflection:
|
151
|
-
Clause:
|
152
|
-
sg: Clause
|
153
|
-
pl: Clauses
|
154
|
-
Annex:
|
155
|
-
sg: Annex
|
156
|
-
pl: Annexes
|
157
|
-
Appendix:
|
158
|
-
sg: Appendix
|
159
|
-
pl: Appendixes
|
160
|
-
Note:
|
161
|
-
sg: Note
|
162
|
-
pl: Notes
|
163
|
-
"Note % to entry":
|
164
|
-
sg: Note % to entry
|
165
|
-
pl: Notes % to entry
|
166
|
-
List:
|
167
|
-
sg: List
|
168
|
-
pl: Lists
|
169
|
-
Figure:
|
170
|
-
sg: Figure
|
171
|
-
pl: Figures
|
172
|
-
Formula:
|
173
|
-
sg: Formula
|
174
|
-
pl: Formulas
|
175
|
-
Table:
|
176
|
-
sg: Table
|
177
|
-
pl: Tables
|
178
|
-
Requirement:
|
179
|
-
sg: Requirement
|
180
|
-
pl: Requirements
|
181
|
-
Recommendation:
|
182
|
-
sg: Recommendation
|
183
|
-
pl: Recommendations
|
184
|
-
Permission:
|
185
|
-
sg: Permission
|
186
|
-
pl: Permissions
|
187
|
-
Example:
|
188
|
-
sg: Example
|
189
|
-
pl: Examples
|
190
|
-
Part:
|
191
|
-
sg: Part
|
192
|
-
pl: Parts
|
193
|
-
Section:
|
194
|
-
sg: Section
|
195
|
-
pl: Sections
|
196
|
-
Paragraph:
|
197
|
-
sg: Paragraph
|
198
|
-
pl: Paragraphs
|
199
|
-
Chapter:
|
200
|
-
sg: Chapter
|
201
|
-
pl: Chapters
|
202
|
-
Page:
|
203
|
-
sg: Page
|
204
|
-
pl: Pages
|
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: 注
|
205
7
|
doctype_dict:
|
206
8
|
international-standard: 日本産業規格
|
207
9
|
technical-specification: 標準仕様書
|
@@ -212,3 +14,5 @@ doctype_dict:
|
|
212
14
|
amendment: 追補
|
213
15
|
technical-corrigendum: Technical Corrigendum
|
214
16
|
directive: Directive
|
17
|
+
stage_dict:
|
18
|
+
international-standard: 日本産業規格
|
data/lib/isodoc/jis/i18n.rb
CHANGED
@@ -2,8 +2,8 @@ module IsoDoc
|
|
2
2
|
module JIS
|
3
3
|
class I18n < IsoDoc::Iso::I18n
|
4
4
|
def load_yaml1(lang, script)
|
5
|
-
y = if lang == "
|
6
|
-
YAML.load_file(File.join(File.dirname(__FILE__), "i18n-
|
5
|
+
y = if lang == "en"
|
6
|
+
YAML.load_file(File.join(File.dirname(__FILE__), "i18n-en.yaml"))
|
7
7
|
else
|
8
8
|
YAML.load_file(File.join(File.dirname(__FILE__), "i18n-ja.yaml"))
|
9
9
|
end
|