metanorma-jis 0.0.1 → 0.0.2

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: 389469990940f3daa6877a9bfd6f3903ef3705e4a3bc0446de19e2d2c1a52930
4
- data.tar.gz: b0cbac18b0e1cf0223d52ebe4cce6d2c7956a7a79a70e974369cf8d556c8bf9a
3
+ metadata.gz: ff66d75cdb79e4e5c5ac3ce3710fa330b966cb593b3091445a7a40e74c06d524
4
+ data.tar.gz: f85726ebe333f7d1195689ca2028f4cde3c2a4dc948a1de9307ebd5d5e0943bd
5
5
  SHA512:
6
- metadata.gz: c14b13c90635a211a98d25a65850166c7d515aa49857ba99394664a571cee113f3c91db7e32c5ad523a51676b6a83536aec9fe8ccd0908c277bc1f748768e906
7
- data.tar.gz: 5b6e900e60f71d0f4f4fb363269ef974fbdfa99690bc1a4292b8d05c20f195b7afe8878433368adbc95c5177a7b6f929f3d29cfb42c9da0a49f0bd690e5d189f
6
+ metadata.gz: 6f6554baeda3c8ab8e82da6f36e6500eb89d5d639dbaaba3e3970845e3d9e0ec007c931d8f5ca4a1b1b8060bf11ef46eb4d3ab4a9074d77e042fbaedb3141140
7
+ data.tar.gz: 7e3e2a87a2070fb32c477b6cb1dc678ef110f349a32a227f79a11b5b495e264adebab14babbfe6ac68602c5431c4d5f9be3aaa573ca113b0ec3d7f447b7a6096
@@ -28,7 +28,7 @@ module IsoDoc
28
28
  out.p(class: "zzSTDTitle2") do |p|
29
29
  p << @meta.get[:docsubtitleintro]
30
30
  p << " &#x2014; " if @meta.get[:docsubtitleintro] && @meta.get[:docsubtitlemain]
31
- p << @meta.get[:doctitlemain]
31
+ p << @meta.get[:docsubtitlemain]
32
32
  p << " &#x2014; " if @meta.get[:docsubtitlemain] && @meta.get[:docsubtitlepart]
33
33
  end
34
34
  a = @meta.get[:docsubtitlepart] and out.p(class: "zzSTDTitle2") do |p|
@@ -99,29 +99,27 @@ p.NormRef, li.NormRef, div.NormRef {
99
99
  mso-fareast-language: JA; }
100
100
 
101
101
  p.FigureTitle, li.FigureTitle, div.FigureTitle {
102
- mso-style-name: "Figure Title";
102
+ mso-style-name: 図題(参考付図);
103
+ /* title (reference figure) */
103
104
  mso-style-unhide: no;
104
- mso-style-qformat: yes;
105
- mso-style-parent: "";
106
- mso-style-parent: "List Paragraph";
107
- mso-style-link: "Figure Title Char";
108
- margin-top: 0cm;
105
+ mso-style-parent: 図題;
106
+ mso-style-next: 段落;
107
+ margin-top: 3.0pt;
109
108
  margin-right: 0cm;
110
- margin-bottom: 6.0pt;
111
- margin-left: 36.0pt;
112
- mso-add-space: auto;
109
+ margin-bottom: 0cm;
110
+ margin-left: 0cm;
113
111
  text-align: center;
114
- text-indent: -30.35pt;
115
- line-height: 12.0pt;
116
- mso-pagination: widow-orphan;
117
- /*mso-list:l9 level1 lfo17;*/
118
- tab-stops: 20.15pt;
112
+ line-height: 17.0pt;
113
+ mso-line-height-rule: exactly;
114
+ mso-pagination: none;
119
115
  font-size: {{normalfontsize}};
120
- font-family: {{bodyfont}};
116
+ font-family: "Times New Roman",serif;
117
+ mso-fareast-font-family: {{headerfont}};
118
+ mso-font-kerning: 1.0pt;
119
+ mso-ansi-language: EN-US;
120
+ mso-fareast-language: JA;
121
121
  font-weight: bold;
122
- mso-fareast-font-family: "SimSun",serif;
123
- mso-bidi-font-family: {{bodyfont}};
124
- mso-ansi-language: EN-GB; }
122
+ mso-bidi-font-weight: normal; }
125
123
 
