metanorma-ribose 1.7.1 → 1.7.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: 925018e056fa43a11378e6b304090504f13d5042254583ac4c4953f418f8ac40
4
- data.tar.gz: 80308a8aa53fe8110b8e8d5367b75f8bb367410a459d3b971d8765e296881366
3
+ metadata.gz: afa8f24c26b1b722b94da095d55861761049f6e3147d4e09e20a82060e53c2a1
4
+ data.tar.gz: 3ca66c7d8ec19317bc2df0eeb1059dc2f18de0bb6934d80907889a7bcc0388dd
5
5
  SHA512:
6
- metadata.gz: 39f6df5375f989766daf8e1f95bfb51138c38bdec2c9ecc2d6f89c33aa132741b158adfb520a4c832e97ce700c7f6f5e75b8945729a0dde73bd2088028a26e71
7
- data.tar.gz: d4dc7b1a585cbb029e2fe7273c42cb175bd0c6230aa84d0525bb89bb2281fec63771a6c12e5dd696f87cc51242255b960812ec935a5d90b849ac4868db194ad1
6
+ metadata.gz: ef61bde4b09c3efeb392aa6c680b7f65bc8a6ce5db7f9c8151a9ba45ddae7f0ce734c0b07de7ab3c0c875839cf22312c252d76fb4737aa8318e9c5e3965a8317
7
+ data.tar.gz: a4e13576b5b6eb1d9ad414262e3d956f34f539eb5aee73d49816225c73498cae3dcd69a8511ec7acae3302f4271422a12c02a22458d3d4c48793dd4d19a952a1
data/.rubocop.yml CHANGED
@@ -10,5 +10,3 @@ AllCops:
10
10
  DisplayCopNames: false
11
11
  StyleGuideCopsOnly: false
12
12
  TargetRubyVersion: 2.4
13
- Rails:
14
- Enabled: true
@@ -876,6 +876,18 @@
876
876
  </zeroOrMore>
877
877
  </element>
878
878
  </define>
879
+ <define name="pagebreak">
880
+ <element name="pagebreak">
881
+ <optional>
882
+ <attribute name="orientation">
883
+ <choice>
884
+ <value>landscape</value>
885
+ <value>portrait</value>
886
+ </choice>
887
+ </attribute>
888
+ </optional>
889
+ </element>
890
+ </define>
879
891
  </include>
880
892
  <!-- end overrides -->
881
893
  <define name="colgroup">
@@ -943,8 +955,170 @@
943
955
  <ref name="permission"/>
944
956
  <ref name="imagemap"/>
945
957
  <ref name="svgmap"/>
958
+ <ref name="inputform"/>
959
+ </choice>
960
+ </define>
961
+ <define name="inputform">
962
+ <element name="form">
963
+ <attribute name="id">
964
+ <data type="ID"/>
965
+ </attribute>
966
+ <attribute name="name"/>
967
+ <attribute name="action"/>
968
+ <zeroOrMore>
969
+ <choice>
970
+ <ref name="TextElement"/>
971
+ <ref name="FormInput"/>
972
+ </choice>
973
+ </zeroOrMore>
974
+ </element>
975
+ </define>
976
+ <define name="FormInput">
977
+ <choice>
978
+ <ref name="input"/>
979
+ <ref name="formlabel"/>
980
+ <ref name="select"/>
981
+ <ref name="textarea"/>
982
+ </choice>
983
+ </define>
984
+ <define name="InputType">
985
+ <choice>
986
+ <value>button</value>
987
+ <value>checkbox</value>
988
+ <value>date</value>
989
+ <value>file</value>
990
+ <value>password</value>
991
+ <value>radio</value>
992
+ <value>submit</value>
993
+ <value>text</value>
946
994
  </choice>
947
995
  </define>
