@retorquere/bibtex-parser 9.0.21 → 9.0.24

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 (81) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/crossref.js +209 -0
  3. package/dist/cjs/crossref.js.map +7 -0
  4. package/dist/cjs/fields.js +6961 -0
  5. package/dist/cjs/fields.js.map +7 -0
  6. package/dist/cjs/index.js +1072 -0
  7. package/dist/cjs/index.js.map +7 -0
  8. package/dist/cjs/jabref.js +111 -0
  9. package/dist/cjs/jabref.js.map +7 -0
  10. package/dist/cjs/merge.js +37 -0
  11. package/dist/cjs/merge.js.map +7 -0
  12. package/dist/cjs/prepositions.js +111 -0
  13. package/dist/cjs/prepositions.js.map +7 -0
  14. package/dist/cjs/sentence-case.js +98 -0
  15. package/dist/cjs/sentence-case.js.map +7 -0
  16. package/dist/cjs/tokenizer.js +194 -0
  17. package/dist/cjs/tokenizer.js.map +7 -0
  18. package/dist/cjs/verbatim.js +403 -0
  19. package/dist/cjs/verbatim.js.map +7 -0
  20. package/dist/cjs/yield.js +26 -0
  21. package/dist/cjs/yield.js.map +7 -0
  22. package/{crossref.json → dist/data/crossref.json} +1 -1
  23. package/{fields.json → dist/data/fields.json} +1 -1
  24. package/dist/esm/crossref.js +190 -0
  25. package/dist/esm/crossref.js.map +7 -0
  26. package/dist/esm/fields.js +6942 -0
  27. package/dist/esm/fields.js.map +7 -0
  28. package/dist/esm/index.js +1044 -0
  29. package/dist/esm/index.js.map +7 -0
  30. package/dist/esm/jabref.js +92 -0
  31. package/dist/esm/jabref.js.map +7 -0
  32. package/dist/esm/merge.js +8 -0
  33. package/dist/esm/merge.js.map +7 -0
  34. package/dist/esm/prepositions.js +92 -0
  35. package/dist/esm/prepositions.js.map +7 -0
  36. package/dist/esm/sentence-case.js +79 -0
  37. package/dist/esm/sentence-case.js.map +7 -0
  38. package/dist/esm/tokenizer.js +170 -0
  39. package/dist/esm/tokenizer.js.map +7 -0
  40. package/dist/esm/verbatim.js +387 -0
  41. package/dist/esm/verbatim.js.map +7 -0
  42. package/dist/esm/yield.js +7 -0
  43. package/dist/esm/yield.js.map +7 -0
  44. package/dist/types/crossref.d.ts +188 -0
  45. package/dist/types/crossref.d.ts.map +1 -0
  46. package/dist/types/fields.d.ts +55 -0
  47. package/dist/types/fields.d.ts.map +1 -0
  48. package/{index.d.ts → dist/types/index.d.ts} +8 -7
  49. package/dist/types/index.d.ts.map +1 -0
  50. package/dist/types/jabref.d.ts.map +1 -0
  51. package/dist/types/merge.d.ts.map +1 -0
  52. package/dist/types/prepositions.d.ts +3 -0
  53. package/dist/types/prepositions.d.ts.map +1 -0
  54. package/dist/types/sentence-case.d.ts.map +1 -0
  55. package/dist/types/tokenizer.d.ts.map +1 -0
  56. package/dist/types/verbatim.d.ts.map +1 -0
  57. package/dist/types/yield.d.ts.map +1 -0
  58. package/package.json +38 -47
  59. package/index.js +0 -1191
  60. package/index.js.map +0 -1
  61. package/jabref.js +0 -110
  62. package/jabref.js.map +0 -1
  63. package/merge.js +0 -11
  64. package/merge.js.map +0 -1
  65. package/sentence-case.js +0 -110
  66. package/sentence-case.js.map +0 -1
  67. package/tokenizer.js +0 -167
  68. package/tokenizer.js.map +0 -1
  69. package/verbatim.js +0 -430
  70. package/verbatim.js.map +0 -1
  71. package/yield.js +0 -7
  72. package/yield.js.map +0 -1
  73. /package/{prepositions.json → dist/data/prepositions.json} +0 -0
  74. /package/{strings.bib → dist/data/strings.bib} +0 -0
  75. /package/{unabbrev.json → dist/data/unabbrev.json} +0 -0
  76. /package/{jabref.d.ts → dist/types/jabref.d.ts} +0 -0
  77. /package/{merge.d.ts → dist/types/merge.d.ts} +0 -0
  78. /package/{sentence-case.d.ts → dist/types/sentence-case.d.ts} +0 -0
  79. /package/{tokenizer.d.ts → dist/types/tokenizer.d.ts} +0 -0
  80. /package/{verbatim.d.ts → dist/types/verbatim.d.ts} +0 -0
  81. /package/{yield.d.ts → dist/types/yield.d.ts} +0 -0