126
124
  p.FigureTitleCxSpFirst, li.FigureTitleCxSpFirst, div.FigureTitleCxSpFirst {
127
125
  mso-style-name: "Figure TitleCxSpFirst";
@@ -404,28 +402,28 @@ p.SourceTitle {
404
402
  mso-ansi-language: EN-GB; }
405
403
 
406
404
  p.Tabletitle, li.Tabletitle, div.Tabletitle, p.ListTitle {
407
- mso-style-name: "Table title";
405
+ mso-style-name: 表題(解説表);
406
+ /* Title (explanatory table) */
408
407
  mso-style-unhide: no;
409
- mso-style-qformat: yes;
410
- mso-style-parent: "";
408
+ mso-style-parent: Title;
409
+ mso-style-next: 単位;
411
410
  margin-top: 0cm;
412
411
  margin-right: 0cm;
413
- margin-bottom: 6.0pt;
414
- margin-left: 36.0pt;
412
+ margin-bottom: 3.0pt;
413
+ margin-left: 0cm;
415
414
  text-align: center;
416
- text-indent: -18.0pt;
417
- line-height: 12.0pt;
418
- page-break-after: avoid;
419
- line-height: 12.0pt;
420
- mso-pagination: widow-orphan;
421
- /* mso-list:l8 level1 lfo16; */
422
- tab-stops: 20.15pt;
415
+ line-height: 17.0pt;
416
+ mso-line-height-rule: exactly;
417
+ mso-pagination: none;
423
418
  font-size: {{normalfontsize}};
419
+ font-family: "Times New Roman",serif;
420
+ mso-fareast-font-family: {{headerfont}};
421
+ mso-font-kerning: 1.0pt;
422
+ mso-ansi-language: EN-US;
423
+ mso-fareast-language: JA;
424
424
  font-weight: bold;
425
- font-family: {{bodyfont}};
426
- mso-fareast-font-family: "SimSun",serif;
427
- mso-bidi-font-family: {{bodyfont}};
428
- mso-ansi-language: EN-GB; }
425
+ mso-bidi-font-weight: normal;
426
+ mso-no-proof: yes; }
429
427
 
