diff --git a/src/db/seedData.ts b/src/db/seedData.ts
index cdce389..1fa3bda 100644
--- a/src/db/seedData.ts
+++ b/src/db/seedData.ts
@@ -35,10 +35,10 @@ export const defaultBooks = [{
export const defaultAnnotations = [{
"ZANNOTATIONASSETID": "THBFYNJKTGFTTVCGSAE1",
"ZFUTUREPROOFING5": "Introduction",
- "ZANNOTATIONREPRESENTATIVETEXT": "This is a contextual text for the hightlight from the iPhone User Guide",
- "ZANNOTATIONSELECTEDTEXT": "hightlight from the iPhone User Guide",
+ "ZANNOTATIONREPRESENTATIVETEXT": "This is a contextual text for the highlight from the iPhone User Guide",
+ "ZANNOTATIONSELECTEDTEXT": "highlight from the iPhone User Guide",
"ZANNOTATIONLOCATION": "test-highlight-link-from-the-iphone-user-guide",
- "ZANNOTATIONNOTE": "Test note for the hightlight from the iPhone User Guide",
+ "ZANNOTATIONNOTE": "Test note for the highlight from the iPhone User Guide",
"ZANNOTATIONCREATIONDATE": 685151385.91602,
"ZANNOTATIONMODIFICATIONDATE": 685151385.91602,
"ZANNOTATIONSTYLE": 3,
@@ -46,10 +46,10 @@ export const defaultAnnotations = [{
}, {
"ZANNOTATIONASSETID": "THBFYNJKTGFTTVCGSAE2",
"ZFUTUREPROOFING5": "Introduction",
- "ZANNOTATIONREPRESENTATIVETEXT": "This is a contextual text for the hightlight from the iPad User Guide",
- "ZANNOTATIONSELECTEDTEXT": "hightlight from the iPad User Guide",
+ "ZANNOTATIONREPRESENTATIVETEXT": "This is a contextual text for the highlight from the iPad User Guide",
+ "ZANNOTATIONSELECTEDTEXT": "highlight from the iPad User Guide",
"ZANNOTATIONLOCATION": "test-highlight-link-from-the-ipad-user-guide",
- "ZANNOTATIONNOTE": "Test note for the hightlight from the iPad User Guide",
+ "ZANNOTATIONNOTE": "Test note for the highlight from the iPad User Guide",
"ZANNOTATIONCREATIONDATE": 685151385.91602,
"ZANNOTATIONMODIFICATIONDATE": 685151385.91602,
"ZANNOTATIONSTYLE": 3,
@@ -57,10 +57,10 @@ export const defaultAnnotations = [{
}, {
"ZANNOTATIONASSETID": "THBFYNJKTGFTTVCGSAE3",
"ZFUTUREPROOFING5": "Introduction",
- "ZANNOTATIONREPRESENTATIVETEXT": "This is a contextual text for the hightlight from the Mac User Guide",
- "ZANNOTATIONSELECTEDTEXT": "hightlight from the Mac User Guide",
+ "ZANNOTATIONREPRESENTATIVETEXT": "This is a contextual text for the highlight from the Mac User Guide",
+ "ZANNOTATIONSELECTEDTEXT": "highlight from the Mac User Guide",
"ZANNOTATIONLOCATION": "test-highlight-link-from-the-mac-user-guide",
- "ZANNOTATIONNOTE": "Test note for the hightlight from the Mac User Guide",
+ "ZANNOTATIONNOTE": "Test note for the highlight from the Mac User Guide",
"ZANNOTATIONCREATIONDATE": 685151385.91602,
"ZANNOTATIONMODIFICATIONDATE": 685151385.91602,
"ZANNOTATIONSTYLE": 3,
@@ -68,10 +68,10 @@ export const defaultAnnotations = [{
}, {
"ZANNOTATIONASSETID": "THBFYNJKTGFTTVCGSAE4",
"ZFUTUREPROOFING5": "Introduction",
- "ZANNOTATIONREPRESENTATIVETEXT": "This is a contextual text for the hightlight from the Apple Watch User Guide",
- "ZANNOTATIONSELECTEDTEXT": "hightlight from the Apple Watch User Guide",
+ "ZANNOTATIONREPRESENTATIVETEXT": "This is a contextual text for the highlight from the Apple Watch User Guide",
+ "ZANNOTATIONSELECTEDTEXT": "highlight from the Apple Watch User Guide",
"ZANNOTATIONLOCATION": "test-highlight-link-from-the-apple-watch-user-guide",
- "ZANNOTATIONNOTE": "Test note for the hightlight from the Apple Watch User Guide",
+ "ZANNOTATIONNOTE": "Test note for the highlight from the Apple Watch User Guide",
"ZANNOTATIONCREATIONDATE": 685151385.91602,
"ZANNOTATIONMODIFICATIONDATE": 685151385.91602,
"ZANNOTATIONSTYLE": 3,
@@ -79,10 +79,10 @@ export const defaultAnnotations = [{
}, {
"ZANNOTATIONASSETID": "THBFYNJKTGFTTVCGSAE1",
"ZFUTUREPROOFING5": "Introduction",
- "ZANNOTATIONREPRESENTATIVETEXT": "This is a contextual text for the hightlight from the iPhone User Guide",
- "ZANNOTATIONSELECTEDTEXT": "hightlight from the iPhone User Guide",
+ "ZANNOTATIONREPRESENTATIVETEXT": "This is a contextual text for the highlight from the iPhone User Guide",
+ "ZANNOTATIONSELECTEDTEXT": "highlight from the iPhone User Guide",
"ZANNOTATIONLOCATION": "test-highlight-link-from-the-iphone-user-guide",
- "ZANNOTATIONNOTE": "Test note for the deleted hightlight from the iPhone User Guide",
+ "ZANNOTATIONNOTE": "Test note for the deleted highlight from the iPhone User Guide",
"ZANNOTATIONCREATIONDATE": 685151385.91602,
"ZANNOTATIONMODIFICATIONDATE": 685151385.91602,
"ZANNOTATIONSTYLE": 3,
@@ -90,10 +90,10 @@ export const defaultAnnotations = [{
}, {
"ZANNOTATIONASSETID": "THBFYNJKTGFTTVCGSAE2",
"ZFUTUREPROOFING5": "Introduction",
- "ZANNOTATIONREPRESENTATIVETEXT": "This is a contextual text for the hightlight from the iPad User Guide",
- "ZANNOTATIONSELECTEDTEXT": "hightlight from the iPad User Guide",
+ "ZANNOTATIONREPRESENTATIVETEXT": "This is a contextual text for the highlight from the iPad User Guide",
+ "ZANNOTATIONSELECTEDTEXT": "highlight from the iPad User Guide",
"ZANNOTATIONLOCATION": "test-highlight-link-from-the-ipad-user-guide",
- "ZANNOTATIONNOTE": "Test note for the deleted hightlight from the iPad User Guide",
+ "ZANNOTATIONNOTE": "Test note for the deleted highlight from the iPad User Guide",
"ZANNOTATIONCREATIONDATE": 685151385.91602,
"ZANNOTATIONMODIFICATIONDATE": 685151385.91602,
"ZANNOTATIONSTYLE": 3,
@@ -101,10 +101,10 @@ export const defaultAnnotations = [{
}, {
"ZANNOTATIONASSETID": "THBFYNJKTGFTTVCGSAE3",
"ZFUTUREPROOFING5": "Introduction",
- "ZANNOTATIONREPRESENTATIVETEXT": "This is a contextual text for the hightlight from the Mac User Guide",
- "ZANNOTATIONSELECTEDTEXT": "hightlight from the Mac User Guide",
+ "ZANNOTATIONREPRESENTATIVETEXT": "This is a contextual text for the highlight from the Mac User Guide",
+ "ZANNOTATIONSELECTEDTEXT": "highlight from the Mac User Guide",
"ZANNOTATIONLOCATION": "test-highlight-link-from-the-mac-user-guide",
- "ZANNOTATIONNOTE": "Test note for the deleted hightlight from the Mac User Guide",
+ "ZANNOTATIONNOTE": "Test note for the deleted highlight from the Mac User Guide",
"ZANNOTATIONCREATIONDATE": 685151385.91602,
"ZANNOTATIONMODIFICATIONDATE": 685151385.91602,
"ZANNOTATIONSTYLE": 3,
@@ -112,10 +112,10 @@ export const defaultAnnotations = [{
}, {
"ZANNOTATIONASSETID": "THBFYNJKTGFTTVCGSAE4",
"ZFUTUREPROOFING5": "Introduction",
- "ZANNOTATIONREPRESENTATIVETEXT": "This is a contextual text for the hightlight from the Apple Watch User Guide",
- "ZANNOTATIONSELECTEDTEXT": "hightlight from the Apple Watch User Guide",
+ "ZANNOTATIONREPRESENTATIVETEXT": "This is a contextual text for the highlight from the Apple Watch User Guide",
+ "ZANNOTATIONSELECTEDTEXT": "highlight from the Apple Watch User Guide",
"ZANNOTATIONLOCATION": "test-highlight-link-from-the-apple-watch-user-guide",
- "ZANNOTATIONNOTE": "Test note for the deleted hightlight from the Apple Watch User Guide",
+ "ZANNOTATIONNOTE": "Test note for the deleted highlight from the Apple Watch User Guide",
"ZANNOTATIONCREATIONDATE": 685151385.91602,
"ZANNOTATIONMODIFICATIONDATE": 685151385.91602,
"ZANNOTATIONSTYLE": 3,
diff --git a/src/settings.ts b/src/settings.ts
index 5527959..a508f1d 100644
--- a/src/settings.ts
+++ b/src/settings.ts
@@ -43,7 +43,7 @@ export class IBookHighlightsSettingTab extends PluginSettingTab {
new Setting(containerEl)
.setName('Import highlights on start')
- .setDesc('Import all hightlights from all your books when Obsidian starts')
+ .setDesc('Import all highlights from all your books when Obsidian starts')
.addToggle((toggle) => {
toggle.setValue(this.plugin.settings.importOnStart)
.onChange(async (value) => {
diff --git a/test/db.spec.ts b/test/db.spec.ts
index 91c32fb..6e9d18d 100644
--- a/test/db.spec.ts
+++ b/test/db.spec.ts
@@ -60,8 +60,8 @@ describe('Database operations', () => {
const highlights = await annotationsRequest(dbPath, `SELECT * FROM ${HIGHLIGHTS_LIBRARY_NAME} WHERE ZANNOTATIONDELETED = 0`);
expect(highlights.length).toEqual(4);
- expect(highlights[0].ZANNOTATIONNOTE).toEqual('Test note for the hightlight from the iPhone User Guide');
- expect(highlights[3].ZANNOTATIONREPRESENTATIVETEXT).toEqual('This is a contextual text for the hightlight from the Apple Watch User Guide');
+ expect(highlights[0].ZANNOTATIONNOTE).toEqual('Test note for the highlight from the iPhone User Guide');
+ expect(highlights[3].ZANNOTATIONREPRESENTATIVETEXT).toEqual('This is a contextual text for the highlight from the Apple Watch User Guide');
});
test('Should return a highlight link for each highlight when highlights library is not empty', async () => {
@@ -100,10 +100,10 @@ describe('Database load testing', () => {
threeThousandsAnnotations.push({
ZANNOTATIONASSETID: `THBFYNJKTGFTTVCGSAE${i}`,
ZFUTUREPROOFING5: `Introduction ${j}`,
- ZANNOTATIONREPRESENTATIVETEXT: `This is a contextual text for the hightlight from the Book ${i}`,
- ZANNOTATIONSELECTEDTEXT: `hightlight from the Book ${i}`,
+ ZANNOTATIONREPRESENTATIVETEXT: `This is a contextual text for the highlight from the Book ${i}`,
+ ZANNOTATIONSELECTEDTEXT: `highlight from the Book ${i}`,
ZANNOTATIONLOCATION: `test-highlight-link-from-the-book-${i}`,
- ZANNOTATIONNOTE: `Test note for the hightlight from the Book ${i}`,
+ ZANNOTATIONNOTE: `Test note for the highlight from the Book ${i}`,
ZANNOTATIONCREATIONDATE: 685151385.91602,
ZANNOTATIONMODIFICATIONDATE: 685151385.91602,
ZANNOTATIONSTYLE: 3,
diff --git a/test/mocks/aggregatedDetailsData.ts b/test/mocks/aggregatedDetailsData.ts
index 49bd7f0..e652dae 100644
--- a/test/mocks/aggregatedDetailsData.ts
+++ b/test/mocks/aggregatedDetailsData.ts
@@ -11,10 +11,10 @@ export const booksToAggregate = [{
export const annotationsToAggregate = [{
"ZANNOTATIONASSETID": "THBFYNJKTGFTTVCGSAE5",
"ZFUTUREPROOFING5": "Aggregated Introduction",
- "ZANNOTATIONREPRESENTATIVETEXT": "This is a contextual text for the aggregated hightlight from the Apple iPhone User Guide",
- "ZANNOTATIONSELECTEDTEXT": "aggregated hightlight from the Apple iPhone User Guide",
+ "ZANNOTATIONREPRESENTATIVETEXT": "This is a contextual text for the aggregated highlight from the Apple iPhone User Guide",
+ "ZANNOTATIONSELECTEDTEXT": "aggregated highlight from the Apple iPhone User Guide",
"ZANNOTATIONLOCATION": "aggregated-highlight-link-from-the-apple-iphone-user-guide",
- "ZANNOTATIONNOTE": "Test note for the aggregated hightlight from the Apple iPhone User Guide",
+ "ZANNOTATIONNOTE": "Test note for the aggregated highlight from the Apple iPhone User Guide",
"ZANNOTATIONCREATIONDATE": 731876693.002279,
"ZANNOTATIONMODIFICATIONDATE": 731876693.002279,
"ZANNOTATIONSTYLE": 3,
@@ -22,10 +22,10 @@ export const annotationsToAggregate = [{
}, {
"ZANNOTATIONASSETID": "THBFYNJKTGFTTVCGSAE5",
"ZFUTUREPROOFING5": "Another aggregated Introduction",
- "ZANNOTATIONREPRESENTATIVETEXT": "This is a contextual text for the aggregated hightlight from the Apple iPhone User Guide\n\ncontaining a new line to test the preservation of indentation",
- "ZANNOTATIONSELECTEDTEXT": "aggregated hightlight from the Apple iPhone User Guide\n\ncontaining a new line to test the preservation of indentation",
+ "ZANNOTATIONREPRESENTATIVETEXT": "This is a contextual text for the aggregated highlight from the Apple iPhone User Guide\n\ncontaining a new line to test the preservation of indentation",
+ "ZANNOTATIONSELECTEDTEXT": "aggregated highlight from the Apple iPhone User Guide\n\ncontaining a new line to test the preservation of indentation",
"ZANNOTATIONLOCATION": "aggregated-highlight-link-from-the-apple-iphone-user-guide",
- "ZANNOTATIONNOTE": "Test note for the aggregated hightlight from the Apple iPhone User Guide\n\nalong with a new line to test the preservation of indentation",
+ "ZANNOTATIONNOTE": "Test note for the aggregated highlight from the Apple iPhone User Guide\n\nalong with a new line to test the preservation of indentation",
"ZANNOTATIONCREATIONDATE": 731876693.002279,
"ZANNOTATIONMODIFICATIONDATE": 731876693.002279,
"ZANNOTATIONSTYLE": 3,
@@ -42,18 +42,18 @@ export const aggregatedHighlights = [{
"bookCoverUrl": '',
"annotations": [{
"chapter": "Aggregated Introduction",
- "contextualText": "This is a contextual text for the aggregated hightlight from the Apple iPhone User Guide",
- "highlight": "aggregated hightlight from the Apple iPhone User Guide",
- "note": "Test note for the aggregated hightlight from the Apple iPhone User Guide",
+ "contextualText": "This is a contextual text for the aggregated highlight from the Apple iPhone User Guide",
+ "highlight": "aggregated highlight from the Apple iPhone User Guide",
+ "note": "Test note for the aggregated highlight from the Apple iPhone User Guide",
"highlightLocation": "aggregated-highlight-link-from-the-apple-iphone-user-guide",
"highlightStyle": 3,
"highlightCreationDate": 731876693.002279,
"highlightModificationDate": 731876693.002279
}, {
"chapter": "Another aggregated Introduction",
- "contextualText": "This is a contextual text for the aggregated hightlight from the Apple iPhone User Guide\ncontaining a new line to test the preservation of indentation",
- "highlight": "aggregated hightlight from the Apple iPhone User Guide\ncontaining a new line to test the preservation of indentation",
- "note": "Test note for the aggregated hightlight from the Apple iPhone User Guide\nalong with a new line to test the preservation of indentation",
+ "contextualText": "This is a contextual text for the aggregated highlight from the Apple iPhone User Guide\ncontaining a new line to test the preservation of indentation",
+ "highlight": "aggregated highlight from the Apple iPhone User Guide\ncontaining a new line to test the preservation of indentation",
+ "note": "Test note for the aggregated highlight from the Apple iPhone User Guide\nalong with a new line to test the preservation of indentation",
"highlightLocation": "aggregated-highlight-link-from-the-apple-iphone-user-guide",
"highlightStyle": 3,
"highlightCreationDate": 731876693.002279,
diff --git a/test/mocks/renderedTemplate.ts b/test/mocks/renderedTemplate.ts
index e6d0f09..239b317 100644
--- a/test/mocks/renderedTemplate.ts
+++ b/test/mocks/renderedTemplate.ts
@@ -9,19 +9,19 @@ Number of annotations:: 2
----
- 📖 Chapter:: Aggregated Introduction
-- 🔖 Context:: This is a contextual text for the aggregated hightlight from the Apple iPhone User Guide
-- 🎯 Highlight:: aggregated hightlight from the Apple iPhone User Guide
-- 📝 Note:: Test note for the aggregated hightlight from the Apple iPhone User Guide
+- 🔖 Context:: This is a contextual text for the aggregated highlight from the Apple iPhone User Guide
+- 🎯 Highlight:: aggregated highlight from the Apple iPhone User Guide
+- 📝 Note:: Test note for the aggregated highlight from the Apple iPhone User Guide
- 📙 Highlight Link:: [Apple Books Highlight Link](ibooks://assetid/THBFYNJKTGFTTVCGSAE5#aggregated-highlight-link-from-the-apple-iphone-user-guide)
----
- 📖 Chapter:: Another aggregated Introduction
-- 🔖 Context:: This is a contextual text for the aggregated hightlight from the Apple iPhone User Guide
+- 🔖 Context:: This is a contextual text for the aggregated highlight from the Apple iPhone User Guide
containing a new line to test the preservation of indentation
-- 🎯 Highlight:: aggregated hightlight from the Apple iPhone User Guide
+- 🎯 Highlight:: aggregated highlight from the Apple iPhone User Guide
containing a new line to test the preservation of indentation
-- 📝 Note:: Test note for the aggregated hightlight from the Apple iPhone User Guide
+- 📝 Note:: Test note for the aggregated highlight from the Apple iPhone User Guide
along with a new line to test the preservation of indentation
- 📙 Highlight Link:: [Apple Books Highlight Link](ibooks://assetid/THBFYNJKTGFTTVCGSAE5#aggregated-highlight-link-from-the-apple-iphone-user-guide)
@@ -43,9 +43,9 @@ Number of annotations:: 2
----
- 📖 Chapter:: Aggregated Introduction
-- 🔖 Context:: This is a contextual text for the aggregated hightlight from the Apple iPhone User Guide
-- 🎯 Highlight:: aggregated hightlight from the Apple iPhone User Guide
-- 📝 Note:: Test note for the aggregated hightlight from the Apple iPhone User Guide
+- 🔖 Context:: This is a contextual text for the aggregated highlight from the Apple iPhone User Guide
+- 🎯 Highlight:: aggregated highlight from the Apple iPhone User Guide
+- 📝 Note:: Test note for the aggregated highlight from the Apple iPhone User Guide
- 📙 Highlight Link:: [Apple Books Highlight Link](ibooks://assetid/THBFYNJKTGFTTVCGSAE5#aggregated-highlight-link-from-the-apple-iphone-user-guide)
- 📅 Highlight taken on:: 2024-03-11 03:04:53 PM -04:00
- 📅 Highlight modified on:: 2024-03-11 03:04:53 PM -04:00
@@ -53,11 +53,11 @@ Number of annotations:: 2
----
- 📖 Chapter:: Another aggregated Introduction
-- 🔖 Context:: This is a contextual text for the aggregated hightlight from the Apple iPhone User Guide
+- 🔖 Context:: This is a contextual text for the aggregated highlight from the Apple iPhone User Guide
containing a new line to test the preservation of indentation
-- 🎯 Highlight:: aggregated hightlight from the Apple iPhone User Guide
+- 🎯 Highlight:: aggregated highlight from the Apple iPhone User Guide
containing a new line to test the preservation of indentation
-- 📝 Note:: Test note for the aggregated hightlight from the Apple iPhone User Guide
+- 📝 Note:: Test note for the aggregated highlight from the Apple iPhone User Guide
along with a new line to test the preservation of indentation
- 📙 Highlight Link:: [Apple Books Highlight Link](ibooks://assetid/THBFYNJKTGFTTVCGSAE5#aggregated-highlight-link-from-the-apple-iphone-user-guide)
- 📅 Highlight taken on:: 2024-03-11 03:04:53 PM -04:00
diff --git a/test/mocks/testDatabase.sqlite b/test/mocks/testDatabase.sqlite
index 34683e4..451612f 100644
Binary files a/test/mocks/testDatabase.sqlite and b/test/mocks/testDatabase.sqlite differ