metanorma-un 0.9.11 → 0.9.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isodoc/un/un.plenary-attachment.xsl +104 -21
- data/lib/isodoc/un/un.plenary.xsl +104 -21
- data/lib/isodoc/un/un.recommendation.xsl +121 -15
- data/lib/metanorma/un/biblio.rng +5 -0
- data/lib/metanorma/un/isodoc.rng +46 -12
- data/lib/metanorma/un/un.rng +1 -0
- data/lib/metanorma/un/version.rb +1 -1
- data/metanorma-un.gemspec +3 -2
- metadata +4 -11
- data/.github/workflows/automerge.yml +0 -31
- data/.github/workflows/rake.yml +0 -15
- data/.github/workflows/release.yml +0 -24
- data/Rakefile +0 -8
- data/bin/console +0 -14
- data/bin/rspec +0 -17
- data/bin/setup +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a6c281824f078936a2b881891ea6eb6986bbc13e5f6dfcdf0c491afe4809ad9
|
4
|
+
data.tar.gz: bd04e7c40788f7740898a032785f053b2f0fdc4923244329c2c220826567f1d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50777f8af8469db384484c93ed2aed4a9f257993235773dfd57e4ac83240da12ea422b7d5f035b9cf7a32e20b12db1ac5f7020b37014f96429711b1f4c4ed176
|
7
|
+
data.tar.gz: 53ca280f48bc9f9ac05478088b41ad1382144e68114286ef6978a9e38f8b677979ca6363c4238d36afa5fa63d7621f9c92665cd8aee2c1a8177c07f6945ef6c9
|
@@ -212,7 +212,7 @@
|
|
212
212
|
<xsl:variable name="charsToRemove" select="concat($upper, $lower, '.()~!@#$%^*-+:')"/>
|
213
213
|
<xsl:variable name="code" select="translate(/un:un-standard/un:bibdata/un:docidentifier, $charsToRemove,'')"/>
|
214
214
|
|
215
|
-
<fo:block-container absolute-position="fixed" left="20mm" top="258mm" width="30mm" text-align="center">
|
215
|
+
<fo:block-container absolute-position="fixed" left="20mm" top="258mm" width="30mm" text-align="center" id="__internal_layout__barcode_{generate-id()}">
|
216
216
|
<fo:block font-size="10pt" text-align="left">
|
217
217
|
<xsl:value-of select="/un:un-standard/un:bibdata/un:docidentifier"/>
|
218
218
|
</fo:block>
|
@@ -284,7 +284,7 @@
|
|
284
284
|
</xsl:if>
|
285
285
|
|
286
286
|
<!-- Preface Pages (except Abstract, that showed in Summary on cover page`) -->
|
287
|
-
<xsl:if test="/un:un-standard/un:preface/*[not(local-name() = 'abstract' or local-name()
|
287
|
+
<xsl:if test="/un:un-standard/un:preface/*[not(local-name() = 'abstract' or local-name() = 'note' or local-name() = 'admonition')]">
|
288
288
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']"/>
|
289
289
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='introduction']"/>
|
290
290
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name() != 'abstract' and local-name() != 'foreword' and local-name() != 'introduction' and local-name() != 'acknowledgements' and local-name() != 'note' and local-name() != 'admonition']"/>
|
@@ -375,17 +375,11 @@
|
|
375
375
|
<fo:table-column column-width="17mm"/>
|
376
376
|
<fo:table-body>
|
377
377
|
<fo:table-row>
|
378
|
-
<fo:table-cell padding-left="6mm" padding-top="2.5mm">
|
378
|
+
<fo:table-cell padding-left="6mm" padding-top="2.5mm" number-columns-spanned="3">
|
379
379
|
<fo:block font-size="12pt" font-style="italic" margin-bottom="6pt" role="H2">
|
380
380
|
<xsl:apply-templates select="un:title/node()"/>
|
381
381
|
</fo:block>
|
382
382
|
</fo:table-cell>
|
383
|
-
<fo:table-cell>
|
384
|
-
<fo:block> </fo:block>
|
385
|
-
</fo:table-cell>
|
386
|
-
<fo:table-cell>
|
387
|
-
<fo:block> </fo:block>
|
388
|
-
</fo:table-cell>
|
389
383
|
</fo:table-row>
|
390
384
|
<fo:table-row>
|
391
385
|
<fo:table-cell>
|
@@ -1251,6 +1245,11 @@
|
|
1251
1245
|
</xsl:variable>
|
1252
1246
|
<xsl:variable name="table-border" select="normalize-space($table-border_)"/>
|
1253
1247
|
|
1248
|
+
<xsl:variable name="table-cell-border_">
|
1249
|
+
|
1250
|
+
</xsl:variable>
|
1251
|
+
<xsl:variable name="table-cell-border" select="normalize-space($table-cell-border_)"/>
|
1252
|
+
|
1254
1253
|
<xsl:attribute-set name="table-container-style">
|
1255
1254
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
1256
1255
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
@@ -1263,8 +1262,6 @@
|
|
1263
1262
|
<xsl:attribute-set name="table-style">
|
1264
1263
|
<xsl:attribute name="table-omit-footer-at-break">true</xsl:attribute>
|
1265
1264
|
<xsl:attribute name="table-layout">fixed</xsl:attribute>
|
1266
|
-
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
1267
|
-
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
1268
1265
|
|
1269
1266
|
<xsl:attribute name="border-top">0.5pt solid black</xsl:attribute>
|
1270
1267
|
|
@@ -2374,10 +2371,18 @@
|
|
2374
2371
|
<xsl:variable name="table_attributes">
|
2375
2372
|
|
2376
2373
|
<xsl:element name="table_attributes" use-attribute-sets="table-style">
|
2374
|
+
|
2375
|
+
<xsl:if test="$margin-side != 0">
|
2376
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
2377
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
2378
|
+
</xsl:if>
|
2379
|
+
|
2377
2380
|
<xsl:attribute name="width"><xsl:value-of select="normalize-space($table_width)"/></xsl:attribute>
|
2378
2381
|
|
2379
|
-
<xsl:
|
2380
|
-
|
2382
|
+
<xsl:if test="$margin-side != 0">
|
2383
|
+
<xsl:attribute name="margin-left"><xsl:value-of select="$margin-side"/>mm</xsl:attribute>
|
2384
|
+
<xsl:attribute name="margin-right"><xsl:value-of select="$margin-side"/>mm</xsl:attribute>
|
2385
|
+
</xsl:if>
|
2381
2386
|
|
2382
2387
|
</xsl:element>
|
2383
2388
|
</xsl:variable>
|
@@ -3130,6 +3135,10 @@
|
|
3130
3135
|
<xsl:template match="*[local-name()='tr']">
|
3131
3136
|
<fo:table-row xsl:use-attribute-sets="table-body-row-style">
|
3132
3137
|
|
3138
|
+
<xsl:if test="*[local-name() = 'th']">
|
3139
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
3140
|
+
</xsl:if>
|
3141
|
+
|
3133
3142
|
<xsl:call-template name="setTableRowAttributes"/>
|
3134
3143
|
<xsl:apply-templates/>
|
3135
3144
|
</fo:table-row>
|
@@ -5100,6 +5109,9 @@
|
|
5100
5109
|
<xsl:value-of select="substring($str, 2)"/>
|
5101
5110
|
</xsl:template>
|
5102
5111
|
|
5112
|
+
<!-- ======================================= -->
|
5113
|
+
<!-- math -->
|
5114
|
+
<!-- ======================================= -->
|
5103
5115
|
<xsl:template match="mathml:math">
|
5104
5116
|
<xsl:variable name="isAdded" select="@added"/>
|
5105
5117
|
<xsl:variable name="isDeleted" select="@deleted"/>
|
@@ -5150,14 +5162,57 @@
|
|
5150
5162
|
<xsl:value-of select="$comment_text"/>
|
5151
5163
|
</xsl:template>
|
5152
5164
|
|
5165
|
+
<xsl:template match="*[local-name() = 'asciimath']">
|
5166
|
+
<xsl:param name="process" select="'false'"/>
|
5167
|
+
<xsl:if test="$process = 'true'">
|
5168
|
+
<xsl:apply-templates/>
|
5169
|
+
</xsl:if>
|
5170
|
+
</xsl:template>
|
5171
|
+
|
5172
|
+
<xsl:template match="*[local-name() = 'latexmath']"/>
|
5173
|
+
|
5174
|
+
<xsl:template name="getMathml_asciimath_text">
|
5175
|
+
<xsl:variable name="asciimath" select="../*[local-name() = 'asciimath']"/>
|
5176
|
+
<xsl:variable name="latexmath">
|
5177
|
+
|
5178
|
+
</xsl:variable>
|
5179
|
+
<xsl:variable name="asciimath_text_following">
|
5180
|
+
<xsl:choose>
|
5181
|
+
<xsl:when test="normalize-space($latexmath) != ''">
|
5182
|
+
<xsl:value-of select="$latexmath"/>
|
5183
|
+
</xsl:when>
|
5184
|
+
<xsl:when test="normalize-space($asciimath) != ''">
|
5185
|
+
<xsl:value-of select="$asciimath"/>
|
5186
|
+
</xsl:when>
|
5187
|
+
<xsl:otherwise>
|
5188
|
+
<xsl:value-of select="following-sibling::node()[1][self::comment()]"/>
|
5189
|
+
</xsl:otherwise>
|
5190
|
+
</xsl:choose>
|
5191
|
+
</xsl:variable>
|
5192
|
+
<xsl:variable name="asciimath_text_">
|
5193
|
+
<xsl:choose>
|
5194
|
+
<xsl:when test="normalize-space($asciimath_text_following) != ''">
|
5195
|
+
<xsl:value-of select="$asciimath_text_following"/>
|
5196
|
+
</xsl:when>
|
5197
|
+
<xsl:otherwise>
|
5198
|
+
<xsl:value-of select="normalize-space(translate(.,' ',' '))"/>
|
5199
|
+
</xsl:otherwise>
|
5200
|
+
</xsl:choose>
|
5201
|
+
</xsl:variable>
|
5202
|
+
<xsl:variable name="asciimath_text_2" select="java:org.metanorma.fop.Util.unescape($asciimath_text_)"/>
|
5203
|
+
<xsl:variable name="asciimath_text" select="java:trim(java:java.lang.String.new($asciimath_text_2))"/>
|
5204
|
+
<xsl:value-of select="$asciimath_text"/>
|
5205
|
+
</xsl:template>
|
5206
|
+
|
5153
5207
|
<xsl:template name="mathml_instream_object">
|
5154
|
-
<xsl:param name="
|
5208
|
+
<xsl:param name="asciimath_text"/>
|
5155
5209
|
<xsl:param name="mathml_content"/>
|
5156
5210
|
|
5157
|
-
<xsl:variable name="
|
5211
|
+
<xsl:variable name="asciimath_text_">
|
5158
5212
|
<xsl:choose>
|
5159
|
-
<xsl:when test="normalize-space($
|
5160
|
-
<xsl:otherwise><xsl:call-template name="getMathml_comment_text"/></xsl:otherwise>
|
5213
|
+
<xsl:when test="normalize-space($asciimath_text) != ''"><xsl:value-of select="$asciimath_text"/></xsl:when>
|
5214
|
+
<!-- <xsl:otherwise><xsl:call-template name="getMathml_comment_text"/></xsl:otherwise> -->
|
5215
|
+
<xsl:otherwise><xsl:call-template name="getMathml_asciimath_text"/></xsl:otherwise>
|
5161
5216
|
</xsl:choose>
|
5162
5217
|
</xsl:variable>
|
5163
5218
|
|
@@ -5174,10 +5229,10 @@
|
|
5174
5229
|
</xsl:attribute>
|
5175
5230
|
|
5176
5231
|
<!-- <xsl:if test="$add_math_as_text = 'true'"> -->
|
5177
|
-
<xsl:if test="normalize-space($
|
5232
|
+
<xsl:if test="normalize-space($asciimath_text_) != ''">
|
5178
5233
|
<!-- put Mathin Alternate Text -->
|
5179
5234
|
<xsl:attribute name="fox:alt-text">
|
5180
|
-
<xsl:value-of select="$
|
5235
|
+
<xsl:value-of select="$asciimath_text_"/>
|
5181
5236
|
</xsl:attribute>
|
5182
5237
|
</xsl:if>
|
5183
5238
|
<!-- </xsl:if> -->
|
@@ -5250,6 +5305,29 @@
|
|
5250
5305
|
<xsl:value-of select="."/><xsl:value-of select="$zero_width_space"/>
|
5251
5306
|
</xsl:template>
|
5252
5307
|
|
5308
|
+
<!-- Examples:
|
5309
|
+
<stem type="AsciiMath">x = 1</stem>
|
5310
|
+
<stem type="AsciiMath"><asciimath>x = 1</asciimath></stem>
|
5311
|
+
<stem type="AsciiMath"><asciimath>x = 1</asciimath><latexmath>x = 1</latexmath></stem>
|
5312
|
+
-->
|
5313
|
+
<xsl:template match="*[local-name() = 'stem'][@type = 'AsciiMath'][count(*) = 0]/text() | *[local-name() = 'stem'][@type = 'AsciiMath'][*[local-name() = 'asciimath']]" priority="3">
|
5314
|
+
<fo:inline xsl:use-attribute-sets="mathml-style">
|
5315
|
+
|
5316
|
+
<xsl:choose>
|
5317
|
+
<xsl:when test="self::text()"><xsl:value-of select="."/></xsl:when>
|
5318
|
+
<xsl:otherwise>
|
5319
|
+
<xsl:apply-templates>
|
5320
|
+
<xsl:with-param name="process">true</xsl:with-param>
|
5321
|
+
</xsl:apply-templates>
|
5322
|
+
</xsl:otherwise>
|
5323
|
+
</xsl:choose>
|
5324
|
+
|
5325
|
+
</fo:inline>
|
5326
|
+
</xsl:template>
|
5327
|
+
<!-- ======================================= -->
|
5328
|
+
<!-- END: math -->
|
5329
|
+
<!-- ======================================= -->
|
5330
|
+
|
5253
5331
|
<xsl:template match="*[local-name()='localityStack']"/>
|
5254
5332
|
|
5255
5333
|
<xsl:template match="*[local-name()='link']" name="link">
|
@@ -7948,6 +8026,10 @@
|
|
7948
8026
|
|
7949
8027
|
<fo:list-block xsl:use-attribute-sets="list-style">
|
7950
8028
|
|
8029
|
+
<xsl:if test="local-name() = 'ol'">
|
8030
|
+
<xsl:attribute name="provisional-distance-between-starts">6mm</xsl:attribute>
|
8031
|
+
</xsl:if>
|
8032
|
+
|
7951
8033
|
<xsl:if test="*[local-name() = 'name']">
|
7952
8034
|
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
7953
8035
|
</xsl:if>
|
@@ -9421,13 +9503,14 @@
|
|
9421
9503
|
</xsl:template>
|
9422
9504
|
|
9423
9505
|
<xsl:template name="setId">
|
9506
|
+
<xsl:param name="prefix"/>
|
9424
9507
|
<xsl:attribute name="id">
|
9425
9508
|
<xsl:choose>
|
9426
9509
|
<xsl:when test="@id">
|
9427
|
-
<xsl:value-of select="@id"/>
|
9510
|
+
<xsl:value-of select="concat($prefix, @id)"/>
|
9428
9511
|
</xsl:when>
|
9429
9512
|
<xsl:otherwise>
|
9430
|
-
<xsl:value-of select="generate-id()"/>
|
9513
|
+
<xsl:value-of select="concat($prefix, generate-id())"/>
|
9431
9514
|
</xsl:otherwise>
|
9432
9515
|
</xsl:choose>
|
9433
9516
|
</xsl:attribute>
|
@@ -212,7 +212,7 @@
|
|
212
212
|
<xsl:variable name="charsToRemove" select="concat($upper, $lower, '.()~!@#$%^*-+:')"/>
|
213
213
|
<xsl:variable name="code" select="translate(/un:un-standard/un:bibdata/un:docidentifier, $charsToRemove,'')"/>
|
214
214
|
|
215
|
-
<fo:block-container absolute-position="fixed" left="20mm" top="258mm" width="30mm" text-align="center">
|
215
|
+
<fo:block-container absolute-position="fixed" left="20mm" top="258mm" width="30mm" text-align="center" id="__internal_layout__barcode_{generate-id()}">
|
216
216
|
<fo:block font-size="10pt" text-align="left">
|
217
217
|
<xsl:value-of select="/un:un-standard/un:bibdata/un:docidentifier"/>
|
218
218
|
</fo:block>
|
@@ -284,7 +284,7 @@
|
|
284
284
|
</xsl:if>
|
285
285
|
|
286
286
|
<!-- Preface Pages (except Abstract, that showed in Summary on cover page`) -->
|
287
|
-
<xsl:if test="/un:un-standard/un:preface/*[not(local-name() = 'abstract' or local-name()
|
287
|
+
<xsl:if test="/un:un-standard/un:preface/*[not(local-name() = 'abstract' or local-name() = 'note' or local-name() = 'admonition')]">
|
288
288
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='foreword']"/>
|
289
289
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name()='introduction']"/>
|
290
290
|
<xsl:apply-templates select="/*/*[local-name()='preface']/*[local-name() != 'abstract' and local-name() != 'foreword' and local-name() != 'introduction' and local-name() != 'acknowledgements' and local-name() != 'note' and local-name() != 'admonition']"/>
|
@@ -375,17 +375,11 @@
|
|
375
375
|
<fo:table-column column-width="17mm"/>
|
376
376
|
<fo:table-body>
|
377
377
|
<fo:table-row>
|
378
|
-
<fo:table-cell padding-left="6mm" padding-top="2.5mm">
|
378
|
+
<fo:table-cell padding-left="6mm" padding-top="2.5mm" number-columns-spanned="3">
|
379
379
|
<fo:block font-size="12pt" font-style="italic" margin-bottom="6pt" role="H2">
|
380
380
|
<xsl:apply-templates select="un:title/node()"/>
|
381
381
|
</fo:block>
|
382
382
|
</fo:table-cell>
|
383
|
-
<fo:table-cell>
|
384
|
-
<fo:block> </fo:block>
|
385
|
-
</fo:table-cell>
|
386
|
-
<fo:table-cell>
|
387
|
-
<fo:block> </fo:block>
|
388
|
-
</fo:table-cell>
|
389
383
|
</fo:table-row>
|
390
384
|
<fo:table-row>
|
391
385
|
<fo:table-cell>
|
@@ -1251,6 +1245,11 @@
|
|
1251
1245
|
</xsl:variable>
|
1252
1246
|
<xsl:variable name="table-border" select="normalize-space($table-border_)"/>
|
1253
1247
|
|
1248
|
+
<xsl:variable name="table-cell-border_">
|
1249
|
+
|
1250
|
+
</xsl:variable>
|
1251
|
+
<xsl:variable name="table-cell-border" select="normalize-space($table-cell-border_)"/>
|
1252
|
+
|
1254
1253
|
<xsl:attribute-set name="table-container-style">
|
1255
1254
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
1256
1255
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
@@ -1263,8 +1262,6 @@
|
|
1263
1262
|
<xsl:attribute-set name="table-style">
|
1264
1263
|
<xsl:attribute name="table-omit-footer-at-break">true</xsl:attribute>
|
1265
1264
|
<xsl:attribute name="table-layout">fixed</xsl:attribute>
|
1266
|
-
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
1267
|
-
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
1268
1265
|
|
1269
1266
|
<xsl:attribute name="border-top">0.5pt solid black</xsl:attribute>
|
1270
1267
|
|
@@ -2374,10 +2371,18 @@
|
|
2374
2371
|
<xsl:variable name="table_attributes">
|
2375
2372
|
|
2376
2373
|
<xsl:element name="table_attributes" use-attribute-sets="table-style">
|
2374
|
+
|
2375
|
+
<xsl:if test="$margin-side != 0">
|
2376
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
2377
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
2378
|
+
</xsl:if>
|
2379
|
+
|
2377
2380
|
<xsl:attribute name="width"><xsl:value-of select="normalize-space($table_width)"/></xsl:attribute>
|
2378
2381
|
|
2379
|
-
<xsl:
|
2380
|
-
|
2382
|
+
<xsl:if test="$margin-side != 0">
|
2383
|
+
<xsl:attribute name="margin-left"><xsl:value-of select="$margin-side"/>mm</xsl:attribute>
|
2384
|
+
<xsl:attribute name="margin-right"><xsl:value-of select="$margin-side"/>mm</xsl:attribute>
|
2385
|
+
</xsl:if>
|
2381
2386
|
|
2382
2387
|
</xsl:element>
|
2383
2388
|
</xsl:variable>
|
@@ -3130,6 +3135,10 @@
|
|
3130
3135
|
<xsl:template match="*[local-name()='tr']">
|
3131
3136
|
<fo:table-row xsl:use-attribute-sets="table-body-row-style">
|
3132
3137
|
|
3138
|
+
<xsl:if test="*[local-name() = 'th']">
|
3139
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
3140
|
+
</xsl:if>
|
3141
|
+
|
3133
3142
|
<xsl:call-template name="setTableRowAttributes"/>
|
3134
3143
|
<xsl:apply-templates/>
|
3135
3144
|
</fo:table-row>
|
@@ -5100,6 +5109,9 @@
|
|
5100
5109
|
<xsl:value-of select="substring($str, 2)"/>
|
5101
5110
|
</xsl:template>
|
5102
5111
|
|
5112
|
+
<!-- ======================================= -->
|
5113
|
+
<!-- math -->
|
5114
|
+
<!-- ======================================= -->
|
5103
5115
|
<xsl:template match="mathml:math">
|
5104
5116
|
<xsl:variable name="isAdded" select="@added"/>
|
5105
5117
|
<xsl:variable name="isDeleted" select="@deleted"/>
|
@@ -5150,14 +5162,57 @@
|
|
5150
5162
|
<xsl:value-of select="$comment_text"/>
|
5151
5163
|
</xsl:template>
|
5152
5164
|
|
5165
|
+
<xsl:template match="*[local-name() = 'asciimath']">
|
5166
|
+
<xsl:param name="process" select="'false'"/>
|
5167
|
+
<xsl:if test="$process = 'true'">
|
5168
|
+
<xsl:apply-templates/>
|
5169
|
+
</xsl:if>
|
5170
|
+
</xsl:template>
|
5171
|
+
|
5172
|
+
<xsl:template match="*[local-name() = 'latexmath']"/>
|
5173
|
+
|
5174
|
+
<xsl:template name="getMathml_asciimath_text">
|
5175
|
+
<xsl:variable name="asciimath" select="../*[local-name() = 'asciimath']"/>
|
5176
|
+
<xsl:variable name="latexmath">
|
5177
|
+
|
5178
|
+
</xsl:variable>
|
5179
|
+
<xsl:variable name="asciimath_text_following">
|
5180
|
+
<xsl:choose>
|
5181
|
+
<xsl:when test="normalize-space($latexmath) != ''">
|
5182
|
+
<xsl:value-of select="$latexmath"/>
|
5183
|
+
</xsl:when>
|
5184
|
+
<xsl:when test="normalize-space($asciimath) != ''">
|
5185
|
+
<xsl:value-of select="$asciimath"/>
|
5186
|
+
</xsl:when>
|
5187
|
+
<xsl:otherwise>
|
5188
|
+
<xsl:value-of select="following-sibling::node()[1][self::comment()]"/>
|
5189
|
+
</xsl:otherwise>
|
5190
|
+
</xsl:choose>
|
5191
|
+
</xsl:variable>
|
5192
|
+
<xsl:variable name="asciimath_text_">
|
5193
|
+
<xsl:choose>
|
5194
|
+
<xsl:when test="normalize-space($asciimath_text_following) != ''">
|
5195
|
+
<xsl:value-of select="$asciimath_text_following"/>
|
5196
|
+
</xsl:when>
|
5197
|
+
<xsl:otherwise>
|
5198
|
+
<xsl:value-of select="normalize-space(translate(.,' ',' '))"/>
|
5199
|
+
</xsl:otherwise>
|
5200
|
+
</xsl:choose>
|
5201
|
+
</xsl:variable>
|
5202
|
+
<xsl:variable name="asciimath_text_2" select="java:org.metanorma.fop.Util.unescape($asciimath_text_)"/>
|
5203
|
+
<xsl:variable name="asciimath_text" select="java:trim(java:java.lang.String.new($asciimath_text_2))"/>
|
5204
|
+
<xsl:value-of select="$asciimath_text"/>
|
5205
|
+
</xsl:template>
|
5206
|
+
|
5153
5207
|
<xsl:template name="mathml_instream_object">
|
5154
|
-
<xsl:param name="
|
5208
|
+
<xsl:param name="asciimath_text"/>
|
5155
5209
|
<xsl:param name="mathml_content"/>
|
5156
5210
|
|
5157
|
-
<xsl:variable name="
|
5211
|
+
<xsl:variable name="asciimath_text_">
|
5158
5212
|
<xsl:choose>
|
5159
|
-
<xsl:when test="normalize-space($
|
5160
|
-
<xsl:otherwise><xsl:call-template name="getMathml_comment_text"/></xsl:otherwise>
|
5213
|
+
<xsl:when test="normalize-space($asciimath_text) != ''"><xsl:value-of select="$asciimath_text"/></xsl:when>
|
5214
|
+
<!-- <xsl:otherwise><xsl:call-template name="getMathml_comment_text"/></xsl:otherwise> -->
|
5215
|
+
<xsl:otherwise><xsl:call-template name="getMathml_asciimath_text"/></xsl:otherwise>
|
5161
5216
|
</xsl:choose>
|
5162
5217
|
</xsl:variable>
|
5163
5218
|
|
@@ -5174,10 +5229,10 @@
|
|
5174
5229
|
</xsl:attribute>
|
5175
5230
|
|
5176
5231
|
<!-- <xsl:if test="$add_math_as_text = 'true'"> -->
|
5177
|
-
<xsl:if test="normalize-space($
|
5232
|
+
<xsl:if test="normalize-space($asciimath_text_) != ''">
|
5178
5233
|
<!-- put Mathin Alternate Text -->
|
5179
5234
|
<xsl:attribute name="fox:alt-text">
|
5180
|
-
<xsl:value-of select="$
|
5235
|
+
<xsl:value-of select="$asciimath_text_"/>
|
5181
5236
|
</xsl:attribute>
|
5182
5237
|
</xsl:if>
|
5183
5238
|
<!-- </xsl:if> -->
|
@@ -5250,6 +5305,29 @@
|
|
5250
5305
|
<xsl:value-of select="."/><xsl:value-of select="$zero_width_space"/>
|
5251
5306
|
</xsl:template>
|
5252
5307
|
|
5308
|
+
<!-- Examples:
|
5309
|
+
<stem type="AsciiMath">x = 1</stem>
|
5310
|
+
<stem type="AsciiMath"><asciimath>x = 1</asciimath></stem>
|
5311
|
+
<stem type="AsciiMath"><asciimath>x = 1</asciimath><latexmath>x = 1</latexmath></stem>
|
5312
|
+
-->
|
5313
|
+
<xsl:template match="*[local-name() = 'stem'][@type = 'AsciiMath'][count(*) = 0]/text() | *[local-name() = 'stem'][@type = 'AsciiMath'][*[local-name() = 'asciimath']]" priority="3">
|
5314
|
+
<fo:inline xsl:use-attribute-sets="mathml-style">
|
5315
|
+
|
5316
|
+
<xsl:choose>
|
5317
|
+
<xsl:when test="self::text()"><xsl:value-of select="."/></xsl:when>
|
5318
|
+
<xsl:otherwise>
|
5319
|
+
<xsl:apply-templates>
|
5320
|
+
<xsl:with-param name="process">true</xsl:with-param>
|
5321
|
+
</xsl:apply-templates>
|
5322
|
+
</xsl:otherwise>
|
5323
|
+
</xsl:choose>
|
5324
|
+
|
5325
|
+
</fo:inline>
|
5326
|
+
</xsl:template>
|
5327
|
+
<!-- ======================================= -->
|
5328
|
+
<!-- END: math -->
|
5329
|
+
<!-- ======================================= -->
|
5330
|
+
|
5253
5331
|
<xsl:template match="*[local-name()='localityStack']"/>
|
5254
5332
|
|
5255
5333
|
<xsl:template match="*[local-name()='link']" name="link">
|
@@ -7948,6 +8026,10 @@
|
|
7948
8026
|
|
7949
8027
|
<fo:list-block xsl:use-attribute-sets="list-style">
|
7950
8028
|
|
8029
|
+
<xsl:if test="local-name() = 'ol'">
|
8030
|
+
<xsl:attribute name="provisional-distance-between-starts">6mm</xsl:attribute>
|
8031
|
+
</xsl:if>
|
8032
|
+
|
7951
8033
|
<xsl:if test="*[local-name() = 'name']">
|
7952
8034
|
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
7953
8035
|
</xsl:if>
|
@@ -9421,13 +9503,14 @@
|
|
9421
9503
|
</xsl:template>
|
9422
9504
|
|
9423
9505
|
<xsl:template name="setId">
|
9506
|
+
<xsl:param name="prefix"/>
|
9424
9507
|
<xsl:attribute name="id">
|
9425
9508
|
<xsl:choose>
|
9426
9509
|
<xsl:when test="@id">
|
9427
|
-
<xsl:value-of select="@id"/>
|
9510
|
+
<xsl:value-of select="concat($prefix, @id)"/>
|
9428
9511
|
</xsl:when>
|
9429
9512
|
<xsl:otherwise>
|
9430
|
-
<xsl:value-of select="generate-id()"/>
|
9513
|
+
<xsl:value-of select="concat($prefix, generate-id())"/>
|
9431
9514
|
</xsl:otherwise>
|
9432
9515
|
</xsl:choose>
|
9433
9516
|
</xsl:attribute>
|
@@ -243,6 +243,9 @@
|
|
243
243
|
<fo:block role="TOCI">
|
244
244
|
<fo:block text-align-last="justify" margin-left="12mm" text-indent="-12mm">
|
245
245
|
<fo:basic-link internal-destination="{@id}" fox:alt-text="{@section}">
|
246
|
+
<xsl:if test="@section = ''">
|
247
|
+
<xsl:attribute name="fox:alt-text">Annex</xsl:attribute>
|
248
|
+
</xsl:if>
|
246
249
|
<xsl:if test="@section != ''">
|
247
250
|
<fo:inline padding-right="3mm">
|
248
251
|
<xsl:choose>
|
@@ -701,7 +704,19 @@
|
|
701
704
|
|
702
705
|
<xsl:choose>
|
703
706
|
<xsl:when test="ancestor::un:sections">
|
704
|
-
<
|
707
|
+
<xsl:variable name="section">
|
708
|
+
<xsl:for-each select="..">
|
709
|
+
<xsl:call-template name="getSection"/>
|
710
|
+
</xsl:for-each>
|
711
|
+
</xsl:variable>
|
712
|
+
<xsl:variable name="margin-left">
|
713
|
+
<xsl:choose>
|
714
|
+
<xsl:when test="string-length($section) = 3">11mm</xsl:when>
|
715
|
+
<xsl:when test="string-length($section) > 3">13mm</xsl:when>
|
716
|
+
<xsl:otherwise>9.5mm</xsl:otherwise>
|
717
|
+
</xsl:choose>
|
718
|
+
</xsl:variable>
|
719
|
+
<fo:block font-size="{$font-size}" font-weight="bold" space-before="3pt" margin-bottom="12pt" margin-left="-{$margin-left}" line-height="108%" keep-with-next="always" role="H{$level}"> <!-- line-height="14.5pt" text-indent="-9.5mm" -->
|
705
720
|
<xsl:if test="$level = 1">
|
706
721
|
<!-- <xsl:attribute name="margin-left">-8.5mm</xsl:attribute> -->
|
707
722
|
<xsl:attribute name="margin-top">18pt</xsl:attribute>
|
@@ -713,7 +728,9 @@
|
|
713
728
|
<xsl:if test="$level = 3">
|
714
729
|
<xsl:attribute name="margin-top">16pt</xsl:attribute>
|
715
730
|
</xsl:if>
|
716
|
-
<xsl:call-template name="insertTitleAsListItem"
|
731
|
+
<xsl:call-template name="insertTitleAsListItem">
|
732
|
+
<xsl:with-param name="provisional-distance-between-starts" select="$margin-left"/>
|
733
|
+
</xsl:call-template>
|
717
734
|
</fo:block>
|
718
735
|
</xsl:when>
|
719
736
|
|
@@ -1311,6 +1328,11 @@
|
|
1311
1328
|
</xsl:variable>
|
1312
1329
|
<xsl:variable name="table-border" select="normalize-space($table-border_)"/>
|
1313
1330
|
|
1331
|
+
<xsl:variable name="table-cell-border_">
|
1332
|
+
|
1333
|
+
</xsl:variable>
|
1334
|
+
<xsl:variable name="table-cell-border" select="normalize-space($table-cell-border_)"/>
|
1335
|
+
|
1314
1336
|
<xsl:attribute-set name="table-container-style">
|
1315
1337
|
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
1316
1338
|
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
@@ -1322,8 +1344,6 @@
|
|
1322
1344
|
<xsl:attribute-set name="table-style">
|
1323
1345
|
<xsl:attribute name="table-omit-footer-at-break">true</xsl:attribute>
|
1324
1346
|
<xsl:attribute name="table-layout">fixed</xsl:attribute>
|
1325
|
-
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
1326
|
-
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
1327
1347
|
|
1328
1348
|
</xsl:attribute-set><!-- table-style -->
|
1329
1349
|
|
@@ -1682,7 +1702,7 @@
|
|
1682
1702
|
|
1683
1703
|
<xsl:attribute-set name="list-style">
|
1684
1704
|
|
1685
|
-
<xsl:attribute name="provisional-distance-between-starts">
|
1705
|
+
<xsl:attribute name="provisional-distance-between-starts">3.5mm</xsl:attribute>
|
1686
1706
|
<xsl:attribute name="margin-left">7mm</xsl:attribute>
|
1687
1707
|
<xsl:attribute name="text-indent">0mm</xsl:attribute>
|
1688
1708
|
|
@@ -2424,10 +2444,18 @@
|
|
2424
2444
|
<xsl:variable name="table_attributes">
|
2425
2445
|
|
2426
2446
|
<xsl:element name="table_attributes" use-attribute-sets="table-style">
|
2447
|
+
|
2448
|
+
<xsl:if test="$margin-side != 0">
|
2449
|
+
<xsl:attribute name="margin-left">0mm</xsl:attribute>
|
2450
|
+
<xsl:attribute name="margin-right">0mm</xsl:attribute>
|
2451
|
+
</xsl:if>
|
2452
|
+
|
2427
2453
|
<xsl:attribute name="width"><xsl:value-of select="normalize-space($table_width)"/></xsl:attribute>
|
2428
2454
|
|
2429
|
-
<xsl:
|
2430
|
-
|
2455
|
+
<xsl:if test="$margin-side != 0">
|
2456
|
+
<xsl:attribute name="margin-left"><xsl:value-of select="$margin-side"/>mm</xsl:attribute>
|
2457
|
+
<xsl:attribute name="margin-right"><xsl:value-of select="$margin-side"/>mm</xsl:attribute>
|
2458
|
+
</xsl:if>
|
2431
2459
|
|
2432
2460
|
<xsl:if test="ancestor::*[local-name()='sections']">
|
2433
2461
|
<xsl:attribute name="border-top">1.5pt solid black</xsl:attribute>
|
@@ -3185,6 +3213,10 @@
|
|
3185
3213
|
<xsl:template match="*[local-name()='tr']">
|
3186
3214
|
<fo:table-row xsl:use-attribute-sets="table-body-row-style">
|
3187
3215
|
|
3216
|
+
<xsl:if test="*[local-name() = 'th']">
|
3217
|
+
<xsl:attribute name="keep-with-next">always</xsl:attribute>
|
3218
|
+
</xsl:if>
|
3219
|
+
|
3188
3220
|
<xsl:call-template name="setTableRowAttributes"/>
|
3189
3221
|
<xsl:apply-templates/>
|
3190
3222
|
</fo:table-row>
|
@@ -5171,6 +5203,9 @@
|
|
5171
5203
|
<xsl:value-of select="substring($str, 2)"/>
|
5172
5204
|
</xsl:template>
|
5173
5205
|
|
5206
|
+
<!-- ======================================= -->
|
5207
|
+
<!-- math -->
|
5208
|
+
<!-- ======================================= -->
|
5174
5209
|
<xsl:template match="mathml:math">
|
5175
5210
|
<xsl:variable name="isAdded" select="@added"/>
|
5176
5211
|
<xsl:variable name="isDeleted" select="@deleted"/>
|
@@ -5221,14 +5256,57 @@
|
|
5221
5256
|
<xsl:value-of select="$comment_text"/>
|
5222
5257
|
</xsl:template>
|
5223
5258
|
|
5259
|
+
<xsl:template match="*[local-name() = 'asciimath']">
|
5260
|
+
<xsl:param name="process" select="'false'"/>
|
5261
|
+
<xsl:if test="$process = 'true'">
|
5262
|
+
<xsl:apply-templates/>
|
5263
|
+
</xsl:if>
|
5264
|
+
</xsl:template>
|
5265
|
+
|
5266
|
+
<xsl:template match="*[local-name() = 'latexmath']"/>
|
5267
|
+
|
5268
|
+
<xsl:template name="getMathml_asciimath_text">
|
5269
|
+
<xsl:variable name="asciimath" select="../*[local-name() = 'asciimath']"/>
|
5270
|
+
<xsl:variable name="latexmath">
|
5271
|
+
|
5272
|
+
</xsl:variable>
|
5273
|
+
<xsl:variable name="asciimath_text_following">
|
5274
|
+
<xsl:choose>
|
5275
|
+
<xsl:when test="normalize-space($latexmath) != ''">
|
5276
|
+
<xsl:value-of select="$latexmath"/>
|
5277
|
+
</xsl:when>
|
5278
|
+
<xsl:when test="normalize-space($asciimath) != ''">
|
5279
|
+
<xsl:value-of select="$asciimath"/>
|
5280
|
+
</xsl:when>
|
5281
|
+
<xsl:otherwise>
|
5282
|
+
<xsl:value-of select="following-sibling::node()[1][self::comment()]"/>
|
5283
|
+
</xsl:otherwise>
|
5284
|
+
</xsl:choose>
|
5285
|
+
</xsl:variable>
|
5286
|
+
<xsl:variable name="asciimath_text_">
|
5287
|
+
<xsl:choose>
|
5288
|
+
<xsl:when test="normalize-space($asciimath_text_following) != ''">
|
5289
|
+
<xsl:value-of select="$asciimath_text_following"/>
|
5290
|
+
</xsl:when>
|
5291
|
+
<xsl:otherwise>
|
5292
|
+
<xsl:value-of select="normalize-space(translate(.,' ',' '))"/>
|
5293
|
+
</xsl:otherwise>
|
5294
|
+
</xsl:choose>
|
5295
|
+
</xsl:variable>
|
5296
|
+
<xsl:variable name="asciimath_text_2" select="java:org.metanorma.fop.Util.unescape($asciimath_text_)"/>
|
5297
|
+
<xsl:variable name="asciimath_text" select="java:trim(java:java.lang.String.new($asciimath_text_2))"/>
|
5298
|
+
<xsl:value-of select="$asciimath_text"/>
|
5299
|
+
</xsl:template>
|
5300
|
+
|
5224
5301
|
<xsl:template name="mathml_instream_object">
|
5225
|
-
<xsl:param name="
|
5302
|
+
<xsl:param name="asciimath_text"/>
|
5226
5303
|
<xsl:param name="mathml_content"/>
|
5227
5304
|
|
5228
|
-
<xsl:variable name="
|
5305
|
+
<xsl:variable name="asciimath_text_">
|
5229
5306
|
<xsl:choose>
|
5230
|
-
<xsl:when test="normalize-space($
|
5231
|
-
<xsl:otherwise><xsl:call-template name="getMathml_comment_text"/></xsl:otherwise>
|
5307
|
+
<xsl:when test="normalize-space($asciimath_text) != ''"><xsl:value-of select="$asciimath_text"/></xsl:when>
|
5308
|
+
<!-- <xsl:otherwise><xsl:call-template name="getMathml_comment_text"/></xsl:otherwise> -->
|
5309
|
+
<xsl:otherwise><xsl:call-template name="getMathml_asciimath_text"/></xsl:otherwise>
|
5232
5310
|
</xsl:choose>
|
5233
5311
|
</xsl:variable>
|
5234
5312
|
|
@@ -5245,10 +5323,10 @@
|
|
5245
5323
|
</xsl:attribute>
|
5246
5324
|
|
5247
5325
|
<!-- <xsl:if test="$add_math_as_text = 'true'"> -->
|
5248
|
-
<xsl:if test="normalize-space($
|
5326
|
+
<xsl:if test="normalize-space($asciimath_text_) != ''">
|
5249
5327
|
<!-- put Mathin Alternate Text -->
|
5250
5328
|
<xsl:attribute name="fox:alt-text">
|
5251
|
-
<xsl:value-of select="$
|
5329
|
+
<xsl:value-of select="$asciimath_text_"/>
|
5252
5330
|
</xsl:attribute>
|
5253
5331
|
</xsl:if>
|
5254
5332
|
<!-- </xsl:if> -->
|
@@ -5321,6 +5399,29 @@
|
|
5321
5399
|
<xsl:value-of select="."/><xsl:value-of select="$zero_width_space"/>
|
5322
5400
|
</xsl:template>
|
5323
5401
|
|
5402
|
+
<!-- Examples:
|
5403
|
+
<stem type="AsciiMath">x = 1</stem>
|
5404
|
+
<stem type="AsciiMath"><asciimath>x = 1</asciimath></stem>
|
5405
|
+
<stem type="AsciiMath"><asciimath>x = 1</asciimath><latexmath>x = 1</latexmath></stem>
|
5406
|
+
-->
|
5407
|
+
<xsl:template match="*[local-name() = 'stem'][@type = 'AsciiMath'][count(*) = 0]/text() | *[local-name() = 'stem'][@type = 'AsciiMath'][*[local-name() = 'asciimath']]" priority="3">
|
5408
|
+
<fo:inline xsl:use-attribute-sets="mathml-style">
|
5409
|
+
|
5410
|
+
<xsl:choose>
|
5411
|
+
<xsl:when test="self::text()"><xsl:value-of select="."/></xsl:when>
|
5412
|
+
<xsl:otherwise>
|
5413
|
+
<xsl:apply-templates>
|
5414
|
+
<xsl:with-param name="process">true</xsl:with-param>
|
5415
|
+
</xsl:apply-templates>
|
5416
|
+
</xsl:otherwise>
|
5417
|
+
</xsl:choose>
|
5418
|
+
|
5419
|
+
</fo:inline>
|
5420
|
+
</xsl:template>
|
5421
|
+
<!-- ======================================= -->
|
5422
|
+
<!-- END: math -->
|
5423
|
+
<!-- ======================================= -->
|
5424
|
+
|
5324
5425
|
<xsl:template match="*[local-name()='localityStack']"/>
|
5325
5426
|
|
5326
5427
|
<xsl:template match="*[local-name()='link']" name="link">
|
@@ -8028,6 +8129,10 @@
|
|
8028
8129
|
|
8029
8130
|
<fo:list-block xsl:use-attribute-sets="list-style">
|
8030
8131
|
|
8132
|
+
<xsl:if test="local-name() = 'ol'">
|
8133
|
+
<xsl:attribute name="provisional-distance-between-starts">6mm</xsl:attribute>
|
8134
|
+
</xsl:if>
|
8135
|
+
|
8031
8136
|
<xsl:if test="*[local-name() = 'name']">
|
8032
8137
|
<xsl:attribute name="margin-top">0pt</xsl:attribute>
|
8033
8138
|
</xsl:if>
|
@@ -9502,13 +9607,14 @@
|
|
9502
9607
|
</xsl:template>
|
9503
9608
|
|
9504
9609
|
<xsl:template name="setId">
|
9610
|
+
<xsl:param name="prefix"/>
|
9505
9611
|
<xsl:attribute name="id">
|
9506
9612
|
<xsl:choose>
|
9507
9613
|
<xsl:when test="@id">
|
9508
|
-
<xsl:value-of select="@id"/>
|
9614
|
+
<xsl:value-of select="concat($prefix, @id)"/>
|
9509
9615
|
</xsl:when>
|
9510
9616
|
<xsl:otherwise>
|
9511
|
-
<xsl:value-of select="generate-id()"/>
|
9617
|
+
<xsl:value-of select="concat($prefix, generate-id())"/>
|
9512
9618
|
</xsl:otherwise>
|
9513
9619
|
</xsl:choose>
|
9514
9620
|
</xsl:attribute>
|
data/lib/metanorma/un/biblio.rng
CHANGED
@@ -188,6 +188,11 @@
|
|
188
188
|
<value>adapter</value>
|
189
189
|
<value>translator</value>
|
190
190
|
<value>distributor</value>
|
191
|
+
<value>realizer</value>
|
192
|
+
<value>owner</value>
|
193
|
+
<value>authorizer</value>
|
194
|
+
<value>enabler</value>
|
195
|
+
<value>subject</value>
|
191
196
|
</choice>
|
192
197
|
</attribute>
|
193
198
|
<zeroOrMore>
|
data/lib/metanorma/un/isodoc.rng
CHANGED
@@ -177,11 +177,7 @@
|
|
177
177
|
</optional>
|
178
178
|
<optional>
|
179
179
|
<attribute name="style">
|
180
|
-
<
|
181
|
-
<value>basic</value>
|
182
|
-
<value>full</value>
|
183
|
-
<value>short</value>
|
184
|
-
</choice>
|
180
|
+
<ref name="XrefStyleType"/>
|
185
181
|
</attribute>
|
186
182
|
</optional>
|
187
183
|
<ref name="XrefBody"/>
|
@@ -1031,6 +1027,7 @@
|
|
1031
1027
|
<ref name="stem"/>
|
1032
1028
|
<ref name="index"/>
|
1033
1029
|
<ref name="eref"/>
|
1030
|
+
<ref name="erefstack"/>
|
1034
1031
|
<ref name="xref"/>
|
1035
1032
|
<ref name="hyperlink"/>
|
1036
1033
|
</choice>
|
@@ -1045,6 +1042,7 @@
|
|
1045
1042
|
<ref name="stem"/>
|
1046
1043
|
<ref name="index"/>
|
1047
1044
|
<ref name="eref"/>
|
1045
|
+
<ref name="erefstack"/>
|
1048
1046
|
<ref name="xref"/>
|
1049
1047
|
<ref name="hyperlink"/>
|
1050
1048
|
</choice>
|
@@ -1058,6 +1056,7 @@
|
|
1058
1056
|
<ref name="PureTextElement"/>
|
1059
1057
|
<ref name="index"/>
|
1060
1058
|
<ref name="eref"/>
|
1059
|
+
<ref name="erefstack"/>
|
1061
1060
|
<ref name="xref"/>
|
1062
1061
|
<ref name="hyperlink"/>
|
1063
1062
|
</choice>
|
@@ -1195,6 +1194,7 @@
|
|
1195
1194
|
<ref name="add"/>
|
1196
1195
|
<ref name="del"/>
|
1197
1196
|
<ref name="span"/>
|
1197
|
+
<ref name="erefstack"/>
|
1198
1198
|
</choice>
|
1199
1199
|
</define>
|
1200
1200
|
<define name="add">
|
@@ -1202,6 +1202,7 @@
|
|
1202
1202
|
<choice>
|
1203
1203
|
<ref name="PureTextElement"/>
|
1204
1204
|
<ref name="eref"/>
|
1205
|
+
<ref name="erefstack"/>
|
1205
1206
|
<ref name="stem"/>
|
1206
1207
|
<ref name="keyword"/>
|
1207
1208
|
<ref name="xref"/>
|
@@ -1214,6 +1215,7 @@
|
|
1214
1215
|
<choice>
|
1215
1216
|
<ref name="PureTextElement"/>
|
1216
1217
|
<ref name="eref"/>
|
1218
|
+
<ref name="erefstack"/>
|
1217
1219
|
<ref name="stem"/>
|
1218
1220
|
<ref name="keyword"/>
|
1219
1221
|
<ref name="xref"/>
|
@@ -1278,6 +1280,7 @@
|
|
1278
1280
|
</optional>
|
1279
1281
|
<choice>
|
1280
1282
|
<ref name="eref"/>
|
1283
|
+
<ref name="erefstack"/>
|
1281
1284
|
<ref name="xref"/>
|
1282
1285
|
<ref name="termref"/>
|
1283
1286
|
</choice>
|
@@ -1970,6 +1973,7 @@
|
|
1970
1973
|
</element>
|
1971
1974
|
<choice>
|
1972
1975
|
<ref name="eref"/>
|
1976
|
+
<ref name="erefstack"/>
|
1973
1977
|
<ref name="xref"/>
|
1974
1978
|
<ref name="termref"/>
|
1975
1979
|
</choice>
|
@@ -2525,6 +2529,7 @@
|
|
2525
2529
|
<ref name="xref"/>
|
2526
2530
|
<ref name="hyperlink"/>
|
2527
2531
|
<ref name="eref"/>
|
2532
|
+
<ref name="erefstack"/>
|
2528
2533
|
</choice>
|
2529
2534
|
<oneOrMore>
|
2530
2535
|
<element name="coords">
|
@@ -2572,6 +2577,7 @@
|
|
2572
2577
|
<ref name="xref"/>
|
2573
2578
|
<ref name="hyperlink"/>
|
2574
2579
|
<ref name="eref"/>
|
2580
|
+
<ref name="erefstack"/>
|
2575
2581
|
</choice>
|
2576
2582
|
</element>
|
2577
2583
|
</zeroOrMore>
|
@@ -2620,6 +2626,15 @@
|
|
2620
2626
|
<ref name="PureTextElement"/>
|
2621
2627
|
</oneOrMore>
|
2622
2628
|
</define>
|
2629
|
+
<define name="XrefConnectiveType">
|
2630
|
+
<choice>
|
2631
|
+
<value>and</value>
|
2632
|
+
<value>or</value>
|
2633
|
+
<value>from</value>
|
2634
|
+
<value>to</value>
|
2635
|
+
<value/>
|
2636
|
+
</choice>
|
2637
|
+
</define>
|
2623
2638
|
<define name="XrefTarget">
|
2624
2639
|
<element name="location">
|
2625
2640
|
<attribute name="target">
|
@@ -2628,16 +2643,35 @@
|
|
2628
2643
|
</data>
|
2629
2644
|
</attribute>
|
2630
2645
|
<attribute name="connective">
|
2631
|
-
<
|
2632
|
-
<value>and</value>
|
2633
|
-
<value>or</value>
|
2634
|
-
<value>from</value>
|
2635
|
-
<value>to</value>
|
2636
|
-
<value/>
|
2637
|
-
</choice>
|
2646
|
+
<ref name="XrefConnectiveType"/>
|
2638
2647
|
</attribute>
|
2639
2648
|
</element>
|
2640
2649
|
</define>
|
2650
|
+
<define name="XrefStyleType">
|
2651
|
+
<choice>
|
2652
|
+
<value>basic</value>
|
2653
|
+
<value>full</value>
|
2654
|
+
<value>short</value>
|
2655
|
+
<value>id</value>
|
2656
|
+
</choice>
|
2657
|
+
</define>
|
2658
|
+
<define name="erefTypeWithConnective">
|
2659
|
+
<optional>
|
2660
|
+
<attribute name="connective">
|
2661
|
+
<ref name="XrefConnectiveType"/>
|
2662
|
+
</attribute>
|
2663
|
+
</optional>
|
2664
|
+
<ref name="erefType"/>
|
2665
|
+
</define>
|
2666
|
+
<define name="erefstack">
|
2667
|
+
<element name="erefstack">
|
2668
|
+
<oneOrMore>
|
2669
|
+
<element name="eref">
|
2670
|
+
<ref name="erefTypeWithConnective"/>
|
2671
|
+
</element>
|
2672
|
+
</oneOrMore>
|
2673
|
+
</element>
|
2674
|
+
</define>
|
2641
2675
|
<start>
|
2642
2676
|
<ref name="standard-document"/>
|
2643
2677
|
</start>
|
data/lib/metanorma/un/un.rng
CHANGED
data/lib/metanorma/un/version.rb
CHANGED
data/metanorma-un.gemspec
CHANGED
@@ -19,12 +19,13 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.license = "BSD-2-Clause"
|
20
20
|
|
21
21
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
22
|
-
f.match(%r{^(test|spec|features)/})
|
22
|
+
f.match(%r{^(test|spec|features|bin|.github)/}) \
|
23
|
+
|| f.match(%r{Rakefile|bin/rspec})
|
23
24
|
end
|
24
25
|
spec.bindir = "exe"
|
25
26
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
26
27
|
spec.require_paths = ["lib"]
|
27
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.
|
28
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
|
28
29
|
|
29
30
|
spec.add_dependency "iso-639"
|
30
31
|
spec.add_dependency "roman-numerals"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-un
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: iso-639
|
@@ -216,9 +216,6 @@ executables: []
|
|
216
216
|
extensions: []
|
217
217
|
extra_rdoc_files: []
|
218
218
|
files:
|
219
|
-
- ".github/workflows/automerge.yml"
|
220
|
-
- ".github/workflows/rake.yml"
|
221
|
-
- ".github/workflows/release.yml"
|
222
219
|
- ".gitignore"
|
223
220
|
- ".hound.yml"
|
224
221
|
- ".rubocop.yml"
|
@@ -226,10 +223,6 @@ files:
|
|
226
223
|
- Gemfile
|
227
224
|
- LICENSE
|
228
225
|
- README.adoc
|
229
|
-
- Rakefile
|
230
|
-
- bin/console
|
231
|
-
- bin/rspec
|
232
|
-
- bin/setup
|
233
226
|
- lib/isodoc/un.rb
|
234
227
|
- lib/isodoc/un/base_convert.rb
|
235
228
|
- lib/isodoc/un/html/header.html
|
@@ -288,14 +281,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
288
281
|
requirements:
|
289
282
|
- - ">="
|
290
283
|
- !ruby/object:Gem::Version
|
291
|
-
version: 2.
|
284
|
+
version: 2.7.0
|
292
285
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
293
286
|
requirements:
|
294
287
|
- - ">="
|
295
288
|
- !ruby/object:Gem::Version
|
296
289
|
version: '0'
|
297
290
|
requirements: []
|
298
|
-
rubygems_version: 3.
|
291
|
+
rubygems_version: 3.3.7
|
299
292
|
signing_key:
|
300
293
|
specification_version: 4
|
301
294
|
summary: Metanorma for UN.
|
@@ -1,31 +0,0 @@
|
|
1
|
-
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
-
# See https://github.com/metanorma/cimas
|
3
|
-
# source: https://github.com/marketplace/actions/merge-pull-requests#usage
|
4
|
-
name: automerge
|
5
|
-
on:
|
6
|
-
pull_request:
|
7
|
-
types:
|
8
|
-
- labeled
|
9
|
-
- unlabeled
|
10
|
-
- synchronize
|
11
|
-
- opened
|
12
|
-
- edited
|
13
|
-
- ready_for_review
|
14
|
-
- reopened
|
15
|
-
- unlocked
|
16
|
-
pull_request_review:
|
17
|
-
types:
|
18
|
-
- submitted
|
19
|
-
check_suite:
|
20
|
-
types:
|
21
|
-
- completed
|
22
|
-
status: {}
|
23
|
-
jobs:
|
24
|
-
automerge:
|
25
|
-
runs-on: ubuntu-latest
|
26
|
-
steps:
|
27
|
-
- id: automerge
|
28
|
-
name: automerge
|
29
|
-
uses: "pascalgn/automerge-action@v0.15.3"
|
30
|
-
env:
|
31
|
-
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
data/.github/workflows/rake.yml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
-
# See https://github.com/metanorma/cimas
|
3
|
-
name: rake
|
4
|
-
|
5
|
-
on:
|
6
|
-
push:
|
7
|
-
branches: [ master, main ]
|
8
|
-
tags: [ v* ]
|
9
|
-
pull_request:
|
10
|
-
|
11
|
-
jobs:
|
12
|
-
notify:
|
13
|
-
uses: metanorma/ci/.github/workflows/mn-processor-rake.yml@main
|
14
|
-
secrets:
|
15
|
-
pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
-
# See https://github.com/metanorma/cimas
|
3
|
-
name: release
|
4
|
-
|
5
|
-
on:
|
6
|
-
workflow_dispatch:
|
7
|
-
inputs:
|
8
|
-
next_version:
|
9
|
-
description: |
|
10
|
-
Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
|
11
|
-
required: true
|
12
|
-
default: 'skip'
|
13
|
-
push:
|
14
|
-
tags: [ v* ]
|
15
|
-
|
16
|
-
jobs:
|
17
|
-
release:
|
18
|
-
uses: metanorma/ci/.github/workflows/rubygems-release.yml@main
|
19
|
-
with:
|
20
|
-
next_version: ${{ github.event.inputs.next_version }}
|
21
|
-
secrets:
|
22
|
-
rubygems-api-key: ${{ secrets.METANORMA_CI_RUBYGEMS_API_KEY }}
|
23
|
-
pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
|
24
|
-
|
data/Rakefile
DELETED
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "metanorma/unece"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start(__FILE__)
|
data/bin/rspec
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
# This file was generated by Bundler.
|
4
|
-
#
|
5
|
-
# The application 'rspec' is installed as part of a gem, and
|
6
|
-
# this file is here to facilitate running it.
|
7
|
-
#
|
8
|
-
|
9
|
-
require "pathname"
|
10
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path(
|
11
|
-
"../../Gemfile", Pathname.new(__FILE__).realpath
|
12
|
-
)
|
13
|
-
|
14
|
-
require "rubygems"
|
15
|
-
require "bundler/setup"
|
16
|
-
|
17
|
-
load Gem.bin_path("rspec-core", "rspec")
|