metanorma-plateau 1.1.5 → 1.1.6

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: 36e96c27e5a94c5855c471a72fbb115416e208d884f0bb0f74158def02671151
4
- data.tar.gz: 1feeb3f4449a2503653da24cc18130f272d9d21abdf702c6b3ca5a723ec79e1b
3
+ metadata.gz: 843c28dd5ffac493f6cae6c19881b2f916ecc248f525e399815c27071a7d48f3
4
+ data.tar.gz: 9770bc7dfac3671e9863296316e7fd0ccc8d12403b6f007f42136e3b8d5e4a4f
5
5
  SHA512:
6
- metadata.gz: 71f87996b8eadccf3fe979c4060975a760205e795ffef8eeb854420d23288956e43cecc84ebfaedbff1bee3069528c0003661a5eca466f74be281635fa5518a5
7
- data.tar.gz: 624aa94e13f3174f08a4cb8601423563165e2601479af4dff99cce3f6938ec35b786b75305d1ade63241800e4a41d0ee8a26fba8aec55e412094716badc49cf1
6
+ metadata.gz: 94e9153d5c042e1190f2583a4e469d43d2fcbbaa5439d5b0d26a093281fc5da9009355694f122ccd4f8600e6c70355ad58b736876429cb7c7543cedaa8b49554
7
+ data.tar.gz: 5ae50d8ef9feb33aa7a6ca5741dce0aa8be30cb8104f2ff4e6ba39d93359f7feded5ef4cd5166053a52db2e3b87cdddbaa2fff5c96d600b19fe0cc2dd1712550
@@ -22,7 +22,7 @@ module IsoDoc
22
22
 
23
23
  def bibrenderer(options = {})
24
24
  ::Relaton::Render::Jis::General.new(options
25
- .merge(language: @lang, i18nhash: @i18n.get))
25
+ .merge(language: @lang, script: @script, i18nhash: @i18n.get))
26
26
  end
27
27
  end
28
28
  end
@@ -252,6 +252,8 @@
252
252
  <xsl:with-param name="num" select="$num"/>
253
253
  </xsl:call-template>
254
254
 
255
+ <xsl:call-template name="inner-cover-page"/>
256
+
255
257
  <!-- ========================== -->
256
258
  <!-- Preface and contents pages -->
257
259
  <!-- ========================== -->
@@ -723,6 +725,9 @@
723
725
  </fo:page-sequence>
724
726
  </xsl:template> <!-- cover-page -->
725
727
 
728
+ <xsl:template name="inner-cover-page">
729
+ </xsl:template>
730
+
726
731
  <xsl:template match="mn:p[@class = 'JapaneseIndustrialStandard']" priority="4"/>
727
732
  <xsl:template match="mn:p[@class = 'StandardNumber']" priority="4"/>
728
733
  <xsl:template match="mn:p[@class = 'IDT']" priority="4"/>
@@ -1579,7 +1584,7 @@
1579
1584
  </xsl:template>
1580
1585
 
1581
1586
  <!-- <name>注記 1</name> to <name>注記<font_en> 1</font_en></name> -->
1582
- <xsl:template match="mn:title/text() | mn:fmt-title/text() | mn:note/mn:name/text() | mn:note/mn:fmt-name/text() | mn:termnote/mn:name/text() | mn:termnote/mn:fmt-name/text() | mn:table/mn:name/text() | mn:table/mn:fmt-name/text() | mn:figure/mn:name/text() | mn:figure/mn:fmt-name/text() | mn:termexample/mn:name/text() | mn:termexample/mn:fmt-name/text() | mn:xref//text() | mn:fmt-xref//text() | mn:origin/text() | mn:fmt-origin/text()" mode="update_xml_step1">
1587
+ <xsl:template match="mn:title/text() | mn:fmt-title/text() | mn:note/mn:name/text() | mn:note/mn:fmt-name/text() | mn:termnote/mn:name/text() | mn:termnote/mn:fmt-name/text() | mn:table/mn:name/text() | mn:table/mn:fmt-name/text() | mn:figure/mn:name/text() | mn:figure/mn:fmt-name/text() | mn:termexample/mn:name/text() | mn:termexample/mn:fmt-name/text() | mn:xref//text() | mn:fmt-xref//text() | mn:origin/text() | mn:fmt-origin/text() | mn:fmt-link/text()" mode="update_xml_step1">
1583
1588
  <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))"/>
1584
1589
  <xsl:variable name="text_en">
1585
1590
  <xsl:element name="text" namespace="{$namespace_full}">
@@ -3769,7 +3774,6 @@
3769
3774
  </xsl:attribute-set> <!-- feedback-statement-title-style -->
3770
3775
 
