@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,427 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- ============================================================= -->
3
+ <!-- MODULE: Journal Archiving DTD Customize Classes Module -->
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) Journal Archiving DTD Customize Classes Module v1.3 20210610//EN"
13
+ Delivered as file "JATS-archivecustom-classes1-3.ent"
14
+ -->
15
+ <!-- ============================================================= -->
16
+ <!-- ============================================================= -->
17
+ <!-- SYSTEM: Journal Archiving and Interchange DTD of the -->
18
+ <!-- JATS DTD Suite -->
19
+ <!---->
20
+ <!-- PURPOSE: To declare the Parameter Entities (PEs) used to -->
21
+ <!-- over-ride the JATS DTD Suite default named -->
22
+ <!-- element classes. -->
23
+ <!---->
24
+ <!-- Note: Since PEs must be declared before they -->
25
+ <!-- are used, this module must be called before the -->
26
+ <!-- content modules that declare elements, and before -->
27
+ <!-- the default classes module. -->
28
+ <!---->
29
+ <!-- TAG SET SPONSOR -->
30
+ <!-- National Center for Biotechnology -->
31
+ <!-- Information (NCBI) -->
32
+ <!-- National Library of Medicine (NLM) -->
33
+ <!---->
34
+ <!-- CREATED FOR: -->
35
+ <!-- This DTD was created from the JATS DTD Suite. -->
36
+ <!-- Digital archives and publishers may use the -->
37
+ <!-- DTD as is for markup of journal literature or -->
38
+ <!-- related material for archiving and transferring -->
39
+ <!-- such material between archives or create a -->
40
+ <!-- custom XML DTD from the Suite for -->
41
+ <!-- these purposes. -->
42
+ <!---->
43
+ <!-- This DTD is in the public domain. An organization -->
44
+ <!-- that wishes to create its own DTD from the suite -->
45
+ <!-- may do so without permission from NLM. -->
46
+ <!---->
47
+ <!-- The suite has been set up to be extended using a -->
48
+ <!-- new DTD file and a new DTD-specific customization -->
49
+ <!-- module to redefine the many Parameter Entities. -->
50
+ <!-- Do not modify the suite directly or redistribute -->
51
+ <!-- modified versions of the suite. -->
52
+ <!---->
53
+ <!-- In the interest of maintaining consistency and -->
54
+ <!-- clarity for potential users, NLM requests: -->
55
+ <!---->
56
+ <!-- 1. If you create a DTD from the JATS DTD Suite -->
57
+ <!-- and intend to stay compatible with the suite, -->
58
+ <!-- then please include the following statement -->
59
+ <!-- as a comment in all of your DTD modules: -->
60
+ <!-- "Created from, and fully compatible with, -->
61
+ <!-- the ANSI/NISO Z39.96 Journal Article Tag -->
62
+ <!-- Suite (JATS)." -->
63
+ <!---->
64
+ <!-- 2. If you alter one or more modules of the suite, -->
65
+ <!-- then please rename your version and all its -->
66
+ <!-- modules to avoid any confusion with the -->
67
+ <!-- original suite. Also, please include the -->
68
+ <!-- following statement as a comment in all your -->
69
+ <!-- DTD modules: -->
70
+ <!-- "Based in part on, but not fully compatible -->
71
+ <!-- with, the ANSI/NISO Z39.96 Journal Article -->
72
+ <!-- Tag Suite (JATS)." -->
73
+ <!---->
74
+ <!-- ORIGINAL CREATION DATE: -->
75
+ <!-- August 2004 -->
76
+ <!---->
77
+ <!-- CREATED BY: Mulberry Technologies, Inc. for the NISO Z39.96 -->
78
+ <!-- Working Group. Mulberry Technologies was -->
79
+ <!-- supported by National Center for Biotechnology -->
80
+ <!-- Information (NCBI), a center of the US National -->
81
+ <!-- Library of Medicine (NLM). -->
82
+ <!---->
83
+ <!-- The Journal Archiving and Interchange DTD is -->
84
+ <!-- built from the JATS DTD Suite. -->
85
+ <!---->
86
+ <!-- This DTD and the Suite are a continuation of -->
87
+ <!-- the work done by NCBI, Mulberry Technologies, -->
88
+ <!-- and Inera Inc. on the NLM Journal Archiving -->
89
+ <!-- and Interchange DTD Suite, which was originally -->
90
+ <!-- released in December, 2002. -->
91
+ <!---->
92
+ <!-- NLM thanks the Harvard University Libraries, both -->
93
+ <!-- for proposing that a draft archiving NLM DTD for -->
94
+ <!-- life sciences journals be extended to accommodate -->
95
+ <!-- journals in all disciplines and for sponsoring -->
96
+ <!-- Inera Inc.'s collaboration with other DTD -->
97
+ <!-- authors in completing NLM Version 1.0. The -->
98
+ <!-- Andrew W. Mellon Foundation provided support for -->
99
+ <!-- these important contributions. -->
100
+ <!---->
101
+ <!-- Suggestions for refinements and enhancements to -->
102
+ <!-- this DTD should be sent in email to: -->
103
+ <!-- jats@ncbi.nlm.nih.gov -->
104
+ <!-- ============================================================= -->
105
+ <!-- ============================================================= -->
106
+ <!-- DTD VERSION/CHANGE HISTORY -->
107
+ <!-- ============================================================= -->
108
+ <!--
109
+
110
+ Version Reason/Occasion (who) vx.x (yyyy-mm-dd)
111
+ ==============================================================
112
+ JATS Version 1.3 (ANSI/NISO Z39.96-2021)
113
+ (DAL/BTU) v1.3 (2021-06-10)
114
+
115
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
116
+ which requires voting by both the NISO and ANSI memberships
117
+ to be changed. This version of the NISO JATS was approved
118
+ by ANSI vote on June 10, 2021, so it supersedes all Committee
119
+ Drafts as well as the draft version JATS 1.3 2021 (the version
120
+ submitted for vote), becoming NISO JATS v1.3 20210610
121
+ (ANSI/NISO Z39.96-2019).
122
+
123
+ The file names and formal public identifiers have been
124
+ changed in the modules and the catalogs.
125
+
126
+ 16. JATS 'v1.3d2 20201130' becomes 'v1.3 20210610'
127
+ (final ANSI vote date)
128
+ 'ANSI/NISO Z39.96-2019' becomes 'ANSI/NISO Z39.96-2021'
129
+
130
+ ==============================================================
131
+ JATS Version 1.3d2 (ANSI/NISO Z39.96-2021)
132
+ (DAL/BTU) v1.3d2 (2020-11-30)
133
+
134
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
135
+ which requires voting by the NISO and ANSI memberships
136
+ to be changed.
137
+
138
+ This draft DTD represents an interim version of the
139
+ non-normative JATS DTD Suite, as an indication to JATS users
140
+ of the decisions that have been made by the JATS Standing
141
+ Committee. This draft has not yet been given public review
142
+ or voting; it is for Standing Committee review and
143
+ testing. The formal public identifiers have been changed
144
+ in the modules and the catalogs.
145
+
146
+ 15. JATS "v1.3d2 20201130" becomes 'v1.3 20210610' (second
147
+ committee draft following the final ANSI/NISO 1.2 vote)
148
+
149
+ ==============================================================
150
+ JATS Version 1.3d1 (ANSI/NISO Z39.96-2021)
151
+ (DAL/BTU) v1.3.d1 (2019-08-31)
152
+
153
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
154
+ which requires voting by the NISO and ANSI memberships
155
+ to be changed.
156
+
157
+ This draft DTD represents an interim version of the
158
+ non-normative JATS DTD Suite, as an indication to JATS users
159
+ of the decisions that have been made by the JATS Standing
160
+ Committee. This draft has not yet been given public review
161
+ or voting. The formal public identifiers were changed in the
162
+ modules and the catalogs.
163
+
164
+ 14. JATS "1.2" becomes "v1.3d1 20190831" (first committee
165
+ draft following the final ANSI/NISO vote)
166
+
167
+ ==============================================================
168
+ JATS Version 1.2 (ANSI/NISO Z39.96-2021)
169
+ (DAL/BTU) v1.2 (2019-02-08)
170
+
171
+ NISO JATS is a continuing maintenance NISO Standard, which
172
+ requires voting by the both the NISO and ANSI membership
173
+ to be changed. This version of the NISO JATS was approved
174
+ by ANSI vote on Feb 08, 2019, so it supersedes all Committee
175
+ Drafts as well as the draft version JATS 1.2 2018 (the version
176
+ submitted for vote), becoming NISO JATS v1.2 20190208
177
+ (ANSI/NISO Z39.96-2021).
178
+
179
+ 13. JATS "1.2" becomes "v1.2 20190208" (final ANSI vote date)
180
+ "ANSI/NISO Z39.96-2015" becomes "ANSI/NISO Z39.96-2019"
181
+
182
+ ==============================================================
183
+ JATS Version 1.2 (ANSI/NISO Z39.96-2018)
184
+ (DAL/BTU) v1.2 (2018-11-30)
185
+
186
+ NISO JATS is a continuing maintenance NISO Standard, which
187
+ requires voting by the both the NISO and ANSI membership
188
+ to be changed. This version of the NISO JATS was approved
189
+ by ANSI and NISO vote, so it supersedes all Committee Drafts
190
+ and becoming NISO JATS 1.2 (ANSI/NISO Z39.96-2018).
191
+
192
+ 12. JATS "1.2d2" and "v1.2d2 20180401" became
193
+ JATS "1.2" and "v1.2 20181130"
194
+
195
+ =============================================================
196
+ JATS Version 1.2d2 (DAL/BTU) v1.2d2 (2018-04-01)
197
+
198
+ JATS is a continuing maintenance NISO Standard, which
199
+ requires voting by the ANSI and NISO memberships to be changed.
200
+ BITS is under continuous maintenance, and is modified at the
201
+ discretion of the working group.
202
+
203
+ This draft DTD represents an interim version of the
204
+ non-normative JATS DTD Suite, as an indication to JATS users
205
+ the decisions that have been made by the JATS Standing
206
+ Committee. This draft has not yet been given public review
207
+ or voting. The formal public identifiers were changed in the
208
+ modules and the catalogs.
209
+
210
+ 11. BITS "2.0" and "v2.0 20151225" remains unchanged
211
+
212
+ JATS "1.2d1" and "v1.2d1 20171231" became
213
+ JATS "1.2d2" and "v1.2d2 20180401".
214
+
215
+ No module names were changed.
216
+
217
+ =============================================================
218
+ JATS Version 1.2d1 (ANSI/NISO Z39.96-2015)
219
+ (DAL/BTU) v1.2d1 (2017-12-31)
220
+
221
+ NISO JATS is a continuing maintenance NISO Standard, which
222
+ requires voting by the ANSI and NISO memberships to be changed.
223
+
224
+ This draft DTD represents an interim version of the
225
+ non-normative JATS DTD Suite, as an indication to JATS users
226
+ the decisions that have been made by the JATS Standing
227
+ Committee. This draft has not yet been given public review
228
+ or voting. The formal public identifiers were changed in the
229
+ modules and the catalogs.
230
+
231
+ 10. JATS "1.2d1" and "v1.2d1 20170631" became
232
+ JATS "1.2d1" and "v1.2d1 20171231".
233
+
234
+ =============================================================
235
+ JATS Version 1.2d1 (DAL/BTU) v1.2d1 (2017-06-31)
236
+
237
+ NISO JATS is a continuing maintenance NISO Standard, which
238
+ requires voting by the ANSI and NISO memberships to be changed.
239
+
240
+ This draft DTD represents an interim version of the
241
+ non-normative JATS DTD Suite, as an indication to JATS users
242
+ the decisions that have been made by the JATS Standing
243
+ Committee. This draft has not yet been given public review
244
+ or voting. The formal public identifiers were changed in the
245
+ modules and the catalogs.
246
+
247
+ 9. JATS became version "1.2d1" and "v1.2d1 20170631"
248
+
249
+ =============================================================
250
+ JATS Version 1.1 (DAL/BTU) v1.1 (2015-12-15)
251
+
252
+ JATS is a continuing maintenance NISO Standard, which
253
+ requires voting by the ANSI and NISO memberships to be changed.
254
+ JATS 1.1 was approved in late 2015, so the formal public
255
+ identifiers were changed in the modules and the catalogs.
256
+ No model or attribute changes were made at this time.
257
+
258
+ 8. JATS became version "1.1" and "v1.1 20151215"
259
+ BITS remained version "2.0" but becomes "v2.0 20151225"
260
+
261
+ =============================================================
262
+ JATS Version 1.1d3 (DAL/BTU) v1.1d3 (2015-03-01)
263
+
264
+ The changes in this release are in response to NISO
265
+ License and Indicators Recommended Practice.
266
+
267
+ NISO JATS is a continuing maintenance NISO Standard, which
268
+ requires voting by the NISO membership to be changed. This
269
+ Committee Draft 1.1d3 will be sent to the NISO voting
270
+ membership, to become (if approved) NISO JATS 1.1.
271
+
272
+ This draft DTD represents an interim version of the
273
+ non-normative JATS DTD Suite, as an indication to JATS users
274
+ the decisions that have been made by the JATS Standing
275
+ Committee.
276
+
277
+ 7. JATS became version "1.1d3" and "v1.1 20150301//EN"
278
+
279
+ =============================================================
280
+ JATS Version 1.1d2 (DAL/BTU) v1.1d2 (2014-09-30)
281
+
282
+ NISO JATS is a continuing maintenance NISO Standard, which
283
+ requires voting by the NISO membership to be changed. This
284
+ Committee Draft 1.1d2 will be sent to the NISO voting
285
+ membership, to become (if approved) NISO JATS 1.1.
286
+
287
+ This catalog represents an interim version of the
288
+ non-normative JATS DTD Suite, as an indication to JATS users
289
+ the decisions that have been made by the JATS Standing
290
+ Committee.
291
+
292
+ 6. JATS became version "1.1d2" and "v1.1d2 20140930//EN"
293
+
294
+ =============================================================
295
+ NISO JATS Version 1.0 (DAL/BTU) v1.0 (2012-xx-xx)
296
+
297
+ ANSI/NISO Z39.96-2012 (Version 1.0)
298
+
299
+ Details concerning ANSI/NISO Z39.96-2012 JATS-based DTDs,
300
+ XSDs, RNGs and supporting documentation are available at
301
+ http://jats.nlm.nih.gov/1.3d2/
302
+
303
+ 5. CITATION ALTERNATIVES - Added a new element
304
+ <citation-alternatives> to the citation.class. The element
305
+ will hold, for example, a single citation in multiple
306
+ languages or a single citation tagged as a <mixed-citation>
307
+ complete with punctuation and spacing and also as an
308
+ <element-citation> with all punctuation and spacing removed.
309
+
310
+ =============================================================
311
+ Version 0.4 (DAL/BTU) v0.4 (2011-01-31)
312
+
313
+ This Tag Set is in the process of becoming a NISO standard.
314
+ The version numbers are starting over from 0.4", as a Trial
315
+ Use Draft, to be made into "Version 1.0" when the Tag Suite
316
+ becomes a NISO standard. Thus, the version number that would
317
+ have been "NLM Version 3.1 Draft" has become NISO JATS
318
+ "Version 0.4".
319
+
320
+ Details on NISO Trial Use Draft Version 0.4 are available at
321
+ http://jats.nlm.nih.gov/JATS-0.4.
322
+
323
+ 4. Updated the DTD-version attribute to "0.4"
324
+
325
+ 3. Updated the public identifier to "v0.4 20110131",
326
+ modified the formal public identifier to include "JATS (Z39.96)",
327
+ and the filename as delivered to include "JATS" and the
328
+ new version number "0".
329
+ http://jats.nlm.nih.gov/0.4.
330
+
331
+ 2. AFFILIATION ALTERNATIVES - Added the element <aff-alternatives>
332
+ to contrib-info.class to hold multiple <aff>s that are
333
+ representations of a single affiliation, for example, the name
334
+ of an institution in two languages or two scripts.
335
+
336
+ =============================================================
337
+ Version 3.0 (DAL/BTU) v3.0 (2007-10-31)
338
+
339
+ Version 3.0 is the first non-backward-compatible release.
340
+ In addition to the usual incremental changes, some
341
+ elements and attributes have been renamed and/or remodeled
342
+ to better meet user needs and to increase tag set consistency.
343
+ All module change histories are available through the Tag Suite
344
+ web site at http://dtd.nlm.nih.gov.
345
+
346
+ Details on version 3.0 are available at
347
+ http://dtd.nlm.nih.gov/3.0.
348
+
349
+ 1. Updated public identifier to "v3.0 20071031//EN"
350
+ -->
351
+ <!-- ============================================================= -->
352
+ <!--
353
+ Details concerning
354
+ ANSI/NISO Z39.96-2015 JATS-based DTDs, XSDs,
355
+ RNGs and supporting documentation are available at
356
+ http://jats.nlm.nih.gov/1.1/
357
+ -->
358
+ <!-- ============================================================= -->
359
+ <!-- METADATA CLASSES (articlemeta.ent) -->
360
+ <!-- ============================================================= -->
361
+ <!-- CONTRIBUTOR INFORMATION CLASS -->
362
+ <!--
363
+ Metadata about a contributor
364
+ Added <fn>
365
+ -->
366
+ <grammar xmlns="http://relaxng.org/ns/structure/1.0">
367
+ <define name="contrib-info.class">
368
+ <choice>
369
+ <ref name="address"/>
370
+ <ref name="aff"/>
371
+ <ref name="aff-alternatives"/>
372
+ <ref name="author-comment"/>
373
+ <ref name="bio"/>
374
+ <ref name="email"/>
375
+ <ref name="etal"/>
376
+ <ref name="ext-link"/>
377
+ <ref name="fn"/>
378
+ <ref name="on-behalf-of"/>
379
+ <ref name="role"/>
380
+ <ref name="uri"/>
381
+ <ref name="xref"/>
382
+ </choice>
383
+ </define>
384
+ <!-- ============================================================= -->
385
+ <!-- CITATION CLASSES (references.ent) -->
386
+ <!-- ============================================================= -->
387
+ <!-- CITATION CLASS ELEMENTS -->
388
+ <!--
389
+ Reference to an external document, as used
390
+ within, for example, the text of a
391
+ paragraph
392
+ -->
393
+ <define name="citation.class">
394
+ <choice>
395
+ <ref name="citation-alternatives"/>
396
+ <ref name="element-citation"/>
397
+ <ref name="mixed-citation"/>
398
+ <ref name="nlm-citation"/>
399
+ </choice>
400
+ </define>
401
+ <!-- CITATION MINUS ALTERNATIVES CLASS ELEMENTS -->
402
+ <!--
403
+ All the citation elements except the
404
+ <citation-alternatives> element.
405
+ -->
406
+ <define name="citation-minus-alt.class">
407
+ <choice>
408
+ <ref name="element-citation"/>
409
+ <ref name="mixed-citation"/>
410
+ <ref name="nlm-citation"/>
411
+ </choice>
412
+ </define>
413
+ <!-- ============================================================= -->
414
+ <!-- PRESENTATION INFO CLASSES -->
415
+ <!-- ============================================================= -->
416
+ <!-- X-GENERATED PUNCTUATION CLASS -->
417
+ <!--
418
+ Class containing a single element that will
419
+ hold generated punctuation or other
420
+ generatable text, for example, the commas or
421
+ semicolons between keywords.
422
+ -->
423
+ <define name="x.class">
424
+ <ref name="x"/>
425
+ </define>
426
+ </grammar>
427
+ <!-- ================== End Archiving Classes Customization ====== -->