proskomma-core 0.9.16 → 0.9.18
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.
- package/dist/index.js +8 -0
- package/dist/index.js.LICENSE.txt +23 -0
- package/esm/package.json +2 -2
- package/index.cjs +7 -2
- package/informations/meeting_01_march_2023.md +38 -0
- package/package.json +4 -8
- package/src/parser/index.cjs +1 -3
- package/src/util/scriptlike/blocksSpec.cjs +2 -2
- package/src/util/scriptlike/dodson_lexicon_to_entries.cjs +2 -2
- package/src/util/scriptlike/open_scriptures_hebrew_lexicon_to_entries.cjs +2 -2
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* XRegExp 5.1.1
|
|
3
|
+
* <xregexp.com>
|
|
4
|
+
* Steven Levithan (c) 2007-present MIT License
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/*!
|
|
8
|
+
* checksum
|
|
9
|
+
* Copyright(c) 2013 Daniel D. Shaw <dshaw@dshaw.com>
|
|
10
|
+
* MIT Licensed
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @license BitSet.js v5.1.1 2/1/2020
|
|
17
|
+
* http://www.xarg.org/2014/03/javascript-bit-array/
|
|
18
|
+
*
|
|
19
|
+
* Copyright (c) 2020, Robert Eisele (robert@xarg.org)
|
|
20
|
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
|
21
|
+
**/
|
|
22
|
+
|
|
23
|
+
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
|
package/esm/package.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "module"
|
|
1
|
+
{
|
|
2
|
+
"type": "module"
|
|
3
3
|
}
|
package/index.cjs
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
const {
|
|
2
|
-
|
|
1
|
+
const {
|
|
2
|
+
Proskomma,
|
|
3
|
+
lexingRegexes,
|
|
4
|
+
resolvers,
|
|
5
|
+
typeDefs,
|
|
6
|
+
blocksSpecUtils,
|
|
7
|
+
} = require('./src/index.cjs');
|
|
3
8
|
|
|
4
9
|
module.exports = {
|
|
5
10
|
Proskomma, lexingRegexes, blocksSpecUtils, resolvers, typeDefs,
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#
|
|
2
|
+
|
|
3
|
+
## Participants
|
|
4
|
+
|
|
5
|
+
- Birch
|
|
6
|
+
- Incy
|
|
7
|
+
- Mark Howe
|
|
8
|
+
- Nicolas Condomitti
|
|
9
|
+
|
|
10
|
+
## Discussions
|
|
11
|
+
|
|
12
|
+
Birch's suggestions :
|
|
13
|
+
* handle usfm 3 format from unfoldingWord
|
|
14
|
+
* accept that there **will** be multiple format : so the API must handle that
|
|
15
|
+
* uW format IN and uW format OUT
|
|
16
|
+
* let's go quickly to the **first** solution
|
|
17
|
+
* contact Chris and Bruce. They produced a UI.
|
|
18
|
+
|
|
19
|
+
Mark's suggestions :
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
Bincy's suggestions :
|
|
23
|
+
* an english team are working on aligning the old testament. It would be IMMENSLY helpful to have a working tool to correct broken alignment
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## My conclusion
|
|
27
|
+
|
|
28
|
+
Let's go to the first "simple" solution :
|
|
29
|
+
* make a card in https://gateway-translate.netlify.app/
|
|
30
|
+
* to correct the broken alignment on the go when you correct a text
|
|
31
|
+
* **it HAS TO LIKE EXACTLY LIKE TRANSLATION-CORE**
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
## TODO
|
|
35
|
+
|
|
36
|
+
- [ ] mini editeur : TCore-like
|
|
37
|
+
- [ ] travailler sur côté Epitelete pour communiquer les modifications à Proskomma
|
|
38
|
+
- [ ] essayer de mettre ça en "Card" pour gateway-translate
|
package/package.json
CHANGED
|
@@ -1,22 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "proskomma-core",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.18",
|
|
4
4
|
"description": "A Scripture Runtime Engine",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.cjs",
|
|
7
7
|
"./esm": "./esm/wrapper.mjs"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
|
-
"test": "export PKSRC=dist &&
|
|
11
|
-
"
|
|
12
|
-
"rawTest": "export PKSRC=dist && npm run build && bash -c \"tape -r @babel/register test/code/*.cjs\"",
|
|
10
|
+
"test": "export PKSRC=dist && bash -c \"tape -r @babel/register test/code/**/*.cjs | node_modules/tap-summary/bin/cmd.js\"",
|
|
11
|
+
"rawTest": "export PKSRC=dist && bash -c \"tape -r @babel/register test/code/*.cjs\"",
|
|
13
12
|
"oneTest": "bash -c \"tape -r @babel/register test/code/$TESTSCRIPT.cjs\"",
|
|
14
13
|
"oneSrcTest": "export PKSRC=src && bash -c \"tape -r @babel/register test/code/$TESTSCRIPT.cjs\"",
|
|
15
14
|
"coverage": "node_modules/nyc/bin/nyc.js bash -c \"tape -r @babel/register test/code/*.cjs\"",
|
|
16
|
-
"build": "rm -fr dist && webpack --mode production --config webpack.prod.js"
|
|
17
|
-
"serialize": "tape -r @babel/register test/code/serialize.cjs",
|
|
18
|
-
"rawSrcTest": "export PKSRC=src && bash -c \"tape test/code/main/*.cjs\"",
|
|
19
|
-
"testUtils": "bash -c \"tape test/code/utils/*.cjs\""
|
|
15
|
+
"build": "rm -fr dist && webpack --mode production --config webpack.prod.js"
|
|
20
16
|
},
|
|
21
17
|
"repository": {
|
|
22
18
|
"type": "git",
|
package/src/parser/index.cjs
CHANGED
|
@@ -281,9 +281,7 @@ const Parser = class {
|
|
|
281
281
|
|
|
282
282
|
for (const si of childSequences) {
|
|
283
283
|
if (seqById[si].type === 'main') {
|
|
284
|
-
|
|
285
|
-
console.log(JSON.stringify(seqById[seqId], null, 2));
|
|
286
|
-
process.exit(1);
|
|
284
|
+
throw new Error('MAIN is child!', JSON.stringify(seqById[seqId], null, 2));
|
|
287
285
|
}
|
|
288
286
|
this.filterGrafts(si, seqById, used, options);
|
|
289
287
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const
|
|
2
|
-
const { labelForScope } =
|
|
1
|
+
const { scopeDefs } = require('../index.cjs');
|
|
2
|
+
const { labelForScope } = scopeDefs;
|
|
3
3
|
const { tokenizeString } = require('../../parser/lib/tokenize.cjs');
|
|
4
4
|
const {
|
|
5
5
|
flattenNodes,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const fse = require('fs-extra');
|
|
2
|
-
const { tokenizeString } = require('
|
|
2
|
+
const { tokenizeString } = require('../../parser/lib/tokenize.cjs');
|
|
3
3
|
|
|
4
4
|
const itemTokens = str => tokenizeString(str).map(tr => ({
|
|
5
5
|
type: 'token',
|
|
@@ -68,7 +68,7 @@ const rowRecord = rowArray => ({
|
|
|
68
68
|
],
|
|
69
69
|
});
|
|
70
70
|
|
|
71
|
-
const lexicon_tsv = fse.readFileSync(process.argv[2])
|
|
71
|
+
const lexicon_tsv = fse.readFileSync(process ?? process.argv[2])
|
|
72
72
|
.toString()
|
|
73
73
|
.split('\n')
|
|
74
74
|
.map(row => row.split('\t'))
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const fse = require('fs-extra');
|
|
2
|
-
const { tokenizeString } = require('
|
|
2
|
+
const { tokenizeString } = require('../../parser/lib/tokenize.cjs');
|
|
3
3
|
|
|
4
4
|
const itemTokens = str => tokenizeString(str).map(tr => ({
|
|
5
5
|
type: 'token',
|
|
@@ -68,7 +68,7 @@ const rowRecord = rowArray => ({
|
|
|
68
68
|
],
|
|
69
69
|
});
|
|
70
70
|
|
|
71
|
-
const lexicon_tsv = fse.readFileSync(process.argv[2])
|
|
71
|
+
const lexicon_tsv = fse.readFileSync(process ?? process.argv[2])
|
|
72
72
|
.toString()
|
|
73
73
|
.split('\n')
|
|
74
74
|
.map(row => row.split('\t'))
|