@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,715 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- ============================================================= -->
3
+ <!-- MODULE: Custom Special Characters 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) JATS DTD Suite Custom Special Characters Module v1.3 20210610//EN"
13
+ Delivered as file "JATS-chars1-3.ent"
14
+ -->
15
+ <!-- ============================================================= -->
16
+ <!-- ============================================================= -->
17
+ <!-- SYSTEM: JATS DTD Suite -->
18
+ <!---->
19
+ <!-- PURPOSE: XML special character entities -->
20
+ <!---->
21
+ <!-- CONTAINS: 1) Definitions of DTD-specific and custom -->
22
+ <!-- special characters (as general entities -->
23
+ <!-- defined as hexadecimal or decimal character -->
24
+ <!-- entities - Unicode numbers) -->
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
+ 19. 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
+ 18. 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
+ 17. 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
+ 16. 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
+ 15. 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
+ 14. 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
+ 13. 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
+ 12. 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
+ 11. 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
+ 10. JATS became version "1.1d3" and "v1.1 20150301//EN"
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
+ 9. 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
+ 8. GLOBAL ATTRIBUTES - Added the new parameter entity
300
+ %jats-common-atts;
301
+ to every element in this module. This PE adds (for now) the
302
+ @id attribute and the @xml:base attribute to every element,
303
+ whether metadata or narrative.
304
+ Since the @id in this parameter entity is optional, a second
305
+ parameter entity jats-common-atts-id-required was also added.
306
+ The two are kept in sync with the jats-base-atts parameter
307
+ entity.
308
+
309
+ =============================================================
310
+ NISO JATS Version 1.0 (DAL/BTU) v1.0 (2012-xx-xx)
311
+
312
+ ANSI/NISO Z39.96-2012 (Version 1.0)
313
+
314
+ Details concerning ANSI/NISO Z39.96-2012 JATS-based DTDs,
315
+ XSDs, RNGs and supporting documentation are available at
316
+ http://jats.nlm.nih.gov/1.3d2/
317
+
318
+ 7. Updated the DTD-version attribute to "1.0" and the formal
319
+ public identifier to the date: "v1.0 20120330//EN".
320
+
321
+ =============================================================
322
+ Version 0.4 (DAL/BTU) v0.4 (2011-01-31)
323
+
324
+ This Tag Set is in the process of becoming a NISO standard.
325
+ The version numbers are starting over from 0.4", as a Trial
326
+ Use Draft, to be made into "Version 1.0" when the Tag Suite
327
+ becomes a NISO standard. Thus, the version number that would
328
+ have been "NLM Version 3.1 Draft" has become NISO JATS
329
+ "Version 0.4".
330
+
331
+ Details on NISO Trial Use Draft Version 0.4 are available at
332
+ http://jats.nlm.nih.gov/JATS-0.4.
333
+
334
+ 6. Updated the DTD-version attribute to "0.4"
335
+
336
+ 5. Updated the public identifier to "v0.4 20110131",
337
+ modified the formal public identifier to include "JATS (Z39.96)",
338
+ and the filename as delivered to include "JATS" and the
339
+ new version number "0".
340
+
341
+ 4. @SPECIFIC-USE and @XML:LANG - Added the @specific-use and
342
+ @xml:lang to the following elements:
343
+ - private-char through private-char-atts (@specific-use)
344
+
345
+ 3. PEs FOR CONTENT MODELS - Added parameter entity redefinitions
346
+ for the model of the <private-char> element.
347
+
348
+ 2. PEs FOR ATTLISTS - Added parameter entity redefinitions for the
349
+ attribute lists of the following elements: (no attributes or
350
+ values were changed)
351
+ - glyph-ref glyph-ref-atts
352
+ - glyph-data glyph-data-atts
353
+ - private-char private-char-atts
354
+
355
+ =============================================================
356
+ Version 3.0 (DAL/BTU) v3.0 (2007-10-31)
357
+
358
+ Version 3.0 is the first non-backward-compatible release.
359
+ In addition to the usual incremental changes, some
360
+ elements and attributes have been renamed and/or remodeled
361
+ to better meet user needs and to increase tag set consistency.
362
+ All module change histories are available through the Tag Suite
363
+ web site at http://dtd.nlm.nih.gov.
364
+
365
+ Details on version 3.0 are available at
366
+ http://dtd.nlm.nih.gov/3.0.
367
+
368
+ 1. Updated public identifier to "v3.0 20071031//EN"
369
+ -->
370
+ <!-- ============================================================= -->
371
+ <!--
372
+ Details concerning
373
+ ANSI/NISO Z39.96-2015 JATS-based DTDs, XSDs,
374
+ RNGs and supporting documentation are available at
375
+ http://jats.nlm.nih.gov/1.1/
376
+ -->
377
+ <!-- ============================================================= -->
378
+ <!-- DESIGN COMMENT -->
379
+ <!-- ============================================================= -->
380
+ <!--
381
+ This DTD Suite has been designed with Unicode
382
+ as the basic representation of all special
383
+ characters. The use of combining characters
384
+ is supported and encouraged as is the use
385
+ of entities defined by the STIX project
386
+ (http://www.ams.org/STIX/). Unicode values
387
+ in planes other than Plane 0 may be freely
388
+ used.
389
+
390
+ Use of private publisher entities and Unicode
391
+ Private Use Area is discouraged, but supported
392
+ with the <private-char> element, for which a
393
+ corresponding bitmap must be submitted.
394
+
395
+ In cases where an entity name has been generally
396
+ accepted with a corresponding Unicode number
397
+ and the entity has not been added to
398
+ the ISO standard entity sets, a named entity
399
+ may be defined below (e.g. &euro;).
400
+
401
+ Because of the potential for conflicts in
402
+ assignments by different publishers,
403
+ the JATS DTD Suite does not support assignment
404
+ of values in the Unicode Private Use Area.
405
+ Publishers who have defined characters in the
406
+ Private Use Area must remap those characters
407
+ to existing Unicode values (using combining
408
+ characters for special accented characters
409
+ where appropriate), or must submit bitmaps of
410
+ those characters using one of the two methods
411
+ supported under the <private-char> element.
412
+
413
+ Those custom publisher entities for which
414
+ corresponding Unicode values have not been
415
+ determined must be tagged with the
416
+ <private-char> element. Publishers must submit
417
+ bitmaps of those characters using one of the
418
+ two methods supported in the <private-char>
419
+ element.
420
+ -->
421
+ <!-- ============================================================= -->
422
+ <!--
423
+ COMMONLY ACCEPTED ENTITIES FOR UNICODE
424
+ GLYPHS
425
+ -->
426
+ <!-- ============================================================= -->
427
+ <!--
428
+ For each of the following entities a name
429
+ and a Unicode numerical character reference
430
+ is given. Where a unique Unicode character
431
+ could be determined, that character was used.
432
+ For some of the symbols combining characters
433
+ have been used. Do not use this space to
434
+ redefine characters already found in standard
435
+ ISO entity sets. Do not use this space to
436
+ define any character that cannot be
437
+ represented with Unicode.
438
+ -->
439
+ <!-- LATIN SMALL LETTER G WITH CARON -->
440
+ <!-- LATIN CAPITAL LETTER H WITH MACRON -->
441
+ <!-- EURO CURRENCY -->
442
+ <!-- FRANC CURRENCY -->
443
+ <!-- ============================================================= -->
444
+ <!-- ATTRIBUTE LISTS FOR PRIVATE CHARACTERS -->
445
+ <!-- ============================================================= -->
446
+ <!-- GLYPH DATA ATTRIBUTES -->
447
+ <!--
448
+ Attribute list for the <glyph-data>
449
+ element
450
+ -->
451
+ <grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
452
+ <define name="glyph-data-atts">
453
+ <ref name="jats-common-atts"/>
454
+ <optional>
455
+ <attribute name="fontchar"/>
456
+ </optional>
457
+ <optional>
458
+ <attribute name="fontname"/>
459
+ </optional>
460
+ <optional>
461
+ <attribute name="format">
462
+ <data type="NMTOKEN"/>
463
+ </attribute>
464
+ </optional>
465
+ <optional>
466
+ <attribute name="resolution"/>
467
+ </optional>
468
+ <optional>
469
+ <attribute name="xml:space" a:defaultValue="preserve">
470
+ <value>preserve</value>
471
+ </attribute>
472
+ </optional>
473
+ <optional>
474
+ <attribute name="x-size"/>
475
+ </optional>
476
+ <optional>
477
+ <attribute name="y-size"/>
478
+ </optional>
479
+ </define>
480
+ <!-- GLYPH REFERENCE ATTRIBUTES -->
481
+ <!--
482
+ Attribute list for the <glyph-ref>
483
+ element
484
+ -->
485
+ <define name="glyph-ref-atts">
486
+ <ref name="jats-common-atts"/>
487
+ <optional>
488
+ <attribute name="glyph-data">
489
+ <data type="IDREF"/>
490
+ </attribute>
491
+ </optional>
492
+ </define>
493
+ <!--
494
+ PRIVATE USE AREA AND CUSTOM CHARACTERS
495
+ ATTRIBUTES
496
+ -->
497
+ <!--
498
+ Attribute list for the <private-char>
499
+ element
500
+ -->
501
+ <define name="private-char-atts">
502
+ <ref name="jats-common-atts"/>
503
+ <optional>
504
+ <attribute name="description"/>
505
+ </optional>
506
+ <optional>
507
+ <attribute name="name"/>
508
+ </optional>
509
+ <optional>
510
+ <attribute name="specific-use"/>
511
+ </optional>
512
+ </define>
513
+ <!-- ============================================================= -->
514
+ <!-- PRIVATE USE AREA AND CUSTOM CHARACTERS -->
515
+ <!-- ============================================================= -->
516
+ <!--
517
+ Special characters defined by publishers as
518
+ custom entities or in the Unicode Private Use
519
+ Area may not be deposited as is. If they
520
+ cannot be remapped to existing Unicode values,
521
+ they must be submitted as a bitmap using
522
+ the <private-char> element. The most
523
+ repository-friendly technique is <glyph-data>
524
+ although individual bitmap files may be
525
+ submitted with inline-graphic.
526
+
527
+ We would like to thank Beacon Publishing and
528
+ the APS (American Physical Society) for
529
+ providing us with this technique.
530
+ -->
531
+ <!-- PRIVATE CHARACTER MODEL -->
532
+ <!--
533
+ The content model for the <private-char>
534
+ element
535
+ -->
536
+ <define name="private-char-model">
537
+ <choice>
538
+ <choice>
539
+ <ref name="glyph-data"/>
540
+ <ref name="glyph-ref"/>
541
+ </choice>
542
+ <zeroOrMore>
543
+ <ref name="inline-graphic"/>
544
+ </zeroOrMore>
545
+ </choice>
546
+ </define>
547
+ <!-- PRIVATE CHARACTER (CUSTOM OR UNICODE) -->
548
+ <!--
549
+ A custom character entity defined by a
550
+ publisher or a custom character from the
551
+ Unicode private-use area for which a bitmap
552
+ is submitted for the glyph.
553
+
554
+ Since there are no completely standard/public
555
+ agreements on how such characters are to be
556
+ named and displayed, this technique is to be
557
+ used instead of a custom general entity
558
+ reference, to provide complete information
559
+ on the intended character.
560
+ A document should contain a <private-char>
561
+ element at each location where a private
562
+ character is used within the document. The
563
+ corresponding image for the glyph may be
564
+ given in the <glyph-data> element or as an
565
+ external bitmap file referenced by an
566
+ <inline-graphic> element.
567
+
568
+ Implementation Note: <inline-graphic> should
569
+ only be used outside <private-char> when the
570
+ graphic is something other than a special
571
+ character.
572
+ Details at:
573
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=private-char
574
+ http://jats.nlm.nih.gov/publishing/tag-library/1.3/index.html?elem=private-char
575
+ http://jats.nlm.nih.gov/articleauthoring/tag-library/1.3/index.html?elem=private-char
576
+ -->
577
+ <define name="private-char">
578
+ <element name="private-char">
579
+ <ref name="private-char-attlist"/>
580
+ <ref name="private-char-model"/>
581
+ </element>
582
+ </define>
583
+ <!--
584
+ description
585
+ A human-readable description of the
586
+ character, for example, "Arrow, normal
587
+ weight, single line, two-headed, Northwest
588
+ to Southeast".
589
+ name Unique name for the character in all
590
+ uppercase ASCII, similar to names found
591
+ in Unicode standard (e.g., "NORTHWEST
592
+ SOUTHEAST ARROW"
593
+ -->
594
+ <define name="private-char-attlist" combine="interleave">
595
+ <ref name="private-char-atts"/>
596
+ </define>
597
+ <!-- GLYPH DATA FOR A PRIVATE CHARACTER -->
598
+ <!--
599
+ This element is used when there is known to
600
+ be no font available to render the private
601
+ character. The <glyph-data> element can be
602
+ used to provide information on the actual
603
+ glyph that is associated with the private-use
604
+ character. The element includes an inline
605
+ bitmap of the glyph encoded in plain
606
+ PBM (Plain Bit Map) format so that it is
607
+ human-readable.
608
+
609
+ For example:
610
+ <private-char name="NORTHWEST SOUTHEAST ARROW"
611
+ description="Arrow, normal weight, single
612
+ line, two-headed, Northwest to Southeast">
613
+ <glyph-data format="PBM" resolution="300"
614
+ x-size="34" y-size="34">
615
+ 0000000000000000000000000000000000
616
+ 0111111111111100000000000000000000
617
+ 0111111111111100000000000000000000
618
+ 0111110000000000000000000000000000
619
+ 0111110000000000000000000000000000
620
+ 0111111000000000000000000000000000
621
+ 0110111100000000000000000000000000
622
+ 0110011110000000000000000000000000
623
+ 0110001111000000000000000000000000
624
+ 0110000111100000000000000000000000
625
+ 0110000011110000000000000000000000
626
+ 0110000001111000000000000000000000
627
+ 0110000000111100000000000000000000
628
+ 0110000000011110000000000000000000
629
+ 0110000000001111000000000000000000
630
+ 0110000000000111100000000000000000
631
+ 0110000000000011110000000000000000
632
+ 0000000000000001111000000000000000
633
+ 0000000000000000111100000000000110
634
+ 0000000000000000011110000000000110
635
+ 0000000000000000001111000000000110
636
+ 0000000000000000000111100000000110
637
+ 0000000000000000000011110000000110
638
+ 0000000000000000000001111000000110
639
+ 0000000000000000000000111100000110
640
+ 0000000000000000000000011110000110
641
+ 0000000000000000000000001111000110
642
+ 0000000000000000000000000111100110
643
+ 0000000000000000000000000011110110
644
+ 0000000000000000000000000001111110
645
+ 0000000000000000000000000001111110
646
+ 0000000000000000011111111111111110
647
+ 0000000000000000011111111111111110
648
+ 0000000000000000000000000000000000
649
+ </glyph-data></private-char>
650
+ Details at:
651
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=glyph-data
652
+ http://jats.nlm.nih.gov/publishing/tag-library/1.3/index.html?elem=glyph-data
653
+ http://jats.nlm.nih.gov/articleauthoring/tag-library/1.3/index.html?elem=glyph-data
654
+ -->
655
+ <define name="glyph-data">
656
+ <element name="glyph-data">
657
+ <ref name="glyph-data-attlist"/>
658
+ <text/>
659
+ </element>
660
+ </define>
661
+ <!--
662
+ id Identifier so that the full glyph data need
663
+ not be repeated every time the character is
664
+ used. The <glyph-ref> element can be used
665
+ to point to this ID, to reuse a character
666
+ in subsequent text.
667
+ fontchar The offset of the character into a glyph
668
+ table, such as a Unicode character.
669
+ fontname The name of the character
670
+ format Names the image format of the bitmap. Should
671
+ be "PBM" if the plain bitmap is included
672
+ inline.
673
+ resolution Resolution of the bitmap in dots per inch,
674
+ expressed as a decimal integer (e.g. 72, 300)
675
+ xml:space Preserve whitespace within this element.
676
+ x-size Number of pixels per row in the bit-mapped
677
+ glyph
678
+ y-size Number of rows of the bit-mapped glyph
679
+ -->
680
+ <define name="glyph-data-attlist" combine="interleave">
681
+ <ref name="glyph-data-atts"/>
682
+ </define>
683
+ <!-- GLYPH REFERENCE FOR A PRIVATE CHARACTER -->
684
+ <!--
685
+ Once a private character has been declared
686
+ using a <glyph-data> element, the character
687
+ can be reused by using this element to
688
+ point to the full <glyph-data> element.
689
+ The pointing uses the ID/IDREF mechanism,
690
+ using the "glyph-data" attribute of this
691
+ element to point to the "id" attribute of
692
+ another <glyph-data> element.
693
+ Details at:
694
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=glyph-ref
695
+ http://jats.nlm.nih.gov/publishing/tag-library/1.3/index.html?elem=glyph-ref
696
+ http://jats.nlm.nih.gov/articleauthoring/tag-library/1.3/index.html?elem=glyph-ref
697
+ -->
698
+ <define name="glyph-ref">
699
+ <element name="glyph-ref">
700
+ <ref name="glyph-ref-attlist"/>
701
+ <empty/>
702
+ </element>
703
+ </define>
704
+ <!--
705
+ glyph-data An IDREF-type attribute that points to the
706
+ "id" attribute of a <glyph-data> character.
707
+ The idea is to use the full glyph data once,
708
+ then point to an existing character instead
709
+ of repeating the entire glyph data again.
710
+ -->
711
+ <define name="glyph-ref-attlist" combine="interleave">
712
+ <ref name="glyph-ref-atts"/>
713
+ </define>
714
+ </grammar>
715
+ <!-- ================== End Custom XML Special Characters ======== -->