metanorma-plateau 1.2.8 → 1.2.10
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/.rubocop.yml +1 -1
- data/lib/isodoc/plateau/i18n-ja.yaml +5 -0
- data/lib/isodoc/plateau/i18n.rb +0 -8
- data/lib/isodoc/plateau/plateau.international-standard.xsl +37 -15
- data/lib/metanorma/plateau/version.rb +1 -1
- data/lib/metanorma-plateau.rb +1 -1
- data/metanorma-plateau.gemspec +2 -2
- metadata +8 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ed8ba9ad1209a45f505899a241f0538b585b9c63921cffd19e2deb89de5cb620
|
|
4
|
+
data.tar.gz: aaa30784ea209e6fdc94511136da61ebac27657f0893526c5f1b202348a0d411
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 33af0a587638c285a9d9a9ee57aeb964286fe2ba86d7900bb719779d8954f5ce740afcaa01407d4a3fea1d1de11d2bb460a6bc5fca6f67a5e54a4fe19d2e91a3
|
|
7
|
+
data.tar.gz: d359dbcb856775175e09f54e0efab8ddec6fe3da40542324d8b764958bda6f511da3b70588b1f42fc950c33e63b2bdd661f22c05cc4c3e49f32c4e55afa2f6b5
|
data/.rubocop.yml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Auto-generated by Cimas: Do not edit it manually!
|
|
2
2
|
# See https://github.com/metanorma/cimas
|
|
3
3
|
inherit_from:
|
|
4
|
-
- https://raw.githubusercontent.com/riboseinc/oss-guides/
|
|
4
|
+
- https://raw.githubusercontent.com/riboseinc/oss-guides/main/ci/rubocop.yml
|
|
5
5
|
|
|
6
6
|
# local repo-specific modifications
|
|
7
7
|
# ...
|
data/lib/isodoc/plateau/i18n.rb
CHANGED
|
@@ -13,14 +13,6 @@ module IsoDoc
|
|
|
13
13
|
y = load_file("i18n-#{yaml_lang(lang, script)}.yaml")
|
|
14
14
|
y.empty? ? load_file("i18n-en.yaml").merge(super) : super.deep_merge(y)
|
|
15
15
|
end
|
|
16
|
-
|
|
17
|
-
# Numeric regnal year
|
|
18
|
-
def japanese_year(time)
|
|
19
|
-
era_yr = time.era_year.to_i
|
|
20
|
-
"#{time.strftime('%JN')}#{era_yr}年"
|
|
21
|
-
rescue StandardError
|
|
22
|
-
time.year.to_s
|
|
23
|
-
end
|
|
24
16
|
end
|
|
25
17
|
end
|
|
26
18
|
end
|
|
@@ -1438,7 +1438,7 @@
|
|
|
1438
1438
|
<xsl:variable name="tag_font_en_bold_open">###<xsl:value-of select="$element_name_font_en_bold"/>###</xsl:variable>
|
|
1439
1439
|
<xsl:variable name="tag_font_en_bold_close">###/<xsl:value-of select="$element_name_font_en_bold"/>###</xsl:variable>
|
|
1440
1440
|
|
|
1441
|
-
<xsl:template match="mn:p//text()[not(ancestor::mn:strong) and not(ancestor::mn:fmt-stem)] | mn:dt//text()[not(ancestor::mn:strong)] | mn:td//text()[not(ancestor::mn:strong)] | mn:th//text()[not(ancestor::mn:strong)] | mn:xref//text() | mn:fmt-xref//text() | mn:origin/text() | mn:fmt-origin/text() | mn:fmt-link/text()" mode="update_xml_step1">
|
|
1441
|
+
<xsl:template match="mn:p//text()[not(ancestor::mn:strong) and not(ancestor::mn:fmt-stem)] | mn:dt//text()[not(ancestor::mn:strong)] | mn:td//text()[not(ancestor::mn:strong)] | mn:th//text()[not(ancestor::mn:strong)] | mn:xref//text() | mn:fmt-xref//text() | mn:origin/text() | mn:fmt-origin/text() | mn:fmt-link/text() | mn:note/mn:name/text() | mn:note/mn:fmt-name//text() | mn:termnote/mn:name/text() | mn:termnote/mn:fmt-name//text() | mn:termexample/mn:name/text() | mn:termexample/mn:fmt-name//text()" mode="update_xml_step1">
|
|
1442
1442
|
<!-- add hairspace after 'IDEOGRAPHIC SPACE' (U+3000) -->
|
|
1443
1443
|
<xsl:variable name="text" select="java:replaceAll(java:java.lang.String.new(.), '(\u3000)', concat('$1',$hair_space))"/>
|
|
1444
1444
|
<xsl:variable name="text_en__">
|
|
@@ -1473,11 +1473,14 @@
|
|
|
1473
1473
|
</xsl:template>
|
|
1474
1474
|
|
|
1475
1475
|
<!-- <name>注記 1</name> to <name>注記<font_en> 1</font_en></name> -->
|
|
1476
|
-
<xsl:template match="mn:title/text() | mn:fmt-title//text() | mn:
|
|
1476
|
+
<xsl:template match="mn:title/text() | mn:fmt-title//text() | mn:table/mn:name/text() | mn:table/mn:fmt-name//text() | mn:figure/mn:name/text() | mn:figure/mn:fmt-name//text()" mode="update_xml_step1">
|
|
1477
1477
|
<!-- |
|
|
1478
1478
|
mn:xref//text() | mn:fmt-xref//text() |
|
|
1479
1479
|
mn:origin/text() | mn:fmt-origin/text() |
|
|
1480
|
-
mn:fmt-link/text()
|
|
1480
|
+
mn:fmt-link/text() |
|
|
1481
|
+
mn:note/mn:name/text() | mn:note/mn:fmt-name//text() |
|
|
1482
|
+
mn:termnote/mn:name/text() | mn:termnote/mn:fmt-name//text() |
|
|
1483
|
+
mn:termexample/mn:name/text() | mn:termexample/mn:fmt-name//text() -->
|
|
1481
1484
|
<xsl:variable name="text_en_" select="java:replaceAll(java:java.lang.String.new(.), $regex_en, concat($tag_font_en_bold_open,'$1',$tag_font_en_bold_close))"/>
|
|
1482
1485
|
<xsl:variable name="text_en">
|
|
1483
1486
|
<xsl:element name="text" namespace="{$namespace_full}">
|
|
@@ -1601,17 +1604,35 @@
|
|
|
1601
1604
|
<xsl:apply-templates mode="update_xml_step1"/>
|
|
1602
1605
|
</xsl:template>
|
|
1603
1606
|
<xsl:template match="mn:strong/text()" priority="2" mode="update_xml_step1">
|
|
1604
|
-
<xsl:
|
|
1605
|
-
|
|
1606
|
-
<xsl:
|
|
1607
|
-
<xsl:
|
|
1608
|
-
|
|
1609
|
-
<xsl:
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1607
|
+
<xsl:choose>
|
|
1608
|
+
<!-- for https://github.com/metanorma/mn-samples-plateau/issues/533, non-bold -->
|
|
1609
|
+
<xsl:when test="ancestor::mn:biblio-tag or ancestor::mn:fmt-preferred">
|
|
1610
|
+
<xsl:variable name="text_en_" select="java:replaceAll(java:java.lang.String.new(.), $regex_en, concat($tag_font_en_open,'$1',$tag_font_en_close))"/>
|
|
1611
|
+
<xsl:variable name="text_en">
|
|
1612
|
+
<xsl:element name="text" namespace="{$namespace_full}">
|
|
1613
|
+
<xsl:call-template name="replace_text_tags">
|
|
1614
|
+
<xsl:with-param name="tag_open" select="$tag_font_en_open"/>
|
|
1615
|
+
<xsl:with-param name="tag_close" select="$tag_font_en_close"/>
|
|
1616
|
+
<xsl:with-param name="text" select="$text_en_"/>
|
|
1617
|
+
</xsl:call-template>
|
|
1618
|
+
</xsl:element>
|
|
1619
|
+
</xsl:variable>
|
|
1620
|
+
<xsl:copy-of select="xalan:nodeset($text_en)/*[local-name() = 'text']/node()"/>
|
|
1621
|
+
</xsl:when>
|
|
1622
|
+
<xsl:otherwise><!-- bold -->
|
|
1623
|
+
<xsl:variable name="text_en_" select="java:replaceAll(java:java.lang.String.new(.), $regex_en, concat($tag_font_en_bold_open,'$1',$tag_font_en_bold_close))"/>
|
|
1624
|
+
<xsl:variable name="text_en">
|
|
1625
|
+
<xsl:element name="text" namespace="{$namespace_full}">
|
|
1626
|
+
<xsl:call-template name="replace_text_tags">
|
|
1627
|
+
<xsl:with-param name="tag_open" select="$tag_font_en_bold_open"/>
|
|
1628
|
+
<xsl:with-param name="tag_close" select="$tag_font_en_bold_close"/>
|
|
1629
|
+
<xsl:with-param name="text" select="$text_en_"/>
|
|
1630
|
+
</xsl:call-template>
|
|
1631
|
+
</xsl:element>
|
|
1632
|
+
</xsl:variable>
|
|
1633
|
+
<xsl:copy-of select="xalan:nodeset($text_en)/*[local-name() = 'text']/node()"/>
|
|
1634
|
+
</xsl:otherwise>
|
|
1635
|
+
</xsl:choose>
|
|
1615
1636
|
</xsl:template>
|
|
1616
1637
|
|
|
1617
1638
|
<!-- Key title after the table -->
|
|
@@ -1681,7 +1702,8 @@
|
|
|
1681
1702
|
<xsl:attribute name="font-weight">300</xsl:attribute>
|
|
1682
1703
|
</xsl:if>
|
|
1683
1704
|
<xsl:if test="ancestor::mn:fmt-preferred">
|
|
1684
|
-
<xsl:attribute name="font-weight">normal</xsl:attribute>
|
|
1705
|
+
<!-- <xsl:attribute name="font-weight">normal</xsl:attribute> -->
|
|
1706
|
+
<xsl:attribute name="font-weight">300</xsl:attribute>
|
|
1685
1707
|
</xsl:if>
|
|
1686
1708
|
<xsl:if test="ancestor::mn:tt">
|
|
1687
1709
|
<xsl:call-template name="refine_tt-style"/>
|
data/lib/metanorma-plateau.rb
CHANGED
|
@@ -8,7 +8,7 @@ require "isodoc/plateau/pdf_convert"
|
|
|
8
8
|
require "isodoc/plateau/presentation_xml_convert"
|
|
9
9
|
require "isodoc/plateau/metadata"
|
|
10
10
|
require "isodoc/plateau/xref"
|
|
11
|
-
require "metanorma"
|
|
11
|
+
require "metanorma-core"
|
|
12
12
|
|
|
13
13
|
if defined? Metanorma::Registry
|
|
14
14
|
require_relative "metanorma/plateau"
|
data/metanorma-plateau.gemspec
CHANGED
|
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
|
29
29
|
spec.test_files = `git ls-files -- {spec}/*`.split("\n")
|
|
30
30
|
spec.required_ruby_version = Gem::Requirement.new(">= 3.1.0")
|
|
31
31
|
|
|
32
|
-
spec.add_dependency "metanorma-jis", "~> 1.0
|
|
32
|
+
spec.add_dependency "metanorma-jis", "~> 1.1.0"
|
|
33
33
|
spec.add_dependency "pubid"
|
|
34
34
|
|
|
35
35
|
spec.add_development_dependency "debug"
|
|
@@ -46,5 +46,5 @@ Gem::Specification.new do |spec|
|
|
|
46
46
|
spec.add_development_dependency "timecop", "~> 0.9"
|
|
47
47
|
spec.add_development_dependency "webmock"
|
|
48
48
|
spec.add_development_dependency "openssl"
|
|
49
|
-
spec.add_development_dependency "canon"
|
|
49
|
+
spec.add_development_dependency "canon"
|
|
50
50
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-plateau
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-05-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: metanorma-jis
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 1.0
|
|
19
|
+
version: 1.1.0
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 1.0
|
|
26
|
+
version: 1.1.0
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: pubid
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -238,16 +238,16 @@ dependencies:
|
|
|
238
238
|
name: canon
|
|
239
239
|
requirement: !ruby/object:Gem::Requirement
|
|
240
240
|
requirements:
|
|
241
|
-
- -
|
|
241
|
+
- - ">="
|
|
242
242
|
- !ruby/object:Gem::Version
|
|
243
|
-
version: 0
|
|
243
|
+
version: '0'
|
|
244
244
|
type: :development
|
|
245
245
|
prerelease: false
|
|
246
246
|
version_requirements: !ruby/object:Gem::Requirement
|
|
247
247
|
requirements:
|
|
248
|
-
- -
|
|
248
|
+
- - ">="
|
|
249
249
|
- !ruby/object:Gem::Version
|
|
250
|
-
version: 0
|
|
250
|
+
version: '0'
|
|
251
251
|
description: |
|
|
252
252
|
Metanorma standards authoring environment for MLIT Project PLATEAU.
|
|
253
253
|
|