@teipublisher/oddity-language-server 0.0.0-stage → 0.1.0

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 (59) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +48 -2
  3. package/dist/edit.js +313 -0
  4. package/dist/edit.js.map +7 -0
  5. package/dist/index.js +803 -0
  6. package/dist/index.js.map +7 -0
  7. package/dist/node.cjs +44962 -0
  8. package/dist/node.cjs.map +7 -0
  9. package/package.json +74 -4
  10. package/schema/README.md +41 -0
  11. package/schema/docbook/docbook.rng +18457 -0
  12. package/schema/jats/BITS-embedded-index2.ent.rng +340 -0
  13. package/schema/jats/BITS-question-answer2.ent.rng +795 -0
  14. package/schema/jats/JATS-XHTMLtablesetup1-3.ent.rng +614 -0
  15. package/schema/jats/JATS-ali-namespace1-3.ent.rng +284 -0
  16. package/schema/jats/JATS-archivearticle1-3-mathml3.rng +1277 -0
  17. package/schema/jats/JATS-archivecustom-classes1-3.ent.rng +427 -0
  18. package/schema/jats/JATS-archivecustom-mixes1-3.ent.rng +630 -0
  19. package/schema/jats/JATS-archivecustom-models1-3.ent.rng +2205 -0
  20. package/schema/jats/JATS-articlemeta1-3.ent.rng +3138 -0
  21. package/schema/jats/JATS-backmatter1-3.ent.rng +601 -0
  22. package/schema/jats/JATS-chars1-3.ent.rng +715 -0
  23. package/schema/jats/JATS-common-atts1-3.ent.rng +367 -0
  24. package/schema/jats/JATS-common1-3.ent.rng +6007 -0
  25. package/schema/jats/JATS-default-classes1-3.ent.rng +1953 -0
  26. package/schema/jats/JATS-default-mixes1-3.ent.rng +583 -0
  27. package/schema/jats/JATS-display1-3.ent.rng +1669 -0
  28. package/schema/jats/JATS-format1-3.ent.rng +1256 -0
  29. package/schema/jats/JATS-funding1-3.ent.rng +1389 -0
  30. package/schema/jats/JATS-journalmeta1-3.ent.rng +691 -0
  31. package/schema/jats/JATS-link1-3.ent.rng +664 -0
  32. package/schema/jats/JATS-list1-3.ent.rng +747 -0
  33. package/schema/jats/JATS-math1-3.ent.rng +620 -0
  34. package/schema/jats/JATS-mathml3-mathmlsetup1-3.ent.rng +459 -0
  35. package/schema/jats/JATS-nlmcitation1-3.ent.rng +522 -0
  36. package/schema/jats/JATS-para1-3.ent.rng +780 -0
  37. package/schema/jats/JATS-phrase1-3.ent.rng +725 -0
  38. package/schema/jats/JATS-references1-3.ent.rng +1713 -0
  39. package/schema/jats/JATS-related-object1-3.ent.rng +453 -0
  40. package/schema/jats/JATS-section1-3.ent.rng +482 -0
  41. package/schema/jats/mathml3-qname1.mod.rng +61 -0
  42. package/schema/jats/mathml3.rng +4094 -0
  43. package/schema/jats/xhtml-inlstyle-1.mod.rng +37 -0
  44. package/schema/jats/xhtml-table-1.mod.rng +426 -0
  45. package/schema/odd/teipublisher_odds.rng +12769 -0
  46. package/schema/tei/tei_all.rng +23212 -0
  47. package/src/core/association.ts +155 -0
  48. package/src/core/complete.ts +147 -0
  49. package/src/core/elements.ts +86 -0
  50. package/src/core/outline.ts +156 -0
  51. package/src/core/schema.ts +55 -0
  52. package/src/core/tags.ts +104 -0
  53. package/src/core/toml.ts +64 -0
  54. package/src/core/validate.ts +128 -0
  55. package/src/core/wellformed.ts +16 -0
  56. package/src/edit.ts +11 -0
  57. package/src/index.ts +16 -0
  58. package/src/node.ts +39 -0
  59. package/src/server/server.ts +248 -0
