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.
Files changed (71) hide show
  1. xml2rfc/__init__.py +68 -0
  2. xml2rfc/boilerplate_id_guidelines.py +28 -0
  3. xml2rfc/boilerplate_rfc_7841.py +575 -0
  4. xml2rfc/boilerplate_tlp.py +258 -0
  5. xml2rfc/data/SVG-1.2-RFC.rnc +1666 -0
  6. xml2rfc/data/SVG-1.2-RFC.rng +7460 -0
  7. xml2rfc/data/Scripts.txt +2693 -0
  8. xml2rfc/data/metadata.js +218 -0
  9. xml2rfc/data/metadata.min.js +1 -0
  10. xml2rfc/data/reference.rnc +955 -0
  11. xml2rfc/data/reference.rng +2158 -0
  12. xml2rfc/data/referencegroup.rnc +16 -0
  13. xml2rfc/data/referencegroup.rng +2180 -0
  14. xml2rfc/data/rfc7991.rnc +955 -0
  15. xml2rfc/data/rfc7991.rng +2143 -0
  16. xml2rfc/data/v2.rnc +309 -0
  17. xml2rfc/data/v2.rng +720 -0
  18. xml2rfc/data/v3.rnc +1144 -0
  19. xml2rfc/data/v3.rng +2538 -0
  20. xml2rfc/data/v3compat.dtd +630 -0
  21. xml2rfc/data/v3compat.rnc +985 -0
  22. xml2rfc/data/xml2rfc-v3-emacs-nxml.rnc +1083 -0
  23. xml2rfc/data/xml2rfc.css +1171 -0
  24. xml2rfc/data/xml2rfc.js +7 -0
  25. xml2rfc/debug.py +221 -0
  26. xml2rfc/log.py +54 -0
  27. xml2rfc/parser.py +815 -0
  28. xml2rfc/run.py +801 -0
  29. xml2rfc/scripts.py +52 -0
  30. xml2rfc/strings.py +26 -0
  31. xml2rfc/templates/address_card.html +21 -0
  32. xml2rfc/templates/base.html +415 -0
  33. xml2rfc/templates/doc.xml +367 -0
  34. xml2rfc/templates/doc.yaml +2138 -0
  35. xml2rfc/templates/rfc2629-other.ent +61 -0
  36. xml2rfc/templates/rfc2629-xhtml.ent +170 -0
  37. xml2rfc/templates/rfc2629.dtd +328 -0
  38. xml2rfc/uniscripts/__init__.py +97 -0
  39. xml2rfc/uniscripts/unidata.py +306 -0
  40. xml2rfc/uniscripts/update/make_unidata.py +94 -0
  41. xml2rfc/util/__init__.py +7 -0
  42. xml2rfc/util/date.py +94 -0
  43. xml2rfc/util/fonts.py +53 -0
  44. xml2rfc/util/name.py +229 -0
  45. xml2rfc/util/num.py +119 -0
  46. xml2rfc/util/postal.py +285 -0
  47. xml2rfc/util/unicode.py +441 -0
  48. xml2rfc/utils.py +672 -0
  49. xml2rfc/walkpdf.py +113 -0
  50. xml2rfc/writers/__init__.py +25 -0
  51. xml2rfc/writers/base.py +2248 -0
  52. xml2rfc/writers/bib.py +43 -0
  53. xml2rfc/writers/doc.py +354 -0
  54. xml2rfc/writers/expand.py +51 -0
  55. xml2rfc/writers/expanded_xml.py +39 -0
  56. xml2rfc/writers/html.py +3110 -0
  57. xml2rfc/writers/legacy_html.py +860 -0
  58. xml2rfc/writers/nroff.py +345 -0
  59. xml2rfc/writers/paginated_txt.py +432 -0
  60. xml2rfc/writers/pdf.py +230 -0
  61. xml2rfc/writers/preptool.py +2428 -0
  62. xml2rfc/writers/raw_txt.py +1453 -0
  63. xml2rfc/writers/text.py +5000 -0
  64. xml2rfc/writers/unprep.py +187 -0
  65. xml2rfc/writers/v2v3.py +1150 -0
  66. xml2rfc-3.26.0.dist-info/LICENSE +29 -0
  67. xml2rfc-3.26.0.dist-info/METADATA +178 -0
  68. xml2rfc-3.26.0.dist-info/RECORD +71 -0
  69. xml2rfc-3.26.0.dist-info/WHEEL +5 -0
  70. xml2rfc-3.26.0.dist-info/entry_points.txt +2 -0
  71. 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
+ }