@@ -10,14 +10,18 @@ Currently has 3 suites of parsers:
10
10
11
11
Additionally, there are a few other tools:
12
12
13
- - ` citations- ` : Tools to parse and convert citations
13
+ - ` citations- ` : Tools to parse and convert citations.
14
14
- ` ojs- ` : Things to operate on the OJS api
15
15
- ` utils- ` : Various utilities
16
16
17
17
Finally, there are the processors, which are basically convenient wrappers around the parsers.
18
18
19
19
There is also an ` app ` directory, which contains a few apps that use the parsers, atm a really crappy frontend for converting from ` .docx ` .
20
20
21
+ See below for more info.
22
+
23
+ ## Graph
24
+
21
25
![ Graph of this monorepo] ( ./graph.png ' Graph of this monorepo ')
22
26
23
27
## Contents
@@ -55,6 +59,244 @@ There is also an `app` directory, which contains a few apps that use the parsers
55
59
56
60
- [ License] ( #license )
57
61
62
+ # Overview
63
+
64
+ ## [ Apps] ( /Volumes/SSD/Projects/jote-monorepo/apps ) :
65
+
66
+ #### [ ` converter-frontend ` ] ( apps/converter-frontend )
67
+
68
+ #### [ ` converter-frontend-e2e ` ] ( apps/converter-frontend-e2e )
69
+
70
+ #### [ ` jote ` ] ( apps/jote )
71
+
72
+ #### [ ` react-pdf ` ] ( apps/react-pdf )
73
+
74
+ #### [ ` react-pdf-e2e ` ] ( apps/react-pdf-e2e )
75
+
76
+ ## [ Libs] ( /Volumes/SSD/Projects/jote-monorepo/libs ) :
77
+
78
+ ### [ ast-stringify] ( libs/ast-stringify )
79
+
80
+ #### [ ` src ` ] ( libs/ast-stringify/src )
81
+
82
+ ### [ citations] ( libs/citations )
83
+
84
+ #### [ ` crossref-json ` ] ( libs/citations/crossref-json/README.md )
85
+
86
+ Typings for the [ Crossref JSON API] ( https://api.crossref.org/swagger.json )
87
+
88
+ #### [ ` crossref-to-csl ` ] ( libs/citations/crossref-to-csl/README.md )
89
+
90
+ Tiny utitity to convert an Crossref API resonponse JSON item to CSL.
91
+
92
+ #### [ ` csl-consolidate ` ] ( libs/citations/csl-consolidate/README.md )
93
+
94
+ Small utility script which checks a list of CSL references against the Crossref doi.
95
+
96
+ #### [ ` ojs-types ` ] ( libs/citations/ojs-types/README.md )
97
+
98
+ Some typescript types for OJS api responses
99
+
100
+ #### [ ` parse-text-cite ` ] ( libs/citations/parse-text-cite/README.md )
101
+
102
+ Small tool that parses a string of text containing APA style in text citations, e.g. Jones (2020), and returns a rudimentary AST with the thing parsed.
103
+
104
+ ### [ jast] ( libs/jast )
105
+
106
+ #### [ ` jast ` ] ( libs/jast/jast/README.md )
107
+
108
+ Type definitions for ` jast ` (journal article/abstract syntax tree), a syntax for abstract syntax trees representing JATS XML, specifically the "Green" publishing tag set.
109
+
110
+ #### [ ` jast-util-from-csl ` ] ( libs/jast/jast-util-from-csl/README.md )
111
+
112
+ Transform a CSL list or object to a [ jast] [ jast ] node.
113
+
114
+ #### [ ` jast-util-to-csl ` ] ( libs/jast/jast-util-to-csl/README.md )
115
+
116
+ Convert a ` jast ` citation syntax tree to list of ` csl ` objects.
117
+
118
+ #### [ ` jast-util-to-texast ` ] ( libs/jast/jast-util-to-texast/README.md )
119
+
120
+ Utility to convert a [ jast] [ jast ] tree to a [ texast] [ texast ] tree.
121
+
122
+ ### [ ojs] ( libs/ojs )
123
+
124
+ #### [ ` ojs-client ` ] ( libs/ojs/ojs-client/README.md )
125
+
126
+ Small Node HTTP client for communicating with your OJS's REST API
127
+
128
+ #### [ ` ojs-relatex ` ] ( libs/ojs/ojs-relatex/README.md )
129
+
130
+ Convert ojs data to relatex
131
+
132
+ ### [ ooxast] ( libs/ooxast )
133
+
134
+ #### [ ` ooxast ` ] ( libs/ooxast/ooxast/README.md )
135
+
136
+ Type definitions for ` ooxast ` (Open Office XML abstract syntax tree), a syntax for abstract syntax trees representing Open Office XML documents in the [ ` unist ` ] ( https://github.com/syntax-tree/unist ) format.
137
+
138
+ #### [ ` ooxast-util-citation-plugin ` ] ( libs/ooxast/ooxast-util-citation-plugin/README.md )
139
+
140
+ Small ooxast utility which scans the text to identify the citation plugin used, either Mendely, Zotero, EndNote, Citavi, native word citations or none at all. It is used to feed into other things.
141
+
142
+ #### [ ` ooxast-util-citations ` ] ( libs/ooxast/ooxast-util-citations/README.md )
143
+
144
+ _ [ ooxast] [ ooxast ] _ util to visit in text office citations.
145
+
146
+ #### [ ` ooxast-util-get-style ` ] ( libs/ooxast/ooxast-util-get-style/README.md )
147
+
148
+ Get style from a ` w:p ` element.
149
+
150
+ #### [ ` ooxast-util-parse-bib ` ] ( libs/ooxast/ooxast-util-parse-bib/README.md )
151
+
152
+ Find and convert raw references to CSL-JSON using ` anystyle ` .
153
+
154
+ #### [ ` ooxast-util-parse-bib-browser ` ] ( libs/ooxast/ooxast-util-parse-bib-browser/README.md )
155
+
156
+ Find and convert raw references to CSL-JSON.
157
+
158
+ #### [ ` ooxast-util-parse-bib-node ` ] ( libs/ooxast/ooxast-util-parse-bib-node/README.md )
159
+
160
+ Find and convert raw references to CSL-JSON.
161
+
162
+ #### [ ` ooxast-util-remove-rsid ` ] ( libs/ooxast/ooxast-util-remove-rsid/README.md )
163
+
164
+ Cleans all the rsid tags from an ooxast tree, and merges ` w:r ` elements if they only differ by rsid values.
165
+
166
+ #### [ ` ooxast-util-to-hast ` ] ( libs/ooxast/ooxast-util-to-hast/README.md )
167
+
168
+ Convert docx to html (Not working)
169
+
170
+ #### [ ` ooxast-util-to-jast ` ] ( libs/ooxast/ooxast-util-to-jast/README.md )
171
+
172
+ Util to convert ` ooxast ` syntax tree to ` jast ` syntax tree, allowing for ` .docx ` to ` JATS XML ` conversion.
173
+
174
+ #### [ ` ooxast-util-to-unified-latex ` ] ( libs/ooxast/ooxast-util-to-unified-latex/README.md )
175
+
176
+ Convert ` ooxast ` syntax tree to ` unified-latex ` syntax tree.
177
+
178
+ ### [ processors] ( libs/processors )
179
+
180
+ #### [ ` docx-to-jats ` ] ( libs/processors/docx-to-jats/README.md )
181
+
182
+ DOCX to JATS XML converter
183
+
184
+ #### [ ` docx-to-tex ` ] ( libs/processors/docx-to-tex/README.md )
185
+
186
+ DOCX to TeX converter
187
+
188
+ #### [ ` jats-to-tex ` ] ( libs/processors/jats-to-tex/README.md )
189
+
190
+ JATS XML to TeX converter
191
+
192
+ #### [ ` jote-docx-tex ` ] ( libs/processors/jote-docx-tex/README.md )
193
+
194
+ Can't really remember what this is lmao
195
+
196
+ ### [ rejour] ( libs/rejour )
197
+
198
+ #### [ ` rejour-frontmatter ` ] ( libs/rejour/rejour-frontmatter/README.md )
199
+
200
+ Plugin for ` rejour ` that parses the frontmatter of a ` JATS ` document and adds it to the processing VFile as a list of ` csl ` citations.
201
+
202
+ #### [ ` rejour-meta ` ] ( libs/rejour/rejour-meta/README.md )
203
+
204
+ Doesn't do anything atm
205
+
206
+ #### [ ` rejour-move-abstract ` ] ( libs/rejour/rejour-move-abstract/README.md )
207
+
208
+ Really simple plugin for ` rejour ` that moves the abstract from the ` body ` to the ` front ` of a ` JATS ` document.
209
+
210
+ #### [ ` rejour-parse ` ] ( libs/rejour/rejour-parse/README.md )
211
+
212
+ Parser for ` rejour ` that parses the ` JATS ` document to a ` jast ` tree.
213
+
214
+ #### [ ` rejour-relatex ` ] ( libs/rejour/rejour-relatex/README.md )
215
+
216
+ Plugin for ` rejour ` that transforms a ` jast ` syntax tree into a ` texast ` syntax tree, allowing for conversion between JATS XML and LaTeX.
217
+
218
+ #### [ ` rejour-stringify ` ] ( libs/rejour/rejour-stringify/README.md )
219
+
220
+ Plugin for ` rejour ` that stringifies a ` jast ` syntax tree to a ` JATS XML ` document.
221
+
222
+ ### [ relatex] ( libs/relatex )
223
+
224
+ #### [ ` relatex-add-preamble ` ] ( libs/relatex/relatex-add-preamble/README.md )
225
+
226
+ Plugin for ` relatex ` that adds a preamble to a ` texast ` syntax tree.
227
+
228
+ #### [ ` relatex-stringify ` ] ( libs/relatex/relatex-stringify/README.md )
229
+
230
+ Plugin for ` relatex ` that stringifies a ` texast ` syntax tree to a LaTeX file.
231
+
232
+ ### [ reoff] ( libs/reoff )
233
+
234
+ #### [ ` docx-to-vfile ` ] ( libs/reoff/docx-to-vfile/README.md )
235
+
236
+ Reads a ` .docx ` file and stores its components in vfile format to be processed by other tools, like [ ` reoff-parse ` ] ( https://github.com/TrialAndErrorOrg/parsers/tree/main/libs/reoff/reoff-parse ) .
237
+
238
+ #### [ ` reoff-cite ` ] ( libs/reoff/reoff-cite/README.md )
239
+
240
+ Plugin for ` reoff ` that parses citations in the form of ` @cite{key} ` and ` @cite[page]{key} ` using ` ooxast-util-parse-bib ` and ` ooxast-util-parse-text-cite ` .
241
+
242
+ #### [ ` reoff-clean ` ] ( libs/reoff/reoff-clean/README.md )
243
+
244
+ Plugin for [ reoff] [ reoff ] to clean the ooxast tree.
245
+
246
+ #### [ ` reoff-parse ` ] ( libs/reoff/reoff-parse/README.md )
247
+
248
+ Plugin for [ reoff] [ reoff ] to parse a ` .docx ` XML file into an ` ooxast ` AST. Ideally use ` docx-to-vfile ` to get to a parseable state.
249
+
250
+ #### [ ` reoff-parse-references ` ] ( libs/reoff/reoff-parse-references/README.md )
251
+
252
+ Plugin for ` reoff ` which tries to find a bibliography in the document and parse it using ` ooxast-util-parse-bib ` .
253
+
254
+ #### [ ` reoff-parse-references-browser ` ] ( libs/reoff/reoff-parse-references-browser/README.md )
255
+
256
+ Plugin for ` reoff ` which tries to find a bibliography in the document and parse it using ` ooxast-util-parse-bib ` .
257
+
258
+ #### [ ` reoff-rejour ` ] ( libs/reoff/reoff-rejour/README.md )
259
+
260
+ Plugin for ` reoff ` that transforms an ` ooxast ` syntax tree into a ` jats ` syntax tree, i.e. converting ` .docx ` to ` JATS XML ` .
261
+
262
+ ### [ texast] ( libs/texast )
263
+
264
+ #### [ ` texast ` ] ( libs/texast/texast/README.md )
265
+
266
+ DEPRECATED: Type definitions for ` texast ` (LaTeX abstract syntax tree), a syntax for abstract syntax trees representing LaTeX documents in the [ ` unist ` ] ( https://github.com/syntax-tree/unist ) format.
267
+
268
+ #### [ ` texast-util-add-preamble ` ] ( libs/texast/texast-util-add-preamble/README.md )
269
+
270
+ Add a preamble to a texast syntax tree.
271
+
272
+ #### [ ` texast-util-to-latex ` ] ( libs/texast/texast-util-to-latex/README.md )
273
+
274
+ Convert a ` texast ` syntax tree to LaTeX.
275
+
276
+ ### [ utils] ( libs/utils )
277
+
278
+ #### [ ` misc ` ] ( libs/utils/misc/README.md )
279
+
280
+ Miscellaneous utilities.
281
+
282
+ #### [ ` ojs-to-preamble ` ] ( libs/utils/ojs-to-preamble/README.md )
283
+
284
+ Utility (extremely shoddy) to convert Open Journal Systems (OJS) metadata to a texast preamble.
285
+
286
+ ### [ xast] ( libs/xast )
287
+
288
+ #### [ ` xast-util-has-attribute ` ] ( libs/xast/xast-util-has-attribute/README.md )
289
+
290
+ Port of [ hast-util-has-property] ( https://github.com/syntax-tree/hast-util-has-property ) for [ xast] [ xast ]
291
+
292
+ #### [ ` xast-util-is-element ` ] ( libs/xast/xast-util-is-element/README.md )
293
+
294
+ Port of [ hast-util-is-element] ( https://github.com/syntax-tree/hast-util-has-property ) for [ xast] [ xast ]
295
+
296
+ #### [ ` xast-util-select ` ] ( libs/xast/xast-util-select/README.md )
297
+
298
+ Port of ` (hast-util-select)[https://github.com/syntax-tree/hast-util-select] ` for use with ` xast ` nodes.
299
+
58
300
## Projects
59
301
60
302
### rejour
@@ -137,19 +379,19 @@ Utility for stringifying `texast` syntax trees, mostly based off of [mdast-util-
137
379
[ unifiedgh ] : https://github.com/unifiedjs/unified
138
380
[ xast-from-xml ] : https://github.com/syntax-tree/xast-util-from-xml
139
381
[ rehype ] : https://github.com/rehypejs/rehype
140
- [ rejour ] : https://github.com/journaloftrialanderror/jote /tree/main/libs/rejour
141
- [ rejour-parse ] : https://github.com/journaloftrialanderror/jote /tree/main/libs/rejour-parse
142
- [ rejour-stringify ] : https://github.com/journaloftrialanderror/jote /tree/main/libs/rejour-stringify
143
- [ rejour-move-abstract ] : https://github.com/journaloftrialanderror/jote /tree/main/libs/rejour-move-abstract
144
- [ rejour-meta ] : https://github.com/journaloftrialanderror/jote /tree/main/libs/rejour-meta
145
- [ rejour-relatex ] : https://github.com/journaloftrialanderror/jote /tree/main/libs/rejour-relatex
146
- [ relatex ] : https://github.com/journaloftrialanderror/jote /tree/main/libs/relatex
147
- [ relatex-stringify ] : https://github.com/journaloftrialanderror/jote /tree/main/libs/relatex-stringify
148
- [ jast ] : https://github.com/journaloftrialanderror/jote /tree/main/libs/jast
149
- [ jast-util-to-texast ] : https://github.com/journaloftrialanderror/jote /tree/main/libs/jast-util-to-texast
150
- [ jastscript ] : https://github.com/journaloftrialanderror/jote /tree/main/libs/jastscript
151
- [ texast ] : https://github.com/journaloftrialanderror/jote /tree/main/libs/texast
152
- [ texast-util-to-latex ] : https://github.com/journaloftrialanderror/jote /tree/main/libs/texast-util-to-latex
382
+ [ rejour ] : https://github.com/TrialAndErrorOrg/parsers /tree/main/libs/rejour
383
+ [ rejour-parse ] : https://github.com/TrialAndErrorOrg/parsers /tree/main/libs/rejour-parse
384
+ [ rejour-stringify ] : https://github.com/TrialAndErrorOrg/parsers /tree/main/libs/rejour-stringify
385
+ [ rejour-move-abstract ] : https://github.com/TrialAndErrorOrg/parsers /tree/main/libs/rejour-move-abstract
386
+ [ rejour-meta ] : https://github.com/TrialAndErrorOrg/parsers /tree/main/libs/rejour-meta
387
+ [ rejour-relatex ] : https://github.com/TrialAndErrorOrg/parsers /tree/main/libs/rejour-relatex
388
+ [ relatex ] : https://github.com/TrialAndErrorOrg/parsers /tree/main/libs/relatex
389
+ [ relatex-stringify ] : https://github.com/TrialAndErrorOrg/parsers /tree/main/libs/relatex-stringify
390
+ [ jast ] : https://github.com/TrialAndErrorOrg/parsers /tree/main/libs/jast
391
+ [ jast-util-to-texast ] : https://github.com/TrialAndErrorOrg/parsers /tree/main/libs/jast-util-to-texast
392
+ [ jastscript ] : https://github.com/TrialAndErrorOrg/parsers /tree/main/libs/jastscript
393
+ [ texast ] : https://github.com/TrialAndErrorOrg/parsers /tree/main/libs/texast
394
+ [ texast-util-to-latex ] : https://github.com/TrialAndErrorOrg/parsers /tree/main/libs/texast-util-to-latex
153
395
[ hast ] : https://github.com/syntax-tree/hast
154
396
[ xast ] : https://github.com/syntax-tree/xast
155
397
[ mdast ] : https://github.com/syntax-tree/mdast
0 commit comments