xml2rfc 3.26.0__py3-none-any.whl
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.
- xml2rfc/__init__.py +68 -0
- xml2rfc/boilerplate_id_guidelines.py +28 -0
- xml2rfc/boilerplate_rfc_7841.py +575 -0
- xml2rfc/boilerplate_tlp.py +258 -0
- xml2rfc/data/SVG-1.2-RFC.rnc +1666 -0
- xml2rfc/data/SVG-1.2-RFC.rng +7460 -0
- xml2rfc/data/Scripts.txt +2693 -0
- xml2rfc/data/metadata.js +218 -0
- xml2rfc/data/metadata.min.js +1 -0
- xml2rfc/data/reference.rnc +955 -0
- xml2rfc/data/reference.rng +2158 -0
- xml2rfc/data/referencegroup.rnc +16 -0
- xml2rfc/data/referencegroup.rng +2180 -0
- xml2rfc/data/rfc7991.rnc +955 -0
- xml2rfc/data/rfc7991.rng +2143 -0
- xml2rfc/data/v2.rnc +309 -0
- xml2rfc/data/v2.rng +720 -0
- xml2rfc/data/v3.rnc +1144 -0
- xml2rfc/data/v3.rng +2538 -0
- xml2rfc/data/v3compat.dtd +630 -0
- xml2rfc/data/v3compat.rnc +985 -0
- xml2rfc/data/xml2rfc-v3-emacs-nxml.rnc +1083 -0
- xml2rfc/data/xml2rfc.css +1171 -0
- xml2rfc/data/xml2rfc.js +7 -0
- xml2rfc/debug.py +221 -0
- xml2rfc/log.py +54 -0
- xml2rfc/parser.py +815 -0
- xml2rfc/run.py +801 -0
- xml2rfc/scripts.py +52 -0
- xml2rfc/strings.py +26 -0
- xml2rfc/templates/address_card.html +21 -0
- xml2rfc/templates/base.html +415 -0
- xml2rfc/templates/doc.xml +367 -0
- xml2rfc/templates/doc.yaml +2138 -0
- xml2rfc/templates/rfc2629-other.ent +61 -0
- xml2rfc/templates/rfc2629-xhtml.ent +170 -0
- xml2rfc/templates/rfc2629.dtd +328 -0
- xml2rfc/uniscripts/__init__.py +97 -0
- xml2rfc/uniscripts/unidata.py +306 -0
- xml2rfc/uniscripts/update/make_unidata.py +94 -0
- xml2rfc/util/__init__.py +7 -0
- xml2rfc/util/date.py +94 -0
- xml2rfc/util/fonts.py +53 -0
- xml2rfc/util/name.py +229 -0
- xml2rfc/util/num.py +119 -0
- xml2rfc/util/postal.py +285 -0
- xml2rfc/util/unicode.py +441 -0
- xml2rfc/utils.py +672 -0
- xml2rfc/walkpdf.py +113 -0
- xml2rfc/writers/__init__.py +25 -0
- xml2rfc/writers/base.py +2248 -0
- xml2rfc/writers/bib.py +43 -0
- xml2rfc/writers/doc.py +354 -0
- xml2rfc/writers/expand.py +51 -0
- xml2rfc/writers/expanded_xml.py +39 -0
- xml2rfc/writers/html.py +3110 -0
- xml2rfc/writers/legacy_html.py +860 -0
- xml2rfc/writers/nroff.py +345 -0
- xml2rfc/writers/paginated_txt.py +432 -0
- xml2rfc/writers/pdf.py +230 -0
- xml2rfc/writers/preptool.py +2428 -0
- xml2rfc/writers/raw_txt.py +1453 -0
- xml2rfc/writers/text.py +5000 -0
- xml2rfc/writers/unprep.py +187 -0
- xml2rfc/writers/v2v3.py +1150 -0
- xml2rfc-3.26.0.dist-info/LICENSE +29 -0
- xml2rfc-3.26.0.dist-info/METADATA +178 -0
- xml2rfc-3.26.0.dist-info/RECORD +71 -0
- xml2rfc-3.26.0.dist-info/WHEEL +5 -0
- xml2rfc-3.26.0.dist-info/entry_points.txt +2 -0
- xml2rfc-3.26.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
# 'trust200902',
|
|
2
|
+
# 'noModificationTrust200902',
|
|
3
|
+
# 'noDerivativesTrust200902',
|
|
4
|
+
# 'pre5378Trust200902',
|
|
5
|
+
# 'trust200811',
|
|
6
|
+
# 'noModificationTrust200811',
|
|
7
|
+
# 'noDerivativesTrust200811',
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
boilerplate_tlp = {
|
|
14
|
+
"2.0": {
|
|
15
|
+
# From https://trustee.ietf.org/license-info/IETF-TLP-2.htm
|
|
16
|
+
"draft": [
|
|
17
|
+
"""<t>
|
|
18
|
+
This Internet-Draft is submitted in full conformance
|
|
19
|
+
with the provisions of BCP 78 and BCP 79.
|
|
20
|
+
</t>""",
|
|
21
|
+
],
|
|
22
|
+
"n/a": [
|
|
23
|
+
"""<t>
|
|
24
|
+
Copyright (c) {year} IETF Trust and the persons identified as
|
|
25
|
+
the document authors. All rights reserved.
|
|
26
|
+
</t>""",
|
|
27
|
+
"""<t>
|
|
28
|
+
This document is subject to BCP 78 and the IETF Trust's Legal
|
|
29
|
+
Provisions Relating to IETF Documents in effect on the date of
|
|
30
|
+
publication of this document (http://trustee.ietf.org/license-info).
|
|
31
|
+
Please review these documents carefully, as they describe your rights
|
|
32
|
+
and restrictions with respect to this document.
|
|
33
|
+
</t>""",
|
|
34
|
+
],
|
|
35
|
+
"noModification": [
|
|
36
|
+
"""<t>
|
|
37
|
+
This document may not be modified, and derivative works of it may
|
|
38
|
+
not be created, except to format it for publication as an RFC or
|
|
39
|
+
to translate it into languages other than English.
|
|
40
|
+
</t>""",
|
|
41
|
+
],
|
|
42
|
+
"noDerivatives": [
|
|
43
|
+
"""<t>
|
|
44
|
+
This document may not be modified, and derivative works of it may
|
|
45
|
+
not be created, and it may not be published except as an
|
|
46
|
+
Internet-Draft.
|
|
47
|
+
</t>""",
|
|
48
|
+
],
|
|
49
|
+
"pre5378": [
|
|
50
|
+
"""<t>
|
|
51
|
+
This document may contain material from IETF Documents or IETF
|
|
52
|
+
Contributions published or made publicly available before November
|
|
53
|
+
10, 2008. The person(s) controlling the copyright in some of this
|
|
54
|
+
material may not have granted the IETF Trust the right to allow
|
|
55
|
+
modifications of such material outside the IETF Standards Process.
|
|
56
|
+
Without obtaining an adequate license from the person(s)
|
|
57
|
+
controlling the copyright in such materials, this document may not
|
|
58
|
+
be modified outside the IETF Standards Process, and derivative
|
|
59
|
+
works of it may not be created outside the IETF Standards Process,
|
|
60
|
+
except to format it for publication as an RFC or to translate it
|
|
61
|
+
into languages other than English.
|
|
62
|
+
</t>""",
|
|
63
|
+
],
|
|
64
|
+
},
|
|
65
|
+
"3.0": {
|
|
66
|
+
# From https://trustee.ietf.org/license-info/IETF-TLP-3.htm
|
|
67
|
+
"draft": [
|
|
68
|
+
"""<t>
|
|
69
|
+
This Internet-Draft is submitted to IETF in full conformance with
|
|
70
|
+
the provisions of BCP 78 and BCP 79.
|
|
71
|
+
</t>""",
|
|
72
|
+
],
|
|
73
|
+
"n/a": [
|
|
74
|
+
"""<t>
|
|
75
|
+
Copyright (c) {year} IETF Trust and the persons identified as
|
|
76
|
+
the document authors. All rights reserved.
|
|
77
|
+
</t>""",
|
|
78
|
+
"""<t>
|
|
79
|
+
This document is subject to BCP 78 and the IETF Trust's Legal
|
|
80
|
+
Provisions Relating to IETF Documents
|
|
81
|
+
(http://trustee.ietf.org/license-info) in effect on the date of
|
|
82
|
+
publication of this document. Please review these documents carefully,
|
|
83
|
+
as they describe your rights and restrictions with respect to this
|
|
84
|
+
document. Code Components extracted from this document must include
|
|
85
|
+
Simplified BSD License text as described in Section 4.e of the Trust
|
|
86
|
+
Legal Provisions and are provided without warranty as described in the
|
|
87
|
+
BSD License.
|
|
88
|
+
</t>""",
|
|
89
|
+
],
|
|
90
|
+
"noModification": [
|
|
91
|
+
"""<t>
|
|
92
|
+
This document may not be modified, and derivative works of it may
|
|
93
|
+
not be created, except to format it for publication as an RFC or
|
|
94
|
+
to translate it into languages other than English.
|
|
95
|
+
</t>""",
|
|
96
|
+
],
|
|
97
|
+
"noDerivatives": [
|
|
98
|
+
"""<t>
|
|
99
|
+
This document may not be modified, and derivative works of it may
|
|
100
|
+
not be created, and it may not be published except as an
|
|
101
|
+
Internet-Draft.
|
|
102
|
+
</t>""",
|
|
103
|
+
],
|
|
104
|
+
"pre5378": [
|
|
105
|
+
"""<t>
|
|
106
|
+
This document may contain material from IETF Documents or IETF
|
|
107
|
+
Contributions published or made publicly available before November
|
|
108
|
+
10, 2008. The person(s) controlling the copyright in some of this
|
|
109
|
+
material may not have granted the IETF Trust the right to allow
|
|
110
|
+
modifications of such material outside the IETF Standards Process.
|
|
111
|
+
Without obtaining an adequate license from the person(s)
|
|
112
|
+
controlling the copyright in such materials, this document may not
|
|
113
|
+
be modified outside the IETF Standards Process, and derivative
|
|
114
|
+
works of it may not be created outside the IETF Standards Process,
|
|
115
|
+
except to format it for publication as an RFC or to translate it
|
|
116
|
+
into languages other than English.
|
|
117
|
+
</t>""",
|
|
118
|
+
],
|
|
119
|
+
},
|
|
120
|
+
"4.0": {
|
|
121
|
+
# From https://trustee.ietf.org/license-info/IETF-TLP-4.htm
|
|
122
|
+
"draft": [
|
|
123
|
+
"""<t>
|
|
124
|
+
This Internet-Draft is submitted in full conformance with the
|
|
125
|
+
provisions of BCP 78 and BCP 79.
|
|
126
|
+
</t>""",
|
|
127
|
+
],
|
|
128
|
+
"IETF": [
|
|
129
|
+
"""<t>
|
|
130
|
+
Copyright (c) {year} IETF Trust and the persons identified as the document
|
|
131
|
+
authors. All rights reserved.
|
|
132
|
+
</t>""",
|
|
133
|
+
"""<t>
|
|
134
|
+
This document is subject to BCP 78 and the IETF Trust's Legal
|
|
135
|
+
Provisions Relating to IETF Documents
|
|
136
|
+
(http://trustee.ietf.org/license-info) in effect on the date of
|
|
137
|
+
publication of this document. Please review these documents carefully,
|
|
138
|
+
as they describe your rights and restrictions with respect to this
|
|
139
|
+
document. Code Components extracted from this document must include
|
|
140
|
+
Simplified BSD License text as described in Section 4.e of the Trust
|
|
141
|
+
Legal Provisions and are provided without warranty as described in the
|
|
142
|
+
Simplified BSD License.
|
|
143
|
+
</t>""",
|
|
144
|
+
],
|
|
145
|
+
"alt": [
|
|
146
|
+
"""<t>
|
|
147
|
+
Copyright (c) {year} IETF Trust and the persons identified as the
|
|
148
|
+
document authors. All rights reserved.
|
|
149
|
+
</t>""",
|
|
150
|
+
"""<t>
|
|
151
|
+
This document is subject to BCP 78 and the IETF Trust's Legal
|
|
152
|
+
Provisions Relating to IETF Documents
|
|
153
|
+
(http://trustee.ietf.org/license-info) in effect on the date of
|
|
154
|
+
publication of this document. Please review these documents
|
|
155
|
+
carefully, as they describe your rights and restrictions with
|
|
156
|
+
respect to this document.
|
|
157
|
+
</t>""",
|
|
158
|
+
],
|
|
159
|
+
"noModification": [
|
|
160
|
+
"""<t>
|
|
161
|
+
This document may not be modified, and derivative works of it may
|
|
162
|
+
not be created, except to format it for publication as an RFC or
|
|
163
|
+
to translate it into languages other than English.
|
|
164
|
+
</t>""",
|
|
165
|
+
],
|
|
166
|
+
"noDerivatives": [
|
|
167
|
+
"""<t>
|
|
168
|
+
This document may not be modified, and derivative works of it may
|
|
169
|
+
not be created, and it may not be published except as an
|
|
170
|
+
Internet-Draft.
|
|
171
|
+
</t>""",
|
|
172
|
+
],
|
|
173
|
+
"pre5378": [
|
|
174
|
+
"""<t>
|
|
175
|
+
This document may contain material from IETF Documents or IETF
|
|
176
|
+
Contributions published or made publicly available before November
|
|
177
|
+
10, 2008. The person(s) controlling the copyright in some of this
|
|
178
|
+
material may not have granted the IETF Trust the right to allow
|
|
179
|
+
modifications of such material outside the IETF Standards Process.
|
|
180
|
+
Without obtaining an adequate license from the person(s)
|
|
181
|
+
controlling the copyright in such materials, this document may not
|
|
182
|
+
be modified outside the IETF Standards Process, and derivative
|
|
183
|
+
works of it may not be created outside the IETF Standards Process,
|
|
184
|
+
except to format it for publication as an RFC or to translate it
|
|
185
|
+
into languages other than English.
|
|
186
|
+
</t>""",
|
|
187
|
+
],
|
|
188
|
+
},
|
|
189
|
+
"5.0": {
|
|
190
|
+
# From https://trustee.ietf.org/license-info/IETF-TLP-5.htm
|
|
191
|
+
"draft": [
|
|
192
|
+
"""<t>
|
|
193
|
+
This Internet-Draft is submitted in full conformance with the
|
|
194
|
+
provisions of BCP 78 and BCP 79.
|
|
195
|
+
</t>""",
|
|
196
|
+
],
|
|
197
|
+
"IETF": [
|
|
198
|
+
"""<t>
|
|
199
|
+
Copyright (c) {year} IETF Trust and the persons identified as the
|
|
200
|
+
document authors. All rights reserved.
|
|
201
|
+
</t>""",
|
|
202
|
+
"""<t>
|
|
203
|
+
This document is subject to BCP 78 and the IETF Trust's Legal
|
|
204
|
+
Provisions Relating to IETF Documents
|
|
205
|
+
(<eref target="{scheme}://trustee.ietf.org/license-info"/>) in effect on the date of
|
|
206
|
+
publication of this document. Please review these documents
|
|
207
|
+
carefully, as they describe your rights and restrictions with
|
|
208
|
+
respect to this document. Code Components extracted from this
|
|
209
|
+
document must include Revised BSD License text as described in
|
|
210
|
+
Section 4.e of the Trust Legal Provisions and are provided without
|
|
211
|
+
warranty as described in the Revised BSD License.
|
|
212
|
+
</t>""",
|
|
213
|
+
],
|
|
214
|
+
"alt": [
|
|
215
|
+
"""<t>
|
|
216
|
+
Copyright (c) {year} IETF Trust and the persons identified as the
|
|
217
|
+
document authors. All rights reserved.
|
|
218
|
+
</t>""",
|
|
219
|
+
"""<t>
|
|
220
|
+
This document is subject to BCP 78 and the IETF Trust's Legal
|
|
221
|
+
Provisions Relating to IETF Documents
|
|
222
|
+
(<eref target="{scheme}://trustee.ietf.org/license-info"/>) in effect on the date of
|
|
223
|
+
publication of this document. Please review these documents
|
|
224
|
+
carefully, as they describe your rights and restrictions with
|
|
225
|
+
respect to this document.
|
|
226
|
+
</t>""",
|
|
227
|
+
],
|
|
228
|
+
"noModification": [
|
|
229
|
+
"""<t>
|
|
230
|
+
This document may not be modified, and derivative works of it may
|
|
231
|
+
not be created, except to format it for publication as an RFC or
|
|
232
|
+
to translate it into languages other than English.
|
|
233
|
+
</t>""",
|
|
234
|
+
],
|
|
235
|
+
"noDerivatives": [
|
|
236
|
+
"""<t>
|
|
237
|
+
This document may not be modified, and derivative works of it may
|
|
238
|
+
not be created, and it may not be published except as an
|
|
239
|
+
Internet-Draft.
|
|
240
|
+
</t>""",
|
|
241
|
+
],
|
|
242
|
+
"pre5378": [
|
|
243
|
+
"""<t>
|
|
244
|
+
This document may contain material from IETF Documents or IETF
|
|
245
|
+
Contributions published or made publicly available before November
|
|
246
|
+
10, 2008. The person(s) controlling the copyright in some of this
|
|
247
|
+
material may not have granted the IETF Trust the right to allow
|
|
248
|
+
modifications of such material outside the IETF Standards Process.
|
|
249
|
+
Without obtaining an adequate license from the person(s)
|
|
250
|
+
controlling the copyright in such materials, this document may not
|
|
251
|
+
be modified outside the IETF Standards Process, and derivative
|
|
252
|
+
works of it may not be created outside the IETF Standards Process,
|
|
253
|
+
except to format it for publication as an RFC or to translate it
|
|
254
|
+
into languages other than English.
|
|
255
|
+
</t>""",
|
|
256
|
+
],
|
|
257
|
+
},
|
|
258
|
+
}
|