3771
3776
  <xsl:template name="refine_feedback-statement-title-style">
3772
-
3773
3777
  </xsl:template>
3774
3778
 
3775
3779
  <xsl:attribute-set name="feedback-statement-p-style">
@@ -9592,15 +9596,23 @@
9592
9596
  </xsl:attribute-set> <!-- quote-style -->
9593
9597
 
9594
9598
  <xsl:template name="refine_quote-style">
9595
- </xsl:template>
9599
+ </xsl:template> <!-- refine_quote-style -->
9596
9600
 
9597
9601
  <xsl:attribute-set name="quote-source-style">
9598
9602
  <xsl:attribute name="text-align">right</xsl:attribute>
9599
- </xsl:attribute-set>
9603
+ </xsl:attribute-set> <!-- quote-source-style -->
9600
9604
 
9601
9605
  <xsl:template name="refine_quote-source-style">
9602
9606
  </xsl:template>
9603
9607
 
9608
+ <xsl:attribute-set name="source-style">
9609
+ <xsl:attribute name="space-after">8pt</xsl:attribute>
9610
+ </xsl:attribute-set> <!-- source-style -->
9611
+
9612
+ <xsl:template name="refine_source-style">
9613
+
9614
+ </xsl:template> <!-- refine_source-style -->
9615
+
9604
9616
  <!-- ====== -->
9605
9617
  <!-- quote -->
9606
9618
  <!-- source -->
@@ -9648,7 +9660,9 @@
9648
9660
  </xsl:if>
9649
9661
  <xsl:choose>
9650
9662
  <xsl:when test="not(parent::quote)">
9651
- <fo:block>
9663
+ <fo:block xsl:use-attribute-sets="source-style">
9664
+ <xsl:call-template name="refine_source-style"/>
9665
+
9652
9666
  <xsl:call-template name="insert_basic_link">
9653
9667
  <xsl:with-param name="element">
9654
9668
  <fo:basic-link internal-destination="{@bibitemid}" fox:alt-text="{@citeas}">
@@ -11762,7 +11776,7 @@
11762
11776
 
11763
11777
  <xsl:template name="refine_fn-reference-style">
11764
11778
  <!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
11765
- <xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
11779
+ <xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">, </xsl:if><!-- <xsl:if test="$namespace = 'bsi' or $namespace = 'pas'"></xsl:if> -->
11766
11780
  </xsl:template> <!-- refine_fn-reference-style -->
11767
11781
 
11768
11782
  <xsl:attribute-set name="fn-style">
@@ -11773,7 +11787,9 @@
11773
11787
  </xsl:template>
11774
11788
 
11775
11789
  <xsl:attribute-set name="fn-num-style">
11790
+ <xsl:attribute name="role">Reference</xsl:attribute>
11776
11791
  <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
11792
+ <xsl:attribute name="font-size">65%</xsl:attribute>
11777
11793
  <xsl:attribute name="font-size">6pt</xsl:attribute>
11778
11794
  <xsl:attribute name="baseline-shift">25%</xsl:attribute>
11779
11795
  </xsl:attribute-set> <!-- fn-num-style -->
@@ -11845,33 +11861,16 @@
11845
11861
  <xsl:variable name="ref_id" select="@target"/>
11846
11862
 
11847
11863
  <xsl:variable name="footnote_inline">
11848
- <fo:inline role="Reference">
11864
+ <fo:inline xsl:use-attribute-sets="fn-num-style">
11849
11865
 
11850
- <xsl:variable name="fn_styles">
11851
- <xsl:choose>
11852
- <xsl:when test="ancestor::mn:bibitem">
11853
- <fn_styles xsl:use-attribute-sets="bibitem-note-fn-style">
11854
- <xsl:call-template name="refine_bibitem-note-fn-style"/>
11855
- </fn_styles>
11856
- </xsl:when>
11857
- <xsl:otherwise>
11858
- <fn_styles xsl:use-attribute-sets="fn-num-style">
11859
- <xsl:call-template name="refine_fn-num-style"/>
11860
- </fn_styles>
11861
- </xsl:otherwise>
11862
- </xsl:choose>
11863
- </xsl:variable>
11864
-
11865
- <xsl:for-each select="xalan:nodeset($fn_styles)/fn_styles/@*">
11866
- <xsl:copy-of select="."/>
11867
- </xsl:for-each>
11866
+ <xsl:call-template name="refine_fn-num-style"/>
11868
11867
 
11869
11868
  <!-- https://github.com/metanorma/metanorma-ieee/issues/595 -->
11870
11869
  <!-- <xsl:if test="following-sibling::node()[normalize-space() != ''][1][self::mn:fn]">
11871
11870
  <xsl:attribute name="padding-right">0.5mm</xsl:attribute>
