metanorma-jis 1.0.1 → 1.0.2
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1aae95e8715c8724eb119e3b53fc413839b99478aeaa81f7e314a64dcf03b324
|
|
4
|
+
data.tar.gz: b3ffa69df1685778cfc47d5fc5efe21dde085447494d68fbc566be121b9361d5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3903babc038dcef541f92470a9dd436a1f7c8785bf139bdfb0f7a6e808d5ee5c9bfd7e7d5e42f975ee0d65f0ccbcf9bc7775774167ada7750b1e99af4ab2b421
|
|
7
|
+
data.tar.gz: adbed05bbe460843f9572569142a523875804f9b3415fc687e5f3235c2bb8a115a8e22bd12b48a112c4e66c5775267e66aaef9708f6a6e4afd612a0575882418
|
|
@@ -6764,7 +6764,7 @@
|
|
|
6764
6764
|
<xsl:variable name="non_white_space">[^\s\u3000-\u9FFF]</xsl:variable>
|
|
6765
6765
|
<xsl:variable name="regex_dots_units">((\b((<xsl:value-of select="$non_white_space"/>{1,3}\.<xsl:value-of select="$non_white_space"/>+)|(<xsl:value-of select="$non_white_space"/>+\.<xsl:value-of select="$non_white_space"/>{1,3}))\b)|(\.<xsl:value-of select="$non_white_space"/>{1,3})\b)</xsl:variable>
|
|
6766
6766
|
|
|
6767
|
-
<xsl:template match="text()[not(ancestor::mn:bibdata or ancestor::mn:fmt-link[not(contains(normalize-space(),' '))] or ancestor::mn:sourcecode or ancestor::*[local-name() = 'math'] or ancestor::*[local-name() = 'svg'] or ancestor::mn:name or ancestor::mn:fmt-name or starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.') or normalize-space() = '' )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
|
|
6767
|
+
<xsl:template match="text()[not(ancestor::mn:bibdata or ancestor::mn:fmt-link[not(contains(normalize-space(),' '))] or ancestor::mn:sourcecode or (ancestor::mn:tt and ancestor::mn:table and string-length() > 20) or ancestor::*[local-name() = 'math'] or ancestor::*[local-name() = 'svg'] or ancestor::mn:name or ancestor::mn:fmt-name or starts-with(., 'http://') or starts-with(., 'https://') or starts-with(., 'www.') or normalize-space() = '' )]" name="keep_together_standard_number" mode="update_xml_enclose_keep-together_within-line">
|
|
6768
6768
|
|
|
6769
6769
|
<xsl:variable name="parent" select="local-name(..)"/>
|
|
6770
6770
|
|
|
@@ -18027,9 +18027,12 @@
|
|
|
18027
18027
|
</xsl:template> <!-- refine_title-style -->
|
|
18028
18028
|
|
|
18029
18029
|
<xsl:template name="processPrefaceSectionsDefault">
|
|
18030
|
+
<xsl:param name="num"/>
|
|
18030
18031
|
<xsl:for-each select="/*/mn:preface/*[not(self::mn:note or self::mn:admonition)]">
|
|
18031
18032
|
<xsl:sort select="@displayorder" data-type="number"/>
|
|
18032
|
-
<xsl:apply-templates select="."
|
|
18033
|
+
<xsl:apply-templates select=".">
|
|
18034
|
+
<xsl:with-param name="num" select="$num"/>
|
|
18035
|
+
</xsl:apply-templates>
|
|
18033
18036
|
</xsl:for-each>
|
|
18034
18037
|
</xsl:template>
|
|
18035
18038
|
|
|
@@ -165,7 +165,7 @@ module IsoDoc
|
|
|
165
165
|
id = elem["bibitemid"] or return
|
|
166
166
|
b = @bibitem_lookup[id] or return
|
|
167
167
|
!b.at(ns(<<~XPATH))
|
|
168
|
-
./docidentifier[not(#{
|
|
168
|
+
./docidentifier[not(#{SERIAL_NUM_DOCID} or @scope = 'biblio-tag' or @type = 'metanorma' or @type = 'metanorma-ordinal' or @type='title')]
|
|
169
169
|
XPATH
|
|
170
170
|
end
|
|
171
171
|
|
|
@@ -205,24 +205,24 @@ module IsoDoc
|
|
|
205
205
|
|
|
206
206
|
def short_style_origin(docxml); end
|
|
207
207
|
|
|
208
|
-
def norm_ref_entry_code(_ordinal,
|
|
208
|
+
def norm_ref_entry_code(_ordinal, ids, _standard, datefn, bib)
|
|
209
209
|
delim = bib.at(ns("./language"))&.text == "ja" ? " " : "<esc>,</esc> "
|
|
210
|
-
ret = (
|
|
210
|
+
ret = (ids[:ordinal] || ids[:content] || ids[:metanorma] || ids[:sdo]).to_s
|
|
211
211
|
ret = esc(ret)
|
|
212
|
-
(
|
|
213
|
-
ret += "#{delim}<strong>#{esc
|
|
214
|
-
!
|
|
212
|
+
(ids[:ordinal] || ids[:content] || ids[:metanorma]) && ids[:sdo] and
|
|
213
|
+
ret += "#{delim}<strong>#{esc ids[:sdo]}</strong>"
|
|
214
|
+
!ids[:ordinal] && !ids[:content] && !ids[:metanorma] && ids[:sdo] and
|
|
215
215
|
ret = "<strong>#{ret}</ret>"
|
|
216
216
|
ret += datefn
|
|
217
217
|
ret.empty? and return ret
|
|
218
|
-
|
|
218
|
+
ids[:sdo] and ret += delim
|
|
219
219
|
ret.sub(delim, "").strip.empty? and return ""
|
|
220
220
|
ret
|
|
221
221
|
end
|
|
222
222
|
|
|
223
|
-
def biblio_ref_entry_code(ordinal, ids,
|
|
223
|
+
def biblio_ref_entry_code(ordinal, ids, _standard, datefn, bib)
|
|
224
224
|
delim = bib.at(ns("./language"))&.text == "ja" ? " " : "<esc>,</esc> "
|
|
225
|
-
ret = esc(ids[:ordinal]) || esc(ids[:metanorma]) || "[#{esc ordinal.to_s}]"
|
|
225
|
+
ret = esc(ids[:ordinal]) || esc(ids[:content]) || esc(ids[:metanorma]) || "[#{esc ordinal.to_s}]"
|
|
226
226
|
if ids[:sdo] && !ids[:sdo].empty?
|
|
227
227
|
ret = prefix_bracketed_ref(ret)
|
|
228
228
|
ret += "#{esc ids[:sdo]}#{datefn}#{delim}"
|
data/lib/isodoc/jis/xref.rb
CHANGED
|
@@ -178,17 +178,6 @@ module IsoDoc
|
|
|
178
178
|
super
|
|
179
179
|
end
|
|
180
180
|
end
|
|
181
|
-
|
|
182
|
-
def hierarchical_figure_names(clause, num)
|
|
183
|
-
#require "debug"; binding.b
|
|
184
|
-
super
|
|
185
|
-
end
|
|
186
|
-
|
|
187
|
-
def localise_anchors(type = nil)
|
|
188
|
-
#require "debug"; binding.b
|
|
189
|
-
super
|
|
190
|
-
end
|
|
191
|
-
|
|
192
181
|
end
|
|
193
182
|
end
|
|
194
183
|
end
|
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: 1.0.
|
|
4
|
+
version: 1.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: 2025-
|
|
11
|
+
date: 2025-12-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: japanese_calendar
|