@teipublisher/oddity-language-server 0.0.0-stage → 0.2.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 (62) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +58 -2
  3. package/dist/edit.js +1211 -0
  4. package/dist/edit.js.map +7 -0
  5. package/dist/index.js +1701 -0
  6. package/dist/index.js.map +7 -0
  7. package/dist/node.cjs +45925 -0
  8. package/dist/node.cjs.map +7 -0
  9. package/package.json +74 -4
  10. package/schema/README.md +45 -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/opm/opm.schema.json +402 -0
  47. package/schema/tei/tei_all.rng +23212 -0
  48. package/src/core/association.ts +155 -0
  49. package/src/core/complete.ts +147 -0
  50. package/src/core/elements.ts +86 -0
  51. package/src/core/opmToml.ts +432 -0
  52. package/src/core/outline.ts +156 -0
  53. package/src/core/schema.ts +55 -0
  54. package/src/core/tags.ts +104 -0
  55. package/src/core/toml.ts +64 -0
  56. package/src/core/tomlScan.ts +155 -0
  57. package/src/core/validate.ts +128 -0
  58. package/src/core/wellformed.ts +16 -0
  59. package/src/edit.ts +12 -0
  60. package/src/index.ts +17 -0
  61. package/src/node.ts +39 -0
  62. package/src/server/server.ts +322 -0