@@ -0,0 +1,284 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- ============================================================= -->
3
+ <!-- MODULE: ALI Namespace Module (NISO RP-22-2015) -->
4
+ <!-- NISO Access License and Indicators (ALI) -->
5
+ <!-- VERSION: ANSI/NISO JATS Version 1.3 (Z39.96-2021) -->
6
+ <!-- DATE: June 2021 -->
7
+ <!---->
8
+ <!-- ============================================================= -->
9
+ <!-- ============================================================= -->
10
+ <!-- PUBLIC DOCUMENT TYPE DEFINITION -->
11
+ <!-- TYPICAL INVOCATION -->
12
+ <!--
13
+ "-//NLM//DTD JATS ALI Namespace Module v1.3 20210610//EN"
14
+ Delivered as file "JATS-ali-namespace1-3.ent"
15
+ -->
16
+ <!-- ============================================================= -->
17
+ <!-- ============================================================= -->
18
+ <!-- SYSTEM: JATS DTD Suite -->
19
+ <!---->
20
+ <!-- PURPOSE: Establish the prefix for the NISO Access and -->
21
+ <!-- Indicators elements (prefix "ali:"). -->
22
+ <!---->
23
+ <!-- TAG SET SPONSOR -->
24
+ <!-- National Center for Biotechnology -->
25
+ <!-- Information (NCBI) -->
26
+ <!-- National Library of Medicine (NLM) -->
27
+ <!---->
28
+ <!-- CREATED FOR: -->
29
+ <!-- This module was created for the JATS DTD Suite. -->
30
+ <!-- Digital archives and publishers may use the -->
31
+ <!-- DTD as is for markup of journal literature or -->
32
+ <!-- related material for archiving and transferring -->
33
+ <!-- such material between archives or create a -->
34
+ <!-- custom XML DTD from the Suite for -->
35
+ <!-- these purposes. -->
36
+ <!---->
37
+ <!-- This DTD is in the public domain. An organization -->
38
+ <!-- that wishes to create its own DTD from the suite -->
39
+ <!-- may do so without permission from NLM. -->
40
+ <!---->
41
+ <!-- The suite has been set up to be extended using a -->
42
+ <!-- new DTD file and a new DTD-specific customization -->
43
+ <!-- module to redefine the many Parameter Entities. -->
44
+ <!-- Do not modify the suite directly or redistribute -->
45
+ <!-- modified versions of the suite. -->
46
+ <!---->
47
+ <!-- In the interest of maintaining consistency and -->
48
+ <!-- clarity for potential users, NLM requests: -->
49
+ <!---->
50
+ <!-- 1. If you create a DTD from the JATS DTD Suite -->
51
+ <!-- and intend to stay compatible with the suite, -->
52
+ <!-- then please include the following statement -->
53
+ <!-- as a comment in all of your DTD modules: -->
54
+ <!-- "Created from, and fully compatible with, -->
55
+ <!-- the ANSI/NISO Z39.96 Journal Article Tag -->
56
+ <!-- Suite (JATS)." -->
57
+ <!---->
58
+ <!-- 2. If you alter one or more modules of the suite, -->
59
+ <!-- then please rename your version and all its -->
60
+ <!-- modules to avoid any confusion with the -->
61
+ <!-- original suite. Also, please include the -->
62
+ <!-- following statement as a comment in all your -->
63
+ <!-- DTD modules: -->
64
+ <!-- "Based in part on, but not fully compatible -->
65
+ <!-- with, the ANSI/NISO Z39.96 Journal Article -->
66
+ <!-- Tag Suite (JATS)." -->
67
+ <!---->
68
+ <!-- ORIGINAL CREATION DATE: -->
69
+ <!-- February 2015 -->
70
+ <!---->
71
+ <!-- CREATED BY: Mulberry Technologies, Inc. for the NISO Z39.96 -->
72
+ <!-- Working Group. Mulberry Technologies was -->
73
+ <!-- supported by National Center for Biotechnology -->
74
+ <!-- Information (NCBI), a center of the US National -->
75
+ <!-- Library of Medicine (NLM). -->
76
+ <!---->
77
+ <!-- The Journal Publishing DTD is built from the -->
78
+ <!-- Journal Archiving and Interchange DTD Suite. -->
79
+ <!---->
80
+ <!-- Suggestions for refinements and enhancements to -->
81
+ <!-- this DTD should be sent in email to: -->
82
+ <!-- jats@ncbi.nlm.nih.gov -->
83
+ <!-- ============================================================= -->
84
+ <!-- ============================================================= -->
85
+ <!-- DTD VERSION/CHANGE HISTORY -->
86
+ <!-- ============================================================= -->
87
+ <!--
88
+ Version Reason/Occasion (who) vx.x (yyyy-mm-dd)
89
+ ==============================================================
90
+ JATS Version 1.3 (ANSI/NISO Z39.96-2021)
91
+ (DAL/BTU) v1.3 (2021-06-10)
92
+
93
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
94
+ which requires voting by both the NISO and ANSI memberships
95
+ to be changed. This version of the NISO JATS was approved
96
+ by ANSI vote on June 10, 2021, so it supersedes all Committee
97
+ Drafts as well as the draft version JATS 1.3 2021 (the version
98
+ submitted for vote), becoming NISO JATS v1.3 20210610
99
+ (ANSI/NISO Z39.96-2019).
100
+
101
+ The file names and formal public identifiers have been
102
+ changed in the modules and the catalogs.
103
+
104
+ 9. JATS 'v1.3d2 20201130' becomes 'v1.3 20210610'
105
+ (final ANSI vote date)
106
+ 'ANSI/NISO Z39.96-2019' becomes 'ANSI/NISO Z39.96-2021'
107
+
108
+ ==============================================================
109
+ JATS Version 1.3d2 (ANSI/NISO Z39.96-2021)
110
+ (DAL/BTU) v1.3d2 (2020-11-30)
111
+
112
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
113
+ which requires voting by the NISO and ANSI memberships
114
+ to be changed.
115
+
116
+ This draft DTD represents an interim version of the
117
+ non-normative JATS DTD Suite, as an indication to JATS users
118
+ of the decisions that have been made by the JATS Standing
119
+ Committee. This draft has not yet been given public review
120
+ or voting; it is for Standing Committee review and
121
+ testing. The formal public identifiers have been changed
122
+ in the modules and the catalogs.
123
+
124
+ 8. JATS "v1.3d2 20201130" becomes 'v1.3 20210610' (second
125
+ committee draft following the final ANSI/NISO 1.2 vote)
126
+
127
+ ==============================================================
128
+ JATS Version 1.3d1 (ANSI/NISO Z39.96-2021)
129
+ (DAL/BTU) v1.3.d1 (2019-08-31)
130
+
131
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
132
+ which requires voting by the NISO and ANSI memberships
133
+ to be changed.
134
+
135
+ This draft DTD represents an interim version of the
136
+ non-normative JATS DTD Suite, as an indication to JATS users
137
+ of the decisions that have been made by the JATS Standing
138
+ Committee. This draft has not yet been given public review
139
+ or voting. The formal public identifiers were changed in the
140
+ modules and the catalogs.
141
+
142
+ 7. JATS "1.2" becomes "v1.3d1 20190831" (first committee
143
+ draft following the final ANSI/NISO vote)
144
+
145
+ ==============================================================
146
+ JATS Version 1.2 (ANSI/NISO Z39.96-2021)
147
+ (DAL/BTU) v1.2 (2019-02-08)
148
+
149
+ NISO JATS is a continuing maintenance NISO Standard, which
150
+ requires voting by the both the NISO and ANSI membership
151
+ to be changed. This version of the NISO JATS was approved
152
+ by ANSI vote on Feb 08, 2019, so it supersedes all Committee
153
+ Drafts as well as the draft version JATS 1.2 2018 (the version
154
+ submitted for vote), becoming NISO JATS v1.2 20190208
155
+ (ANSI/NISO Z39.96-2021).
156
+
157
+ 6. JATS "1.2" becomes "v1.2 20190208" (final ANSI vote date)
158
+ "ANSI/NISO Z39.96-2015" becomes "ANSI/NISO Z39.96-2019"
159
+
160
+ ==============================================================
161
+ JATS Version 1.2 (ANSI/NISO Z39.96-2018)
162
+ (DAL/BTU) v1.2 (2018-11-30)
163
+
164
+ NISO JATS is a continuing maintenance NISO Standard, which
165
+ requires voting by the both the NISO and ANSI membership
166
+ to be changed. This version of the NISO JATS was approved
167
+ by ANSI and NISO vote, so it supersedes all Committee Drafts
168
+ and becoming NISO JATS 1.2 (ANSI/NISO Z39.96-2018).
169
+
170
+ 5. JATS "1.2d2" and "v1.2d2 20180401" became
171
+ JATS "1.2" and "v1.2 20181130"
172
+
173
+ =============================================================
174
+ JATS Version 1.2d2 (DAL/BTU) v1.2d2 (2018-04-01)
175
+
176
+ JATS is a continuing maintenance NISO Standard, which
177
+ requires voting by the ANSI and NISO memberships to be changed.
178
+ BITS is under continuous maintenance, and is modified at the
179
+ discretion of the working group.
180
+
181
+ This draft DTD represents an interim version of the
182
+ non-normative JATS DTD Suite, as an indication to JATS users
183
+ the decisions that have been made by the JATS Standing
184
+ Committee. This draft has not yet been given public review
185
+ or voting. The formal public identifiers were changed in the
186
+ modules and the catalogs.
187
+
188
+ 4. BITS "2.0" and "v2.0 20151225" remained unchanged
189
+
190
+ JATS "1.2d1" and "v1.2d1 20171231" became
191
+ JATS "1.2d2" and "v1.2d2 20180401".
192
+
193
+ No module names were changed.
194
+
195
+ =============================================================
196
+ JATS Version 1.2d2 (ANSI/NISO Z39.96-2015)
197
+ (DAL/BTU) v1.2d2 (2017-12-31)
198
+
199
+ NISO JATS is a continuing maintenance NISO Standard, which
200
+ requires voting by the ANSI and NISO memberships to be changed.
201
+
202
+ This draft DTD represents an interim version of the
203
+ non-normative JATS DTD Suite, as an indication to JATS users
204
+ the decisions that have been made by the JATS Standing
205
+ Committee. This draft has not yet been given public review
206
+ or voting. The formal public identifiers were changed in the
207
+ modules and the catalogs.
208
+
209
+ 3. JATS "1.2d1" and "v1.2d1 20170631" became
210
+ JATS "1.2d2" and "v1.2d2 20171231".
211
+
212
+ =============================================================
213
+ JATS Version 1.2d1 (DAL/BTU) v1.2d1 (2017-06-31)
214
+
215
+ NISO JATS is a continuing maintenance NISO Standard, which
216
+ requires voting by the ANSI and NISO memberships to be changed.
217
+
218
+ This draft DTD represents an interim version of the
219
+ non-normative JATS DTD Suite, as an indication to JATS users
220
+ the decisions that have been made by the JATS Standing
221
+ Committee. This draft has not yet been given public review
222
+ or voting. The formal public identifiers were changed in the
223
+ modules and the catalogs.
224
+
225
+ 2. JATS became version "1.2d1" and "v1.2d1 20170631"
226
+
227
+ =============================================================
228
+ JATS Version 1.1 (DAL/BTU) v1.1 (2015-12-15)
229
+
230
+ JATS is a continuing maintenance NISO Standard, which
231
+ requires voting by the ANSI and NISO memberships to be changed.
232
+ JATS 1.1 was approved in late 2015, so the formal public
233
+ identifiers were changed in the modules and the catalogs.
234
+ No model or attribute changes were made at this time.
235
+
236
+ 1. JATS became version "1.1" and "v1.1 20151215"
237
+ BITS remained "2.0" and became "v2.0 20151225"
238
+
239
+ =============================================================
240
+
241
+ Details concerning ANSI/NISO Z39.96-2019 JATS-based DTDs, XSDs,
242
+ RNGs and supporting documentation are available at
243
+ http://jats.nlm.nih.gov/1.3/
244
+ -->
245
+ <!-- ============================================================= -->
246
+ <!-- ALI NAMESPACE SETUP -->
247
+ <!-- ============================================================= -->
248
+ <!-- NAME ALI NAMESPACE BASE URI -->
249
+ <!--
250
+ Set the ALI namespace URI,as named in
251
+ NISO RP-22-2015
252
+ -->
253
+ <!-- NAME ALI NAMESPACE PREFIX -->
254
+ <!--
255
+ Set the namespace prefix for the ALI
256
+ elements to the JATS-named prefix "ali".
257
+ Implementor's Note: This parameter entity
258
+ should always be set, even if you need to turn
259
+ off the namespace prefix.
260
+ -->
261
+ <!-- NAME OASIS NAMESPACE PREFIX -->
262
+ <!--
263
+ Construct the ALI namespace prefix to be
264
+ used in the xmlns pseudo-attribute from:
265
+ - the word "xmlns",
266
+ - a colon, and
267
+ - the prefix just defined in %ali.prefix;
268
+ -->
269
+ <!-- DEFAULT ALI NAMESPACE -->
270
+ <!--
271
+ The default namespace to be used when
272
+ calling in the ALI elements. This is set on
273
+ the article level as well as on the ALI
274
+ elements themselves.
275
+ Implementor's Note: The parameter entity is
276
+ constructed from the parameter entities set
277
+ above.
278
+ -->
279
+ <grammar xmlns="http://relaxng.org/ns/structure/1.0">
280
+ <define name="ali.xmlns.attrib">
281
+ <empty/>
282
+ </define>
283
+ </grammar>
284
+ <!-- ================== End ALI Namespace Setup ================= -->