430
428
  p.TabletitleCxSpFirst, li.TabletitleCxSpFirst, div.TabletitleCxSpFirst {
431
429
  mso-style-name: "Table titleCxSpFirst";
@@ -816,7 +814,7 @@ p.zzHelp, li.zzHelp, div.zzHelp {
816
814
  font-size: {{normalfontsize}};
817
815
  mso-bidi-font-size: 10.0pt;
818
816
  font-family: {{bodyfont}};
819
- mso-fareast-font-family: "MS Mincho";
817
+ mso-fareast-font-family: {{bodyfont}};
820
818
  mso-bidi-font-family: "Times New Roman";
821
819
  color: green;
822
820
  mso-ansi-language: EN-GB;
@@ -957,7 +955,7 @@ p.zzSTDTitle1, li.zzSTDTitle1, div.zzSTDTitle1 {
957
955
  mso-pagination: none;
958
956
  font-size: 10.0pt;
959
957
  font-family: "Times New Roman",serif;
960
- mso-fareast-font-family: "MS Gothic";
958
+ mso-fareast-font-family: {{headerfont}};
961
959
  mso-font-kerning: 1.0pt;
962
960
  mso-ansi-language: EN-US;
963
961
  mso-fareast-language: JA;
@@ -1356,20 +1354,28 @@ div.Example, td.Example {
1356
1354
  margin-bottom: 6.0pt; }
1357
1355
 
1358
1356
  p.Example, li.Example, div.Example {
1357
+ mso-style-name: 例1;
1358
+ /* Example 1 */
1359
1359
  mso-style-unhide: no;
1360
- mso-style-qformat: yes;
1361
- margin-top: 0cm;
1360
+ mso-style-parent: "";
1361
+ mso-style-next: 例1_段落;
1362
+ margin-top: 3.0pt;
1362
1363
  margin-right: 0cm;
1363
- margin-bottom: 6.0pt;
1364
- margin-left: 0cm;
1364
+ margin-bottom: 0cm;
1365
+ margin-left: 29.8pt;
1365
1366
  text-align: justify;
1366
- line-height: 12.0pt;
1367
- mso-pagination: widow-orphan;
1368
- /* tab-stops:20.15pt; */
1369
- mso-fareast-font-family: Calibri;
1370
- mso-bidi-font-family: "Times New Roman";
1371
- mso-ansi-language: EN-GB;
1372
- mso-fareast-language: EN-US; }
1367
+ text-justify: inter-ideograph;
1368
+ text-indent: -19.85pt;
1369
+ line-height: 15.0pt;
1370
+ mso-line-height-rule: exactly;
1371
+ mso-pagination: none;
1372
+ font-size: {{normalfontsize}};
1373
+ font-family: "Times New Roman",serif;
1374
+ mso-fareast-font-family: {{bodyfont}};
1375
+ mso-font-kerning: 1.0pt;
1376
+ mso-ansi-language: EN-US;
1377
+ mso-fareast-language: JA;
1378
+ mso-no-proof: yes; }
1373
1379
 
1374
1380
  span.ExampleChar {
1375
1381
  mso-style-name: "Example Char";
@@ -3917,29 +3923,6 @@ p.afffffffd, li.afffffffd, div.afffffffd {
3917
3923
  mso-bidi-font-weight: normal;
3918
3924
  mso-no-proof: yes; }
3919
3925
 
3920
- p.afffffffe, li.afffffffe, div.afffffffe {
3921
- mso-style-name: 図題(参考付図);
3922
- /* title (reference figure) */
3923
- mso-style-unhide: no;
3924
- mso-style-parent: 図題;
3925
- mso-style-next: 段落;
3926
- margin-top: 3.0pt;
3927
- margin-right: 0cm;
3928
- margin-bottom: 0cm;
3929
- margin-left: 0cm;
3930
- text-align: center;
3931
- line-height: 17.0pt;
3932
- mso-line-height-rule: exactly;
3933
- mso-pagination: none;
3934
- font-size: {{normalfontsize}};
3935
- font-family: "Times New Roman",serif;
3936
- mso-fareast-font-family: {{headerfont}};
3937
- mso-font-kerning: 1.0pt;
3938
- mso-ansi-language: EN-US;
3939
- mso-fareast-language: JA;
3940
- font-weight: bold;
3941
- mso-bidi-font-weight: normal; }
3942
-
3943
3926
  p.affffffff, li.affffffff, div.affffffff {
3944
3927
  mso-style-name: 図題(付図);
3945
3928
  /* Subtitle (Appendix) */
@@ -7586,30 +7569,6 @@ p.afffffffffffffffff4, li.afffffffffffffffff4, div.afffffffffffffffff4 {
7586
7569
  mso-ansi-language: EN-US;
7587
7570
  mso-fareast-language: JA; }
7588
7571
 
7589
- p.afffffffffffffffff5, li.afffffffffffffffff5, div.afffffffffffffffff5 {
7590
- mso-style-name: 表題(解説表);
7591
- /* Title (explanatory table) */
7592
- mso-style-unhide: no;
7593
- mso-style-parent: Title;
7594
- mso-style-next: 単位;
7595
- margin-top: 0cm;
7596
- margin-right: 0cm;
7597
- margin-bottom: 3.0pt;
7598
- margin-left: 0cm;
7599
- text-align: center;
7600
- line-height: 17.0pt;
7601
- mso-line-height-rule: exactly;
7602
- mso-pagination: none;
7603
- font-size: {{normalfontsize}};
7604
- font-family: "Times New Roman",serif;
7605
- mso-fareast-font-family: {{headerfont}};
7606
- mso-font-kerning: 1.0pt;
7607
- mso-ansi-language: EN-US;
7608
- mso-fareast-language: JA;
7609
- font-weight: bold;
7610
- mso-bidi-font-weight: normal;
7611
- mso-no-proof: yes; }
7612
-
7613
7572
  p.afffffffffffffffff6, li.afffffffffffffffff6, div.afffffffffffffffff6 {
7614
7573
  mso-style-name: 表題(解説付表);
7615
7574
  /* Title (explanatory table) */
@@ -9193,30 +9152,6 @@ p.afffffffffffffffffffffd, li.afffffffffffffffffffffd, div.affffffffffffffffffff
9193
9152
  mso-bidi-font-weight: normal;
9194
9153
  mso-no-proof: yes; }
9195
9154
 
9196
- p.afffffffffffffffffffffe, li.afffffffffffffffffffffe, div.afffffffffffffffffffffe {
9197
- mso-style-name: 例1;
9198
- /* Example 1 */
9199
- mso-style-unhide: no;
9200
- mso-style-parent: "";
9201
- mso-style-next: 例1_段落;
9202
- margin-top: 3.0pt;
9203
- margin-right: 0cm;
9204
- margin-bottom: 0cm;
9205
- margin-left: 29.8pt;
9206
- text-align: justify;
9207
- text-justify: inter-ideograph;
9208
- text-indent: -19.85pt;
9209
- line-height: 15.0pt;
9210
- mso-line-height-rule: exactly;
9211
- mso-pagination: none;
9212
- font-size: {{normalfontsize}};
9213
- font-family: "Times New Roman",serif;
9214
- mso-fareast-font-family: {{bodyfont}};
9215
- mso-font-kerning: 1.0pt;
9216
- mso-ansi-language: EN-US;
9217
- mso-fareast-language: JA;
9218
- mso-no-proof: yes; }
9219
-
9220
9155
  p.affffffffffffffffffffff, li.affffffffffffffffffffff, div.affffffffffffffffffffff {
9221
9156
  mso-style-name: 例1(番号のみ);
9222
9157
  /* Example 1 (number only) */
@@ -93,29 +93,27 @@ p.NormRef, li.NormRef, div.NormRef
93
93
  mso-ansi-language:EN-US;
94
94
  mso-fareast-language:JA;}
95
95
  p.FigureTitle, li.FigureTitle, div.FigureTitle
96
- {mso-style-name:"Figure Title";
97
- mso-style-unhide:no;
98
- mso-style-qformat:yes;
99
- mso-style-parent:"";
100
- mso-style-parent:"List Paragraph";
101
- mso-style-link:"Figure Title Char";
102
- margin-top:0cm;
103
- margin-right:0cm;
104
- margin-bottom:6.0pt;
105
- margin-left:36.0pt;
106
- mso-add-space:auto;
107
- text-align:center;
108
- text-indent:-30.35pt;
109
- line-height:12.0pt;
110
- mso-pagination:widow-orphan;
111
- /*mso-list:l9 level1 lfo17;*/
112
- tab-stops:20.15pt;
113
- font-size:$normalfontsize;
114
- font-family:$bodyfont;
115
- font-weight:bold;
116
- mso-fareast-font-family:"SimSun",serif;
117
- mso-bidi-font-family:$bodyfont;
118
- mso-ansi-language:EN-GB;}
96
+ {mso-style-name:図題(参考付図);
97
+ /* title (reference figure) */
98
+ mso-style-unhide:no;
99
+ mso-style-parent:図題;
100
+ mso-style-next:段落;
101
+ margin-top:3.0pt;
102
+ margin-right:0cm;
103
+ margin-bottom:0cm;
104
+ margin-left:0cm;
105
+ text-align:center;
106
+ line-height:17.0pt;
107
+ mso-line-height-rule:exactly;
108
+ mso-pagination:none;
109
+ font-size:$normalfontsize;
110
+ font-family:"Times New Roman",serif;
111
+ mso-fareast-font-family:$headerfont;
112
+ mso-font-kerning:1.0pt;
113
+ mso-ansi-language:EN-US;
114
+ mso-fareast-language:JA;
115
+ font-weight:bold;
116
+ mso-bidi-font-weight:normal;}
119
117
  p.FigureTitleCxSpFirst, li.FigureTitleCxSpFirst, div.FigureTitleCxSpFirst
120
118
  {mso-style-name:"Figure TitleCxSpFirst";
121
119
  mso-style-unhide:no;
@@ -384,28 +382,28 @@ p.SourceTitle
384
382
  mso-bidi-font-family:$bodyfont;
385
383
  mso-ansi-language:EN-GB;}
386
384
  p.Tabletitle, li.Tabletitle, div.Tabletitle, p.ListTitle
387
- {mso-style-name:"Table title";
385
+ {mso-style-name:表題(解説表);
386
+ /* Title (explanatory table) */
388
387
  mso-style-unhide:no;
389
- mso-style-qformat:yes;
390
- mso-style-parent:"";
391
- margin-top:0cm;
392
- margin-right:0cm;
393
- margin-bottom:6.0pt;
394
- margin-left:36.0pt;
395
- text-align:center;
396
- text-indent:-18.0pt;
397
- line-height:12.0pt;
398
- page-break-after:avoid;
399
- line-height:12.0pt;
400
- mso-pagination:widow-orphan;
401
- /* mso-list:l8 level1 lfo16; */
402
- tab-stops:20.15pt;
403
- font-size:$normalfontsize;
404
- font-weight:bold;
405
- font-family:$bodyfont;
406
- mso-fareast-font-family:"SimSun",serif;
407
- mso-bidi-font-family:$bodyfont;
408
- mso-ansi-language:EN-GB;}
388
+ mso-style-parent:Title;
389
+ mso-style-next:単位;
390
+ margin-top:0cm;
391
+ margin-right:0cm;
392
+ margin-bottom:3.0pt;
393
+ margin-left:0cm;
394
+ text-align:center;
395
+ line-height:17.0pt;
396
+ mso-line-height-rule:exactly;
397
+ mso-pagination:none;
398
+ font-size:$normalfontsize;
399
+ font-family:"Times New Roman",serif;
400
+ mso-fareast-font-family:$headerfont;
401
+ mso-font-kerning:1.0pt;
402
+ mso-ansi-language:EN-US;
403
+ mso-fareast-language:JA;
404
+ font-weight:bold;
405
+ mso-bidi-font-weight:normal;
406
+ mso-no-proof:yes;}
409
407
  p.TabletitleCxSpFirst, li.TabletitleCxSpFirst, div.TabletitleCxSpFirst
410
408
  {mso-style-name:"Table titleCxSpFirst";
411
409
  mso-style-unhide:no;
@@ -778,7 +776,7 @@ p.zzHelp, li.zzHelp, div.zzHelp
778
776
  font-size:$normalfontsize;
779
777
  mso-bidi-font-size:10.0pt;
780
778
  font-family:$bodyfont;
781
- mso-fareast-font-family:"MS Mincho";
779
+ mso-fareast-font-family:$bodyfont;
782
780
  mso-bidi-font-family:"Times New Roman";
783
781
  color:green;
784
782
  mso-ansi-language:EN-GB;
@@ -914,7 +912,7 @@ p.zzSTDTitle1, li.zzSTDTitle1, div.zzSTDTitle1
914
912
  mso-pagination:none;
915
913
  font-size:10.0pt;
916
914
  font-family:"Times New Roman",serif;
917
- mso-fareast-font-family:"MS Gothic";
915
+ mso-fareast-font-family:$headerfont;
918
916
  mso-font-kerning:1.0pt;
919
917
  mso-ansi-language:EN-US;
920
918
  mso-fareast-language:JA;
@@ -1316,21 +1314,28 @@ div.Example, td.Example {
1316
1314
  }
1317
1315
 
1318
1316
  p.Example, li.Example, div.Example
1319
- {
1320
- mso-style-unhide:no;
1321
- mso-style-qformat:yes;
1322
- margin-top:0cm;
1323
- margin-right:0cm;
1324
- margin-bottom:6.0pt;
1325
- margin-left:0cm;
1326
- text-align:justify;
1327
- line-height:12.0pt;
1328
- mso-pagination:widow-orphan;
1329
- /* tab-stops:20.15pt; */
1330
- mso-fareast-font-family:Calibri;
1331
- mso-bidi-font-family:"Times New Roman";
1332
- mso-ansi-language:EN-GB;
1333
- mso-fareast-language:EN-US;}
1317
+ {mso-style-name:例1;
1318
+ /* Example 1 */
1319
+ mso-style-unhide:no;
1320
+ mso-style-parent:"";
1321
+ mso-style-next:例1_段落;
1322
+ margin-top:3.0pt;
1323
+ margin-right:0cm;
1324
+ margin-bottom:0cm;
1325
+ margin-left:29.8pt;
1326
+ text-align:justify;
1327
+ text-justify:inter-ideograph;
1328
+ text-indent:-19.85pt;
1329
+ line-height:15.0pt;
1330
+ mso-line-height-rule:exactly;
1331
+ mso-pagination:none;
1332
+ font-size:$normalfontsize;
1333
+ font-family:"Times New Roman",serif;
1334
+ mso-fareast-font-family:$bodyfont;
1335
+ mso-font-kerning:1.0pt;
1336
+ mso-ansi-language:EN-US;
1337
+ mso-fareast-language:JA;
1338
+ mso-no-proof:yes;}
1334
1339
  span.ExampleChar
1335
1340
  {mso-style-name:"Example Char";
1336
1341
  mso-style-unhide:no;
@@ -3753,28 +3758,6 @@ p.afffffffd, li.afffffffd, div.afffffffd
3753
3758
  font-weight:bold;
3754
3759
  mso-bidi-font-weight:normal;
3755
3760
  mso-no-proof:yes;}
3756
- p.afffffffe, li.afffffffe, div.afffffffe
3757
- {mso-style-name:図題(参考付図);
3758
- /* title (reference figure) */
3759
- mso-style-unhide:no;
3760
- mso-style-parent:図題;
3761
- mso-style-next:段落;
3762
- margin-top:3.0pt;
3763
- margin-right:0cm;
3764
- margin-bottom:0cm;
3765
- margin-left:0cm;
3766
- text-align:center;
3767
- line-height:17.0pt;
3768
- mso-line-height-rule:exactly;
3769
- mso-pagination:none;
3770
- font-size:$normalfontsize;
3771
- font-family:"Times New Roman",serif;
3772
- mso-fareast-font-family:$headerfont;
3773
- mso-font-kerning:1.0pt;
3774
- mso-ansi-language:EN-US;
3775
- mso-fareast-language:JA;
3776
- font-weight:bold;
3777
- mso-bidi-font-weight:normal;}
3778
3761
  p.affffffff, li.affffffff, div.affffffff
3779
3762
  {mso-style-name:図題(付図);
3780
3763
  /* Subtitle (Appendix) */
@@ -7260,29 +7243,6 @@ p.afffffffffffffffff4, li.afffffffffffffffff4, div.afffffffffffffffff4
7260
7243
  mso-font-kerning:1.0pt;
7261
7244
  mso-ansi-language:EN-US;
7262
7245
  mso-fareast-language:JA;}
7263
- p.afffffffffffffffff5, li.afffffffffffffffff5, div.afffffffffffffffff5
7264
- {mso-style-name:表題(解説表);
7265
- /* Title (explanatory table) */
7266
- mso-style-unhide:no;
7267
- mso-style-parent:Title;
7268
- mso-style-next:単位;
7269
- margin-top:0cm;
7270
- margin-right:0cm;
7271
- margin-bottom:3.0pt;
7272
- margin-left:0cm;
7273
- text-align:center;
7274
- line-height:17.0pt;
7275
- mso-line-height-rule:exactly;
7276
- mso-pagination:none;
7277
- font-size:$normalfontsize;
7278
- font-family:"Times New Roman",serif;
7279
- mso-fareast-font-family:$headerfont;
7280
- mso-font-kerning:1.0pt;
7281
- mso-ansi-language:EN-US;
7282
- mso-fareast-language:JA;
7283
- font-weight:bold;
7284
- mso-bidi-font-weight:normal;
7285
- mso-no-proof:yes;}
7286
7246
  p.afffffffffffffffff6, li.afffffffffffffffff6, div.afffffffffffffffff6
7287
7247
  {mso-style-name:表題(解説付表);
7288
7248
  /* Title (explanatory table) */
@@ -8793,29 +8753,6 @@ p.afffffffffffffffffffffd, li.afffffffffffffffffffffd, div.affffffffffffffffffff
8793
8753
  font-weight:bold;
8794
8754
  mso-bidi-font-weight:normal;
8795
8755
  mso-no-proof:yes;}
8796
- p.afffffffffffffffffffffe, li.afffffffffffffffffffffe, div.afffffffffffffffffffffe
8797
- {mso-style-name:例1;
8798
- /* Example 1 */
8799
- mso-style-unhide:no;
8800
- mso-style-parent:"";
8801
- mso-style-next:例1_段落;
8802
- margin-top:3.0pt;
8803
- margin-right:0cm;
8804
- margin-bottom:0cm;
8805
- margin-left:29.8pt;
8806
- text-align:justify;
8807
- text-justify:inter-ideograph;
8808
- text-indent:-19.85pt;
8809
- line-height:15.0pt;
8810
- mso-line-height-rule:exactly;
8811
- mso-pagination:none;
8812
- font-size:$normalfontsize;
8813
- font-family:"Times New Roman",serif;
8814
- mso-fareast-font-family:$bodyfont;
8815
- mso-font-kerning:1.0pt;
8816
- mso-ansi-language:EN-US;
8817
- mso-fareast-language:JA;
8818
- mso-no-proof:yes;}
8819
8756
  p.affffffffffffffffffffff, li.affffffffffffffffffffff, div.affffffffffffffffffffff
8820
8757
  {mso-style-name:例1(番号のみ);
8821
8758
  /* Example 1 (number only) */
@@ -11,10 +11,15 @@ module IsoDoc
11
11
  @libdir = File.dirname(__FILE__)
12
12
  end
13
13
 
14
- def default_fonts(options)
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: (options[:script] == "Jpan" ? '"MS Mincho",serif' : '"Times New Roman",serif'),
17
- headerfont: (options[:script] == "Jpan" ? '"MS Gothic",sans-serif' : '"Arial",sans-serif'),
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,7 +29,7 @@ module IsoDoc
24
29
  def default_file_locations(_options)
25
30
  @libdir = File.dirname(__FILE__)
26
31
  {
27
- htmlstylesheet: html_doc_path("htmlstyle.scss"),
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
  }
@@ -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
@@ -1,207 +1,4 @@
1
- term_def_boilerplate:
2
- scope: 適用範囲
3
- symbolsabbrev: 記号及び略語
4
- abbrev: Abbreviated terms
5
- symbols: Symbols
6
- table_of_contents: 目次
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: 準備中。(掲載時のステージ%)。
205
2
  doctype_dict:
206
3
  international-standard: 日本産業規格
207
4
  technical-specification: 標準仕様書
@@ -212,3 +9,5 @@ doctype_dict:
212
9
  amendment: 追補
213
10
  technical-corrigendum: Technical Corrigendum
214
11
  directive: Directive
12
+ stage_dict:
13
+ international-standard: 日本産業規格
@@ -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 == "ja"
6
- YAML.load_file(File.join(File.dirname(__FILE__), "i18n-ja.yaml"))
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
@@ -47,6 +47,8 @@ module IsoDoc
47
47
  set(:docsubtitleamd, @c.encode(tp[:amd].text, :hexadecimal)) if tp[:amd]
48
48
  set(:docsubtitlecorrlabel, corr_prefix(tn, lang)) if tn[:corr]
49
49
  end
50
+
51
+ PART_LABEL = { en: "Part", ja: "その" }.freeze
50
52
  end
51
53
  end
52
54
  end
@@ -5,15 +5,36 @@ require_relative "init"
5
5
 
6
6
  module IsoDoc
7
7
  module JIS
8
- class WordConvert < IsoDoc::WordConvert
8
+ class WordConvert < IsoDoc::Iso::WordConvert
9
9
  def initialize(options)
10
10
  @libdir = File.dirname(__FILE__)
11
11
  super
12
+ @libdir = File.dirname(__FILE__)
13
+ end
14
+
15
+ def init_dis(opt); end
16
+
17
+ def convert(input_filename, file = nil, debug = false,
18
+ output_filename = nil)
19
+ file = File.read(input_filename, encoding: "utf-8") if file.nil?
20
+ @openmathdelim, @closemathdelim = extract_delims(file)
21
+ docxml, filename, dir = convert_init(file, input_filename, debug)
22
+ result = convert1(docxml, filename, dir)
23
+ return result if debug
24
+
25
+ output_filename ||= "#{filename}.#{@suffix}"
26
+ postprocess(result, output_filename, dir)
27
+ FileUtils.rm_rf dir
12
28
  end
13
29
 
14
- def default_fonts(options)
15
- { bodyfont: (options[:script] == "Jpan" ? '"MS Mincho",serif' : '"Times New Roman",serif'),
16
- headerfont: (options[:script] == "Jpan" ? '"MS Gothic",sans-serif' : '"Arial",sans-serif'),
30
+ def convert1(docxml, filename, dir)
31
+ @options.merge!(default_fonts({})) # updated @script
32
+ super
33
+ end
34
+
35
+ def default_fonts(_options)
36
+ { bodyfont: (@script == "Jpan" ? '"MS Mincho",serif' : '"Times New Roman",serif'),
37
+ headerfont: (@script == "Jpan" ? '"MS Gothic",sans-serif' : '"Arial",sans-serif'),
17
38
  monospacefont: '"Courier New",monospace',
18
39
  normalfontsize: "10.0pt",
19
40
  monospacefontsize: "9.0pt",
@@ -22,6 +43,7 @@ module IsoDoc
22
43
  end
23
44
 
24
45
  def default_file_locations(_options)
46
+ @libdir = File.dirname(__FILE__)
25
47
  { htmlstylesheet: html_doc_path("htmlstyle.scss"),
26
48
  htmlcoverpage: html_doc_path("html_jis_titlepage.html"),
27
49
  htmlintropage: html_doc_path("html_jis_intro.html"),
@@ -135,17 +157,38 @@ module IsoDoc
135
157
  end
136
158
  end
137
159
 
160
+ def annex_name(_annex, name, div)
161
+ preceding_floating_titles(name, div)
162
+ return if name.nil?
163
+
164
+ div.h1 class: "Annex" do |t|
165
+ name.children.each { |c2| parse(c2, t) }
166
+ clause_parse_subtitle(name, t)
167
+ end
168
+ end
169
+
138
170
  def new_styles(docxml)
139
171
  super
140
172
  biblio_paras(docxml)
173
+ heading_to_para(docxml)
141
174
  end
142
175
 
143
176
  def biblio_paras(docxml)
144
- docxml.xpath("//div[@class = 'normref']//p[not(@class)]").each do |p|
177
+ docxml.xpath("//div[@class = 'normref']//" \
178
+ "p[not(@class) or @class = 'MsoNormal']").each do |p|
145
179
  p["class"] = "NormRefText"
146
180
  end
147
181
  end
148
182
 
183
+ def heading_to_para(docxml)
184
+ docxml.xpath("//h1[@class = 'ForewordTitle']").each do |p|
185
+ p.name = "p"
186
+ p.xpath("../div/p[not(@class) or @class = 'MsoNormal']").each do |n|
187
+ n["class"] = "ForewordText"
188
+ end
189
+ end
190
+ end
191
+
149
192
  include BaseConvert
150
193
  include Init
151
194
  end
@@ -12,6 +12,7 @@ module Metanorma
12
12
 
13
13
  def init_i18n(node)
14
14
  node.attr("language") or node.set_attr("language", "ja")
15
+ node.attr("language") == "jp" and node.set_attr("language", "ja")
15
16
  super
16
17
  end
17
18
 
@@ -37,6 +38,7 @@ module Metanorma
37
38
 
38
39
  def pdf_converter(node)
39
40
  return if node.attr("no-pdf")
41
+
40
42
  return
41
43
 
42
44
  if node.nil?
@@ -46,6 +46,17 @@ module Metanorma
46
46
  end
47
47
  end
48
48
  end
49
+
50
+ def title(node, xml)
51
+ %w(en ja).each do |lang|
52
+ at = { language: lang, format: "text/plain" }
53
+ title_full(node, xml, lang, at)
54
+ title_intro(node, xml, lang, at)
55
+ title_main(node, xml, lang, at)
56
+ title_part(node, xml, lang, at)
57
+ title_amd(node, xml, lang, at) if @amd
58
+ end
59
+ end
49
60
  end
50
61
  end
51
62
  end
@@ -1,6 +1,6 @@
1
1
  module Metanorma
2
2
  module JIS
3
- VERSION = "0.0.1".freeze
3
+ VERSION = "0.0.2".freeze
4
4
  end
5
5
  end
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-jis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-16 00:00:00.000000000 Z
11
+ date: 2023-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-iso
@@ -254,6 +254,7 @@ files:
254
254
  - lib/isodoc/jis/html/wordstyle.css
255
255
  - lib/isodoc/jis/html/wordstyle.scss
256
256
  - lib/isodoc/jis/html_convert.rb
257
+ - lib/isodoc/jis/i18n-en.yaml
257
258
  - lib/isodoc/jis/i18n-ja.yaml
258
259
  - lib/isodoc/jis/i18n.rb
259
260
  - lib/isodoc/jis/init.rb