package/README.md CHANGED
@@ -8,7 +8,7 @@ While parsing, the parser will apply markup for commands such as `\textbf`, `\te
8
8
 
9
9
  BibTeX is a reference management program that makes it easy for users of TeX and LaTeX to generate bibliographies for books and journal articles. When possible, it is usually stylized in the TeX font the way TeX and LaTeX are. LaTeX was first created in 1985 by Leslie Lamport and Oren Patashnik.
10
10
 
11
- Documenation is available at [https://retorque.re/bibtex-parser/](https://retorque.re/bibtex-parser/).
11
+ Documentation is available at [https://retorque.re/bibtex-parser/](https://retorque.re/bibtex-parser/).
12
12
 
13
13
  # 9.0 is a breaking change!
14
14
 
@@ -0,0 +1,209 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var crossref_exports = {};
19
+ __export(crossref_exports, {
20
+ default: () => crossref_default
21
+ });
22
+ module.exports = __toCommonJS(crossref_exports);
23
+ var crossref_default = {
24
+ "*": {
25
+ "*": {
26
+ verbb: "verba"
27
+ }
28
+ },
29
+ article: {
30
+ periodical: {
31
+ journalsubtitle: "subtitle",
32
+ journaltitle: "title"
33
+ }
34
+ },
35
+ book: {
36
+ mvbook: {
37
+ mainsubtitle: "subtitle",
38
+ maintitle: "title",
39
+ maintitleaddon: "titleaddon"
40
+ }
41
+ },
42
+ bookinbook: {
43
+ book: {
44
+ author: "author",
45
+ bookauthor: "author",
46
+ booksubtitle: "subtitle",
47
+ booktitle: "title",
48
+ booktitleaddon: "titleaddon"
49
+ },
50
+ mvbook: {
51
+ author: "author",
52
+ bookauthor: "author",
53
+ mainsubtitle: "subtitle",
54
+ maintitle: "title",
55
+ maintitleaddon: "titleaddon"
56
+ }
57
+ },
58
+ collection: {
59
+ mvcollection: {
60
+ mainsubtitle: "subtitle",
61
+ maintitle: "title",
62
+ maintitleaddon: "titleaddon"
63
+ },
64
+ mvreference: {
65
+ mainsubtitle: "subtitle",
66
+ maintitle: "title",
67
+ maintitleaddon: "titleaddon"
68
+ }
69
+ },
70
+ inbook: {
71
+ "*": {
72
+ bookauthor: "author"
73
+ },
74
+ book: {
75
+ author: "author",
76
+ bookauthor: "author",
77
+ booksubtitle: "subtitle",
78
+ booktitle: "title",
79
+ booktitleaddon: "titleaddon"
80
+ },
81
+ mvbook: {
82
+ author: "author",
83
+ bookauthor: "author",
84
+ mainsubtitle: "subtitle",
85
+ maintitle: "title",
86
+ maintitleaddon: "titleaddon"
87
+ }
88
+ },
89
+ incollection: {
90
+ collection: {
91
+ booksubtitle: "subtitle",
92
+ booktitle: "title",
93
+ booktitleaddon: "titleaddon"
94
+ },
95
+ mvcollection: {
96
+ mainsubtitle: "subtitle",
97
+ maintitle: "title",
98
+ maintitleaddon: "titleaddon"
99
+ },
100
+ mvreference: {
101
+ mainsubtitle: "subtitle",
102
+ maintitle: "title",
103
+ maintitleaddon: "titleaddon"
104
+ },
105
+ reference: {
106
+ booksubtitle: "subtitle",
107
+ booktitle: "title",
108
+ booktitleaddon: "titleaddon"
109
+ }
110
+ },
111
+ inproceedings: {
112
+ mvproceedings: {
113
+ mainsubtitle: "subtitle",
114
+ maintitle: "title",
115
+ maintitleaddon: "titleaddon"
116
+ },
117
+ proceedings: {
118
+ booksubtitle: "subtitle",
119
+ booktitle: "title",
120
+ booktitleaddon: "titleaddon"
121
+ }
122
+ },
123
+ inreference: {
124
+ collection: {
125
+ booksubtitle: "subtitle",
126
+ booktitle: "title",
127
+ booktitleaddon: "titleaddon"
128
+ },
129
+ mvcollection: {
130
+ mainsubtitle: "subtitle",
131
+ maintitle: "title",
132
+ maintitleaddon: "titleaddon"
133
+ },
134
+ mvreference: {
135
+ mainsubtitle: "subtitle",
136
+ maintitle: "title",
137
+ maintitleaddon: "titleaddon"
138
+ },
139
+ reference: {
140
+ booksubtitle: "subtitle",
141
+ booktitle: "title",
142
+ booktitleaddon: "titleaddon"
143
+ }
144
+ },
145
+ proceedings: {
146
+ mvproceedings: {
147
+ mainsubtitle: "subtitle",
148
+ maintitle: "title",
149
+ maintitleaddon: "titleaddon"
150
+ }
151
+ },
152
+ reference: {
153
+ mvcollection: {
154
+ mainsubtitle: "subtitle",
155
+ maintitle: "title",
156
+ maintitleaddon: "titleaddon"
157
+ },
158
+ mvreference: {
159
+ mainsubtitle: "subtitle",
160
+ maintitle: "title",
161
+ maintitleaddon: "titleaddon"
162
+ }
163
+ },
164
+ suppbook: {
165
+ book: {
166
+ author: "author",
167
+ bookauthor: "author",
168
+ booksubtitle: "subtitle",
169
+ booktitle: "title",
170
+ booktitleaddon: "titleaddon"
171
+ },
172
+ mvbook: {
173
+ author: "author",
174
+ bookauthor: "author",
175
+ mainsubtitle: "subtitle",
176
+ maintitle: "title",
177
+ maintitleaddon: "titleaddon"
178
+ }
179
+ },
180
+ suppcollection: {
181
+ collection: {
182
+ booksubtitle: "subtitle",
183
+ booktitle: "title",
184
+ booktitleaddon: "titleaddon"
185
+ },
186
+ mvcollection: {
187
+ mainsubtitle: "subtitle",
188
+ maintitle: "title",
189
+ maintitleaddon: "titleaddon"
190
+ },
191
+ mvreference: {
192
+ mainsubtitle: "subtitle",
193
+ maintitle: "title",
194
+ maintitleaddon: "titleaddon"
195
+ },
196
+ reference: {
197
+ booksubtitle: "subtitle",
198
+ booktitle: "title",
199
+ booktitleaddon: "titleaddon"
200
+ }
201
+ },
202
+ suppperiodical: {
203
+ periodical: {
204
+ journalsubtitle: "subtitle",
205
+ journaltitle: "title"
206
+ }
207
+ }
208
+ };
209
+ //# sourceMappingURL=crossref.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../crossref.ts"],
4
+ "sourcesContent": ["export default {\n '*': {\n '*': {\n verbb: 'verba',\n },\n },\n article: {\n periodical: {\n journalsubtitle: 'subtitle',\n journaltitle: 'title',\n },\n },\n book: {\n mvbook: {\n mainsubtitle: 'subtitle',\n maintitle: 'title',\n maintitleaddon: 'titleaddon',\n },\n },\n bookinbook: {\n book: {\n author: 'author',\n bookauthor: 'author',\n booksubtitle: 'subtitle',\n booktitle: 'title',\n booktitleaddon: 'titleaddon',\n },\n mvbook: {\n author: 'author',\n bookauthor: 'author',\n mainsubtitle: 'subtitle',\n maintitle: 'title',\n maintitleaddon: 'titleaddon',\n },\n },\n collection: {\n mvcollection: {\n mainsubtitle: 'subtitle',\n maintitle: 'title',\n maintitleaddon: 'titleaddon',\n },\n mvreference: {\n mainsubtitle: 'subtitle',\n maintitle: 'title',\n maintitleaddon: 'titleaddon',\n },\n },\n inbook: {\n '*': {\n bookauthor: 'author',\n },\n book: {\n author: 'author',\n bookauthor: 'author',\n booksubtitle: 'subtitle',\n booktitle: 'title',\n booktitleaddon: 'titleaddon',\n },\n mvbook: {\n author: 'author',\n bookauthor: 'author',\n mainsubtitle: 'subtitle',\n maintitle: 'title',\n maintitleaddon: 'titleaddon',\n },\n },\n incollection: {\n collection: {\n booksubtitle: 'subtitle',\n booktitle: 'title',\n booktitleaddon: 'titleaddon',\n },\n mvcollection: {\n mainsubtitle: 'subtitle',\n maintitle: 'title',\n maintitleaddon: 'titleaddon',\n },\n mvreference: {\n mainsubtitle: 'subtitle',\n maintitle: 'title',\n maintitleaddon: 'titleaddon',\n },\n reference: {\n booksubtitle: 'subtitle',\n booktitle: 'title',\n booktitleaddon: 'titleaddon',\n },\n },\n inproceedings: {\n mvproceedings: {\n mainsubtitle: 'subtitle',\n maintitle: 'title',\n maintitleaddon: 'titleaddon',\n },\n proceedings: {\n booksubtitle: 'subtitle',\n booktitle: 'title',\n booktitleaddon: 'titleaddon',\n },\n },\n inreference: {\n collection: {\n booksubtitle: 'subtitle',\n booktitle: 'title',\n booktitleaddon: 'titleaddon',\n },\n mvcollection: {\n mainsubtitle: 'subtitle',\n maintitle: 'title',\n maintitleaddon: 'titleaddon',\n },\n mvreference: {\n mainsubtitle: 'subtitle',\n maintitle: 'title',\n maintitleaddon: 'titleaddon',\n },\n reference: {\n booksubtitle: 'subtitle',\n booktitle: 'title',\n booktitleaddon: 'titleaddon',\n },\n },\n proceedings: {\n mvproceedings: {\n mainsubtitle: 'subtitle',\n maintitle: 'title',\n maintitleaddon: 'titleaddon',\n },\n },\n reference: {\n mvcollection: {\n mainsubtitle: 'subtitle',\n maintitle: 'title',\n maintitleaddon: 'titleaddon',\n },\n mvreference: {\n mainsubtitle: 'subtitle',\n maintitle: 'title',\n maintitleaddon: 'titleaddon',\n },\n },\n suppbook: {\n book: {\n author: 'author',\n bookauthor: 'author',\n booksubtitle: 'subtitle',\n booktitle: 'title',\n booktitleaddon: 'titleaddon',\n },\n mvbook: {\n author: 'author',\n bookauthor: 'author',\n mainsubtitle: 'subtitle',\n maintitle: 'title',\n maintitleaddon: 'titleaddon',\n },\n },\n suppcollection: {\n collection: {\n booksubtitle: 'subtitle',\n booktitle: 'title',\n booktitleaddon: 'titleaddon',\n },\n mvcollection: {\n mainsubtitle: 'subtitle',\n maintitle: 'title',\n maintitleaddon: 'titleaddon',\n },\n mvreference: {\n mainsubtitle: 'subtitle',\n maintitle: 'title',\n maintitleaddon: 'titleaddon',\n },\n reference: {\n booksubtitle: 'subtitle',\n booktitle: 'title',\n booktitleaddon: 'titleaddon',\n },\n },\n suppperiodical: {\n periodical: {\n journalsubtitle: 'subtitle',\n journaltitle: 'title',\n },\n },\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA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