Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
179 commits
Select commit Hold shift + click to select a range
0cbbb27
Updated to new version usfm-js (#133)
larsgson Jul 6, 2022
ff23d59
all ellipsis -> ampersand - styleguidist verified
larsgson Jul 21, 2022
486cfc6
adapted tests, styleguidist and bumped version
larsgson Aug 1, 2022
7ab724e
fixed jest tests for selections
larsgson Aug 2, 2022
b50c880
skipping all not yet updated jest tests
larsgson Aug 2, 2022
7c94ad8
publishing alpha to npm
larsgson Aug 3, 2022
5dd56b7
mock test data for future bcv tree struct
larsgson Aug 9, 2022
8d39fa7
adapted bcv tree syntax at book level
larsgson Aug 9, 2022
031c848
PoC show multiple verses in parallel scipture
superdav42 Aug 10, 2022
d693468
useBcvQuery is now working
larsgson Aug 11, 2022
3c00a84
define tests for useBcvQuery
larsgson Aug 11, 2022
ad7c5f8
added useBcvQuery example to styleguidist
larsgson Aug 12, 2022
109045a
styleguidist - cleaned useBcvQuery example code
larsgson Aug 12, 2022
332dacf
styleguidist -cleaned useBcvQuery example, part 2
larsgson Aug 12, 2022
584c46d
styleguidist -cleaned useBcvQuery example, part 3
larsgson Aug 12, 2022
57c7907
v5.2.1-beta.1
Joel-C-Johnson Aug 25, 2022
f99d11f
v5.2.1-beta.2
Joel-C-Johnson Aug 25, 2022
84aef2a
WIP - ok in styleguidist, but in tc-create
mandolyte Aug 25, 2022
2ebc7c1
v5.2.1-beta.3
Joel-C-Johnson Aug 26, 2022
6a51adf
resolved the undefined error
Joel-C-Johnson Aug 26, 2022
d92f91c
WIP correct shape of object
mandolyte Aug 26, 2022
7850fe5
WIP debugging
mandolyte Aug 26, 2022
490cd18
WIP still working on hebrew detection
mandolyte Aug 26, 2022
35ac3c6
WIP moved hebrew detection to Verse.js
mandolyte Aug 26, 2022
5ac0738
Ready to review
mandolyte Aug 26, 2022
f06222a
keep some deprecated props
larsgson Aug 29, 2022
067e52b
WIP rm console logs
mandolyte Aug 29, 2022
1a20a6c
Merge branch 'feature-cn-1151-hebrew-font-larger' of https://github.c…
Joel-C-Johnson Aug 29, 2022
75ff5d4
Merge pull request #136 from unfoldingWord/feature-cn-1151-hebrew-fon…
Joel-C-Johnson Aug 30, 2022
6b41edf
Merge remote-tracking branch 'origin/master' into bugFix-Joel-1364-fi…
Joel-C-Johnson Aug 30, 2022
a08706d
v5.2.1-beta.5
Joel-C-Johnson Aug 30, 2022
3c006e0
Merge pull request #137 from unfoldingWord/bugFix-Joel-1364-fixQuotes
Joel-C-Johnson Aug 30, 2022
ef3a1b7
verses ranges now verified to work
larsgson Aug 30, 2022
a0b06ba
published npm 5.2.3-alpha
larsgson Aug 30, 2022
3fec3e5
parallel-scripture helpers conflict resolved
larsgson Aug 31, 2022
7b7c5b8
cleaned up "prettier tool" unneeded changes
larsgson Aug 31, 2022
7ee49e6
more "prettier tool" clean-up
larsgson Aug 31, 2022
fea0c32
adapted useBcvQuery props
larsgson Sep 7, 2022
222c03a
add test
mandolyte Sep 12, 2022
3feabd8
add styling for ezra
mandolyte Sep 12, 2022
c1520d0
fix dependencies
mandolyte Sep 12, 2022
1358cf3
v5.3.0-rc.11
mandolyte Sep 12, 2022
72197c0
readd code from feature branch
mandolyte Sep 12, 2022
9226a7b
v5.3.0-rc.12
mandolyte Sep 12, 2022
db28087
v5.3.0-rc.13
mandolyte Sep 12, 2022
1302685
missed commit
mandolyte Sep 13, 2022
e99f54b
merged the code
Joel-C-Johnson Sep 13, 2022
fe86b61
updated the version
Joel-C-Johnson Sep 13, 2022
6173b12
Merge pull request #140 from unfoldingWord/fix-cn-1151-add-ezra-font
Joel-C-Johnson Sep 13, 2022
d89c83f
font bugfix for ULT UST
jincypjose Sep 16, 2022
96e91a6
version update
jincypjose Sep 16, 2022
03660e2
fix version to 5.3.1-beta.0
mandolyte Sep 17, 2022
9f27708
Merge pull request #142 from unfoldingWord/Bugfix-jincy-1151
mandolyte Sep 17, 2022
940bbc4
updated the version
Joel-C-Johnson Sep 20, 2022
c0e5e2f
Merge pull request #143 from unfoldingWord/updateVersion
Joel-C-Johnson Sep 20, 2022
d51f8cb
Fix highlights by populating VerseObject if resource has new format
superdav42 Sep 26, 2022
20d0036
Merge pull request #144 from unfoldingWord/fix-highlighting-broken
superdav42 Sep 27, 2022
b8fae7e
Bump version for release
superdav42 Sep 27, 2022
3d9471b
Merge 'origin/master'
larsgson Nov 1, 2022
dae292e
Bugfix jincy 1183 (#145)
jincypjose Nov 1, 2022
c72a754
bumped version in yarn.lock
larsgson Nov 1, 2022
f6e3ad0
Merge 'origin/master'
larsgson Nov 1, 2022
ecf0bdf
bumped version
larsgson Nov 1, 2022
3f8b973
bumped version in yarn.lock
larsgson Nov 2, 2022
3dad21c
Merge 'origin/master'
larsgson Nov 14, 2022
f884cfd
Merge pull request #134 from unfoldingWord/feature-larsg-330-ampersan…
jincypjose Nov 14, 2022
da5b9d1
Merge 'origin/master'
larsgson Nov 14, 2022
eea052f
Merge 'origin/issue-718-multiple-verses-poc'
larsgson Nov 15, 2022
358cffc
styleguidist fix - in ParallelScripture.md
larsgson Nov 15, 2022
982b04c
reference ranges are now working
larsgson Nov 16, 2022
92d2783
improved reference parsing
larsgson Nov 18, 2022
a8a93e5
changed test reference in styleguidist
larsgson Nov 18, 2022
2c2a15f
prepared new structure
larsgson Nov 21, 2022
68a146d
Merge branch
larsgson Nov 21, 2022
8e5f03c
verse ranges allowed (incl. across chapters)
larsgson Nov 23, 2022
fe1567c
removed an unneeded double comment
larsgson Nov 23, 2022
f1d2258
Merge pull request #147 from unfoldingWord/feature-larsg-348-referenc…
jincypjose Nov 23, 2022
2f923fb
bumped version
larsgson Nov 23, 2022
7484355
Merge pull request #149 from unfoldingWord/larsg-update-npm-to-non-al…
jincypjose Nov 23, 2022
b42d968
Update nodejs.yml
larsgson Nov 23, 2022
462bd59
updated node and cypress
larsgson Nov 24, 2022
de69898
improved title display for multi verse ranges
larsgson Nov 24, 2022
712ba7a
Merge pull request #151 from unfoldingWord/larsg-feature-improve-titl…
jincypjose Nov 29, 2022
a3d864f
bumped version
larsgson Nov 29, 2022
a0fe0f9
Merge pull request #152 from unfoldingWord/larsg-feature-improve-titl…
jincypjose Nov 29, 2022
1919a2b
fix highlight issue
Joel-C-Johnson Dec 14, 2022
cca4f5b
v5.3.6
Joel-C-Johnson Dec 14, 2022
144403c
Merge pull request #156 from unfoldingWord/highlight-joel-1482
Joel-C-Johnson Dec 14, 2022
488ff99
data for multiple verse higlight is ok
larsgson Dec 22, 2022
cac43a8
data for multiple verse highlight - part 2
larsgson Dec 22, 2022
dccf566
occurrence highlighting updated
jincypjose Jan 18, 2023
32a3b0f
v5.3.6-beta.0
Joel-C-Johnson Jan 18, 2023
ef97ed6
updated the version
Joel-C-Johnson Jan 18, 2023
f09594c
added ref and versemaps for highlighting
abelpz Jan 26, 2023
f7c42d0
rm logs
abelpz Jan 26, 2023
05dc04e
Merge pull request #157 from unfoldingWord/Bugfix-1491-jincy-abelpz
jincypjose Jan 26, 2023
9e0ef41
fixing highlighting
jincypjose Jan 26, 2023
2b43b98
modified changes
jincypjose Jan 26, 2023
b468544
refactor helpers to use refs and selectionsMap
abelpz Jan 27, 2023
59cfcb1
make multiple verses work with occurrences and &
abelpz Jan 27, 2023
79e5518
version update
jincypjose Feb 3, 2023
612fd66
updated changes required for PR
jincypjose Feb 7, 2023
7b755ea
Merge pull request #159 from unfoldingWord/Bugfix-1491-jincy
superdav42 Feb 7, 2023
cc15154
v5.3.6-beta.2
Joel-C-Johnson Feb 10, 2023
d76cbde
Merge pull request #161 from unfoldingWord/Bugfix-1491-jincy
abelpz Feb 10, 2023
88b369c
Edge cases has been addressed
jincypjose Mar 8, 2023
cdc75b0
Merge pull request #162 from unfoldingWord/Bugfix-1491-edgecases-jincy
abelpz Mar 8, 2023
ad005ee
v5.3.7
Joel-C-Johnson Mar 10, 2023
fba4b49
Merge pull request #163 from unfoldingWord/addNewRelease-5.3.7
jincypjose Mar 11, 2023
03612b1
QA fail fixed for 1491
jincypjose Mar 16, 2023
bf09849
version updated
jincypjose Mar 16, 2023
7f13b5b
Merge pull request #164 from unfoldingWord/Bugfix-1491-qafail-jincy
Joel-C-Johnson Mar 16, 2023
357a082
Feature 330 ampersand support (#165)
PhotoNomad0 Mar 24, 2023
b98a813
v5.3.9
PhotoNomad0 Mar 24, 2023
36b1a65
remove occurrences check for selections.
PhotoNomad0 Apr 20, 2023
c93d0bd
Merge pull request #166 from unfoldingWord/feature-mcleanb-395
jincypjose Apr 24, 2023
adf3665
logging
PhotoNomad0 Apr 24, 2023
9cad359
fix parse book when USFM is missing.
PhotoNomad0 Apr 29, 2023
091139c
fix parse book when USFM is missing.
PhotoNomad0 Apr 29, 2023
427e765
fix parse book when USFM is missing.
PhotoNomad0 Apr 30, 2023
47a646c
add fetch book name and url to parsed USFM returned
PhotoNomad0 May 6, 2023
e7ea6c8
cleanup
PhotoNomad0 May 9, 2023
6b057e9
logging
PhotoNomad0 May 11, 2023
970ac7e
bump version
PhotoNomad0 May 11, 2023
19c43df
cleanup
PhotoNomad0 May 11, 2023
6de8c5d
fix to recover from lexicon error.
PhotoNomad0 May 12, 2023
659e890
bump version
PhotoNomad0 May 12, 2023
1466e61
Merge pull request #167 from unfoldingWord/feature-mcleanb-bookBranch
jincypjose May 16, 2023
e9efa1b
Update styleguide with hebrew example
abelpz May 31, 2023
7b4d221
replace selections with uw-quote-helpers
abelpz Jun 1, 2023
c56ce04
improved parallelScripture styleguide examples
abelpz Jun 1, 2023
87ced8b
normalize word
abelpz Jun 2, 2023
e5774bc
updated uw-quote-helpers
abelpz Jun 2, 2023
60d9c55
changed version
abelpz Jun 2, 2023
d84c61f
remove console logs
abelpz Jun 2, 2023
55a6307
remove console logs
abelpz Jun 2, 2023
99e27ca
fix misspelling
abelpz Jun 2, 2023
293f93f
fixed const typing error
abelpz Jun 2, 2023
4e2b00b
Update Selections.context.md
abelpz Jun 2, 2023
3b9bec9
Merge pull request #168 from unfoldingWord/Bugfix-1577-1580-abelpz-ji…
jincypjose Jun 2, 2023
470530b
updated uw-quote-helpers
abelpz Jun 3, 2023
ba385cb
Merge pull request #169 from unfoldingWord/abelpz/update-uw-quote-hel…
jincypjose Jun 5, 2023
df3002f
added support for verse spans
abelpz Jun 8, 2023
a0efc67
Merge pull request #170 from unfoldingWord/abelpz/add-verse-spans-sup…
jincypjose Jun 9, 2023
0fe1420
catch update selections errors
abelpz Jun 22, 2023
87d3d86
increase version
abelpz Jun 22, 2023
138664f
Merge pull request #171 from unfoldingWord/abelpz/tc-create-app/#1596
jincypjose Jun 23, 2023
3935d38
v5.5.4-beta.0
Joel-C-Johnson Jul 31, 2023
e65bbd6
moved orginal language to 3rd position of Scripture pane
Joel-C-Johnson Aug 1, 2023
9bc6906
solved the highlight issue
Joel-C-Johnson Aug 28, 2023
6486906
v5.5.5-beta.0
Joel-C-Johnson Aug 28, 2023
153a2b2
v5.5.5-beta.1
Joel-C-Johnson Aug 28, 2023
e3b8a44
v5.5.5-beta.2
Joel-C-Johnson Aug 28, 2023
f24ddd6
changed the codtion statement
Joel-C-Johnson Aug 28, 2023
7dbc120
cleared unwanted codes
Joel-C-Johnson Aug 28, 2023
7529901
v5.5.5
Joel-C-Johnson Aug 28, 2023
f3d4e35
removed arrayMove
Joel-C-Johnson Aug 28, 2023
3de3ca6
Merge pull request #173 from unfoldingWord/fix-joel-1600
jincypjose Aug 28, 2023
e9fc641
updated the variable names
Joel-C-Johnson Aug 29, 2023
20817d9
Merge pull request #175 from unfoldingWord/fixVariable-Joel
jincypjose Aug 30, 2023
0ce4f36
make normalization non greedy
abelpz Oct 31, 2023
e217d7b
add test for areSelected helper
abelpz Oct 31, 2023
64119fd
Merge pull request #180 from unfoldingWord/fix-greek-elison-highlight…
Joel-C-Johnson Nov 1, 2023
f5da0e4
Fix undefined value in tsvToJson
kintsoogi Nov 28, 2023
07d5069
Bugfix 570 / Fix highlighting errors with right quote in Greek Word (…
PhotoNomad0 Dec 4, 2023
f6c2763
Fix lexicon popup to make it easier to select text (#183)
PhotoNomad0 Dec 7, 2023
8275988
Fix linefeed after whitespace (#185)
PhotoNomad0 May 16, 2024
400a39f
Update uw-quotes-helper (#186)
PhotoNomad0 May 21, 2024
b4ae49f
bugfix/fix for \qs* end tag (#187)
PhotoNomad0 Aug 20, 2024
8816514
update dep uw-quote-helpers
abelpz Jan 14, 2025
dd92508
changed playground default example to show current fix
abelpz Jan 14, 2025
df1b0d1
bumped library version
abelpz Jan 14, 2025
9578664
bumped uw-quote-helpers to 1.1.7
abelpz Feb 3, 2025
96c3782
bumped package version to 5.5.15
abelpz Feb 3, 2025
2687e81
Merge pull request #188 from unfoldingWord/update-uw-quote-helpers
richmahn Feb 3, 2025
16cede2
Feature / handle incomplete highlighting (#189)
PhotoNomad0 Mar 3, 2026
49f6832
update dependency (#190)
PhotoNomad0 Mar 10, 2026
625af1b
update dependencies
Mar 19, 2026
ed1e803
Merge pull request #191 from unfoldingWord/feature-mcleanb-handle-inv…
PhotoNomad0 Mar 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: macos-latest
strategy:
matrix:
node-version: [10.15.1]
node-version: [16.14.0]
steps:
- name: Extract Branch Name
run: echo "::set-env name=BRANCH::${GITHUB_REF##*/}"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ styleguide
dist
.DS_Store
package-lock.json
.yarn
.yalc
yalc.lock
# Logs
Expand Down
14 changes: 14 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.yalc/
.vscode/
.idea/
.editorconfig
**/__tests__/
coverage/
cypress/
node_modules/
scripts/
src/
styleguide.config.js
styleguide.styles.js
styleguide/
yalc.lock
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ The CSS Styles implementation uses the updated version and is incompatible with
### [Material-UI Lab](https://material-ui.com/components/about-the-lab/)

A few components use the Lab components such as the Skeleton for the infinite scrolling effect.

## Building
- very old library - builds using node v16
2 changes: 1 addition & 1 deletion __tests__/fixtures/books/en_tn_65-3JN.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1,870 changes: 1,870 additions & 0 deletions __tests__/fixtures/books/ugnt_php.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion __tests__/fixtures/highlighting/3jn/1-10-2.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
book: "3jn",
chapter: 1,
verse: 10,
quote: "καὶ",
quote: "καὶ & μὴ",
occurrence: -1,
expected: [{ "text": "ἐκ", "occurrence": 1, "occurrences": 1 }, { "text": "τῆς", "occurrence": 1, "occurrences": 1 }, { "text": "ἐκκλησίας", "occurrence": 1, "occurrences": 1 }, { "text": "ἐκβάλλει", "occurrence": 1, "occurrences": 1 }]
}
30 changes: 30 additions & 0 deletions __tests__/fixtures/highlighting/php/2-1-2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
module.exports = {
book:"php",
chapter:2,
verse:1,
quote:"εἴ…εἴ…εἴ…εἴ",
occurrence:1,
expected:
[
{
"text": "εἴ",
"occurrence": 1,
"occurrences": 4
},
{
"text": "εἴ",
"occurrence": 2,
"occurrences": 4
},
{
"text": "εἴ",
"occurrence": 3,
"occurrences": 4
},
{
"text": "εἴ",
"occurrence": 4,
"occurrences": 4
}
]
}
30 changes: 30 additions & 0 deletions __tests__/fixtures/highlighting/php/2-1-3.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
module.exports = {
book:"php",
chapter:2,
verse:1,
quote:"τις…τι…τις…τις",
occurrence:1,
expected:
[
{
"text": "τις",
"occurrence": 1,
"occurrences": 3
},
{
"text": "τι",
"occurrence": 1,
"occurrences": 1
},
{
"text": "τις",
"occurrence": 2,
"occurrences": 3
},
{
"text": "τις",
"occurrence": 3,
"occurrences": 3
}
]
}
40 changes: 40 additions & 0 deletions __tests__/fixtures/highlighting/php/2-1-4.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
module.exports = {
book:"php",
chapter:2,
verse:1,
quote:"εἴ τις",
occurrence:-1,
expected:
[
{
"text": "εἴ",
"occurrence": 1,
"occurrences": 4
},
{
"text": "τις",
"occurrence": 1,
"occurrences": 3
},
{
"text": "εἴ",
"occurrence": 3,
"occurrences": 4
},
{
"text": "τις",
"occurrence": 2,
"occurrences": 3
},
{
"text": "εἴ",
"occurrence": 4,
"occurrences": 4
},
{
"text": "τις",
"occurrence": 3,
"occurrences": 3
}
]
}
20 changes: 20 additions & 0 deletions __tests__/fixtures/highlighting/php/2-1-5.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
book:"php",
chapter:2,
verse:1,
quote:"εἴ τι",
occurrence:-1,
expected:
[
{
"text": "εἴ",
"occurrence": 2,
"occurrences": 4
},
{
"text": "τι",
"occurrence": 1,
"occurrences": 1
},
]
}
15 changes: 15 additions & 0 deletions __tests__/fixtures/highlighting/php/2-1-6.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
book:"php",
chapter:2,
verse:1,
quote:"τι",
occurrence:-1,
expected:
[
{
"text": "τι",
"occurrence": 1,
"occurrences": 1
},
]
}
25 changes: 25 additions & 0 deletions __tests__/fixtures/highlighting/php/2-1-7.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = {
book:"php",
chapter:2,
verse:1,
quote:"τις",
occurrence:-1,
expected:
[
{
"text": "τις",
"occurrence": 1,
"occurrences": 3
},
{
"text": "τις",
"occurrence": 2,
"occurrences": 3
},
{
"text": "τις",
"occurrence": 3,
"occurrences": 3
}
]
}
50 changes: 50 additions & 0 deletions __tests__/fixtures/highlighting/php/2-1.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
module.exports = {
book:"php",
chapter:2,
verse:1,
quote:"εἴ τις…εἴ τι…εἴ τις…εἴ τις",
occurrence:1,
expected:
[
{
"text": "εἴ",
"occurrence": 1,
"occurrences": 4
},
{
"text": "τις",
"occurrence": 1,
"occurrences": 3
},
{
"text": "εἴ",
"occurrence": 2,
"occurrences": 4
},
{
"text": "τι",
"occurrence": 1,
"occurrences": 1
},
{
"text": "εἴ",
"occurrence": 3,
"occurrences": 4
},
{
"text": "τις",
"occurrence": 2,
"occurrences": 3
},
{
"text": "εἴ",
"occurrence": 4,
"occurrences": 4
},
{
"text": "τις",
"occurrence": 3,
"occurrences": 3
}
]
}
17 changes: 14 additions & 3 deletions __tests__/fixtures/highlighting/tit/1-1-3.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,18 @@ module.exports = {
book: "tit",
chapter: 1,
verse: 1,
quote: "Θεοῦἀπόστολος",
quote: "Θεοῦ & ἀπόστολος",
occurrence: -1,
expected: []
}
expected: [
{
"occurrence": 1,
"occurrences": 2,
"text": "Θεοῦ",
},
{
"occurrence": 1,
"occurrences": 1,
"text": "ἀπόστολος",
},
],
};
8 changes: 8 additions & 0 deletions __tests__/fixtures/highlighting/tit/1-4-2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
book:"tit",
chapter:1,
verse:4,
quote:"κατὰ…καὶ…καὶ",
occurrence:1,
expected: [{"text":"κατὰ","occurrence":1,"occurrences":1},{"text":"καὶ","occurrence":1,"occurrences":2},{"text":"καὶ","occurrence":2,"occurrences":2}]
}
26 changes: 19 additions & 7 deletions __tests__/fixtures/highlighting/tit/3-4-2.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
module.exports = {
book:"tit",
chapter:3,
verse:4,
quote:"ὅτε…ἡ χρηστότης καὶ ἡ φιλανθρωπία ἐπεφάνη τοῦ Σωτῆρος ἡμῶν, Θεοῦ",
occurrence:1,
expected: [{"text":"ὅτε","occurrence":1,"occurrences":1},{"text":"ἡ","occurrence":1,"occurrences":2},{"text":"χρηστότης","occurrence":1,"occurrences":1},{"text":"καὶ","occurrence":1,"occurrences":1},{"text":"ἡ","occurrence":2,"occurrences":2},{"text":"φιλανθρωπία","occurrence":1,"occurrences":1},{"text":"ἐπεφάνη","occurrence":1,"occurrences":1},{"text":"τοῦ","occurrence":1,"occurrences":1},{"text":"Σωτῆρος","occurrence":1,"occurrences":1},{"text":"ἡμῶν","occurrence":1,"occurrences":1},{"text":"Θεοῦ","occurrence":1,"occurrences":1}]
}
book: "tit",
chapter: 3,
verse: 4,
quote: "ὅτε & ἡ χρηστότης καὶ ἡ φιλανθρωπία ἐπεφάνη τοῦ Σωτῆρος ἡμῶν, Θεοῦ",
occurrence: 1,
expected: [
{ text: "ὅτε", occurrence: 1, occurrences: 1 },
{ text: "ἡ", occurrence: 1, occurrences: 2 },
{ text: "χρηστότης", occurrence: 1, occurrences: 1 },
{ text: "καὶ", occurrence: 1, occurrences: 1 },
{ text: "ἡ", occurrence: 2, occurrences: 2 },
{ text: "φιλανθρωπία", occurrence: 1, occurrences: 1 },
{ text: "ἐπεφάνη", occurrence: 1, occurrences: 1 },
{ text: "τοῦ", occurrence: 1, occurrences: 1 },
{ text: "Σωτῆρος", occurrence: 1, occurrences: 1 },
{ text: "ἡμῶν", occurrence: 1, occurrences: 1 },
{ text: "Θεοῦ", occurrence: 1, occurrences: 1 },
],
};
7 changes: 5 additions & 2 deletions __tests__/greek-highlighting-component.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ import ugnt_3jn from './fixtures/books/ugnt_3jn.js';
import { mount } from 'enzyme';
import React from 'react';
import path from 'path';
import { normalizeString } from "../src/core/selections/selections";

const UGNT_BOOKS = {
'tit': ugnt_tit,
'3jn': ugnt_3jn
}

describe('Checking highlights from rendered component in Titus', () => {
// To do: The <ScriptureTable/> syntax probably needs to be updated to work with the latest version
describe.skip('Checking highlights from rendered component in Titus', () => {
it('should have all words highlighted Titus 1:1', () => {
generateTest('tit/1-1');
})
Expand Down Expand Up @@ -66,7 +68,8 @@ describe('Checking highlights from rendered component in Titus', () => {
})
})

describe('Checking highlights from rendered component in 3 John', () => {
// To do: The <ScriptureTable/> syntax probably needs to be updated to work with the latest version
describe.skip('Checking highlights from rendered component in 3 John', () => {
it('should have all words highlighted 3JN 1:10', () => {
generateTest('3jn/1-10');
})
Expand Down
Loading