996
+ <define name="input">
997
+ <element name="input">
998
+ <attribute name="type">
999
+ <ref name="InputType"/>
1000
+ </attribute>
1001
+ <optional>
1002
+ <attribute name="checked">
1003
+ <data type="boolean"/>
1004
+ </attribute>
1005
+ </optional>
1006
+ <optional>
1007
+ <attribute name="disabled">
1008
+ <data type="boolean"/>
1009
+ </attribute>
1010
+ </optional>
1011
+ <optional>
1012
+ <attribute name="readonly">
1013
+ <data type="boolean"/>
1014
+ </attribute>
1015
+ </optional>
1016
+ <optional>
1017
+ <attribute name="maxlength">
1018
+ <data type="int"/>
1019
+ </attribute>
1020
+ </optional>
1021
+ <optional>
1022
+ <attribute name="minlength">
1023
+ <data type="int"/>
1024
+ </attribute>
1025
+ </optional>
1026
+ <optional>
1027
+ <attribute name="name"/>
1028
+ </optional>
1029
+ <optional>
1030
+ <attribute name="value"/>
1031
+ </optional>
1032
+ <optional>
1033
+ <attribute name="id">
1034
+ <data type="ID"/>
1035
+ </attribute>
1036
+ </optional>
1037
+ </element>
1038
+ </define>
1039
+ <define name="formlabel">
1040
+ <element name="label">
1041
+ <attribute name="for">
1042
+ <data type="IDREF"/>
1043
+ </attribute>
1044
+ <zeroOrMore>
1045
+ <ref name="PureTextElement"/>
1046
+ </zeroOrMore>
1047
+ </element>
1048
+ </define>
1049
+ <define name="select">
1050
+ <element name="select">
1051
+ <optional>
1052
+ <attribute name="name"/>
1053
+ </optional>
1054
+ <optional>
1055
+ <attribute name="value"/>
1056
+ </optional>
1057
+ <optional>
1058
+ <attribute name="id">
1059
+ <data type="ID"/>
1060
+ </attribute>
1061
+ </optional>
1062
+ <optional>
1063
+ <attribute name="disabled">
1064
+ <data type="boolean"/>
1065
+ </attribute>
1066
+ </optional>
1067
+ <optional>
1068
+ <attribute name="multiple">
1069
+ <data type="boolean"/>
1070
+ </attribute>
1071
+ </optional>
1072
+ <optional>
1073
+ <attribute name="size">
1074
+ <data type="int"/>
1075
+ </attribute>
1076
+ </optional>
1077
+ <oneOrMore>
1078
+ <ref name="option"/>
1079
+ </oneOrMore>
1080
+ </element>
1081
+ </define>
1082
+ <define name="option">
1083
+ <element name="option">
1084
+ <optional>
1085
+ <attribute name="disabled">
1086
+ <data type="boolean"/>
1087
+ </attribute>
1088
+ </optional>
1089
+ <optional>
1090
+ <attribute name="value"/>
1091
+ </optional>
1092
+ <zeroOrMore>
1093
+ <ref name="PureTextElement"/>
1094
+ </zeroOrMore>
1095
+ </element>
1096
+ </define>
1097
+ <define name="textarea">
1098
+ <element name="textarea">
1099
+ <optional>
1100
+ <attribute name="name"/>
1101
+ </optional>
1102
+ <optional>
1103
+ <attribute name="value"/>
1104
+ </optional>
1105
+ <optional>
1106
+ <attribute name="id">
1107
+ <data type="ID"/>
1108
+ </attribute>
1109
+ </optional>
1110
+ <optional>
1111
+ <attribute name="rows">
1112
+ <data type="int"/>
1113
+ </attribute>
1114
+ </optional>
1115
+ <optional>
1116
+ <attribute name="cols">
1117
+ <data type="int"/>
1118
+ </attribute>
1119
+ </optional>
1120
+ </element>
1121
+ </define>
948
1122
  <define name="bibliography">
949
1123
  <element name="bibliography">
950
1124
  <oneOrMore>
@@ -2183,6 +2183,7 @@
2183
2183
 
2184
2184
 
2185
2185
 
2186
+
2186
2187
  <xsl:if test=".//*[local-name() = 'table']">
2187
2188
  <xsl:attribute name="padding-right">1mm</xsl:attribute>
2188
2189
  </xsl:if>
@@ -4751,6 +4752,70 @@
4751
4752
  <xsl:value-of select="substring(.,1,1)"/>
4752
4753
  </xsl:template><xsl:template match="*[local-name() = 'title']" mode="title">
4753
4754
  <fo:inline><xsl:apply-templates/></fo:inline>
