metanorma-unece 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/unece/converter.rb +1 -1
- data/lib/asciidoctor/unece/isodoc.rng +3 -0
- data/lib/isodoc/unece/html/htmlstyle.scss +4 -0
- data/lib/isodoc/unece/html/wordstyle.scss +129 -28
- data/lib/isodoc/unece/word_convert.rb +2 -2
- data/lib/metanorma/unece/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2adb6c3972881dad7dd9bff2b4db4a5124ad15df1645d43466a7b8af3b5bc90a
|
4
|
+
data.tar.gz: '086d60e66f62a70886fbcf2cefa5921cc0e82f798ca77afd9d405c5588ab80b0'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f126e7ba8f6ffc1c9c1a18b94b67f3942aadb49d25c4d2b1d7ddb78bc6efcec72879d44a8a4b2b9dd94a5c403cb251de5996b31977af17573368ccd2a5ac0e78
|
7
|
+
data.tar.gz: 192322ec27031fb8388e940ebedd6a03ea3699004df6610fb35f50ab9e5a12c49fffaaa940ba06683cd028501893bbb25d7cae857747a7d037d9507eb5e0e030
|
@@ -120,7 +120,7 @@ module Asciidoctor
|
|
120
120
|
result << noko { |ixml| front node, ixml }
|
121
121
|
result << noko { |ixml| middle node, ixml }
|
122
122
|
result << "</unece-standard>"
|
123
|
-
result = textcleanup(result
|
123
|
+
result = textcleanup(result)
|
124
124
|
ret1 = cleanup(Nokogiri::XML(result))
|
125
125
|
validate(ret1)
|
126
126
|
ret1.root.add_namespace(nil, Metanorma::Unece::DOCUMENT_NAMESPACE)
|
@@ -924,7 +924,8 @@ p.Tablebody, li.Tablebody, div.Tablebody
|
|
924
924
|
margin-left:0cm;
|
925
925
|
text-indent:0cm;
|
926
926
|
mso-bidi-font-family:$headerfont;}
|
927
|
-
|
927
|
+
|
928
|
+
/* ordered list */
|
928
929
|
@list l2
|
929
930
|
{mso-list-id:525294607;
|
930
931
|
mso-list-template-ids:67633181;}
|
@@ -933,61 +934,61 @@ p.Tablebody, li.Tablebody, div.Tablebody
|
|
933
934
|
mso-level-text:"%1\)";
|
934
935
|
mso-level-tab-stop:none;
|
935
936
|
mso-level-number-position:left;
|
936
|
-
margin-left:
|
937
|
+
margin-left:18.0pt;
|
937
938
|
text-indent:-18.0pt;}
|
938
939
|
@list l2:level2
|
939
940
|
{mso-level-text:"%2\)";
|
940
941
|
mso-level-tab-stop:none;
|
941
942
|
mso-level-number-position:left;
|
942
|
-
margin-left:
|
943
|
+
margin-left:36.0pt;
|
943
944
|
text-indent:-18.0pt;}
|
944
945
|
@list l2:level3
|
945
946
|
{mso-level-number-format:roman-lower;
|
946
947
|
mso-level-text:"%3\)";
|
947
948
|
mso-level-tab-stop:none;
|
948
949
|
mso-level-number-position:left;
|
949
|
-
margin-left:
|
950
|
+
margin-left:54.0pt;
|
950
951
|
text-indent:-18.0pt;}
|
951
952
|
@list l2:level4
|
952
953
|
{mso-level-number-format:alpha-upper;
|
953
954
|
mso-level-text:"%4\)";
|
954
955
|
mso-level-tab-stop:none;
|
955
956
|
mso-level-number-position:left;
|
956
|
-
margin-left:
|
957
|
+
margin-left:72.0pt;
|
957
958
|
text-indent:-18.0pt;}
|
958
959
|
@list l2:level5
|
959
960
|
{mso-level-number-format:roman-upper;
|
960
961
|
mso-level-text:"%5\)";
|
961
962
|
mso-level-tab-stop:none;
|
962
963
|
mso-level-number-position:left;
|
963
|
-
margin-left:
|
964
|
+
margin-left:90.0pt;
|
964
965
|
text-indent:-18.0pt;}
|
965
966
|
@list l2:level6
|
966
967
|
{mso-level-number-format:alpha-lower;
|
967
968
|
mso-level-text:"%6\)";
|
968
969
|
mso-level-tab-stop:none;
|
969
970
|
mso-level-number-position:left;
|
970
|
-
margin-left:
|
971
|
+
margin-left:108.0pt;
|
971
972
|
text-indent:-18.0pt;}
|
972
973
|
@list l2:level7
|
973
974
|
{mso-level-tab-stop:none;
|
974
975
|
mso-level-text:"%7\)";
|
975
976
|
mso-level-number-position:left;
|
976
|
-
margin-left:
|
977
|
+
margin-left:126.0pt;
|
977
978
|
text-indent:-18.0pt;}
|
978
979
|
@list l2:level8
|
979
980
|
{mso-level-number-format:roman-lower;
|
980
981
|
mso-level-text:"%8\)";
|
981
982
|
mso-level-tab-stop:none;
|
982
983
|
mso-level-number-position:left;
|
983
|
-
margin-left:
|
984
|
+
margin-left:144.0pt;
|
984
985
|
text-indent:-18.0pt;}
|
985
986
|
@list l2:level9
|
986
987
|
{mso-level-number-format:alpha-upper;
|
987
988
|
mso-level-text:"%9\)";
|
988
989
|
mso-level-tab-stop:none;
|
989
990
|
mso-level-number-position:left;
|
990
|
-
margin-left:
|
991
|
+
margin-left:162.0pt;
|
991
992
|
text-indent:-18.0pt;}
|
992
993
|
/* Unordered list */
|
993
994
|
@list l3
|
@@ -996,67 +997,167 @@ p.Tablebody, li.Tablebody, div.Tablebody
|
|
996
997
|
mso-list-template-ids:-277327948 -457018030 67633155 67633157 67633153 67633155 67633157 67633153 67633155 67633157;}
|
997
998
|
@list l3:level1
|
998
999
|
{mso-level-number-format:bullet;
|
999
|
-
mso-level-text
|
1000
|
+
mso-level-text:—;
|
1000
1001
|
mso-level-tab-stop:none;
|
1001
1002
|
mso-level-number-position:left;
|
1002
|
-
margin-left:
|
1003
|
+
margin-left:18.0pt;
|
1003
1004
|
text-indent:-18.0pt;}
|
1004
1005
|
@list l3:level2
|
1005
1006
|
{mso-level-number-format:bullet;
|
1006
|
-
mso-level-text
|
1007
|
+
mso-level-text:—;
|
1007
1008
|
mso-level-tab-stop:none;
|
1008
1009
|
mso-level-number-position:left;
|
1009
|
-
margin-left:
|
1010
|
+
margin-left:36.0pt;
|
1010
1011
|
text-indent:-18.0pt;}
|
1011
1012
|
@list l3:level3
|
1012
1013
|
{mso-level-number-format:bullet;
|
1013
|
-
mso-level-text
|
1014
|
+
mso-level-text:—;
|
1014
1015
|
mso-level-tab-stop:none;
|
1015
1016
|
mso-level-number-position:left;
|
1016
|
-
margin-left:
|
1017
|
+
margin-left:54.0pt;
|
1017
1018
|
text-indent:-18.0pt;}
|
1018
1019
|
@list l3:level4
|
1019
1020
|
{mso-level-number-format:bullet;
|
1020
|
-
mso-level-text
|
1021
|
+
mso-level-text:—;
|
1021
1022
|
mso-level-tab-stop:none;
|
1022
1023
|
mso-level-number-position:left;
|
1023
|
-
margin-left:
|
1024
|
+
margin-left:72.0pt;
|
1024
1025
|
text-indent:-18.0pt;}
|
1025
1026
|
@list l3:level5
|
1026
1027
|
{mso-level-number-format:bullet;
|
1027
|
-
mso-level-text
|
1028
|
+
mso-level-text:—;
|
1028
1029
|
mso-level-tab-stop:none;
|
1029
1030
|
mso-level-number-position:left;
|
1030
|
-
margin-left:
|
1031
|
+
margin-left:90.0pt;
|
1031
1032
|
text-indent:-18.0pt;}
|
1032
1033
|
@list l3:level6
|
1033
1034
|
{mso-level-number-format:bullet;
|
1034
|
-
mso-level-text
|
1035
|
+
mso-level-text:—;
|
1035
1036
|
mso-level-tab-stop:none;
|
1036
1037
|
mso-level-number-position:left;
|
1037
|
-
margin-left:
|
1038
|
+
margin-left:108.0pt;
|
1038
1039
|
text-indent:-18.0pt;}
|
1039
1040
|
@list l3:level7
|
1040
1041
|
{mso-level-number-format:bullet;
|
1041
|
-
mso-level-text
|
1042
|
+
mso-level-text:—;
|
1042
1043
|
mso-level-tab-stop:none;
|
1043
1044
|
mso-level-number-position:left;
|
1044
|
-
margin-left:
|
1045
|
+
margin-left:126.0pt;
|
1045
1046
|
text-indent:-18.0pt;}
|
1046
1047
|
@list l3:level8
|
1047
1048
|
{mso-level-number-format:bullet;
|
1048
|
-
mso-level-text
|
1049
|
+
mso-level-text:—;
|
1049
1050
|
mso-level-tab-stop:none;
|
1050
1051
|
mso-level-number-position:left;
|
1051
|
-
margin-left:
|
1052
|
+
margin-left:144.0pt;
|
1052
1053
|
text-indent:-18.0pt;}
|
1053
1054
|
@list l3:level9
|
1054
1055
|
{mso-level-number-format:bullet;
|
1055
|
-
mso-level-text
|
1056
|
+
mso-level-text:—;
|
1056
1057
|
mso-level-tab-stop:none;
|
1057
1058
|
mso-level-number-position:left;
|
1058
|
-
margin-left:
|
1059
|
+
margin-left:162.0pt;
|
1059
1060
|
text-indent:-18.0pt;}
|
1061
|
+
p.ListContLevel1, li.ListContLevel1, div.ListContLevel1
|
1062
|
+
{mso-style-priority:34;
|
1063
|
+
margin-top:0cm;
|
1064
|
+
margin-left:18.0pt;
|
1065
|
+
margin-right:0cm;
|
1066
|
+
margin-bottom:12.0pt;
|
1067
|
+
mso-pagination:widow-orphan;
|
1068
|
+
font-size:11.0pt;
|
1069
|
+
font-family:$bodyfont;
|
1070
|
+
mso-ansi-language:EN-AU;
|
1071
|
+
mso-fareast-language:EN-US;}
|
1072
|
+
p.ListContLevel2, li.ListContLevel2, div.ListContLevel2
|
1073
|
+
{mso-style-priority:34;
|
1074
|
+
margin-top:0cm;
|
1075
|
+
margin-left:36.0pt;
|
1076
|
+
margin-right:0cm;
|
1077
|
+
margin-bottom:12.0pt;
|
1078
|
+
mso-pagination:widow-orphan;
|
1079
|
+
font-size:11.0pt;
|
1080
|
+
font-family:$bodyfont;
|
1081
|
+
mso-ansi-language:EN-AU;
|
1082
|
+
mso-fareast-language:EN-US;}
|
1083
|
+
p.ListContLevel3, li.ListContLevel3, div.ListContLevel3
|
1084
|
+
{mso-style-priority:34;
|
1085
|
+
margin-top:0cm;
|
1086
|
+
margin-left:54.0pt;
|
1087
|
+
margin-right:0cm;
|
1088
|
+
margin-bottom:12.0pt;
|
1089
|
+
mso-pagination:widow-orphan;
|
1090
|
+
font-size:11.0pt;
|
1091
|
+
font-family:$bodyfont;
|
1092
|
+
mso-ansi-language:EN-AU;
|
1093
|
+
mso-fareast-language:EN-US;}
|
1094
|
+
p.ListContLevel4, li.ListContLevel4, div.ListContLevel4
|
1095
|
+
{mso-style-priority:34;
|
1096
|
+
margin-top:0cm;
|
1097
|
+
margin-left:72.0pt;
|
1098
|
+
margin-right:0cm;
|
1099
|
+
margin-bottom:12.0pt;
|
1100
|
+
mso-pagination:widow-orphan;
|
1101
|
+
font-size:11.0pt;
|
1102
|
+
font-family:$bodyfont;
|
1103
|
+
mso-ansi-language:EN-AU;
|
1104
|
+
mso-fareast-language:EN-US;}
|
1105
|
+
p.ListContLevel5, li.ListContLevel5, div.ListContLevel5
|
1106
|
+
{mso-style-priority:34;
|
1107
|
+
margin-top:0cm;
|
1108
|
+
margin-left:90.0pt;
|
1109
|
+
margin-right:0cm;
|
1110
|
+
margin-bottom:12.0pt;
|
1111
|
+
mso-pagination:widow-orphan;
|
1112
|
+
font-size:11.0pt;
|
1113
|
+
font-family:$bodyfont;
|
1114
|
+
mso-ansi-language:EN-AU;
|
1115
|
+
mso-fareast-language:EN-US;}
|
1116
|
+
p.ListContLevel6, li.ListContLevel6, div.ListContLevel6
|
1117
|
+
{mso-style-priority:34;
|
1118
|
+
margin-top:0cm;
|
1119
|
+
margin-left:108.0pt;
|
1120
|
+
margin-right:0cm;
|
1121
|
+
margin-bottom:12.0pt;
|
1122
|
+
mso-pagination:widow-orphan;
|
1123
|
+
font-size:11.0pt;
|
1124
|
+
font-family:$bodyfont;
|
1125
|
+
mso-ansi-language:EN-AU;
|
1126
|
+
mso-fareast-language:EN-US;}
|
1127
|
+
p.ListContLevel7, li.ListContLevel7, div.ListContLevel7
|
1128
|
+
{mso-style-priority:34;
|
1129
|
+
margin-top:0cm;
|
1130
|
+
margin-left:126.0pt;
|
1131
|
+
margin-right:0cm;
|
1132
|
+
margin-bottom:12.0pt;
|
1133
|
+
mso-pagination:widow-orphan;
|
1134
|
+
font-size:11.0pt;
|
1135
|
+
font-family:$bodyfont;
|
1136
|
+
mso-ansi-language:EN-AU;
|
1137
|
+
mso-fareast-language:EN-US;}
|
1138
|
+
p.ListContLevel8, li.ListContLevel8, div.ListContLevel8
|
1139
|
+
{mso-style-priority:34;
|
1140
|
+
margin-top:0cm;
|
1141
|
+
margin-left:144.0pt;
|
1142
|
+
margin-right:0cm;
|
1143
|
+
margin-bottom:12.0pt;
|
1144
|
+
mso-pagination:widow-orphan;
|
1145
|
+
font-size:11.0pt;
|
1146
|
+
font-family:$bodyfont;
|
1147
|
+
mso-ansi-language:EN-AU;
|
1148
|
+
mso-fareast-language:EN-US;}
|
1149
|
+
p.ListContLevel9, li.ListContLevel9, div.ListContLevel9
|
1150
|
+
{mso-style-priority:34;
|
1151
|
+
margin-top:0cm;
|
1152
|
+
margin-left:162.0pt;
|
1153
|
+
margin-right:0cm;
|
1154
|
+
margin-bottom:12.0pt;
|
1155
|
+
mso-pagination:widow-orphan;
|
1156
|
+
font-size:11.0pt;
|
1157
|
+
font-family:$bodyfont;
|
1158
|
+
mso-ansi-language:EN-AU;
|
1159
|
+
mso-fareast-language:EN-US;}
|
1160
|
+
|
1060
1161
|
|
1061
1162
|
table.MsoNormalTable
|
1062
1163
|
{mso-style-name:"Table Normal";
|
@@ -147,8 +147,8 @@ module IsoDoc
|
|
147
147
|
intro = docxml.at("//p[@class = 'IntroTitle']/..")
|
148
148
|
abstract = docxml.at("//p[@class = 'AbstractTitle']/..")
|
149
149
|
abstract.parent = (abstractbox || preface_container) if abstract
|
150
|
-
abstractbox and abstract&.xpath("
|
151
|
-
a.remove if /page-break-before:always/.match(a["style"])
|
150
|
+
abstractbox and abstract&.xpath(".//p/br")&.each do |a|
|
151
|
+
a.parent.remove if /page-break-before:always/.match(a["style"])
|
152
152
|
end
|
153
153
|
docxml&.at("//p[@class = 'AbstractTitle']")&.remove if abstractbox
|
154
154
|
foreword.parent = preface_container if foreword && preface_container
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-unece
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.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-01-
|
11
|
+
date: 2019-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|