@@ -0,0 +1,367 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- ============================================================= -->
3
+ <!-- MODULE: Common Attributes (for all elements) -->
4
+ <!-- VERSION: ANSI/NISO JATS Version 1.3 (Z39.96-2021) -->
5
+ <!-- DATE: June 2021 -->
6
+ <!---->
7
+ <!-- ============================================================= -->
8
+ <!-- ============================================================= -->
9
+ <!-- PUBLIC DOCUMENT TYPE DEFINITION -->
10
+ <!-- TYPICAL INVOCATION -->
11
+ <!--
12
+ "-//NLM//DTD JATS (Z39.96) JATS DTD Suite Common Attributes (for all elements) v1.3 20210610//EN"
13
+ Delivered as file "JATS-common-atts1-3.ent"
14
+ -->
15
+ <!-- ============================================================= -->
16
+ <!-- ============================================================= -->
17
+ <!-- SYSTEM: JATS DTD Suite -->
18
+ <!---->
19
+ <!-- PURPOSE: Defines attributes intended to be used on ALL the -->
20
+ <!-- elements defined in the NISO JATS, including the -->
21
+ <!-- elements for the XHTML-inspired and OASIS-inspired -->
22
+ <!-- table models, excluding only <mml:math> and -->
23
+ <!-- <xi:include>, whose namespaces JATS does not -->
24
+ <!-- control. -->
25
+ <!---->
26
+ <!-- TAG SET SPONSOR -->
27
+ <!-- National Center for Biotechnology -->
28
+ <!-- Information (NCBI) -->
29
+ <!-- National Library of Medicine (NLM) -->
30
+ <!---->
31
+ <!-- CREATED FOR: -->
32
+ <!-- This module was created for the JATS DTD Suite. -->
33
+ <!-- Digital archives and publishers may use the -->
34
+ <!-- DTD as is for markup of journal literature or -->
35
+ <!-- related material for archiving and transferring -->
36
+ <!-- such material between archives or create a -->
37
+ <!-- custom XML DTD from the Suite for -->
38
+ <!-- these purposes. -->
39
+ <!---->
40
+ <!-- This DTD is in the public domain. An organization -->
41
+ <!-- that wishes to create its own DTD from the suite -->
42
+ <!-- may do so without permission from NLM. -->
43
+ <!---->
44
+ <!-- The suite has been set up to be extended using a -->
45
+ <!-- new DTD file and a new DTD-specific customization -->
46
+ <!-- module to redefine the many Parameter Entities. -->
47
+ <!-- Do not modify the suite directly or redistribute -->
48
+ <!-- modified versions of the suite. -->
49
+ <!---->
50
+ <!-- In the interest of maintaining consistency and -->
51
+ <!-- clarity for potential users, NLM requests: -->
52
+ <!---->
53
+ <!-- 1. If you create a DTD from the JATS DTD Suite -->
54
+ <!-- and intend to stay compatible with the suite, -->
55
+ <!-- then please include the following statement -->
56
+ <!-- as a comment in all of your DTD modules: -->
57
+ <!-- "Created from, and fully compatible with, -->
58
+ <!-- the ANSI/NISO Z39.96 Journal Article Tag -->
59
+ <!-- Suite (JATS)." -->
60
+ <!---->
61
+ <!-- 2. If you alter one or more modules of the suite, -->
62
+ <!-- then please rename your version and all its -->
63
+ <!-- modules to avoid any confusion with the -->
64
+ <!-- original suite. Also, please include the -->
65
+ <!-- following statement as a comment in all your -->
66
+ <!-- DTD modules: -->
67
+ <!-- "Based in part on, but not fully compatible -->
68
+ <!-- with, the ANSI/NISO Z39.96 Journal Article -->
69
+ <!-- Tag Suite (JATS)." -->
70
+ <!---->
71
+ <!-- ORIGINAL CREATION DATE: -->
72
+ <!-- December 2002 -->
73
+ <!---->
74
+ <!-- CREATED BY: Mulberry Technologies, Inc. for the NISO Z39.96 -->
75
+ <!-- Working Group. Mulberry Technologies was -->
76
+ <!-- supported by National Center for Biotechnology -->
77
+ <!-- Information (NCBI), a center of the US National -->
78
+ <!-- Library of Medicine (NLM). -->
79
+ <!---->
80
+ <!-- This module is part of the JATS DTD Suite. The -->
81
+ <!-- Suite is a continuation of work done by NCBI, -->
82
+ <!-- Mulberry Technologies, and Inera, Inc. on the NLM -->
83
+ <!-- Journal Archiving and Interchange DTD Suite, which -->
84
+ <!-- was originally released in December, 2002. -->
85
+ <!---->
86
+ <!-- NLM thanks the Harvard University Libraries, both -->
87
+ <!-- for proposing that a draft archiving NLM DTD for -->
88
+ <!-- life sciences journals be extended to accommodate -->
89
+ <!-- journals in all disciplines and for sponsoring -->
90
+ <!-- Inera Inc.'s collaboration with other DTD -->
91
+ <!-- authors in completing NLM Version 1.0. The -->
92
+ <!-- Andrew W. Mellon Foundation provided support for -->
93
+ <!-- these important contributions. -->
94
+ <!---->
95
+ <!-- Suggestions for refinements and enhancements to -->
96
+ <!-- this DTD should be sent in email to: -->
97
+ <!-- jats@ncbi.nlm.nih.gov -->
98
+ <!-- ============================================================= -->
99
+ <!-- ============================================================= -->
100
+ <!-- DTD VERSION/CHANGE HISTORY -->
101
+ <!-- ============================================================= -->
102
+ <!--
103
+ Version Reason/Occasion (who) vx.x (yyyy-mm-dd)
104
+ ==============================================================
105
+ JATS Version 1.3 (ANSI/NISO Z39.96-2021)
106
+ (DAL/BTU) v1.3 (2021-06-10)
107
+
108
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
109
+ which requires voting by both the NISO and ANSI memberships
110
+ to be changed. This version of the NISO JATS was approved
111
+ by ANSI vote on June 10, 2021, so it supersedes all Committee
112
+ Drafts as well as the draft version JATS 1.3 2021 (the version
113
+ submitted for vote), becoming NISO JATS v1.3 20210610
114
+ (ANSI/NISO Z39.96-2019).
115
+
116
+ The file names and formal public identifiers have been
117
+ changed in the modules and the catalogs.
118
+
119
+ 13. JATS 'v1.3d2 20201130' becomes 'v1.3 20210610'
120
+ (final ANSI vote date)
121
+ 'ANSI/NISO Z39.96-2019' becomes 'ANSI/NISO Z39.96-2021'
122
+
123
+ ==============================================================
124
+ JATS Version 1.3d2 (ANSI/NISO Z39.96-2021)
125
+ (DAL/BTU) v1.3d2 (2020-11-30)
126
+
127
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
128
+ which requires voting by the NISO and ANSI memberships
129
+ to be changed.
130
+
131
+ This draft DTD represents an interim version of the
132
+ non-normative JATS DTD Suite, as an indication to JATS users
133
+ of the decisions that have been made by the JATS Standing
134
+ Committee. This draft has not yet been given public review
135
+ or voting; it is for Standing Committee review and
136
+ testing. The formal public identifiers have been changed
137
+ in the modules and the catalogs.
138
+
139
+ 12. JATS "v1.3d2 20201130" becomes 'v1.3 20210610' (second
140
+ committee draft following the final ANSI/NISO 1.2 vote)
141
+
142
+ ==============================================================
143
+ JATS Version 1.3d1 (ANSI/NISO Z39.96-2021)
144
+ (DAL/BTU) v1.3.d1 (2019-08-31)
145
+
146
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
147
+ which requires voting by the NISO and ANSI memberships
148
+ to be changed.
149
+
150
+ This draft DTD represents an interim version of the
151
+ non-normative JATS DTD Suite, as an indication to JATS users
152
+ of the decisions that have been made by the JATS Standing
153
+ Committee. This draft has not yet been given public review
154
+ or voting. The formal public identifiers were changed in the
155
+ modules and the catalogs.
156
+
157
+ 11. JATS "1.2" becomes "v1.3d1 20190831" (first committee
158
+ draft following the final ANSI/NISO vote)
159
+
160
+ ==============================================================
161
+ JATS Version 1.2 (ANSI/NISO Z39.96-2021)
162
+ (DAL/BTU) v1.2 (2019-02-08)
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 vote on Feb 08, 2019, so it supersedes all Committee
168
+ Drafts as well as the draft version JATS 1.2 2018 (the version
169
+ submitted for vote), becoming NISO JATS v1.2 20190208
170
+ (ANSI/NISO Z39.96-2021).
171
+
172
+ 10. JATS "1.2" becomes "v1.2 20190208" (final ANSI vote date)
173
+ "ANSI/NISO Z39.96-2015" becomes "ANSI/NISO Z39.96-2019"
174
+
175
+ ==============================================================
176
+ JATS Version 1.2 (ANSI/NISO Z39.96-2018)
177
+ (DAL/BTU) v1.2 (2018-11-30)
178
+
179
+ NISO JATS is a continuing maintenance NISO Standard, which
180
+ requires voting by the both the NISO and ANSI membership
181
+ to be changed. This version of the NISO JATS was approved
182
+ by ANSI and NISO vote, so it supersedes all Committee Drafts
183
+ and becoming NISO JATS 1.2 (ANSI/NISO Z39.96-2018).
184
+
185
+ 9. JATS "1.2d2" and "v1.2d2 20180401" became
186
+ JATS "1.2" and "v1.2 20181130"
187
+
188
+ =============================================================
189
+ JATS Version 1.2d2 (DAL/BTU) v1.2d2 (2018-04-01)
190
+
191
+ JATS is a continuing maintenance NISO Standard, which
192
+ requires voting by the ANSI and NISO memberships to be changed.
193
+ BITS is under continuous maintenance, and is modified at the
194
+ discretion of the working group.
195
+
196
+ This draft DTD represents an interim version of the
197
+ non-normative JATS DTD Suite, as an indication to JATS users
198
+ the decisions that have been made by the JATS Standing
199
+ Committee. This draft has not yet been given public review
200
+ or voting. The formal public identifiers were changed in the
201
+ modules and the catalogs.
202
+
203
+ 8. BITS "2.0" and "v2.0 20151225" remain unchanged
204
+
205
+ JATS "1.2d1" and "v1.2d1 20171231" became
206
+ JATS "1.2d2" and "v1.2d2 20180401".
207
+
208
+ No module names were changed.
209
+
210
+ =============================================================
211
+ JATS Version 1.2d1 (ANSI/NISO Z39.96-2015)
212
+ (DAL/BTU) v1.2d1 (2017-12-31)
213
+
214
+ NISO JATS is a continuing maintenance NISO Standard, which
215
+ requires voting by the ANSI and NISO memberships to be changed.
216
+
217
+ This draft DTD represents an interim version of the
218
+ non-normative JATS DTD Suite, as an indication to JATS users
219
+ the decisions that have been made by the JATS Standing
220
+ Committee. This draft has not yet been given public review
221
+ or voting. The formal public identifiers were changed in the
222
+ modules and the catalogs.
223
+
224
+ 7. JATS "1.2d1" and "v1.2d1 20170631" became
225
+ JATS "1.2d1" and "v1.2d1 20171231".
226
+
227
+ =============================================================
228
+ JATS Version 1.2d1 (DAL/BTU) v1.2d1 (2017-06-31)
229
+
230
+ NISO JATS is a continuing maintenance NISO Standard, which
231
+ requires voting by the ANSI and NISO memberships to be changed.
232
+
233
+ This draft DTD represents an interim version of the
234
+ non-normative JATS DTD Suite, as an indication to JATS users
235
+ the decisions that have been made by the JATS Standing
236
+ Committee. This draft has not yet been given public review
237
+ or voting. The formal public identifiers were changed in the
238
+ modules and the catalogs.
239
+
240
+ 6. JATS became version "1.2d1" and "v1.2d1 20170631"
241
+
242
+ =============================================================
243
+ JATS Version 1.1 (DAL/BTU) v1.1 (2015-12-15)
244
+
245
+ JATS is a continuing maintenance NISO Standard, which
246
+ requires voting by the ANSI and NISO memberships to be changed.
247
+ JATS 1.1 was approved in late 2015, so the formal public
248
+ identifiers were changed in the modules and the catalogs.
249
+ No model or attribute changes were made at this time.
250
+
251
+ 5. JATS became version "1.1" and "v1.1 20151215"
252
+ BITS remained version "2.0" but becomes "v2.0 20151225"
253
+
254
+ =============================================================
255
+ JATS Version 1.1d3 (DAL/BTU) v1.1d3 (2015-03-01)
256
+
257
+ The changes in this release are in response to NISO
258
+ License and Indicators Recommended Practice.
259
+
260
+ NISO JATS is a continuing maintenance NISO Standard, which
261
+ requires voting by the NISO membership to be changed. This
262
+ Committee Draft 1.1d3 will be sent to the NISO voting
263
+ membership, to become (if approved) NISO JATS 1.1.
264
+
265
+ This draft DTD represents an interim version of the
266
+ non-normative JATS DTD Suite, as an indication to JATS users
267
+ the decisions that have been made by the JATS Standing
268
+ Committee.
269
+
270
+ 4. JATS became version "1.1d3" and "v1.1d3 20150301"
271
+
272
+ =============================================================
273
+ JATS Version 1.1d2 (DAL/BTU) v1.1d2 (2014-09-30)
274
+
275
+ NISO JATS is a continuing maintenance NISO Standard, which
276
+ requires voting by the NISO membership to be changed. This
277
+ Committee Draft 1.1d2 will be sent to the NISO voting
278
+ membership, to become (if approved) NISO JATS 1.1.
279
+
280
+ This catalog represents an interim version of the
281
+ non-normative JATS DTD Suite, as an indication to JATS users
282
+ the decisions that have been made by the JATS Standing
283
+ Committee.
284
+
285
+ 3. JATS became version "1.1d2" and "v1.1d2 20140930//EN"
286
+
287
+ =============================================================
288
+ NISO JATS Version 1.1d1 (DAL/BTU) v1.1 (2013-11-15)
289
+
290
+ ANSI/NISO Z39.96-2012 (pre-release for V1.0 BITS; Version 1.1d1)
291
+
292
+ NISO JATS Standing Committee met and answered the requests and
293
+ suggestions from the NISO request forms.
294
+
295
+ Details concerning ANSI/NISO Z39.96-2012 JATS-based DTDs,
296
+ XSDs, RNGs and supporting documentation are available at
297
+ http://jats.nlm.nih.gov/1.3d2/
298
+
299
+ 2. XML Base
300
+ Added the attribute @xml:base to the Global (common)
301
+ attributes used on all elements.
302
+
303
+ =============================================================
304
+ -->
305
+ <!-- ============================================================= -->
306
+ <!-- NISO JATS COMMON ATTRIBUTES -->
307
+ <!-- ============================================================= -->
308
+ <!-- COMMON ATTRIBUTES -->
309
+ <!--
310
+ These lists of attributes will be added to
311
+ nearly every element, in both the document
312
+ metadata and the document body, of the entire
313
+ Tag Set:
314
+ - including table elements for both the
315
+ XHTML-inspired and OASIS-inspired
316
+ table model elements
317
+ - excluding only <mml:math> and
318
+ <xi:include> (whose namespaces JATS
319
+ does not control).
320
+ Great care should be taken to use these
321
+ attributes judiciously, not as a shortcut to
322
+ thinking through where an attribute should be
323
+ used. Potential use cases include adding
324
+ @xml:lang or some RDFa attribute to every
325
+ elements.
326
+ -->
327
+ <!-- BASE ATTRIBUTES -->
328
+ <!--
329
+ Holds all the common attributes except @id.
330
+ Used to keep the two common attribute lists
331
+ in sync. To add a global attribute, modify
332
+ this list.
333
+ -->
334
+ <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
335
+ <define name="jats-base-atts">
336
+ <optional>
337
+ <attribute name="xml:base"/>
338
+ </optional>
339
+ </define>
340
+ <!-- JATS COMMON ATTRIBUTES -->
341
+ <!--
342
+ Holds all the common attributes, as defined in
343
+ the base attribute parameter entity, plus an
344
+ optional @id.
345
+ -->
346
+ <define name="jats-common-atts">
347
+ <optional>
348
+ <attribute name="id">
349
+ <data type="ID"/>
350
+ </attribute>
351
+ </optional>
352
+ <ref name="jats-base-atts"/>
353
+ </define>
354
+ <!-- JATS COMMON ATTRIBUTES (ID REQUIRED) -->
355
+ <!--
356
+ Holds all the common attributes, as defined in
357
+ the base attribute parameter entity, plus a
358
+ required @id.
359
+ -->
360
+ <define name="jats-common-atts-id-required">
361
+ <attribute name="id">
362
+ <data type="ID"/>
363
+ </attribute>
364
+ <ref name="jats-base-atts"/>
365
+ </define>
366
+ </grammar>
367
+ <!-- ================== End JATS Common Attributes Module ======== -->