@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,340 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- ============================================================= -->
3
+ <!-- MODULE: BITS Embedded Index Element Module -->
4
+ <!-- VERSION: BITS 2.0 -->
5
+ <!-- DATE: June 2015 -->
6
+ <!---->
7
+ <!-- ============================================================= -->
8
+ <!-- ============================================================= -->
9
+ <!-- PUBLIC DOCUMENT TYPE DEFINITION -->
10
+ <!-- TYPICAL INVOCATION -->
11
+ <!--
12
+ "-//NLM//DTD BITS Embedded Index Element Module v2.0 20151225//EN"
13
+ Delivered as file "BITS-embedded-index2.ent"
14
+ -->
15
+ <!-- ============================================================= -->
16
+ <!-- ============================================================= -->
17
+ <!-- SYSTEM: Book Interchange Tag Suite -->
18
+ <!---->
19
+ <!-- PURPOSE: Defines the index terms to be embedded into the -->
20
+ <!-- narrative of a document so that an Index can be -->
21
+ <!-- created programmatically. -->
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 DTD was created as a superset customization -->
30
+ <!-- of the ANSI/NISO JATS Z39.96-2012 Version 1.0 -->
31
+ <!-- Journal Article Tag Set. -->
32
+ <!---->
33
+ <!-- Digital archives and publishers may use the -->
34
+ <!-- DTD as is for markup of books or book-like -->
35
+ <!-- material for archiving and transferring -->
36
+ <!-- such material between archives or they may create -->
37
+ <!-- a custom XML DTD from the BITS 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 new DTD-specific customization -->
46
+ <!-- modules 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 BITS 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 Book Interchange Tag Suite (BITS). -->
59
+ <!---->
60
+ <!-- 2. If you alter one or more modules of the suite, -->
61
+ <!-- then please rename your version and all its -->
62
+ <!-- modules to avoid any confusion with the -->
63
+ <!-- original suite. Also, please include the -->
64
+ <!-- following statement as a comment in all your -->
65
+ <!-- DTD modules: -->
66
+ <!-- "Based in part on, but not fully compatible -->
67
+ <!-- with, the Book Interchange Tag Suite -->
68
+ <!-- (BITS)." -->
69
+ <!---->
70
+ <!-- ORIGINAL CREATION DATE: -->
71
+ <!-- April 2012 -->
72
+ <!---->
73
+ <!-- CREATED BY: Mulberry Technologies, Inc. for the National -->
74
+ <!-- National Center for Biotechnology Information -->
75
+ <!-- (NCBI), a center of the US National Library of -->
76
+ <!-- Medicine (NLM). -->
77
+ <!---->
78
+ <!-- The BITS Book Interchange DTD is built from the -->
79
+ <!-- Journal Archiving and Interchange DTD of the -->
80
+ <!-- ANSI/NISO Journal Article Tag Suite (JATS) -->
81
+ <!-- Version 1.1d1 (Z39.96-2015). -->
82
+ <!---->
83
+ <!-- Suggestions for refinements and enhancements to -->
84
+ <!-- this DTD should be sent in email to: -->
85
+ <!-- bits@ncbi.nlm.nih.gov -->
86
+ <!-- ============================================================= -->
87
+ <!-- ============================================================= -->
88
+ <!-- DTD VERSION/CHANGE HISTORY -->
89
+ <!-- ============================================================= -->
90
+ <!--
91
+ Version Reason/Occasion (who) vx.x (yyyy-mm-dd)
92
+ =============================================================
93
+ BITS Version 2.0 (DAL/BTU) v2.0 (2015-12-25)
94
+ JATS Version 1.1 (DAL/BTU) v1.1 (2015-12-15)
95
+
96
+ JATS is a continuing maintenance NISO Standard, which
97
+ requires voting by the ANSI and NISO memberships to be changed.
98
+ JATS 1.1 was approved in late 2015, and BITS modified to use
99
+ the most recent version. No other changes to BITS were made.
100
+
101
+ 3. BITS remained version "2.0" but becomes "v2.0 20151225"
102
+ JATS became version "1.1" and "v1.1 20151215"
103
+
104
+ =============================================================
105
+ BITS Version 2.0 (DAL/BTU) v2.0 (2015-03-15)
106
+ JATS Version 1.1 (DAL/BTU) v1.1 (2015-03-01)
107
+
108
+ BITS was modified, based on user feedback collected in 2014
109
+ and January/February 2015, according to the decisions
110
+ made by the BITS Working Group. This DTD represents current
111
+ BITS and an interim version of the non-normative JATS DTD
112
+ Suite (version 1.1), as an indication to JATS users of
113
+ the decisions that have been made by the JATS Standing
114
+ Committee.
115
+
116
+ NISO JATS is a continuing maintenance NISO Standard, which
117
+ requires voting by the NISO membership to be changed. This
118
+ Committee Draft 1.1 will be sent to the NISO voting
119
+ membership, to become (if approved) NISO JATS 1.1.
120
+
121
+ 2. BITS became version "2.0" and "v2.0 20150630"
122
+ JATS became version "1.1" and "v1.1 20150301"
123
+
124
+ =============================================================
125
+ BITS Version 1.1 (DAL/BTU) v1.1 (2014-09-30)
126
+ JATS Version 1.1d2 (DAL/BTU) v1.1d2 (2014-09-30)
127
+
128
+ NISO JATS is a continuing maintenance NISO Standard, which
129
+ requires voting by the NISO membership to be changed. This
130
+ Committee Draft 1.1d2 will be sent to the NISO voting
131
+ membership, to become (if approved) NISO JATS 1.1.
132
+
133
+ This catalog represents an interim version of the
134
+ non-normative JATS DTD Suite, as an indication to JATS users
135
+ the decisions that have been made by the JATS Standing
136
+ Committee.
137
+
138
+ 1. BITS became version "1.1" and "v1.1 20140930//EN"
139
+ JATS became version "1.1d2" and "v1.1d2 20140930//EN"
140
+
141
+ =============================================================
142
+ -->
143
+ <!-- ============================================================= -->
144
+ <!-- PARAMETER ENTITIES FOR ATTRIBUTE LISTS -->
145
+ <!-- ============================================================= -->
146
+ <!-- INDEX-TERM ATTRIBUTES -->
147
+ <!--
148
+ Attribute list for <index-term> element.
149
+ The attribute index-type names
150
+ the specific indexes in which this term
151
+ should be used. Contains an index name or
152
+ series of index names.
153
+ -->
154
+ <!-- INDEX-TERM RANGE END ATTRIBUTES -->
155
+ <!--
156
+ Attribute list for <index-term-range-end>
157
+ element.
158
+ -->
159
+ <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
160
+ <define name="index-term-range-end-atts">
161
+ <ref name="jats-common-atts"/>
162
+ <attribute name="rid">
163
+ <data type="IDREF"/>
164
+ </attribute>
165
+ </define>
166
+ <!-- SEE ATTRIBUTES -->
167
+ <!-- Attribute list for <see> element. -->
168
+ <define name="see-atts">
169
+ <ref name="jats-common-atts"/>
170
+ <optional>
171
+ <attribute name="rid">
172
+ <data type="IDREFS"/>
173
+ </attribute>
174
+ </optional>
175
+ <optional>
176
+ <attribute name="content-type"/>
177
+ </optional>
178
+ <optional>
179
+ <attribute name="specific-use"/>
180
+ </optional>
181
+ <optional>
182
+ <attribute name="xml:lang">
183
+ <data type="NMTOKEN"/>
184
+ </attribute>
185
+ </optional>
186
+ </define>
187
+ <!-- SEE-ALSO ATTRIBUTES -->
188
+ <!-- Attribute list for <see-also> element. -->
189
+ <!-- ============================================================= -->
190
+ <!-- INDEX ELEMENTS -->
191
+ <!-- ============================================================= -->
192
+ <!-- INDEX TERM MODEL -->
193
+ <!--
194
+ Content model for the embedded index term
195
+ <index-term> element.
196
+ -->
197
+ <define name="index-term-model">
198
+ <ref name="term"/>
199
+ <choice>
200
+ <ref name="index-term"/>
201
+ <zeroOrMore>
202
+ <choice>
203
+ <ref name="see"/>
204
+ <ref name="see-also"/>
205
+ </choice>
206
+ </zeroOrMore>
207
+ </choice>
208
+ </define>
209
+ <!-- INDEX TERM -->
210
+ <!--
211
+ The index term to be embedded into the
212
+ narrative of a document so that an Index
213
+ can be created programmatically. An
214
+ <index-term> is either a single target point
215
+ or the start of an index range. When it is the
216
+ start of a range, an @id attribute is
217
+ required, so that the <index-term-range-end>
218
+ element can point to the start of the range.
219
+ Details at:
220
+ http://jats.nlm.nih.gov/extensions/bits/2.0/index.html?elem=index-term
221
+ -->
222
+ <define name="index-term">
223
+ <element name="index-term">
224
+ <ref name="index-term-attlist"/>
225
+ <ref name="index-term-model"/>
226
+ </element>
227
+ </define>
228
+ <define name="index-term-attlist" combine="interleave">
229
+ <ref name="index-term-atts"/>
230
+ </define>
231
+ <!-- INDEX TERM RANGE END MODEL -->
232
+ <!--
233
+ Content model for the embedded index term
234
+ <index-term> element.
235
+ -->
236
+ <define name="index-term-range-end-model">
237
+ <empty/>
238
+ </define>
239
+ <!-- INDEX TERM RANGE END -->
240
+ <!--
241
+ An index term embedded into the narrative
242
+ of a document may be either a single point
243
+ target or the start of a range. When the
244
+ <index-term> is the start of a range, the
245
+ @rid attribute of an <index-term-range-end>
246
+ must point to the @id of the <index-term>.
247
+ Remarks: This is an EMPTY element, since all
248
+ the information naming the index term is
249
+ already present in the <index-term> element
250
+ to which this element points.
251
+ Details at:
252
+ http://jats.nlm.nih.gov/extensions/bits/2.0/index.html?elem=index-term-range-end
253
+ -->
254
+ <define name="index-term-range-end">
255
+ <element name="index-term-range-end">
256
+ <ref name="index-term-range-end-attlist"/>
257
+ <ref name="index-term-range-end-model"/>
258
+ </element>
259
+ </define>
260
+ <define name="index-term-range-end-attlist" combine="interleave">
261
+ <ref name="index-term-range-end-atts"/>
262
+ </define>
263
+ <!-- SEE ELEMENTS -->
264
+ <!--
265
+ The elements that can be included along with
266
+ data characters inside the content model of
267
+ a <see> element.
268
+ Design Note: All inline mixes begin with an
269
+ OR bar, but since %simple-phrase; is an
270
+ inline mix, the OR bar is already there.
271
+ -->
272
+ <define name="see-elements">
273
+ <choice>
274
+ <ref name="simple-phrase"/>
275
+ <ref name="block-math.class"/>
276
+ <ref name="simple-display-noalt.class"/>
277
+ </choice>
278
+ </define>
279
+ <!-- SEE -->
280
+ <!--
281
+ Used in an embedded index entry to hold
282
+ preferred terms that make "See" references
283
+ in a generated index.
284
+ Details at:
285
+ http://jats.nlm.nih.gov/extensions/bits/2.0/index.html?elem=see
286
+ -->
287
+ <define name="see">
288
+ <element name="see">
289
+ <ref name="see-attlist"/>
290
+ <zeroOrMore>
291
+ <choice>
292
+ <text/>
293
+ <ref name="see-elements"/>
294
+ </choice>
295
+ </zeroOrMore>
296
+ </element>
297
+ </define>
298
+ <define name="see-attlist" combine="interleave">
299
+ <ref name="see-atts"/>
300
+ </define>
301
+ <!-- SEE-ALSO ELEMENTS -->
302
+ <!--
303
+ The elements that can be included along with
304
+ data characters inside the content model of
305
+ a <see-also> element.
306
+ Design Note: All inline mixes begin with an
307
+ OR bar, but since %simple-phrase; is an
308
+ inline mix, the OR bar is already there.
309
+ -->
310
+ <define name="see-also-elements">
311
+ <choice>
312
+ <ref name="simple-phrase"/>
313
+ <ref name="block-math.class"/>
314
+ <ref name="simple-display-noalt.class"/>
315
+ </choice>
316
+ </define>
317
+ <!-- SEE-ALSO TERM -->
318
+ <!--
319
+ Used in an embedded index entry to hold
320
+ preferred terms that make "See Also"
321
+ references in a generated index.
322
+ Details at:
323
+ http://jats.nlm.nih.gov/extensions/bits/2.0/index.html?elem=see-also
324
+ -->
325
+ <define name="see-also">
326
+ <element name="see-also">
327
+ <ref name="see-also-attlist"/>
328
+ <zeroOrMore>
329
+ <choice>
330
+ <text/>
331
+ <ref name="see-also-elements"/>
332
+ </choice>
333
+ </zeroOrMore>
334
+ </element>
335
+ </define>
336
+ <define name="see-also-attlist" combine="interleave">
337
+ <ref name="see-also-atts"/>
338
+ </define>
339
+ </grammar>
340
+ <!-- ================== End BITS Embedded Index Elements ========= -->