4755
+ </xsl:template><xsl:template match="*[local-name() = 'form']">
4756
+ <fo:block>
4757
+ <xsl:apply-templates/>
4758
+ </fo:block>
4759
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'label']">
4760
+ <fo:inline><xsl:apply-templates/></fo:inline>
4761
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'text' or @type = 'date' or @type = 'file' or @type = 'password']">
4762
+ <fo:inline>
4763
+ <xsl:call-template name="text_input"/>
4764
+ </fo:inline>
4765
+ </xsl:template><xsl:template name="text_input">
4766
+ <xsl:variable name="count">
4767
+ <xsl:choose>
4768
+ <xsl:when test="normalize-space(@maxlength) != ''"><xsl:value-of select="@maxlength"/></xsl:when>
4769
+ <xsl:when test="normalize-space(@size) != ''"><xsl:value-of select="@size"/></xsl:when>
4770
+ <xsl:otherwise>10</xsl:otherwise>
4771
+ </xsl:choose>
4772
+ </xsl:variable>
4773
+ <xsl:call-template name="repeat">
4774
+ <xsl:with-param name="char" select="'_'"/>
4775
+ <xsl:with-param name="count" select="$count"/>
4776
+ </xsl:call-template>
4777
+ <xsl:text> </xsl:text>
4778
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'button']">
4779
+ <xsl:variable name="caption">
4780
+ <xsl:choose>
4781
+ <xsl:when test="normalize-space(@value) != ''"><xsl:value-of select="@value"/></xsl:when>
4782
+ <xsl:otherwise>BUTTON</xsl:otherwise>
4783
+ </xsl:choose>
4784
+ </xsl:variable>
4785
+ <fo:inline>[<xsl:value-of select="$caption"/>]</fo:inline>
4786
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'checkbox']">
4787
+ <fo:inline padding-right="1mm">
4788
+ <fo:instream-foreign-object fox:alt-text="Box" baseline-shift="-10%">
4789
+ <xsl:attribute name="height">3.5mm</xsl:attribute>
4790
+ <xsl:attribute name="content-width">100%</xsl:attribute>
4791
+ <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
4792
+ <xsl:attribute name="scaling">uniform</xsl:attribute>
4793
+ <svg xmlns="http://www.w3.org/2000/svg" width="80" height="80">
4794
+ <polyline points="0,0 80,0 80,80 0,80 0,0" stroke="black" stroke-width="5" fill="white"/>
4795
+ </svg>
4796
+ </fo:instream-foreign-object>
4797
+ </fo:inline>
4798
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'input'][@type = 'radio']">
4799
+ <fo:inline padding-right="1mm">
4800
+ <fo:instream-foreign-object fox:alt-text="Box" baseline-shift="-10%">
4801
+ <xsl:attribute name="height">3.5mm</xsl:attribute>
4802
+ <xsl:attribute name="content-width">100%</xsl:attribute>
4803
+ <xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>
4804
+ <xsl:attribute name="scaling">uniform</xsl:attribute>
4805
+ <svg xmlns="http://www.w3.org/2000/svg" width="80" height="80">
4806
+ <circle cx="40" cy="40" r="30" stroke="black" stroke-width="5" fill="white"/>
4807
+ <circle cx="40" cy="40" r="15" stroke="black" stroke-width="5" fill="white"/>
4808
+ </svg>
4809
+ </fo:instream-foreign-object>
4810
+ </fo:inline>
4811
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'select']">
4812
+ <fo:inline>
4813
+ <xsl:call-template name="text_input"/>
4814
+ </fo:inline>
4815
+ </xsl:template><xsl:template match="*[local-name() = 'form']//*[local-name() = 'textarea']">
4816
+ <fo:block-container border="1pt solid black" width="50%">
4817
+ <fo:block> </fo:block>
4818
+ </fo:block-container>
4754
4819
  </xsl:template><xsl:template name="convertDate">
4755
4820
  <xsl:param name="date"/>
4756
4821
  <xsl:param name="format" select="'short'"/>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ribose
3
- VERSION = "1.7.1".freeze
3
+ VERSION = "1.7.2".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ribose
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-26 00:00:00.000000000 Z
11
+ date: 2021-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-generic