metanorma-jis 0.6.3 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/isodoc/jis/jis.international-standard.xsl +590 -176
- data/lib/isodoc/jis/presentation_xml_convert.rb +4 -2
- data/lib/metanorma/jis/front.rb +17 -6
- data/lib/metanorma/jis/isodoc.rng +19 -1
- data/lib/metanorma/jis/version.rb +1 -1
- metadata +2 -2
@@ -103,7 +103,8 @@ module IsoDoc
|
|
103
103
|
end
|
104
104
|
|
105
105
|
def figure_fn(elem)
|
106
|
-
fnotes = elem.xpath(ns(".//fn")) - elem.xpath(ns("./name//fn"))
|
106
|
+
fnotes = elem.xpath(ns(".//fn")) - elem.xpath(ns("./name//fn")) -
|
107
|
+
elem.xpath(ns("./fmt-name//fn"))
|
107
108
|
ret = footnote_collect(fnotes)
|
108
109
|
f = footnote_container(fnotes, ret) and elem << f
|
109
110
|
end
|
@@ -145,7 +146,8 @@ module IsoDoc
|
|
145
146
|
def non_document_footnotes(docxml)
|
146
147
|
table_fns = docxml.xpath(ns("//table//fn"))
|
147
148
|
fig_fns = docxml.xpath(ns("//figure//fn")) -
|
148
|
-
docxml.xpath(ns("//figure/name//fn"))
|
149
|
+
docxml.xpath(ns("//figure/name//fn")) -
|
150
|
+
docxml.xpath(ns("//figure/fmt-name//fn"))
|
149
151
|
table_fns + fig_fns
|
150
152
|
end
|
151
153
|
|
data/lib/metanorma/jis/front.rb
CHANGED
@@ -11,12 +11,7 @@ module Metanorma
|
|
11
11
|
"JIS"
|
12
12
|
end
|
13
13
|
|
14
|
-
def
|
15
|
-
org_contributor(node, xml,
|
16
|
-
{ source: ["publisher", "pub"], role: "author",
|
17
|
-
default: pub_hash })
|
18
|
-
personal_author(node, xml)
|
19
|
-
end
|
14
|
+
def committee_contributors(node, xml, default, opt); end
|
20
15
|
|
21
16
|
def metadata_publisher(node, xml)
|
22
17
|
[{ source: ["publisher", "pub"], role: "publisher", default: pub_hash },
|
@@ -30,6 +25,17 @@ module Metanorma
|
|
30
25
|
end
|
31
26
|
end
|
32
27
|
|
28
|
+
def org_author(node, xml)
|
29
|
+
if node.attr("corporate-author")
|
30
|
+
org_contributor(node, xml, { source: ["corporate-author"],
|
31
|
+
role: "author" })
|
32
|
+
else
|
33
|
+
org_contributor(node, xml,
|
34
|
+
{ source: ["publisher", "pub"], role: "author",
|
35
|
+
default: pub_hash })
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
33
39
|
LANGS = %w(ja en).freeze
|
34
40
|
|
35
41
|
def pub_hash
|
@@ -187,6 +193,11 @@ module Metanorma
|
|
187
193
|
rescue StandardError => e
|
188
194
|
clean_abort("Document identifier: #{e}", xml)
|
189
195
|
end
|
196
|
+
|
197
|
+
def personal_author(node, xml)
|
198
|
+
::Metanorma::Standoc::Converter.instance_method(:personal_author).bind(self)
|
199
|
+
.call(node, xml)
|
200
|
+
end
|
190
201
|
end
|
191
202
|
end
|
192
203
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
3
|
-
<!-- VERSION v2.1.
|
3
|
+
<!-- VERSION v2.1.2 -->
|
4
4
|
|
5
5
|
<!--
|
6
6
|
ALERT: cannot have root comments, because of https://github.com/metanorma/metanorma/issues/437
|
@@ -123,6 +123,10 @@ the type attribute defaults to `review` for reviews</a:documentation>
|
|
123
123
|
<a:documentation>Notes whose scope is the current block</a:documentation>
|
124
124
|
</ref>
|
125
125
|
</zeroOrMore>
|
126
|
+
<ref name="BlockSource">
|
127
|
+
<a:documentation>Bibliographic source for the information in the list.
|
128
|
+
Sources are currently only rendered in metanorma-plateau</a:documentation>
|
129
|
+
</ref>
|
126
130
|
</define>
|
127
131
|
<define name="OlBody">
|
128
132
|
<optional>
|
@@ -140,6 +144,10 @@ the type attribute defaults to `review` for reviews</a:documentation>
|
|
140
144
|
<a:documentation>Notes whose scope is the current block</a:documentation>
|
141
145
|
</ref>
|
142
146
|
</zeroOrMore>
|
147
|
+
<ref name="BlockSource">
|
148
|
+
<a:documentation>Bibliographic source for the information in the list.
|
149
|
+
Sources are currently only rendered in metanorma-plateau</a:documentation>
|
150
|
+
</ref>
|
143
151
|
</define>
|
144
152
|
<define name="OlAttributes">
|
145
153
|
<a:documentation>NOTE: `start` attribute is not included by default, because of problems it raises with DOC output</a:documentation>
|
@@ -188,6 +196,10 @@ the type attribute defaults to `review` for reviews</a:documentation>
|
|
188
196
|
<a:documentation>Notes whose scope is the current block</a:documentation>
|
189
197
|
</ref>
|
190
198
|
</zeroOrMore>
|
199
|
+
<ref name="BlockSource">
|
200
|
+
<a:documentation>Bibliographic source for the information in the list.
|
201
|
+
Sources are currently only rendered in metanorma-plateau</a:documentation>
|
202
|
+
</ref>
|
191
203
|
</define>
|
192
204
|
<define name="dt">
|
193
205
|
<element name="dt">
|
@@ -871,6 +883,12 @@ titlecase, or lowercase</a:documentation>
|
|
871
883
|
</oneOrMore>
|
872
884
|
</element>
|
873
885
|
</define>
|
886
|
+
<define name="ParagraphFnBody" combine="interleave">
|
887
|
+
<ref name="BlockSource">
|
888
|
+
<a:documentation>Bibliographic source for the information in the paragraph
|
889
|
+
parargaph sources are currently only rendered in metanorma-plateau</a:documentation>
|
890
|
+
</ref>
|
891
|
+
</define>
|
874
892
|
<define name="BasicBlock" combine="choice">
|
875
893
|
<ref name="columnbreak"/>
|
876
894
|
</define>
|
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.6.
|
4
|
+
version: 0.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: japanese_calendar
|