11872
11871
  </xsl:if> -->
11873
11872
 
11874
- <xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">,</xsl:if>
11873
+ <xsl:if test="preceding-sibling::node()[normalize-space() != ''][1][self::mn:fn]">, </xsl:if>
11875
11874
 
11876
11875
  <xsl:call-template name="insert_basic_link">
11877
11876
  <xsl:with-param name="element">
@@ -12164,29 +12163,6 @@
12164
12163
  <xsl:template name="refine_bibitem-non-normative-list-body-style">
12165
12164
  </xsl:template>
12166
12165
 
12167
- <!-- footnote reference number for bibitem, in the text -->
12168
- <xsl:attribute-set name="bibitem-note-fn-style">
12169
- <xsl:attribute name="keep-with-previous.within-line">always</xsl:attribute>
12170
- <xsl:attribute name="font-size">65%</xsl:attribute>
12171
- <xsl:attribute name="font-size">6pt</xsl:attribute>
12172
- <xsl:attribute name="baseline-shift">25%</xsl:attribute>
12173
- </xsl:attribute-set> <!-- bibitem-note-fn-style -->
12174
-
12175
- <xsl:template name="refine_bibitem-note-fn-style">
12176
- </xsl:template>
12177
-
12178
- <!-- footnote number on the page bottom -->
12179
- <xsl:attribute-set name="bibitem-note-fn-number-style">
12180
- <xsl:attribute name="keep-with-next.within-line">always</xsl:attribute>
12181
- </xsl:attribute-set> <!-- bibitem-note-fn-number-style -->
12182
-
12183
- <!-- footnote body (text) on the page bottom -->
12184
- <xsl:attribute-set name="bibitem-note-fn-body-style">
12185
- <xsl:attribute name="font-size">10pt</xsl:attribute>
12186
- <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
12187
- <xsl:attribute name="start-indent">0pt</xsl:attribute>
12188
- </xsl:attribute-set> <!-- bibitem-note-fn-body-style -->
12189
-
12190
12166
  <xsl:attribute-set name="references-non-normative-style">
12191
12167
  </xsl:attribute-set> <!-- references-non-normative-style -->
12192
12168
 
@@ -14535,6 +14511,17 @@
14535
14511
  </xsl:attribute-set>
14536
14512
 
14537
14513
  <xsl:template name="refine_clause-style">
14514
+ <!-- commented for https://github.com/metanorma/metanorma-ribose/issues/421 -->
14515
+ <!-- <xsl:if test="$namespace = 'rsd'">
14516
+ <xsl:variable name="level">
14517
+ <xsl:call-template name="getLevel">
14518
+ <xsl:with-param name="depth" select="mn:fmt-title/@depth"/>
14519
+ </xsl:call-template>
14520
+ </xsl:variable>
14521
+ <xsl:if test="$level &gt;= 4">
14522
+ <xsl:attribute name="margin-left">13mm</xsl:attribute>
14523
+ </xsl:if>
14524
+ </xsl:if> -->
14538
14525
  </xsl:template>
14539
14526
 
14540
14527
  <!-- main sections -->
@@ -36,14 +36,12 @@ module IsoDoc
36
36
  source1(elem, :para)
37
37
  # if we haven't already removed it...
38
38
  elem.parent or return
39
- # elem.parent.next = "<p>#{to_xml(elem.remove)}</p>"
40
39
  elem.parent.next = elem.remove
41
40
  end
42
41
 
43
42
  def listsource(elem, ancestor)
44
43
  source1(elem, ancestor)
45
44
  elem.parent or return
46
- # elem.parent.next = "<p>#{to_xml(elem.remove)}</p>"
47
45
  elem.parent.next = elem.remove
48
46
  end
49
47
 
@@ -1,14 +1,16 @@
1
1
  module Metanorma
2
2
  module Plateau
3
+ # after term def processed, process source after paragraphs so that
4
+ # the moving of paragraphs there does not nclude termdef
3
5
  class Converter < Jis::Converter
4
- def blocksource_cleanup(xmldoc)
6
+ def termdef_cleanup(xmldoc)
7
+ super
5
8
  xmldoc.xpath("//source").each do |s|
6
9
  p = s.previous_element or next
7
10
  %w[p ol ul dl].include? p.name or next
8
11
  s.delete("type")
9
12
  s.parent = p
10
13
  end
11
- super
12
14
  end
13
15
 
14
16
  # Abandoned in favour of JIS ordering
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Plateau
3
- VERSION = "1.1.5".freeze
3
+ VERSION = "1.1.6".freeze
4
4
  end
5
5
  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.1.5
4
+ version: 1.1.6
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-09-15 00:00:00.000000000 Z
11
+ date: 2025-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-jis