relaton-un 1.10.1 → 1.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +1 -24
- data/grammars/biblio.rng +196 -49
- data/grammars/isodoc.rng +150 -3
- data/grammars/reqt.rng +19 -1
- data/grammars/un.rng +10 -0
- data/lib/relaton_un/hash_converter.rb +3 -3
- data/lib/relaton_un/version.rb +1 -1
- data/relaton_un.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: 8588d7dec7ba5f77e565a3e19cb0b3024bc9479a0c599a2e0180ccb67d4be977
|
4
|
+
data.tar.gz: 5481e3630937d37407ecec1616ba020031ea6a90f32b25c4362431e6d84fc3cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec6da14ee10cf01c38d2e5fb06139350549b39313fb1225c03d7958838d02179f9e3c19040a0e4c7d25720e0c5edb77f3cf731ecd40621762f658539a84119a0
|
7
|
+
data.tar.gz: d0d623544388d7c82dd0af8a7782e20dce9ee2326a799f12cf7d5415294a1902d8c069a3138c3eb0eee9c8a6119c96260b67dd2b4830d7b67acfe21e119737b2
|
data/.github/workflows/rake.yml
CHANGED
@@ -10,27 +10,4 @@ on:
|
|
10
10
|
|
11
11
|
jobs:
|
12
12
|
rake:
|
13
|
-
|
14
|
-
runs-on: ${{ matrix.os }}
|
15
|
-
continue-on-error: ${{ matrix.experimental }}
|
16
|
-
strategy:
|
17
|
-
fail-fast: false
|
18
|
-
matrix:
|
19
|
-
ruby: [ '3.0', '2.7', '2.6', '2.5' ]
|
20
|
-
os: [ ubuntu-latest, windows-latest, macos-latest ]
|
21
|
-
experimental: [ false ]
|
22
|
-
steps:
|
23
|
-
- uses: actions/checkout@v2
|
24
|
-
with:
|
25
|
-
submodules: true
|
26
|
-
|
27
|
-
# https://github.com/ruby-debug/debase/issues/89#issuecomment-686827382
|
28
|
-
- if: matrix.os == 'macos-latest' && matrix.ruby == '2.5'
|
29
|
-
run: echo BUNDLE_BUILD__DEBASE="--with-cflags=\"-Wno-error=implicit-function-declaration\"" >> $GITHUB_ENV
|
30
|
-
|
31
|
-
- uses: ruby/setup-ruby@v1
|
32
|
-
with:
|
33
|
-
ruby-version: ${{ matrix.ruby }}
|
34
|
-
bundler-cache: true
|
35
|
-
|
36
|
-
- run: bundle exec rake
|
13
|
+
uses: relaton/support/.github/workflows/rake.yml@master
|
data/grammars/biblio.rng
CHANGED
@@ -527,7 +527,7 @@
|
|
527
527
|
</define>
|
528
528
|
<define name="LocalityType">
|
529
529
|
<data type="string">
|
530
|
-
<param name="pattern">section|clause|part|paragraph|chapter|page|whole|table|annex|figure|note|list|example|volume|issue|time|anchor|locality:[a-zA-Z0-9_]+</param>
|
530
|
+
<param name="pattern">section|clause|part|paragraph|chapter|page|title|line|whole|table|annex|figure|note|list|example|volume|issue|time|anchor|locality:[a-zA-Z0-9_]+</param>
|
531
531
|
</data>
|
532
532
|
</define>
|
533
533
|
<define name="referenceFrom">
|
@@ -614,12 +614,103 @@
|
|
614
614
|
<optional>
|
615
615
|
<ref name="fetched"/>
|
616
616
|
</optional>
|
617
|
-
<
|
618
|
-
<oneOrMore>
|
619
|
-
<ref name="btitle"/>
|
620
|
-
</oneOrMore>
|
617
|
+
<optional>
|
621
618
|
<ref name="formattedref"/>
|
622
|
-
</
|
619
|
+
</optional>
|
620
|
+
<oneOrMore>
|
621
|
+
<ref name="btitle"/>
|
622
|
+
</oneOrMore>
|
623
|
+
<zeroOrMore>
|
624
|
+
<ref name="bsource"/>
|
625
|
+
</zeroOrMore>
|
626
|
+
<oneOrMore>
|
627
|
+
<ref name="docidentifier"/>
|
628
|
+
</oneOrMore>
|
629
|
+
<optional>
|
630
|
+
<ref name="docnumber"/>
|
631
|
+
</optional>
|
632
|
+
<zeroOrMore>
|
633
|
+
<ref name="bdate"/>
|
634
|
+
</zeroOrMore>
|
635
|
+
<zeroOrMore>
|
636
|
+
<ref name="contributor"/>
|
637
|
+
</zeroOrMore>
|
638
|
+
<optional>
|
639
|
+
<ref name="edition"/>
|
640
|
+
</optional>
|
641
|
+
<zeroOrMore>
|
642
|
+
<ref name="version"/>
|
643
|
+
</zeroOrMore>
|
644
|
+
<zeroOrMore>
|
645
|
+
<ref name="biblionote"/>
|
646
|
+
</zeroOrMore>
|
647
|
+
<zeroOrMore>
|
648
|
+
<ref name="language"/>
|
649
|
+
</zeroOrMore>
|
650
|
+
<zeroOrMore>
|
651
|
+
<ref name="script"/>
|
652
|
+
</zeroOrMore>
|
653
|
+
<zeroOrMore>
|
654
|
+
<ref name="bibabstract"/>
|
655
|
+
</zeroOrMore>
|
656
|
+
<optional>
|
657
|
+
<ref name="status"/>
|
658
|
+
</optional>
|
659
|
+
<zeroOrMore>
|
660
|
+
<ref name="copyright"/>
|
661
|
+
</zeroOrMore>
|
662
|
+
<zeroOrMore>
|
663
|
+
<ref name="docrelation"/>
|
664
|
+
</zeroOrMore>
|
665
|
+
<zeroOrMore>
|
666
|
+
<ref name="series"/>
|
667
|
+
</zeroOrMore>
|
668
|
+
<optional>
|
669
|
+
<ref name="medium"/>
|
670
|
+
</optional>
|
671
|
+
<zeroOrMore>
|
672
|
+
<ref name="bplace"/>
|
673
|
+
</zeroOrMore>
|
674
|
+
<zeroOrMore>
|
675
|
+
<ref name="bprice"/>
|
676
|
+
</zeroOrMore>
|
677
|
+
<zeroOrMore>
|
678
|
+
<ref name="extent"/>
|
679
|
+
</zeroOrMore>
|
680
|
+
<optional>
|
681
|
+
<ref name="bibliographic_size"/>
|
682
|
+
</optional>
|
683
|
+
<zeroOrMore>
|
684
|
+
<ref name="accesslocation"/>
|
685
|
+
</zeroOrMore>
|
686
|
+
<zeroOrMore>
|
687
|
+
<ref name="license"/>
|
688
|
+
</zeroOrMore>
|
689
|
+
<zeroOrMore>
|
690
|
+
<ref name="bclassification"/>
|
691
|
+
</zeroOrMore>
|
692
|
+
<zeroOrMore>
|
693
|
+
<ref name="bkeyword"/>
|
694
|
+
</zeroOrMore>
|
695
|
+
<optional>
|
696
|
+
<ref name="validity"/>
|
697
|
+
</optional>
|
698
|
+
</define>
|
699
|
+
<define name="ReducedBibliographicItem">
|
700
|
+
<optional>
|
701
|
+
<attribute name="type">
|
702
|
+
<ref name="BibItemType"/>
|
703
|
+
</attribute>
|
704
|
+
</optional>
|
705
|
+
<optional>
|
706
|
+
<ref name="fetched"/>
|
707
|
+
</optional>
|
708
|
+
<optional>
|
709
|
+
<ref name="formattedref"/>
|
710
|
+
</optional>
|
711
|
+
<zeroOrMore>
|
712
|
+
<ref name="btitle"/>
|
713
|
+
</zeroOrMore>
|
623
714
|
<zeroOrMore>
|
624
715
|
<ref name="bsource"/>
|
625
716
|
</zeroOrMore>
|
@@ -638,9 +729,9 @@
|
|
638
729
|
<optional>
|
639
730
|
<ref name="edition"/>
|
640
731
|
</optional>
|
641
|
-
<
|
732
|
+
<zeroOrMore>
|
642
733
|
<ref name="version"/>
|
643
|
-
</
|
734
|
+
</zeroOrMore>
|
644
735
|
<zeroOrMore>
|
645
736
|
<ref name="biblionote"/>
|
646
737
|
</zeroOrMore>
|
@@ -677,6 +768,9 @@
|
|
677
768
|
<zeroOrMore>
|
678
769
|
<ref name="extent"/>
|
679
770
|
</zeroOrMore>
|
771
|
+
<optional>
|
772
|
+
<ref name="bibliographic_size"/>
|
773
|
+
</optional>
|
680
774
|
<zeroOrMore>
|
681
775
|
<ref name="accesslocation"/>
|
682
776
|
</zeroOrMore>
|
@@ -830,6 +924,12 @@
|
|
830
924
|
<data type="boolean"/>
|
831
925
|
</attribute>
|
832
926
|
</optional>
|
927
|
+
<optional>
|
928
|
+
<attribute name="language"/>
|
929
|
+
</optional>
|
930
|
+
<optional>
|
931
|
+
<attribute name="script"/>
|
932
|
+
</optional>
|
833
933
|
<text/>
|
834
934
|
</element>
|
835
935
|
</define>
|
@@ -848,17 +948,46 @@
|
|
848
948
|
</define>
|
849
949
|
<define name="bplace">
|
850
950
|
<element name="place">
|
851
|
-
<
|
852
|
-
<
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
951
|
+
<choice>
|
952
|
+
<text/>
|
953
|
+
<group>
|
954
|
+
<ref name="bibliocity"/>
|
955
|
+
<zeroOrMore>
|
956
|
+
<ref name="biblioregion"/>
|
957
|
+
</zeroOrMore>
|
958
|
+
<zeroOrMore>
|
959
|
+
<ref name="bibliocountry"/>
|
960
|
+
</zeroOrMore>
|
961
|
+
</group>
|
962
|
+
</choice>
|
963
|
+
</element>
|
964
|
+
</define>
|
965
|
+
<define name="bibliocity">
|
966
|
+
<element name="city">
|
859
967
|
<text/>
|
860
968
|
</element>
|
861
969
|
</define>
|
970
|
+
<define name="biblioregion">
|
971
|
+
<element name="region">
|
972
|
+
<ref name="RegionType"/>
|
973
|
+
</element>
|
974
|
+
</define>
|
975
|
+
<define name="bibliocountry">
|
976
|
+
<element name="country">
|
977
|
+
<ref name="RegionType"/>
|
978
|
+
</element>
|
979
|
+
</define>
|
980
|
+
<define name="RegionType">
|
981
|
+
<optional>
|
982
|
+
<attribute name="iso"/>
|
983
|
+
</optional>
|
984
|
+
<optional>
|
985
|
+
<attribute name="recommended">
|
986
|
+
<data type="boolean"/>
|
987
|
+
</attribute>
|
988
|
+
</optional>
|
989
|
+
<text/>
|
990
|
+
</define>
|
862
991
|
<define name="bprice">
|
863
992
|
<element name="price">
|
864
993
|
<attribute name="currency"/>
|
@@ -922,9 +1051,29 @@
|
|
922
1051
|
<text/>
|
923
1052
|
</element>
|
924
1053
|
</define>
|
1054
|
+
<define name="sizevalue">
|
1055
|
+
<element name="value">
|
1056
|
+
<attribute name="type"/>
|
1057
|
+
<text/>
|
1058
|
+
</element>
|
1059
|
+
</define>
|
1060
|
+
<define name="bibliographic_size">
|
1061
|
+
<element name="size">
|
1062
|
+
<oneOrMore>
|
1063
|
+
<ref name="sizevalue"/>
|
1064
|
+
</oneOrMore>
|
1065
|
+
</element>
|
1066
|
+
</define>
|
925
1067
|
<define name="extent">
|
926
1068
|
<element name="extent">
|
927
|
-
<
|
1069
|
+
<choice>
|
1070
|
+
<zeroOrMore>
|
1071
|
+
<ref name="locality"/>
|
1072
|
+
</zeroOrMore>
|
1073
|
+
<zeroOrMore>
|
1074
|
+
<ref name="localityStack"/>
|
1075
|
+
</zeroOrMore>
|
1076
|
+
</choice>
|
928
1077
|
</element>
|
929
1078
|
</define>
|
930
1079
|
<define name="series">
|
@@ -934,36 +1083,34 @@
|
|
934
1083
|
<ref name="SeriesType"/>
|
935
1084
|
</attribute>
|
936
1085
|
</optional>
|
937
|
-
<
|
1086
|
+
<optional>
|
938
1087
|
<ref name="formattedref"/>
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
</group>
|
966
|
-
</choice>
|
1088
|
+
</optional>
|
1089
|
+
<ref name="btitle"/>
|
1090
|
+
<optional>
|
1091
|
+
<ref name="bplace"/>
|
1092
|
+
</optional>
|
1093
|
+
<optional>
|
1094
|
+
<ref name="seriesorganization"/>
|
1095
|
+
</optional>
|
1096
|
+
<optional>
|
1097
|
+
<ref name="abbreviation"/>
|
1098
|
+
</optional>
|
1099
|
+
<optional>
|
1100
|
+
<ref name="seriesfrom"/>
|
1101
|
+
</optional>
|
1102
|
+
<optional>
|
1103
|
+
<ref name="seriesto"/>
|
1104
|
+
</optional>
|
1105
|
+
<optional>
|
1106
|
+
<ref name="seriesnumber"/>
|
1107
|
+
</optional>
|
1108
|
+
<optional>
|
1109
|
+
<ref name="seriespartnumber"/>
|
1110
|
+
</optional>
|
1111
|
+
<optional>
|
1112
|
+
<ref name="seriesrun"/>
|
1113
|
+
</optional>
|
967
1114
|
</element>
|
968
1115
|
</define>
|
969
1116
|
<define name="SeriesType">
|
@@ -1122,7 +1269,7 @@
|
|
1122
1269
|
</element>
|
1123
1270
|
</optional>
|
1124
1271
|
<element name="bibitem">
|
1125
|
-
<ref name="
|
1272
|
+
<ref name="ReducedBibliographicItem"/>
|
1126
1273
|
</element>
|
1127
1274
|
<choice>
|
1128
1275
|
<zeroOrMore>
|
@@ -1147,9 +1294,9 @@
|
|
1147
1294
|
<optional>
|
1148
1295
|
<ref name="revision-date"/>
|
1149
1296
|
</optional>
|
1150
|
-
<
|
1297
|
+
<optional>
|
1151
1298
|
<ref name="draft"/>
|
1152
|
-
</
|
1299
|
+
</optional>
|
1153
1300
|
</element>
|
1154
1301
|
</define>
|
1155
1302
|
<define name="vedition">
|
data/grammars/isodoc.rng
CHANGED
@@ -32,6 +32,43 @@
|
|
32
32
|
<ref name="DocumentType"/>
|
33
33
|
</element>
|
34
34
|
</define>
|
35
|
+
<define name="admonition">
|
36
|
+
<element name="admonition">
|
37
|
+
<attribute name="type">
|
38
|
+
<ref name="AdmonitionType"/>
|
39
|
+
</attribute>
|
40
|
+
<optional>
|
41
|
+
<attribute name="class"/>
|
42
|
+
</optional>
|
43
|
+
<attribute name="id">
|
44
|
+
<data type="ID"/>
|
45
|
+
</attribute>
|
46
|
+
<optional>
|
47
|
+
<attribute name="uri">
|
48
|
+
<data type="anyURI"/>
|
49
|
+
</attribute>
|
50
|
+
</optional>
|
51
|
+
<optional>
|
52
|
+
<attribute name="coverpage">
|
53
|
+
<data type="boolean"/>
|
54
|
+
</attribute>
|
55
|
+
</optional>
|
56
|
+
<optional>
|
57
|
+
<attribute name="notag">
|
58
|
+
<data type="boolean"/>
|
59
|
+
</attribute>
|
60
|
+
</optional>
|
61
|
+
<optional>
|
62
|
+
<ref name="tname"/>
|
63
|
+
</optional>
|
64
|
+
<zeroOrMore>
|
65
|
+
<ref name="paragraph-with-footnote"/>
|
66
|
+
</zeroOrMore>
|
67
|
+
<zeroOrMore>
|
68
|
+
<ref name="note"/>
|
69
|
+
</zeroOrMore>
|
70
|
+
</element>
|
71
|
+
</define>
|
35
72
|
<define name="index">
|
36
73
|
<element name="index">
|
37
74
|
<optional>
|
@@ -79,6 +116,11 @@
|
|
79
116
|
<data type="boolean"/>
|
80
117
|
</attribute>
|
81
118
|
</optional>
|
119
|
+
<optional>
|
120
|
+
<attribute name="suppress_identifier">
|
121
|
+
<data type="boolean"/>
|
122
|
+
</attribute>
|
123
|
+
</optional>
|
82
124
|
<ref name="BibliographicItem"/>
|
83
125
|
</element>
|
84
126
|
</define>
|
@@ -152,9 +194,7 @@
|
|
152
194
|
<data type="boolean"/>
|
153
195
|
</attribute>
|
154
196
|
</optional>
|
155
|
-
<
|
156
|
-
<ref name="PureTextElement"/>
|
157
|
-
</oneOrMore>
|
197
|
+
<ref name="XrefBody"/>
|
158
198
|
</element>
|
159
199
|
</define>
|
160
200
|
<define name="erefType">
|
@@ -188,6 +228,42 @@
|
|
188
228
|
<ref name="PureTextElement"/>
|
189
229
|
</oneOrMore>
|
190
230
|
</define>
|
231
|
+
<define name="localityStack">
|
232
|
+
<element name="localityStack">
|
233
|
+
<optional>
|
234
|
+
<attribute name="connective">
|
235
|
+
<choice>
|
236
|
+
<value>and</value>
|
237
|
+
<value>or</value>
|
238
|
+
<value>from</value>
|
239
|
+
<value>to</value>
|
240
|
+
<value/>
|
241
|
+
</choice>
|
242
|
+
</attribute>
|
243
|
+
</optional>
|
244
|
+
<zeroOrMore>
|
245
|
+
<ref name="locality"/>
|
246
|
+
</zeroOrMore>
|
247
|
+
</element>
|
248
|
+
</define>
|
249
|
+
<define name="sourceLocalityStack">
|
250
|
+
<element name="sourceLocalityStack">
|
251
|
+
<optional>
|
252
|
+
<attribute name="connective">
|
253
|
+
<choice>
|
254
|
+
<value>and</value>
|
255
|
+
<value>or</value>
|
256
|
+
<value>from</value>
|
257
|
+
<value>to</value>
|
258
|
+
<value/>
|
259
|
+
</choice>
|
260
|
+
</attribute>
|
261
|
+
</optional>
|
262
|
+
<zeroOrMore>
|
263
|
+
<ref name="sourceLocality"/>
|
264
|
+
</zeroOrMore>
|
265
|
+
</element>
|
266
|
+
</define>
|
191
267
|
<define name="ul">
|
192
268
|
<element name="ul">
|
193
269
|
<attribute name="id">
|
@@ -211,6 +287,9 @@
|
|
211
287
|
<ref name="MultilingualRenderingType"/>
|
212
288
|
</attribute>
|
213
289
|
</optional>
|
290
|
+
<optional>
|
291
|
+
<ref name="tname"/>
|
292
|
+
</optional>
|
214
293
|
<oneOrMore>
|
215
294
|
<ref name="ul_li"/>
|
216
295
|
</oneOrMore>
|
@@ -253,6 +332,9 @@
|
|
253
332
|
</choice>
|
254
333
|
</attribute>
|
255
334
|
</optional>
|
335
|
+
<optional>
|
336
|
+
<ref name="tname"/>
|
337
|
+
</optional>
|
256
338
|
<oneOrMore>
|
257
339
|
<ref name="li"/>
|
258
340
|
</oneOrMore>
|
@@ -289,6 +371,9 @@
|
|
289
371
|
<ref name="MultilingualRenderingType"/>
|
290
372
|
</attribute>
|
291
373
|
</optional>
|
374
|
+
<optional>
|
375
|
+
<ref name="tname"/>
|
376
|
+
</optional>
|
292
377
|
<oneOrMore>
|
293
378
|
<ref name="dt"/>
|
294
379
|
<ref name="dd"/>
|
@@ -623,6 +708,9 @@
|
|
623
708
|
<optional>
|
624
709
|
<attribute name="tag"/>
|
625
710
|
</optional>
|
711
|
+
<optional>
|
712
|
+
<attribute name="type"/>
|
713
|
+
</optional>
|
626
714
|
<optional>
|
627
715
|
<attribute name="multilingual-rendering">
|
628
716
|
<ref name="MultilingualRenderingType"/>
|
@@ -658,6 +746,9 @@
|
|
658
746
|
<optional>
|
659
747
|
<attribute name="tag"/>
|
660
748
|
</optional>
|
749
|
+
<optional>
|
750
|
+
<attribute name="type"/>
|
751
|
+
</optional>
|
661
752
|
<optional>
|
662
753
|
<attribute name="multilingual-rendering">
|
663
754
|
<ref name="MultilingualRenderingType"/>
|
@@ -817,6 +908,16 @@
|
|
817
908
|
<ref name="MultilingualRenderingType"/>
|
818
909
|
</attribute>
|
819
910
|
</optional>
|
911
|
+
<optional>
|
912
|
+
<attribute name="coverpage">
|
913
|
+
<data type="boolean"/>
|
914
|
+
</attribute>
|
915
|
+
</optional>
|
916
|
+
<optional>
|
917
|
+
<attribute name="notag">
|
918
|
+
<data type="boolean"/>
|
919
|
+
</attribute>
|
920
|
+
</optional>
|
820
921
|
<oneOrMore>
|
821
922
|
<choice>
|
822
923
|
<ref name="paragraph"/>
|
@@ -1098,6 +1199,16 @@
|
|
1098
1199
|
</define>
|
1099
1200
|
</include>
|
1100
1201
|
<!-- end overrides -->
|
1202
|
+
<define name="image" combine="choice">
|
1203
|
+
<element name="svg">
|
1204
|
+
<oneOrMore>
|
1205
|
+
<choice>
|
1206
|
+
<text/>
|
1207
|
+
<ref name="AnyElement"/>
|
1208
|
+
</choice>
|
1209
|
+
</oneOrMore>
|
1210
|
+
</element>
|
1211
|
+
</define>
|
1101
1212
|
<define name="MultilingualRenderingType">
|
1102
1213
|
<choice>
|
1103
1214
|
<value>common</value>
|
@@ -1134,6 +1245,7 @@
|
|
1134
1245
|
<ref name="concept"/>
|
1135
1246
|
<ref name="add"/>
|
1136
1247
|
<ref name="del"/>
|
1248
|
+
<ref name="span"/>
|
1137
1249
|
</choice>
|
1138
1250
|
</define>
|
1139
1251
|
<define name="add">
|
@@ -1160,6 +1272,14 @@
|
|
1160
1272
|
</choice>
|
1161
1273
|
</element>
|
1162
1274
|
</define>
|
1275
|
+
<define name="span">
|
1276
|
+
<element name="span">
|
1277
|
+
<attribute name="class"/>
|
1278
|
+
<oneOrMore>
|
1279
|
+
<ref name="TextElement"/>
|
1280
|
+
</oneOrMore>
|
1281
|
+
</element>
|
1282
|
+
</define>
|
1163
1283
|
<define name="concept">
|
1164
1284
|
<element name="concept">
|
1165
1285
|
<optional>
|
@@ -1950,6 +2070,7 @@
|
|
1950
2070
|
<value>compare</value>
|
1951
2071
|
<value>contrast</value>
|
1952
2072
|
<value>see</value>
|
2073
|
+
<value>seealso</value>
|
1953
2074
|
</choice>
|
1954
2075
|
</define>
|
1955
2076
|
<define name="deprecates">
|
@@ -2631,4 +2752,30 @@
|
|
2631
2752
|
</zeroOrMore>
|
2632
2753
|
</element>
|
2633
2754
|
</define>
|
2755
|
+
<define name="XrefBody">
|
2756
|
+
<zeroOrMore>
|
2757
|
+
<ref name="XrefTarget"/>
|
2758
|
+
</zeroOrMore>
|
2759
|
+
<oneOrMore>
|
2760
|
+
<ref name="PureTextElement"/>
|
2761
|
+
</oneOrMore>
|
2762
|
+
</define>
|
2763
|
+
<define name="XrefTarget">
|
2764
|
+
<element name="location">
|
2765
|
+
<attribute name="target">
|
2766
|
+
<data type="string">
|
2767
|
+
<param name="pattern">\i\c*|\c+#\c+</param>
|
2768
|
+
</data>
|
2769
|
+
</attribute>
|
2770
|
+
<attribute name="connective">
|
2771
|
+
<choice>
|
2772
|
+
<value>and</value>
|
2773
|
+
<value>or</value>
|
2774
|
+
<value>from</value>
|
2775
|
+
<value>to</value>
|
2776
|
+
<value/>
|
2777
|
+
</choice>
|
2778
|
+
</attribute>
|
2779
|
+
</element>
|
2780
|
+
</define>
|
2634
2781
|
</grammar>
|
data/grammars/reqt.rng
CHANGED
@@ -58,6 +58,14 @@
|
|
58
58
|
<optional>
|
59
59
|
<attribute name="type"/>
|
60
60
|
</optional>
|
61
|
+
<optional>
|
62
|
+
<attribute name="tag"/>
|
63
|
+
</optional>
|
64
|
+
<optional>
|
65
|
+
<attribute name="multilingual-rendering">
|
66
|
+
<ref name="MultilingualRenderingType"/>
|
67
|
+
</attribute>
|
68
|
+
</optional>
|
61
69
|
<optional>
|
62
70
|
<ref name="reqtitle"/>
|
63
71
|
</optional>
|
@@ -101,7 +109,9 @@
|
|
101
109
|
</define>
|
102
110
|
<define name="label">
|
103
111
|
<element name="label">
|
104
|
-
<
|
112
|
+
<oneOrMore>
|
113
|
+
<ref name="TextElement"/>
|
114
|
+
</oneOrMore>
|
105
115
|
</element>
|
106
116
|
</define>
|
107
117
|
<define name="subject">
|
@@ -175,6 +185,14 @@
|
|
175
185
|
<data type="boolean"/>
|
176
186
|
</attribute>
|
177
187
|
</optional>
|
188
|
+
<optional>
|
189
|
+
<attribute name="tag"/>
|
190
|
+
</optional>
|
191
|
+
<optional>
|
192
|
+
<attribute name="multilingual-rendering">
|
193
|
+
<ref name="MultilingualRenderingType"/>
|
194
|
+
</attribute>
|
195
|
+
</optional>
|
178
196
|
<oneOrMore>
|
179
197
|
<ref name="BasicBlock"/>
|
180
198
|
</oneOrMore>
|
data/grammars/un.rng
CHANGED
@@ -48,6 +48,16 @@
|
|
48
48
|
<value>safety precautions</value>
|
49
49
|
</choice>
|
50
50
|
</attribute>
|
51
|
+
<optional>
|
52
|
+
<attribute name="coverpage">
|
53
|
+
<data type="boolean"/>
|
54
|
+
</attribute>
|
55
|
+
</optional>
|
56
|
+
<optional>
|
57
|
+
<attribute name="notag">
|
58
|
+
<data type="boolean"/>
|
59
|
+
</attribute>
|
60
|
+
</optional>
|
51
61
|
<optional>
|
52
62
|
<ref name="tname"/>
|
53
63
|
</optional>
|
@@ -5,11 +5,11 @@ module RelatonUn
|
|
5
5
|
# @param args [Hash]
|
6
6
|
# @param nested [TrueClass, FalseClass]
|
7
7
|
# @return [Hash]
|
8
|
-
def hash_to_bib(args
|
8
|
+
def hash_to_bib(args)
|
9
9
|
ret = super
|
10
10
|
return if ret.nil?
|
11
11
|
|
12
|
-
ret[:submissionlanguage] = array ret[:submissionlanguage]
|
12
|
+
ret[:submissionlanguage] = RelatonBib.array ret[:submissionlanguage]
|
13
13
|
session_hash_to_bib ret
|
14
14
|
ret
|
15
15
|
end
|
@@ -27,7 +27,7 @@ module RelatonUn
|
|
27
27
|
return unless eg
|
28
28
|
|
29
29
|
committee = eg.map { |e| e[:committee] }
|
30
|
-
ret[:editorialgroup] = EditorialGroup.new array(committee)
|
30
|
+
ret[:editorialgroup] = EditorialGroup.new RelatonBib.array(committee)
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
data/lib/relaton_un/version.rb
CHANGED
data/relaton_un.gemspec
CHANGED
@@ -38,9 +38,9 @@ Gem::Specification.new do |spec|
|
|
38
38
|
spec.add_development_dependency "vcr"
|
39
39
|
spec.add_development_dependency "webmock"
|
40
40
|
|
41
|
-
spec.add_dependency "faraday"
|
41
|
+
spec.add_dependency "faraday", "~> 1.0"
|
42
42
|
spec.add_dependency "http-cookie"
|
43
|
-
spec.add_dependency "relaton-bib", "~> 1.
|
43
|
+
spec.add_dependency "relaton-bib", "~> 1.12.0"
|
44
44
|
spec.add_dependency "unf_ext", ">= 0.0.7.7"
|
45
45
|
end
|
46
46
|
# rubocop:enable Metrics/BlockLength
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-un
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: equivalent-xml
|
@@ -84,16 +84,16 @@ dependencies:
|
|
84
84
|
name: faraday
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
89
|
+
version: '1.0'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
96
|
+
version: '1.0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: http-cookie
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 1.
|
117
|
+
version: 1.12.0
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 1.
|
124
|
+
version: 1.12.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: unf_ext
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|